/* مِداد (Blotter) — Warm Paper Cream, Jet Ink, Acid Lime (#C8FF2E), Lilac (#B9A3F5) & Gold (#E8B93C) Editorial Foundry (Arabic RTL) */
:root {
  --bg: #f1f0e6;
  --paper: #f8f7f0;
  --ink: #0b0b0b;
  --accent: #c8ff2e;
  --accent-hover: #d6ff58;
  --lilac: #b9a3f5;
  --gold: #e8b93c;
  --line: rgba(11, 11, 11, 0.16);
  --line-dark: rgba(241, 240, 230, 0.20);
  --err: #8a1020;
  --font-display: 'Cairo', 'Inter', system-ui, sans-serif;
  --font-giant: 'Cairo', 'Anton', Impact, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 2.4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 40px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
canvas { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1380px; margin-inline: auto; padding-inline: var(--pad); }

/* ---- Top Header (74px, non-sticky — scrolls naturally with hero just like Blotter) ---- */
.bl-header {
  position: relative; z-index: 50; height: 74px;
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.bl-brand {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--font-giant); font-weight: 900; font-size: 28px; letter-spacing: -0.02em;
  line-height: 1;
}
.bl-brand-dot {
  display: inline-block; width: 0.28em; height: 0.28em; border-radius: 50%;
  background: var(--ink); margin-inline-start: 3px;
  transition: transform 0.28s var(--ease), background 0.2s;
}
.bl-brand:hover .bl-brand-dot { transform: scale(2.1); background: var(--accent); }

.bl-nav {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px);
  margin-inline-end: auto; margin-inline-start: clamp(20px, 5vw, 84px);
}
.bl-nav a {
  position: relative; font-size: 14.5px; font-weight: 500; padding-block: 4px;
}
.bl-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.bl-nav a:hover::after { transform: scaleX(1); }

.bl-header-end { display: inline-flex; align-items: center; gap: 10px; }
.bl-dir-link {
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s;
}
.bl-dir-link:hover { border-color: var(--ink); background: var(--paper); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  transition: transform 0.22s var(--ease), background 0.2s, color 0.2s;
}
.cart-btn:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }
.cart-btn.is-bump { animation: blBump 0.34s var(--ease); }
@keyframes blBump { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.12); background: var(--accent); color: var(--ink); } }

@media (max-width: 820px) { .bl-nav { display: none; } }

/* ---- Pills & Eyebrows ---- */
.mono-chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.mono-chip .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
  animation: blDot 2.2s ease-in-out infinite;
}
@keyframes blDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.sec-dark .mono-chip { border-color: var(--line-dark); color: var(--bg); }

.bl-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; border: 1.5px solid transparent;
  transition: transform 0.24s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.bl-pill-dark { background: var(--ink); color: var(--bg); }
.bl-pill-dark:hover { transform: translateY(-2px); background: var(--accent); color: var(--ink); }
.bl-pill-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.bl-pill-outline:hover { transform: translateY(-2px); background: var(--ink); color: var(--bg); }
.bl-pill-light { background: var(--bg); color: var(--ink); }
.bl-pill-light:hover { transform: translateY(-2px); background: var(--accent); }
.bl-pill-lilac { background: var(--lilac); color: var(--ink); }
.bl-pill-lilac:hover { transform: translateY(-2px); background: var(--accent); }

/* ---- Hero (Full-Viewport 100svh Editorial Stage + Interactive Metaball Ink-Inversion Canvas) ---- */
.bl-hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(10px, 2vh, 22px) var(--pad) clamp(20px, 3vh, 32px);
  gap: clamp(14px, 2.2vh, 24px);
}
.hero-top {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end; gap: 24px;
}
.hero-h1 {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5.7rem); line-height: 0.98; letter-spacing: -0.03em;
}
.hero-h1 em { font-style: italic; font-weight: 800; }
.hero-side {
  max-width: 440px; justify-self: end;
  display: flex; flex-direction: column; gap: 18px;
}
.hero-side p { font-size: 16.5px; line-height: 1.65; color: rgba(11, 11, 11, 0.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Giant Interactive Metaball Ink Canvas Slot */
.word-slot {
  position: relative; width: 100%;
  height: clamp(220px, 36svh, 420px);
  cursor: crosshair; user-select: none; touch-action: pan-y;
}
#bl-ink-canvas {
  width: 100%; height: 100%; display: block;
}

/* Bottom Live Type Tester Row */
.tester { display: flex; flex-direction: column; gap: 10px; }
.tester-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.72;
}
.tester-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.tester-input {
  flex: 1 1 260px; min-width: 0; border: 0; background: transparent;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ink); outline: none;
}
.tester-input::placeholder { color: rgba(11, 11, 11, 0.42); }
.tester-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-pill {
  padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.preset-pill:hover, .preset-pill.is-active { background: var(--ink); color: var(--accent); transform: translateY(-1px); }

@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; }
  .word-slot { height: clamp(170px, 28svh, 260px); }
}

/* ---- Shared Section Header ---- */
.sec { padding-block: clamp(68px, 8.5vw, 120px); }
.sec-dark { background: var(--ink); color: var(--bg); }
.sec-lilac { background: var(--lilac); color: var(--ink); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end; gap: 24px; margin-bottom: clamp(32px, 4.5vw, 56px);
}
.sec-head h2 {
  margin-top: 14px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.03em;
}
.sec-head p { font-size: 16.5px; line-height: 1.7; opacity: 0.78; max-width: 44ch; justify-self: end; }
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
}

/* ---- Section 1: 3x2 Interactive Specimen Drawer (#fonts) ---- */
.spec-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 1020px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .spec-grid { grid-template-columns: 1fr; } }

.spec-card {
  position: relative; border-radius: 22px; padding: 20px 22px;
  aspect-ratio: 1 / 0.82; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform 0.32s var(--ease), border-color 0.25s;
}
.spec-card:hover { transform: translateY(-4px); border-color: rgba(11, 11, 11, 0.55); }
.tone-paper { background: var(--paper); color: var(--ink); }
.tone-lime { background: var(--accent); color: var(--ink); }
.tone-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tone-lilac { background: var(--lilac); color: var(--ink); }
.tone-gold { background: var(--gold); color: var(--ink); }

.spec-top, .spec-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.spec-top span:last-child { opacity: 0.65; }

.spec-word {
  align-self: center; text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(46px, 5.4vw, 76px); line-height: 1.05;
  transition: transform 0.42s var(--ease), letter-spacing 0.42s var(--ease), font-weight 0.3s, text-shadow 0.35s;
}
.spec-card[data-fx="heavy"]:hover .spec-word { transform: scale(1.12); font-weight: 900; }
.spec-card[data-fx="slant"]:hover .spec-word { transform: skewX(-12deg) scale(1.06); }
.spec-card[data-fx="tight"]:hover .spec-word { transform: scaleX(0.86) scaleY(1.16); color: var(--accent); }
.spec-card[data-fx="wide"]:hover .spec-word { transform: scaleX(1.14); }
.spec-card[data-fx="chroma"]:hover .spec-word {
  transform: translateY(-4px) scale(1.06);
  text-shadow: 5px 0 0 var(--lilac), -5px 0 0 var(--accent);
}
.spec-card[data-fx="geo"]:hover .spec-word { transform: rotate(-3deg) scale(1.09); }

.spec-fam { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-body); }
.spec-fam b { font-size: 15px; font-weight: 700; }
.spec-fam small { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.72; }

.spec-price-btn {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid currentColor;
  background: transparent; color: inherit; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.spec-price-btn:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.tone-ink .spec-price-btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---- Section 2: Dark Licensing Tiers + Dashed Custom Commission Banner (#licensing) ---- */
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 900px) { .tiers-grid { grid-template-columns: 1fr; } }

.tier-card {
  border-radius: 24px; padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-dark); background: transparent;
  display: flex; flex-direction: column; gap: 18px;
}
.tier-card.is-featured {
  background: var(--accent); color: var(--ink); border-color: var(--accent);
}
.tier-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.tier-badge {
  padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--accent);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
}
.tier-price { display: flex; align-items: baseline; gap: 10px; }
.tier-price b { font-family: var(--font-giant); font-weight: 900; font-size: 52px; line-height: 1; }
.tier-price span { font-family: var(--font-mono); font-size: 12px; opacity: 0.72; }
.tier-blurb { font-size: 14.5px; opacity: 0.8; }

.tier-list {
  list-style: none; padding-top: 18px; border-top: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 10px; font-size: 14px;
}
.tier-card.is-featured .tier-list { border-top-color: rgba(11, 11, 11, 0.25); }
.tier-list li { display: flex; align-items: center; gap: 10px; }
.tier-list li::before { content: "✓"; font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.tier-card.is-featured .tier-list li::before { color: var(--ink); }
.tier-btn { margin-top: auto; width: 100%; }

/* Dashed Custom Commission Box */
.custom-box {
  margin-top: 22px; border-radius: 24px; padding: clamp(24px, 3.2vw, 36px);
  border: 1.5px dashed rgba(241, 240, 230, 0.4);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.custom-box h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.5vw, 30px); }
.custom-box p { margin-top: 6px; opacity: 0.78; font-size: 15px; max-width: 54ch; }
.custom-meta { font-family: var(--font-mono); font-size: 13px; color: var(--lilac); font-weight: 700; margin-bottom: 6px; }

/* ---- Section 3: Studios in the Wild (#studios) ---- */
.stat-block { justify-self: end; text-align: end; }
.stat-block b {
  display: block; font-family: var(--font-giant); font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.4rem); line-height: 0.95;
}
.stat-block span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; opacity: 0.7; }
@media (max-width: 860px) { .stat-block { justify-self: start; text-align: start; } }

.logos-strip {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line);
}
@media (max-width: 920px) { .logos-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .logos-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-cell {
  min-height: 128px; padding: 20px; display: grid; place-items: center; text-align: center;
  border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  transition: background 0.24s var(--ease), transform 0.24s var(--ease);
}
.logo-cell:hover { background: var(--accent); }
.logo-cell.is-mono { font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.08em; }
.logo-cell.is-serif { font-family: 'Amiri', Georgia, serif; font-style: italic; font-size: 26px; font-weight: 700; }

/* ---- Section 4: Solid Lilac Journal / Newsletter Band (#journal) ---- */
.news-in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end; gap: 32px;
}
@media (max-width: 860px) { .news-in { grid-template-columns: 1fr; } }
.news-in h2 {
  margin-top: 14px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: 1.04; letter-spacing: -0.03em;
}
.news-lead { margin-top: 14px; font-size: 16.5px; max-width: 44ch; opacity: 0.85; }
.news-form { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.news-input {
  flex: 1 1 220px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--ink); background: rgba(255, 255, 255, 0.35);
  color: var(--ink); font-size: 15px;
}
.news-input::placeholder { color: rgba(11, 11, 11, 0.55); }
.news-note { font-family: var(--font-mono); font-size: 11px; opacity: 0.72; }
.news-status { font-weight: 700; font-size: 14px; min-height: 22px; }

/* ---- Section 5: Giant Acid-Lime Wordmark Dark Footer ---- */
.bl-footer {
  background: var(--ink); color: var(--bg);
  padding: clamp(48px, 6vw, 84px) 0 36px; overflow: hidden;
}
.foot-giant {
  width: 100%; text-align: center;
  font-family: var(--font-giant); font-weight: 900;
  font-size: clamp(5.5rem, 25vw, 22rem); line-height: 0.92; letter-spacing: -0.03em;
  color: var(--accent); user-select: none; margin-bottom: clamp(24px, 4vw, 48px);
}
.foot-row {
  border-top: 1px solid var(--line-dark); padding-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 12px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { transition: color 0.2s; }
.foot-links a:hover { color: var(--accent); }

/* ---- Interactive Cart Drawer ---- */
.cart-drawer {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; width: min(100%, 380px); z-index: 120;
  background: var(--ink); color: var(--bg); padding: 26px;
  border-inline-start: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 18px;
  transform: translateX(-105%); transition: transform 0.34s var(--ease);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-dark); padding-bottom: 14px; }
.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-dark); font-size: 14px;
}
.cart-total {
  border-top: 1px solid var(--line-dark); padding-top: 14px;
  display: flex; justify-content: space-between; font-size: 18px; font-weight: 700;
}
