/* ==========================================================================
   ArabileG: one-page site
   Monochrome, broadcast-inspired. Tokens below map cleanly onto ACSS v4
   (e.g. --ink → --black / --bg-ultra-dark, --paper → --bg-ultra-light).
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-2: #121212;
  --ink-3: #1b1b1b;
  --paper: #efece6;
  --paper-ink: #111;
  --white: #f5f3ef;
  --mute: #8d8a85;
  --line: rgba(245, 243, 239, 0.14);
  --live: #e3262d;

  /* tailored, not loud: light, well-spaced Jost for headlines; spaced Inter small caps for labels */
  --f-display: 'Jost', 'Inter', sans-serif;
  --f-serif: 'Jost', 'Inter', sans-serif;
  --f-sans: 'Inter', system-ui, sans-serif;
  --f-label: 'Inter', system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 4rem);
  --section: clamp(6rem, 14vw, 13rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-xxl: clamp(3.2rem, 7.6vw, 7.6rem);
  --fs-xl: clamp(2.5rem, 5.2vw, 5.4rem);
  --fs-l: clamp(2rem, 3.7vw, 3.9rem);
  --fs-m: clamp(1.15rem, 1.6vw, 1.45rem);
  --fs-s: 0.95rem;
  --fs-xs: 0.72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: var(--fs-s);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.8s var(--ease), color 0.8s var(--ease);
}
body.is-loading { overflow: hidden; }
body.is-light { background: var(--paper); color: var(--paper-ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--white); color: var(--ink); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.mono { font-family: var(--f-label); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0 0 1.5rem; color: var(--mute); display: flex; align-items: center; gap: 0.6rem; }
.display {
  font-family: var(--f-display); font-weight: 400; text-transform: none;
  font-size: var(--fs-l); line-height: 1.04; letter-spacing: -0.015em; margin: 0;
}
.display em { font-style: italic; font-weight: 400; }
.display--xl { font-size: var(--fs-xl); line-height: 1; }
.display--xxl { font-size: var(--fs-xxl); line-height: 0.95; }
.lead { font-size: var(--fs-m); line-height: 1.5; font-weight: 300; }

.live-dot {
  display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 0 rgba(227, 38, 45, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 0.6em rgba(227, 38, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 38, 45, 0); } }

/* split-text line masks */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.6rem; border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--f-label); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; background: transparent; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: var(--white); border-radius: inherit;
  transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: -1;
}
.btn i { font-style: normal; transition: transform 0.4s var(--ease); }
.btn-pill { padding: 0.7rem 1.2rem; }
.btn-solid { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-solid::before { background: var(--ink); }
/* hover effects only where there's a real pointer: on phones a tap leaves :hover stuck on */
@media (hover: hover) {
  .btn:hover { color: var(--ink); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover i { transform: translateX(4px); }
  .btn-solid:hover { color: var(--white); }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
}
.preloader__inner { width: min(70vw, 420px); }
.preloader__logo { width: 100%; opacity: 0; transform: translateY(12px); }
.preloader__bar { height: 1px; background: var(--line); margin: 2rem 0 0.9rem; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--white); transform-origin: left; transform: scaleX(0); }
.preloader__meta { display: flex; justify-content: space-between; color: var(--mute); }
.preloader__count { color: var(--white); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--white); mix-blend-mode: difference;
  display: grid; place-items: center; transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease);
}
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; }
.cursor__label { font-family: var(--f-label); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.2s; }
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.2rem var(--gutter);
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease), color 0.6s;
  mix-blend-mode: difference; color: #fff;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a { font-family: var(--f-label); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: currentColor; transition: transform 0.4s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink); display: grid; align-content: center;
  padding: var(--gutter); clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
body.menu-open .nav.is-hidden { transform: none; } /* the close button must stay reachable */
.menu__links { display: grid; gap: 0.4rem; }
.menu__links a { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 10vw, 4.2rem); line-height: 1.1; }
.menu__links a:last-child { font-style: italic; }

/* ---------- 1. hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 60vw; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform-origin: 60% 30%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #000 32%, rgba(0,0,0,0.6) 52%, rgba(0,0,0,0) 74%),
    linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 38%);
}
.hero__spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 28%) var(--my, 46%), rgba(255,255,255,0.075), rgba(255,255,255,0) 34vmax); transition: background 0.2s; }
.hero__mono { position: absolute; left: -3vw; top: 50%; width: min(80vw, 2300px); height: auto; transform: translateY(-50%); pointer-events: none; opacity: 0.6; overflow: visible; }
.hero__mono path { fill: rgba(255,255,255,0); stroke: url(#agShine); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-58%); }
.hero__eyebrow { color: var(--white); opacity: 0.8; }
.hero__title {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, 8.4vw, 13rem); line-height: 1; letter-spacing: -0.03em;
}
.hero__line { display: block; overflow: hidden; padding: 0 0.12em 0.08em 0; }
.hero__line--2 { padding-left: 0.9em; font-style: italic; color: #d9d5ce; }
.hero__bug {
  position: absolute; top: 5.6rem; right: var(--gutter); display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.8rem; border: 1px solid var(--line); background: rgba(0,0,0,0.35); backdrop-filter: blur(6px);
}
.lower-third {
  position: absolute; left: var(--gutter); bottom: 6.2rem; display: flex; align-items: stretch;
  clip-path: inset(0 100% 0 0);
}
.lower-third__tag { background: var(--white); color: var(--ink); padding: 0.7rem 0.9rem; font-weight: 500; }
.lower-third__name { background: rgba(10,10,10,0.75); backdrop-filter: blur(8px); border: 1px solid var(--line); border-left: 0; padding: 0.55rem 1rem; font-size: clamp(0.8rem, 1.1vw, 1rem); letter-spacing: 0.04em; display: flex; align-items: center; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 6.6rem; display: flex; align-items: center; gap: 0.8rem; color: var(--mute); }
.hero__scroll i { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--white); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; display: flex; border-top: 1px solid var(--line); background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); height: 3.4rem; }
.ticker__label { flex: none; display: grid; place-items: center; padding: 0 1.2rem; background: var(--live); color: #fff; font-weight: 500; }
.ticker__track { display: flex; overflow: hidden; flex: 1; }
.ticker__row { display: flex; flex: none; align-items: center; animation: marquee 38s linear infinite; }
.ticker__row span { padding: 0 2.2rem; white-space: nowrap; border-right: 1px solid var(--line); }
.ticker__row b { color: var(--mute); font-weight: 400; margin-left: 0.5rem; transition: color 0.5s, text-shadow 0.5s; }
.ticker__row span { transition: background-color 0.6s; }
/* market-style "uptick" flash on a random item */
.ticker__row span.is-up { background-color: rgba(34, 197, 94, 0.1); }
.ticker__row span.is-up b { color: #2ee27a; text-shadow: 0 0 14px rgba(46, 226, 122, 0.55); transition-duration: 0.12s; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-half { to { transform: translateX(-50%); } } /* for rows that already contain two copies */

/* ---------- 2. manifesto ---------- */
/* Pinned scenes are sized to the LARGE viewport (100lvh: phone browser toolbar hidden). Sized to 100svh they came up
   a toolbar-height short whenever the toolbar slid away, so the pinned frame looked like it shrank to ~90%. Anything
   anchored near their bottom edge adds (100lvh - 100svh) so the toolbar can't cover it when it's showing.
   Each lvh/svh declaration follows a plain fallback for browsers without those units. */
/* The scene that's pinned right now (main.js toggles .is-pinned) draws above its neighbours: anticipatePin locks a scene
   a few frames early when you scroll back up into it, and for those frames the next section was drawn over its bottom
   edge (it looked ~90% tall). */
.is-pinned { z-index: 3; }
.manifesto { position: relative; min-height: 100svh; min-height: 100lvh; display: grid; place-items: center; padding: var(--section) var(--gutter); overflow: hidden; }
.manifesto__bg { position: absolute; inset: -10% 0; opacity: 0.16; }
.manifesto__bg img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__inner { position: relative; max-width: 1200px; text-align: center; }
.manifesto__inner .eyebrow { justify-content: center; }
.manifesto__quote {
  margin: 0; font-family: var(--f-serif); font-weight: 400; font-style: italic;
  font-size: clamp(2rem, 4.4vw, 4.6rem); line-height: 1.1; letter-spacing: -0.015em;
}
.manifesto__quote .word { opacity: 0.14; }
.manifesto__sig { margin: 2.5rem 0 0; font-family: var(--f-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.4em; font-size: 0.72rem; color: var(--mute); }

/* ---------- 3. story ---------- */
.story { padding: var(--section) var(--gutter); }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.story__media { overflow: hidden; aspect-ratio: 4 / 5; }
.story__media img { width: 100%; height: 118%; object-fit: cover; }
.story__text .display { margin-bottom: 2.2rem; }
.story__text p:not(.eyebrow) { max-width: 38rem; color: #cfcbc4; font-size: 1.02rem; margin: 0 0 1.2em; }
.story__text p.lead { font-size: var(--fs-m); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--section); border-top: 1px solid var(--line); }
.stat { padding: 2.2rem 1.2rem 0 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 1.6rem; }
.stat__num, .stat__suffix { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 4.8vw, 4.8rem); line-height: 1; font-variant-numeric: lining-nums; }
.stat__suffix { font-style: italic; font-size: clamp(1.3rem, 2vw, 1.9rem); margin-left: 0.25rem; color: var(--mute); }
.stat__label { display: block; margin-top: 0.8rem; color: var(--mute); }

/* ---------- 4. career (horizontal) ---------- */
.career { position: relative; background: var(--ink-2); }
.career__pin { height: 100svh; height: 100lvh; overflow: hidden; position: relative; }
.career__track { display: flex; height: 100%; width: max-content; align-items: stretch; }
.career__intro, .career__outro { width: min(62vw, 900px); padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; flex: none; }
.career__outro { width: 60vw; align-items: center; text-align: center; }
.career__hint { margin-top: 2.5rem; color: var(--mute); }
.career__hint i { font-style: normal; display: inline-block; animation: nudge 1.4s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

.panel { position: relative; flex: none; width: min(58vw, 860px); height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; padding: 6rem 3vw 5rem; }
.panel--wide { width: min(78vw, 1240px); grid-template-columns: 1.5fr 1fr; }
.panel__year {
  position: absolute; left: 1vw; bottom: 3rem; font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(7rem, 15vw, 15rem); line-height: 0.8;
  color: rgba(245,243,239,0.06); font-variant-numeric: lining-nums; pointer-events: none; z-index: 0;
}
.panel__media { position: relative; z-index: 1; height: min(64vh, 640px); overflow: hidden; }
.panel--alt .panel__media { order: 2; }
.panel--wide.panel--alt { grid-template-columns: 1fr 1.5fr; }
.panel__media img[src*="career-cnbc."] { object-position: 22% 50%; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.panel__text { position: relative; z-index: 1; }
.panel__when { color: var(--mute); display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; }
.panel__org { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 3.4vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.panel__role { font-family: var(--f-label); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: #d9d5ce; margin: 0 0 1.3rem; line-height: 1.5; }
.panel__desc { color: #bdb9b2; max-width: 26rem; margin: 0; }
.career__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; bottom: calc(2rem + 100lvh - 100svh); height: 1px; background: var(--line); }
.career__progress-bar { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* ---------- 5. interlude ---------- */
.interlude { position: relative; height: 100svh; height: 100lvh; overflow: hidden; display: grid; place-items: end center; background: #000; }
.interlude__frame { position: absolute; inset: 0; clip-path: inset(18% 30% 18% 30%); }
.interlude__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.25); filter: brightness(0.8); }
.interlude__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0) 62%); }
.interlude__quote { position: relative; margin: 0 0 clamp(3rem, 10vh, 7rem); margin-bottom: calc(clamp(3rem, 10vh, 7rem) + 100lvh - 100svh); padding: 0 var(--gutter); max-width: 1150px; text-align: center; text-shadow: 0 2px 30px rgba(0,0,0,0.6); }
.interlude__quote p { margin: 0; font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: clamp(2rem, 4.4vw, 4.6rem); line-height: 1.08; letter-spacing: -0.015em; }
.interlude__quote .word { opacity: 0; transform: translateY(0.4em); display: inline-block; }

/* ---------- 6. record (light) ---------- */
.record { position: relative; padding: var(--section) var(--gutter); }
.record__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 3rem; margin-bottom: 4rem; }
.record__head .eyebrow { grid-column: 1 / -1; margin: 0; }
body.is-light .eyebrow { color: #77736c; }
.record__sub { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: var(--fs-m); max-width: 22rem; }
.record__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.record__row {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr 12rem; align-items: baseline; gap: 2rem;
  padding: 1.6rem 0; border-bottom: 1px solid rgba(17,17,17,0.18); cursor: default;
  transition: padding 0.5s var(--ease), color 0.4s;
}
.record__row::before { content: ''; position: absolute; inset: 0; background: var(--paper-ink); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: -1; }
.record__list { position: relative; z-index: 0; }
.record__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 3.4rem); letter-spacing: -0.01em; line-height: 1.05; transition: transform 0.5s var(--ease); }
.record__title { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: var(--fs-m); }
.record__ctx { color: #77736c; text-align: right; }
@media (hover: hover) {
  .record__row:hover { color: var(--paper); padding-left: 1.2rem; padding-right: 1.2rem; }
  .record__row:hover::before { transform: scaleY(1); }
  .record__row:hover .record__ctx { color: var(--mute); }
}
.record__float { position: fixed; top: 0; left: 0; width: 260px; aspect-ratio: 3 / 4; pointer-events: none; z-index: 60; overflow: hidden; opacity: 0; visibility: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.record__float img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.record__thumb { display: none; width: 64px; height: 80px; object-fit: cover; object-position: 50% 15%; align-self: center; }

/* ---------- 7. stage ---------- */
.stage { position: relative; background: var(--ink); }
.stage__pin { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; padding: 6rem var(--gutter) 4rem; min-height: 100svh; min-height: 100lvh; }
.stage__lede { color: #cfcbc4; max-width: 30rem; margin: 2rem 0 2.4rem; font-size: var(--fs-m); font-weight: 300; line-height: 1.5; }
.services { list-style: none; padding: 0; margin: 0 0 2.6rem; border-top: 1px solid var(--line); }
.services__item { display: flex; gap: 1.2rem; align-items: baseline; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.8rem); color: #5f5c58; transition: color 0.4s, padding 0.4s var(--ease); }
.services__item span { color: inherit; }
.services__item.is-active { color: var(--white); padding-left: 0.6rem; }
.stage__stack { position: relative; width: min(100%, calc(78vh * 1.5)); aspect-ratio: 3 / 2; justify-self: end; }
.stage__card { position: absolute; inset: 0; overflow: hidden; clip-path: inset(100% 0 0 0); }
.stage__card:first-child { clip-path: inset(0 0 0 0); }
/* focal points per stage photo */
.stage__card:nth-child(1) img { object-position: 55% 40%; }
.stage__card:nth-child(2) img { object-position: 40% 35%; }
.stage__card:nth-child(3) img { object-position: 30% 30%; }
.stage__card:nth-child(4) img { object-position: 50% 55%; }
.stage__card:nth-child(5) img { object-position: 45% 30%; }
.stage__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.stages-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.stages-marquee__row { display: flex; width: max-content; animation: marquee-half 48s linear infinite; }
.stages-marquee__row span { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2.2rem); padding: 0 2.4rem; white-space: nowrap; position: relative; }
.stages-marquee__row span::after { content: '✦'; font-style: normal; font-size: 0.5em; position: absolute; right: -0.3em; top: 50%; transform: translateY(-50%); color: var(--mute); }

/* ---------- 7b. showreel ---------- */
.reel { position: relative; height: 100svh; height: 100lvh; overflow: hidden; background: #000; }
.reel__frame { position: absolute; inset: 0; clip-path: inset(14% 16% 14% 16% round 18px); will-change: clip-path; }
.reel__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 40%), linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 45%); }
.reel__caption { position: absolute; left: var(--gutter); bottom: clamp(4rem, 12vh, 8rem); bottom: calc(clamp(4rem, 12vh, 8rem) + 100lvh - 100svh); }
.reel__caption .eyebrow { color: var(--white); }
.reel__sound { position: absolute; right: var(--gutter); bottom: clamp(4rem, 12vh, 8rem); bottom: calc(clamp(4rem, 12vh, 8rem) + 100lvh - 100svh); display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1.2rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; background: rgba(0,0,0,0.35); backdrop-filter: blur(8px); color: var(--white); cursor: pointer; }
.reel__eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.reel__eq i { width: 2px; height: 3px; background: currentColor; transition: height 0.2s; }
.reel__sound[aria-pressed="true"] .reel__eq i { animation: eq 0.9s ease-in-out infinite; }
.reel__eq i:nth-child(2) { animation-delay: 0.2s !important; } .reel__eq i:nth-child(3) { animation-delay: 0.4s !important; } .reel__eq i:nth-child(4) { animation-delay: 0.1s !important; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.reel__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.15); }
.reel__progress span { position: absolute; inset: 0; background: var(--white); transform-origin: left; transform: scaleX(0); }

/* ---------- 8. gallery ---------- */
.gallery { padding: var(--section) var(--gutter) calc(var(--section) * 0.6); overflow: hidden; }
.gallery__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 4rem; flex-wrap: wrap; gap: 1rem; }
.gallery__head .eyebrow { margin: 0; }
.gallery__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 2vw, 2rem); align-items: start; }
.gallery__col { display: grid; gap: clamp(0.8rem, 2vw, 2rem); }
.gallery__col:nth-child(2) { margin-top: 18vh; }
.gallery__col:nth-child(3) { margin-top: 6vh; }
.tile { overflow: hidden; position: relative; }
.tile img { width: 100%; height: auto; transform: scale(1.04); transition: filter 0.9s var(--ease), transform 1.2s var(--ease); }
@media (hover: hover) { .tile:hover img { transform: scale(1.1); } }


/* ---------- 9. clients ---------- */
.clients { padding: calc(var(--section) * 0.6) 0; border-top: 1px solid var(--line); overflow: hidden; }
.clients__title { justify-content: center; margin-bottom: 3rem; font-weight: 400; }
.clients__marquee { overflow: hidden; }
.clients__row { display: flex; width: max-content; }
.clients__row span { font-family: var(--f-label); font-weight: 300; text-transform: uppercase; letter-spacing: 0.24em; font-size: clamp(1rem, 1.7vw, 1.5rem); line-height: 2.6; padding: 0 2.2rem; white-space: nowrap; color: #8d8a85; transition: color 0.4s; }
.clients__row span:hover { color: var(--white); }
.clients__marquee--serif .clients__row span { font-family: var(--f-serif); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -0.01em; font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.3; color: var(--white); }

/* ---------- 10. press ---------- */
.press { padding: var(--section) var(--gutter); }
.press__head { max-width: 900px; margin-bottom: 5rem; }
.press__stack { display: grid; gap: 22vh; padding-bottom: 6vh; }
.press__card {
  position: sticky; top: calc(13vh + var(--i) * 16px);
  height: min(72vh, 640px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #141414; border: 1px solid var(--line); overflow: hidden; transform-origin: 50% 0;
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,0.9);
}
.press__card:nth-child(1) { --i: 0; } .press__card:nth-child(2) { --i: 1; } .press__card:nth-child(3) { --i: 2; }
.press__card:nth-child(4) { --i: 3; } .press__card:nth-child(5) { --i: 4; } .press__card:nth-child(6) { --i: 5; }
.press__media { position: relative; overflow: hidden; background: #0d0d0d; }
.press__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.press__media--contain { padding: clamp(1rem, 3vw, 2.6rem); background: radial-gradient(circle at 50% 40%, #222 0%, #0d0d0d 70%); }
.press__media--contain img { object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6)); }
.press__body { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.6rem, 4vw, 3.6rem); }
.press__meta { color: var(--mute); margin: 0 0 1.4rem; }
.press__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 3.2rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 1.2rem; }
.press__desc { color: #bdb9b2; margin: 0; max-width: 28rem; font-size: 1.02rem; }

/* ---------- 11. book ---------- */
.book { position: relative; min-height: 100svh; padding: var(--section) var(--gutter); overflow: hidden; display: grid; align-items: center; }
.book__bg { position: absolute; inset: -12% 0 -12% 45%; }
.book__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; opacity: 0.55; }
.book__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.2) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%, transparent 70%, var(--ink) 100%); }
.book__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.book .display--xxl { font-size: clamp(3.6rem, 8vw, 8.4rem); }
.book .display--xxl em { padding-left: 0.6em; }
.book__lede { font-size: var(--fs-m); font-weight: 300; color: #cfcbc4; max-width: 28rem; margin: 2rem 0 1.4rem; }
.book__mail { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2.2rem); border-bottom: 1px solid var(--line); padding-bottom: 0.2rem; transition: border-color 0.4s; }
.book__mail:hover { border-color: var(--white); }
.book__card { padding: clamp(1.4rem, 3vw, 2.6rem); background: rgba(10,10,10,0.72); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.book__panel[hidden] { display: none; }
.book__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-label); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0.55rem 0;
  font-size: 1rem; border-radius: 0; transition: border-color 0.3s; color-scheme: dark;
}
.field select { cursor: pointer; }
.field select option { background: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field textarea { resize: vertical; min-height: 4.5rem; }
.book__form .btn { grid-column: 1 / -1; justify-self: start; }
.book__status { grid-column: 1 / -1; margin: 0; color: var(--mute); min-height: 1em; }
.book__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { padding: 4rem var(--gutter) 2rem; border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 19vw; line-height: 0.9; letter-spacing: -0.03em; color: rgba(245,243,239,0.07); white-space: nowrap; margin: 0 -0.03em 2rem; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__logo { height: 38px; width: auto; }
.footer__social { display: flex; gap: 1.8rem; font-family: var(--f-label); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.footer__social a { position: relative; }
.footer__social a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform 0.4s var(--ease); transform-origin: left; }
.footer__social a:hover::after { transform: scaleX(1); }
.footer__copy { color: var(--mute); margin: 0; }
.footer__base { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 3rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.footer__credit { margin: 0; color: var(--mute); }
.footer__credit a { color: var(--white); border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.footer__credit a:hover { border-color: var(--white); }
.footer__photo-credits { margin: 0; max-width: 46rem; font-size: 0.68rem; line-height: 1.6; color: #5f5c58; }

/* ---------- booking form tabs (book / get in touch) ---------- */
.book__tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 1.6rem; }
.book__tab { border: 0; background: transparent; cursor: pointer; padding: 0.6rem 1.1rem; border-radius: 999px; font-family: var(--f-label); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); transition: background-color 0.4s var(--ease), color 0.4s; }
.book__tab[aria-selected="true"] { background: var(--white); color: var(--ink); }

/* ---------- headline type refinements (Jost) ---------- */
.display { font-weight: 300; letter-spacing: 0.005em; line-height: 1.08; }
.display em { font-style: normal; font-weight: 200; color: #aaa69f; }
body.is-light .display em { color: #6f6b64; }
.hero__title { font-weight: 300; text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(2.6rem, 6.6vw, 10rem); line-height: 1.08; }
.hero__line--2 { font-style: normal; font-weight: 200; padding-left: 0.6em; }
:is(.panel__org, .record__name, .services__item, .press__title, .menu__links a) { font-weight: 300; letter-spacing: 0.01em; }
:is(.stat__num, .stat__suffix, .panel__year, .footer__big) { font-weight: 200; font-style: normal; }
:is(.manifesto__quote, .interlude__quote p, .record__title, .record__sub, .stages-marquee__row span, .clients__marquee--serif .clients__row span, .book__mail, .menu__links a) { font-style: normal; font-weight: 300; }
:is(.manifesto__quote, .interlude__quote p) { font-weight: 200; letter-spacing: 0; }

/* reveal helpers (JS sets initial state, so no-JS still shows content) */
[data-img-reveal] { will-change: clip-path; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .panel, .panel--wide { width: 82vw; }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-scrolled { mix-blend-mode: normal; background: rgba(10,10,10,0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .hero__media { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__media img { object-position: 62% 20%; }
  .hero__shade { background: linear-gradient(0deg, #000 8%, rgba(0,0,0,0.45) 48%, rgba(0,0,0,0.15) 100%); }
  .hero__mono { width: 150vw; left: -30vw; top: 40%; opacity: 0.45; }
  .reel__frame { clip-path: inset(8% 6% 20% 6% round 14px); } /* keep in sync with showreel() in main.js */
  .reel__caption { bottom: 6.5rem; bottom: calc(6.5rem + 100lvh - 100svh); }
  .reel__sound { left: var(--gutter); right: auto; bottom: 1.6rem; bottom: calc(1.6rem + 100lvh - 100svh); }
  .hero__content { top: auto; bottom: 9.5rem; transform: none; }
  .hero__title { font-size: clamp(3.4rem, 16vw, 6.5rem); }
  .hero__line--2 { padding-left: 0; }
  .hero__bug { top: 5rem; }
  .lower-third { bottom: 4.4rem; left: var(--gutter); right: var(--gutter); }
  .lower-third__name { font-size: 0.72rem; }
  .hero__scroll { display: none; }
  .ticker { height: 2.8rem; }

  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 520px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.8rem 1rem 1.6rem 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat + .stat { padding-left: 0; }
  .stat:nth-child(2n) { padding-left: 1.2rem; }

  .career__pin { height: auto; }
  .career__track { flex-direction: column; width: 100%; }
  .career__intro, .career__outro { width: 100%; padding: var(--section) var(--gutter) 3rem; }
  .career__outro { padding: 4rem var(--gutter) var(--section); }
  /* .panel--wide.panel--alt listed too: the desktop rule for that combo (CNBC International) is more specific and kept it two-column */
  .panel, .panel--wide, .panel--wide.panel--alt { width: 100%; height: auto; grid-template-columns: 1fr; gap: 1.6rem; padding: 2.5rem var(--gutter) 3.5rem; }
  .panel--alt .panel__media { order: 0; }
  .panel__media { height: 62vh; max-height: 560px; }
  .panel__media img { transform: none; } /* the 1.18 zoom only exists for the desktop parallax; here it just cropped */
  .panel__media img[src*="career-cnbc."] { object-position: 4% 50%; } /* Arabile stands at the far left of this wide shot */
  /* year sits as a watermark behind the text (at the top it peeked out from behind the photo like a glitch) */
  .panel__year { font-size: 26vw; left: auto; right: var(--gutter); top: auto; bottom: 2rem; }
  .career__progress, .career__hint { display: none; }

  .interlude__quote p { font-size: clamp(2rem, 9vw, 3.4rem); }
  .record__head { grid-template-columns: 1fr; }
  .record__row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.3rem 0; }
  .record__ctx { text-align: left; }
  .record__float { display: none; }

  /* minmax(0, …) + stretch: a plain 1fr column grew to the strip's full width and pushed it off the left edge */
  .stage__pin { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: var(--section); }
  .stage__stack {
    width: auto; min-width: 0; justify-self: stretch; aspect-ratio: auto; height: auto; display: flex; gap: 0.8rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
  }
  .stage__stack::-webkit-scrollbar { display: none; }
  .stage__card { position: relative; flex: none; width: 78vw; height: 58vh; clip-path: none !important; scroll-snap-align: start; }
  /* no scroll-driven highlight on phones, so no item should look switched off */
  .services__item, .services__item.is-active { color: #cfcbc4; padding-left: 0; }
  .stage__card img { transform: none; }

  .gallery__cols { grid-template-columns: 1fr 1fr; }
  .gallery__col:nth-child(3) { display: none; }
  .gallery__col:nth-child(2) { margin-top: 10vh; }

  .press__stack { gap: 14vh; }
  .press__card { grid-template-columns: 1fr; grid-template-rows: 58% 42%; height: 76vh; top: calc(9vh + var(--i) * 10px); }
  .press__body { padding: 1.4rem; justify-content: flex-start; }
  .press__meta { margin-bottom: 0.8rem; }
  .press__title { font-size: 1.7rem; margin-bottom: 0.6rem; }
  .press__desc { font-size: 0.95rem; }
  .record__thumb { display: block; }
  .record__row { grid-template-columns: 64px 1fr; column-gap: 1rem; }
  .record__row > :not(.record__thumb) { grid-column: 2; }
  .record__thumb { grid-row: 1 / span 3; }
  .book__bg { inset: 0; }
  .book__bg::after { background: linear-gradient(0deg, var(--ink) 20%, rgba(10,10,10,0.75) 60%, rgba(10,10,10,0.6) 100%); }
  .book__inner { grid-template-columns: 1fr; }
  .book__form { grid-template-columns: 1fr; }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__social { flex-wrap: wrap; gap: 0.9rem 1.6rem; }
  .footer__copy { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
}
