/* ==========================================================
   Talla Studio — Landing concept v0
   Identity: 01-foundation/02-TALLA STUDIO (Talla Lime · Night Ink · Welcome Cream · Window Magenta ≤5%)
   Tokens from brief §6.2 · Type from §7 · Arch frame from §8
   ========================================================== */
:root {
  --lime: #C1FF42;
  --ink: #160100;
  --cream: #FAFFEA;
  --magenta: #E40186;
  --green: #7AFF66; /* gradient only */
  --gradient: linear-gradient(135deg, #FAFFEA 0%, #C1FF42 60%, #7AFF66 100%);
  --radius-card: 20px;
  --radius-board: 28px;
  --line: rgba(22, 1, 0, .12);
  --sage: #F3F8DF; /* a slightly deeper cream for the process board */
  --ink-72: rgba(22, 1, 0, .72);
  --warm: linear-gradient(160deg, #e9d9c2 0%, #c9a882 55%, #8c6647 100%);

  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-ar: 'Alexandria', system-ui, sans-serif;
  --gutter: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
[lang="ar"] body { font-family: var(--f-ar); font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
[id] { scroll-margin-top: 96px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Arabic visitors: hide the pre-rendered English until app.js has swapped the copy (head script adds/removes this) */
.i18n-pending body { visibility: hidden; }

.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
}
.h2 { font-size: clamp(36px, 5.4vw, 80px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.h3 { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.label {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.lime { color: var(--lime); }
.word { display: inline-block; white-space: nowrap; }
[lang="ar"] .display, [lang="ar"] .h3 { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.25; }
[lang="ar"] .label { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 600; }

/* ---------- Mark & lockup ---------- */
.mark { display: inline-block; height: 1em; width: .727em; } /* viewBox 160 × 220 */
.mark .m-body { fill: var(--mark-c, var(--ink)); }
.mark .m-win { fill: var(--magenta); } /* the windows are never recoloured (except mono print) */
.lockup {
  display: inline-flex; align-items: baseline;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  white-space: nowrap; direction: ltr;
}
.lockup .mark { height: .74em; width: .538em; margin: 0 .02em; } /* ta[ll]a — the mark sits on the baseline between the letters */
.lockup-sm { font-size: 26px; }
.lockup-ar { direction: rtl; font-family: var(--f-ar); font-weight: 800; letter-spacing: 0; gap: .12em; }
.lockup-ar .mark { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; line-height: 1;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-ink { --bg: var(--ink); --fg: var(--lime); }
.btn-ink:hover { --bg: var(--lime); --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-lime { --bg: var(--lime); --fg: var(--ink); }
.btn-lime:hover { --bg: var(--cream); }
.btn-line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { --bg: var(--ink); --fg: var(--cream); }
.btn-block { width: 100%; }
.arrow { width: 18px; height: 12px; position: relative; display: inline-block; }
.arrow::before { content: ''; position: absolute; inset: 5px 2px auto 0; height: 2px; background: currentColor; }
/* Drawn pointing right with physical sides, then mirrored as a whole in RTL (head stays at the pointing end) */
.arrow::after { content: ''; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { animation: nudge .6s var(--ease); }
[dir="rtl"] .btn:hover .arrow { animation-name: nudge-rtl; }
@keyframes nudge { 50% { translate: 5px 0; } }
@keyframes nudge-rtl { 50% { translate: -5px 0; } }

/* ---------- Panels (stacked boards with rounded tops) ---------- */
main > section, .marquee { position: relative; }
/* elements waiting to slide in sideways must never widen the page (clip, unlike hidden, keeps position: sticky working) */
main { overflow-x: clip; }
.panel, .panel-ink, .panel-lime, .panel-grad {
  border-radius: var(--radius-board) var(--radius-board) 0 0;
  margin-top: calc(var(--radius-board) * -1);
  padding-block: clamp(96px, 14vw, 180px);
}
.panel { background: var(--cream); }
.panel-ink { background: var(--ink); color: var(--cream); }
.panel-lime { background: var(--lime); }
.panel-grad { background: var(--gradient); }

/* ---------- Intro ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--lime);
  overflow: hidden;
}
.intro-on body { overflow: hidden; }
.intro-lockup { position: relative; display: flex; align-items: flex-end; font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 12vw, 180px); letter-spacing: -.04em; line-height: 1; direction: ltr; }
.intro-mark { height: .74em; width: .538em; margin: 0 .02em; overflow: visible; }
.intro-mark .ip { fill: transparent; stroke: var(--lime); stroke-width: 3; }
.intro-mark .iw { fill: var(--magenta); transform-box: fill-box; transform-origin: 50% 100%; }
.intro-word { display: inline-flex; line-height: .8; padding-bottom: .02em; }
.intro-word span { display: inline-block; }
.intro-line { position: absolute; bottom: 48px; inset-inline: 0; text-align: center; color: var(--cream); opacity: 0; }
.intro-window {
  position: absolute; left: 50%; top: 50%;
  width: 120px; height: 170px;
  translate: -50% -50%;
  background: var(--cream);
  border-radius: 999px 999px 0 0;
  transform: scale(0);
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 18px; height: 22px; margin: -11px 0 0 -9px;
    border-radius: 999px 999px 3px 3px;
    background: var(--cream); mix-blend-mode: difference;
    opacity: 0;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, opacity .3s;
  }
  .cursor.is-on { opacity: 1; }
  .cursor.is-on.is-text { opacity: 0; } /* keep the native text caret inside inputs */
  /* the custom cursor replaces the native one (motion.js adds .has-cursor only when it runs) */
  .has-cursor, .has-cursor * { cursor: none; }
  .has-cursor input:not([type="range"]), .has-cursor textarea { cursor: text; }
  .cursor.is-link { width: 46px; height: 56px; margin: -28px 0 0 -23px; }
  .cursor.is-view { width: 96px; height: 116px; margin: -58px 0 0 -48px; background: var(--lime); mix-blend-mode: normal; }
  .cursor-label { font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; padding-top: 14px; }
  [lang="ar"] .cursor-label { font-family: var(--f-ar); letter-spacing: 0; font-size: 14px; }
  .cursor.is-view .cursor-label { opacity: 1; }
}

/* ---------- Header ---------- */
.site-header { position: fixed; top: 16px; inset-inline: 0; z-index: 50; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding-block: 12px;
  padding-inline: 24px 12px;
  background: rgba(250, 255, 234, .78);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px;
  transition: padding .5s var(--ease), box-shadow .5s var(--ease), width .6s var(--ease);
}
.is-scrolled .nav-pill { padding-block: 8px; box-shadow: 0 10px 40px -18px rgba(22, 1, 0, .35); width: min(980px, 100% - var(--gutter) * 2); }
.nav-links { display: flex; gap: 28px; margin-inline: auto; font-weight: 600; font-size: 15px; }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav-links + .nav-actions { margin-inline-start: 0; }
.lang-toggle { font-family: var(--f-ar); font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; transition: background .3s; }
[lang="ar"] .lang-toggle { font-family: var(--f-body); }
.lang-toggle:hover { background: rgba(22, 1, 0, .07); }
/* Mobile menu */
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; place-content: center; gap: 5px; background: rgba(22, 1, 0, .07); }
.menu-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease); }
.menu-open .menu-toggle i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding: 110px var(--gutter) 40px;
  background: var(--ink); color: var(--cream);
  animation: menu-in .5s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font: 700 clamp(34px, 10vw, 52px)/1.1 var(--f-display); letter-spacing: -.04em; }
[lang="ar"] .mobile-menu a:not(.btn) { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.4; }
.mobile-menu a:not(.btn):hover, .mobile-menu a:not(.btn):focus-visible { color: var(--lime); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
.menu-open body { overflow: hidden; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0 round 0 0 28px 28px); } to { clip-path: inset(0 0 0 0 round 0); } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .nav-pill { padding-inline: 16px 6px; gap: 6px; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn-sm { padding: 11px 14px; font-size: 13px; }
  .lockup-sm { font-size: 22px; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero { background: var(--cream); padding-top: 140px; padding-bottom: calc(var(--radius-board) + 40px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.dot { width: 8px; height: 10px; border-radius: 99px 99px 1px 1px; background: var(--magenta); }
.hero-title { font-size: clamp(56px, 9.6vw, 150px); }
[lang="ar"] .hero-title { font-size: clamp(56px, 8.6vw, 132px); line-height: 1.12; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
[lang="ar"] .hero-title .line { padding-block: .08em; }
.hero-title .line-in { display: inline-block; }
.hero-title .ch { display: inline-block; }
.hero-title .line:nth-child(2) { padding-inline-start: .9em; }
.hero-title .accent { color: var(--magenta); }
.hero-sub { max-width: 34ch; font-size: clamp(17px, 1.35vw, 20px); margin-top: 32px; color: rgba(22, 1, 0, .78); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-visual { position: relative; }
.board { position: relative; background: var(--gradient); border-radius: var(--radius-board); padding: clamp(16px, 2vw, 28px); padding-bottom: 0; overflow: hidden; }
/* The double window: two arched frames side by side, like the double l in the mark */
.windows { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); align-items: end; }
.arch { position: relative; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--warm); isolation: isolate; }
.arch img { width: 100%; height: 118%; object-fit: cover; filter: saturate(.92) sepia(.08); }
.hero-window { aspect-ratio: 1 / 2.3; }
.hero-window:first-child { aspect-ratio: 1 / 2.1; }
.arch-cap { position: absolute; bottom: 22px; inset-inline-end: clamp(28px, 3vw, 44px); /* opposite corner to the creator */ color: var(--cream); z-index: 2; text-shadow: 0 1px 12px rgba(22, 1, 0, .45); }
.badge { position: absolute; z-index: 2; width: clamp(110px, 10vw, 150px); aspect-ratio: 1; inset-inline-end: min(calc(clamp(110px, 10vw, 150px) / -2.6), -16px); top: 10%; border-radius: 50%; background: var(--ink); display: grid; place-items: center; } /* top corner: the creator owns the bottom corner */
.badge-ring { position: absolute; inset: 6px; animation: spin 18s linear infinite; }
.badge-ring text { fill: var(--lime); font: 700 15.5px var(--f-body); letter-spacing: .2em; direction: ltr; }
.badge-mark { font-size: clamp(34px, 3vw, 46px); line-height: 0; }
@keyframes spin { to { rotate: 360deg; } }
.hero-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; color: rgba(22, 1, 0, .6); }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 2px; height: 36px; background: rgba(22, 1, 0, .15); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; width: 88%; margin-inline: auto; }
  .hero-title .line:nth-child(2) { padding-inline-start: .5em; }
  .hero-foot { flex-direction: column; gap: 16px; }
}

/* ---------- The Talla crew ----------
   2.5D cut-outs (transparent WebP): depth comes from overlap, a contact shadow and a pointer-driven
   3D tilt (motion.js). Positions use physical left/right on purpose: the images are never mirrored
   (the shirt logo would read backwards), so each character keeps facing the same way in Arabic. */
.crew { position: absolute; z-index: 3; display: block; padding: 0; perspective: 900px; }
.crew-tilt { position: relative; display: block; transform-style: preserve-3d; will-change: transform; }
.crew img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 22px rgba(22, 1, 0, .16)); }
.crew-shadow { position: absolute; z-index: -1; left: 14%; right: 14%; bottom: -1.5%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(22, 1, 0, .3), transparent); }
.crew-flash { position: absolute; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, #fff 0%, rgba(255, 255, 255, .92) 16%, rgba(250, 255, 234, .4) 42%, transparent 70%); }
.snap-flash { position: fixed; inset: 0; z-index: 80; background: #fff; opacity: 0; pointer-events: none; }

/* Hero · content creator: kneels at the corner of the double window, lens aimed at the headline */
.crew-creator { width: 60%; left: -40%; bottom: -9%; cursor: pointer; border-radius: 24px; }
[dir="rtl"] .crew-creator { left: auto; right: -30%; } /* in Arabic he shoots the windows instead */
.crew-creator:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.title-frame { position: relative; }
.viewfinder { position: absolute; inset: -16px -22px -8px -22px; pointer-events: none; opacity: 0; z-index: 2; }
.viewfinder i { position: absolute; width: 34px; height: 34px; border: 3px solid var(--ink); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.viewfinder .rec { position: absolute; top: -7px; right: 48px; display: flex; align-items: center; gap: 6px; padding: 0 6px; background: var(--cream); font: 700 11px/1 var(--f-body); letter-spacing: .16em; }
.viewfinder .rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }
.board .viewfinder { inset: 14px; }
.board .viewfinder i { border-color: var(--cream); }
.board .viewfinder .rec { background: none; color: var(--cream); right: 56px; top: 8px; }
[dir="rtl"] .title-frame .viewfinder, [dir="ltr"] .board .viewfinder { display: none; }
.shot .viewfinder { opacity: 1; } /* no-motion fallback: clicking the creator just frames the shot */

/* Process · photographer: stays beside the steps (inside the sticky head) and fires at "Shoot" */
.crew-photographer { position: relative; display: inline-block; margin-top: clamp(24px, 4vh, 48px); margin-inline-start: clamp(0px, 6vw, 90px); }
.crew-photographer img { width: auto; height: min(48vh, 460px); }

/* Audit · filmmaker: waves you in from the floor of the section, just behind the form's edge */
.audit-grid { position: relative; }
.audit-form { z-index: 1; }
/* z-index auto: no stacking context, so the form (z 1) covers his side while the bubble (z 3) floats above both */
.crew-filmmaker { z-index: auto; width: clamp(230px, 21vw, 320px); left: 36%; bottom: calc(clamp(96px, 14vw, 180px) * -1); }
[dir="rtl"] .crew-filmmaker { left: auto; right: 36%; }
.crew-filmmaker .crew-tilt { transform-origin: 50% 100%; }
.crew-bubble {
  position: absolute; z-index: 3; left: 18%; top: -15%;
  padding: 12px 16px; border-radius: 18px 18px 18px 4px;
  background: var(--ink); color: var(--lime);
  font: 600 14px/1.3 var(--f-display); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 12px 30px -14px rgba(22, 1, 0, .5);
}
[lang="ar"] .crew-bubble { font-family: var(--f-ar); font-size: 15px; letter-spacing: 0; }

@media (max-width: 900px) {
  .crew-creator { width: 52%; left: -16%; bottom: -7%; }
  [dir="rtl"] .crew-creator { left: auto; right: -16%; }
  .crew-photographer { display: block; width: fit-content; margin-inline: auto; }
  .crew-photographer img { height: 300px; }
  .crew-filmmaker { position: relative; left: auto; bottom: auto; width: min(260px, 66%); margin: 36px auto 0; }
  [dir="rtl"] .crew-filmmaker { right: auto; }
  .crew-bubble { left: 34%; top: -9%; }
  .audit-grid { row-gap: 0; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--lime); padding-block: 28px calc(28px + var(--radius-board)); margin-top: calc(var(--radius-board) * -1); border-radius: var(--radius-board) var(--radius-board) 0 0; overflow: hidden; z-index: 1; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item { font: 600 clamp(28px, 4vw, 58px)/1.1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; padding-inline: .5em; }
[lang="ar"] .marquee-item { font-family: var(--f-ar); font-weight: 700; letter-spacing: 0; }
.marquee-item.soft { color: transparent; -webkit-text-stroke: 1.5px var(--lime); }
.marquee .mark { --mark-c: var(--lime); font-size: clamp(26px, 3vw, 44px); flex-shrink: 0; }

/* ---------- Manifesto ---------- */
.manifesto { z-index: 2; }
.manifesto-grid { display: grid; grid-template-columns: minmax(240px, .32fr) 1fr; gap: clamp(32px, 6vw, 100px); margin-top: 48px; align-items: start; }
.dict { border: 1.5px solid var(--lime); border-radius: var(--radius-card); padding: 28px; position: sticky; top: 120px; }
.dict-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dict-word { font: 700 44px/1 var(--f-display); letter-spacing: -.04em; color: var(--lime); direction: ltr; }
.dict-word-ar { font: 800 44px/1.1 var(--f-ar); color: var(--lime); }
.dict-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(250, 255, 234, .18); font-size: 14px; line-height: 1.5; opacity: .75; }
.dict-phon { margin-top: 10px; font-size: 14px; opacity: .6; }
.dict ol { margin-top: 20px; counter-reset: d; display: grid; gap: 8px; }
.dict li { counter-increment: d; font: 600 22px/1.2 var(--f-display); display: flex; gap: 14px; align-items: baseline; }
[lang="ar"] .dict li { font-family: var(--f-ar); }
.dict li::before { content: counter(d) '.'; font: 700 13px var(--f-body); color: var(--lime); }
.manifesto-body { font: 600 clamp(26px, 3.3vw, 50px)/1.22 var(--f-display); letter-spacing: -.025em; }
[lang="ar"] .manifesto-body { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.5; }
.manifesto-body b { color: var(--lime); font-weight: inherit; }
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; } .dict { position: static; } }

/* ---------- Services ---------- */
.services { z-index: 3; overflow: hidden; }
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 64px; }
.services-head .label { grid-column: 1 / -1; }
.services-intro { max-width: 40ch; justify-self: end; color: var(--ink-72); font-size: 18px; }
.h-scroll { overflow-x: auto; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.is-pinned .h-scroll { overflow: visible; }
.track { display: flex; gap: 20px; width: max-content; padding-inline: max(var(--gutter), (100% - 1320px) / 2); }
/* No pin (reduced motion / animation scripts unavailable): wrap the cards instead of a hidden-scrollbar row */
html:not(.motion-on) .h-scroll { overflow: visible; }
html:not(.motion-on) .track { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; padding-inline: 0; }
html:not(.motion-on) .svc { width: auto; }
.svc {
  width: clamp(300px, 29vw, 400px); flex-shrink: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px 14px 28px; display: flex; flex-direction: column;
  transition: translate .5s var(--ease); /* hover uses `translate`, GSAP owns `transform` */
}
.svc:hover { translate: 0 -6px; }
.svc .arch { aspect-ratio: 4 / 3.3; border-radius: 999px 999px 8px 8px; }
.svc .arch img { height: 100%; transition: transform 1.2s var(--ease); }
.svc:hover .arch img { transform: scale(1.06); }
.svc-body { padding: 24px 10px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-n { font: 700 13px var(--f-body); letter-spacing: .14em; color: var(--ink-72); }
.svc.flag .svc-n { color: rgba(250, 255, 234, .72); }
.svc h3 { font: 600 25px/1.1 var(--f-display); letter-spacing: -.02em; }
[lang="ar"] .svc h3 { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.3; }
.svc p { font-size: 15.5px; color: var(--ink-72); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.svc.flag { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.svc.flag h3 { color: var(--lime); }
.svc.flag p { color: rgba(250, 255, 234, .72); }
.svc.flag .tag { border-color: rgba(250, 255, 234, .2); }
@media (max-width: 900px) {
  .services-head { grid-template-columns: 1fr; }
  .services-intro { justify-self: start; }
  .h-scroll { overflow: visible; }
  .track { flex-direction: column; width: auto; padding-inline: var(--gutter); }
  .svc { width: 100%; }
}

/* ---------- Process ---------- */
.process { z-index: 4; background: var(--sage); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); }
.process-head { position: sticky; top: 140px; align-self: start; }
.process-head .h2 { margin-top: 16px; }
.steps-wrap { position: relative; padding-inline-start: 72px; }
.steps { display: grid; gap: clamp(48px, 7vw, 96px); }
.steps-wrap::before, .steps-line { content: ''; position: absolute; inset-inline-start: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps-line { background: var(--ink); transform-origin: top; }
.step { position: relative; }
.node { position: absolute; inset-inline-start: -72px; top: -4px; width: 40px; height: 44px; background: var(--sage); display: grid; place-items: center; }
.node svg { width: 30px; height: 33px; overflow: visible; }
.node .n-body { fill: var(--ink); stroke: var(--ink); stroke-width: 14; transition: fill .5s var(--ease); }
.node .n-win { fill: var(--magenta); transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s var(--ease) .1s; }
/* Doorways start empty only when motion.js drives them (.steps-anim); otherwise they show filled */
.steps-anim .step:not(.on) .n-body { fill: var(--sage); }
.steps-anim .step:not(.on) .n-win { transform: scaleY(0); } /* the windows light up as each step is reached */
.step-k { font: 700 13px var(--f-body); letter-spacing: .14em; color: var(--ink-72); }
.step h3 { font: 600 clamp(26px, 2.6vw, 38px)/1.1 var(--f-display); letter-spacing: -.025em; margin: 6px 0 10px; }
[lang="ar"] .step h3 { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.3; }
.step p { max-width: 44ch; color: var(--ink-72); }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } .process-head { position: static; } }

/* ---------- Work ---------- */
.work { z-index: 5; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 72px; }
.work-head .h2 { margin-top: 16px; max-width: 12ch; }
.work-sub { max-width: 32ch; color: rgba(250, 255, 234, .65); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(24px, 4vw, 64px); }
.work-card:nth-child(even) { margin-top: 140px; }
.work-media {
  position: relative; aspect-ratio: 1 / 1.02; overflow: hidden; background: var(--warm);
  border-radius: 999px 999px 12px 12px;
  clip-path: inset(0% 7% 0% 7% round 999px 999px 12px 12px); /* same 8-value shape GSAP animates */
}
/* hover transition only after the GSAP reveal has finished (or when there's no motion), so they never fight */
.work-card.revealed .work-media, html:not(.motion-on) .work-media { transition: clip-path 1s var(--ease); }
.work-card:hover .work-media { clip-path: inset(0% 0% 0% 0% round 999px 999px 12px 12px); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-media.soon { display: grid; place-items: center; background: linear-gradient(160deg, #2a130f, #3b221a 60%, #160100); }
.soon-window { width: 38%; aspect-ratio: 3 / 4; border: 10px solid var(--lime); border-bottom: 0; border-radius: 999px 999px 0 0; position: relative; transition: transform 1s var(--ease); }
/* a small magenta window inside the frame, echoing the mark */
.soon-window::after { content: ''; position: absolute; left: 50%; top: 22%; width: 18%; height: 22%; translate: -50% 0; border-radius: 999px 999px 0 0; background: var(--magenta); }
.work-card:hover .soon-window { transform: scale(1.08); }
.soon-label { position: absolute; bottom: 28px; inset-inline: 0; text-align: center; color: var(--lime); }
.work-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; }
.work-info h3 { font: 600 clamp(22px, 2vw, 30px)/1.1 var(--f-display); letter-spacing: -.02em; }
[lang="ar"] .work-info h3 { font-family: var(--f-ar); letter-spacing: 0; }
.work-meta { color: rgba(250, 255, 234, .6); font-size: 14px; white-space: nowrap; }
.work-card .tags .tag { border-color: rgba(250, 255, 234, .2); color: rgba(250, 255, 234, .8); }
.ba { position: absolute; inset: 0; }
.ba img { position: absolute; inset: 0; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba input { position: absolute; inset: 0; opacity: 0; cursor: ew-resize; width: 100%; height: 100%; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--lime); pointer-events: none; }
.ba-handle::after { content: attr(data-l); position: absolute; top: 50%; left: 50%; translate: -50% -50%; background: var(--lime); color: var(--ink); font: 700 11px var(--f-body); letter-spacing: .14em; padding: 8px 12px; border-radius: 999px; text-transform: uppercase; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } .work-card:nth-child(even) { margin-top: 0; } }

/* ---------- Why ---------- */
.why { z-index: 6; }
.why .h2 { margin-top: 16px; max-width: 16ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 80px; border-top: 1.5px solid var(--ink); }
.stat { padding-top: 28px; padding-inline: 0 24px; border-inline-end: 1.5px solid rgba(22, 1, 0, .18); }
.stat + .stat { padding-inline-start: 24px; }
.stat:last-child { border: 0; }
.stat-v { font: 800 clamp(44px, 5.2vw, 88px)/1 var(--f-display); letter-spacing: -.05em; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.stat-l { margin-top: 14px; max-width: 24ch; font-weight: 600; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 72px; }
.points li { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--radius-card); background: var(--ink); color: var(--cream); }
.points .pt-n { font: 700 12px var(--f-body); letter-spacing: .16em; color: var(--lime); }
.points h3 { font: 600 clamp(18px, 1.5vw, 22px)/1.15 var(--f-display); letter-spacing: -.02em; color: var(--lime); }
.points p { font-size: 15px; line-height: 1.55; color: rgba(250, 255, 234, .78); }
[lang="ar"] .points h3 { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.35; }
@media (max-width: 1080px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border: 0; } .stat:nth-child(n+3) { border-top: 1.5px solid rgba(22, 1, 0, .18); margin-top: 28px; } .stat:nth-child(3) { padding-inline-start: 0; } }

/* ---------- Packages (source: 03-pricing/TALLA Packages.pdf) ---------- */
.packages { z-index: 7; }
.packages-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 64px; }
.packages-head .h2 { margin-top: 16px; }

/* plan price <-> first-year total */
.price-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--ink); isolation: isolate; }
.price-switch button { position: relative; z-index: 1; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--cream); transition: color .35s var(--ease); white-space: nowrap; }
.price-switch button[aria-pressed="true"] { color: var(--ink); }
.price-switch-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--lime); transition: translate .5s var(--ease); }
[data-price="year"] .price-switch-pill { translate: 100% 0; }
[dir="rtl"] [data-price="year"] .price-switch-pill { translate: -100% 0; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 32px 28px 28px; border-radius: var(--radius-card); border: 1.5px solid var(--line); background: #fff;
  transition: translate .5s var(--ease), box-shadow .5s var(--ease); /* hover uses `translate`, GSAP owns `transform` */
}
.pkg:hover { translate: 0 -8px; box-shadow: 0 30px 60px -30px rgba(22, 1, 0, .35); }
.pkg-k { color: var(--ink-72); }
.pkg-n { font: 700 clamp(28px, 2.6vw, 38px)/1 var(--f-display); letter-spacing: -.04em; direction: ltr; text-align: start; }
.pkg-price { padding: 18px 0 20px; border-bottom: 1px solid var(--line); min-height: 118px; }
.pkg-view { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 6px; }
.pkg-view[data-view="year"], [data-price="year"] .pkg-view[data-view="plan"] { display: none; }
[data-price="year"] .pkg-view[data-view="year"] { display: flex; }
.pkg-amount { font: 800 clamp(40px, 4vw, 58px)/1 var(--f-display); letter-spacing: -.05em; unicode-bidi: isolate; }
.pkg-per { font-weight: 700; font-size: 15px; color: var(--ink-72); }
.pkg-note { flex-basis: 100%; font-size: 14px; font-weight: 600; color: var(--ink-72); }
.pkg-d { color: var(--ink-72); font-size: 15.5px; }
.pkg ul { display: grid; gap: 10px; margin: 4px 0 22px; }
.pkg li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; font-size: 15px; }
.pkg li::before { content: ''; flex-shrink: 0; width: 8px; height: 10px; border-radius: 99px 99px 1px 1px; background: var(--ink); translate: 0 1px; }
.pkg .btn { margin-top: auto; }
.pkg.hot { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pkg.hot .pkg-n, .pkg.hot .pkg-amount { color: var(--lime); }
.pkg.hot .pkg-k, .pkg.hot .pkg-per, .pkg.hot .pkg-note, .pkg.hot .pkg-d { color: rgba(250, 255, 234, .72); }
.pkg.hot .pkg-price { border-color: rgba(250, 255, 234, .16); }
.pkg.hot li::before { background: var(--lime); }
@media (max-width: 980px) { .pkg-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* side-by-side comparison */
.cmp-block { margin-top: clamp(64px, 8vw, 110px); }
.cmp-block .h3 { margin-bottom: 24px; }
.cmp-scroll { overflow-x: auto; border-radius: var(--radius-card); border: 1.5px solid var(--line); background: #fff; }
.cmp-scroll:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp th[scope="row"] { text-align: start; font-weight: 600; }
.cmp thead th { background: var(--ink); color: var(--cream); font: 700 13px var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
[lang="ar"] .cmp thead th { font-family: var(--f-ar); letter-spacing: 0; text-transform: none; font-size: 15px; }
.cmp thead th.hot { color: var(--lime); }
.cmp thead th:first-child { text-align: start; }
.cmp td:last-child { background: rgba(193, 255, 66, .12); }
.cmp .yes { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.cmp .yes i { width: 8px; height: 10px; border-radius: 99px 99px 1px 1px; background: var(--ink); }
.cmp .no { color: rgba(22, 1, 0, .42); }
.cmp .txt { font-weight: 700; }
.cmp tr.fee th, .cmp tr.fee td { background: var(--sage); font-weight: 800; }
.cmp tr.fee td { font-family: var(--f-display); font-size: 16px; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

/* terms */
.terms { margin-top: 20px; border-radius: var(--radius-card); border: 1.5px solid var(--line); background: #fff; }
.terms summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; font: 600 18px var(--f-display); }
[lang="ar"] .terms summary { font-family: var(--f-ar); }
.terms summary::-webkit-details-marker { display: none; }
.terms summary i { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.terms summary i::before, .terms summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); transition: rotate .4s var(--ease); }
.terms summary i::after { rotate: 90deg; }
.terms[open] summary i::after { rotate: 0deg; }
.terms ul { display: grid; gap: 10px; padding: 0 24px 24px; }
.terms li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--ink-72); }
.terms li::before { content: ''; flex-shrink: 0; width: 6px; height: 8px; border-radius: 99px 99px 1px 1px; background: var(--magenta); translate: 0 1px; }

/* ---------- Audit ---------- */
.audit { z-index: 8; }
.audit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.audit-big { font-size: clamp(64px, 10.5vw, 180px); line-height: .9; margin-bottom: 36px; }
[lang="ar"] .audit-big { line-height: 1.2; }
.audit-big .line { display: block; overflow: hidden; padding-bottom: .05em; }
.audit-big .ch { display: inline-block; }
.audit-text { max-width: 38ch; margin: 16px 0 32px; font-size: 18px; }
.audit-form { position: relative; background: var(--ink); color: var(--cream); border-radius: var(--radius-board); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; overflow: hidden; }
.audit-form label { display: grid; gap: 8px; }
.audit-form .label { color: var(--lime); }
.audit-form input, .audit-form select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--cream);
  border: 2px solid transparent; border-radius: 14px; padding: 15px 18px; outline: none;
  transition: border-color .3s, box-shadow .3s;
}
[dir="rtl"] .audit-form input[dir="ltr"] { text-align: right; }
.audit-form select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; }
[dir="rtl"] .audit-form select { background-position: 16px 50%, 22px 50%; }
.audit-form input:focus, .audit-form select:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(193, 255, 66, .25); }
.audit-form input.err { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(228, 1, 134, .25); }
.form-bad { color: var(--cream); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.form-bad::before { content: ''; flex-shrink: 0; width: 8px; height: 10px; border-radius: 99px 99px 1px 1px; background: var(--magenta); }
.form-bad[hidden] { display: none; }
.audit-form .btn:disabled { opacity: .6; cursor: progress; }
.audit-form .btn { margin-top: 8px; }
.form-ok { position: absolute; inset: 0; background: var(--lime); color: var(--ink); display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding: 32px; font: 600 clamp(22px, 2.2vw, 30px)/1.25 var(--f-display); letter-spacing: -.02em; }
[lang="ar"] .form-ok { font-family: var(--f-ar); letter-spacing: 0; }
.form-ok[hidden] { display: none; }
.ok-mark { font-size: 80px; line-height: 0; }
@media (max-width: 900px) { .audit-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding-top: clamp(80px, 10vw, 140px); padding-bottom: 28px; margin-top: calc(var(--radius-board) * -1); border-radius: var(--radius-board) var(--radius-board) 0 0; position: relative; z-index: 9; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-line { font-size: clamp(32px, 4.4vw, 64px); max-width: 11ch; color: var(--cream); }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 96px); }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols .label { margin-bottom: 6px; }
.footer-cols a { opacity: .8; transition: opacity .3s, color .3s; }
.footer-cols a:hover { opacity: 1; color: var(--lime); }
.footer-giant { margin-top: clamp(64px, 8vw, 120px); display: flex; justify-content: center; overflow: hidden; }
.footer-giant .lockup { font-size: clamp(80px, 18.5vw, 330px); color: var(--lime); line-height: .82; }
.footer-giant .lockup .mark { --mark-c: var(--lime); }
.footer-giant .lockup-ar { font-size: clamp(90px, 22vw, 340px); line-height: 1.1; }
.footer-giant .ch { display: inline-block; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(250, 255, 234, .14); color: rgba(250, 255, 234, .55); }
.footer-bottom .lang-toggle { color: var(--lime); }
.footer-bottom .lang-toggle:hover { background: rgba(250, 255, 234, .08); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
