/* ==========================================================================
   Omar Ellis portfolio
   Black base, restrained purple undertone, electric yellow for action.
   ========================================================================== */

@font-face { font-family: 'Archivo'; src: url('/assets/fonts/Archivo-100_900.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/JetBrainsMono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* colour */
  --bg: #050407;
  --surface: #0e0c14;
  --surface-2: #171420;
  --line: rgba(255, 255, 255, .11);
  --ink: #f6f5f0;
  --ink-2: #bdbac6;
  --ink-3: #94919f;
  --yellow: #ffe500;
  --yellow-hover: #fff27a;
  --on-yellow: #0a0a0a;
  --purple-deep: #2b1056;
  --purple: #8b5cf6;
  /* type */
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* layout */
  --gutter: clamp(16px, 3.4vw, 48px);
  --section: clamp(88px, 12vw, 176px);
  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.3, 1.3, .5, 1);
  --fast: 180ms;
  --med: 420ms;
  --slow: 900ms;
  /* z */
  --z-nav: 40;
  --z-progress: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
strong { font-weight: 650; color: var(--ink); }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 100; background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 500 .8125rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: var(--z-progress); pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  background: var(--yellow); color: var(--on-yellow); font-weight: 650; text-decoration: none;
  transition: background var(--fast), transform var(--fast) var(--ease-out), border-color var(--fast);
}
.btn svg { transition: transform var(--med) var(--ease-out); }
.btn:hover { background: var(--yellow-hover); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: 14px 34px; font-size: 1.125rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  font: 500 .8125rem var(--mono); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap;
  transition: color var(--fast), box-shadow var(--fast);
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.i-play { display: none; }
[aria-pressed="true"] > .i-pause { display: none; }
[aria-pressed="true"] > .i-play { display: block; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  transition: background var(--med), box-shadow var(--med);
}
.nav.is-stuck { background: rgba(5, 4, 7, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { font-weight: 800; font-stretch: 80%; font-size: 1.25rem; letter-spacing: -.005em; text-decoration: none; padding-block: 8px; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 10px 14px; border-radius: 999px; font-size: .9375rem; color: var(--ink-2); text-decoration: none; transition: color var(--fast); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ink); }
.nav__links a[aria-current] { box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); padding: 8px var(--gutter) 20px; box-shadow: 0 1px 0 var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__links a { padding: 14px 0; font-size: 1.125rem; border-radius: 0; box-shadow: 0 1px 0 var(--line) !important; }
  .nav.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- hero ---------- */
.hero {
  --name-size: min(21.3vw, 42dvh);
  --card-h: min(66dvh, 640px, 92vw);
  position: relative; min-height: max(100dvh, 720px); overflow: clip; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: clamp(24px, 5vw, 96px);
  padding: 96px var(--gutter) calc(var(--name-size) * .78);
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(74, 28, 140, .34), transparent 70%),
    radial-gradient(40% 40% at 88% 96%, rgba(43, 16, 86, .5), transparent 70%);
}
.hero__copy { display: flex; flex-direction: column; gap: 16px; max-width: 38ch; color: var(--ink-2); font-size: clamp(1rem, .4vw + .9rem, 1.0625rem); z-index: 3; }
.hero__copy--b { justify-self: end; align-self: start; align-items: flex-start; }
.hero__copy--a .eyebrow { margin-bottom: 4px; }
.hero__copy .btn { margin-top: 8px; }
.hero__name {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(8px, 1.6vw, 24px); z-index: 1;
  font-size: var(--name-size); line-height: .78; font-weight: 900; font-stretch: 62%; letter-spacing: -.012em; white-space: nowrap;
  text-align: center; transform: translateY(calc(var(--sp, 0) * 12%));
}
.hero__name .ch { display: inline-block; }
.js .hero__name .ch { transform: translateY(105%); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i) * 34ms + 120ms); }
.js .hero__name span[aria-hidden] { display: inline-block; overflow: clip; overflow-clip-margin: 8px; padding-top: .04em; }
.is-ready .hero__name .ch { transform: none !important; }

/* video stack */
.stack { position: relative; height: var(--card-h); width: calc(var(--card-h) * 9 / 16); z-index: 2; align-self: end; margin-bottom: calc(var(--name-size) * -.34); }
.stack__cards { position: absolute; inset: 0; }
.stack-card {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6); cursor: pointer; display: block; width: 100%; text-align: left;
  transition: transform 800ms var(--ease-out), opacity 500ms;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(calc(var(--r, 0deg) * (1 + var(--sp, 0) * 1.1))) scale(var(--s, 1));
  will-change: transform;
}
.stack-card img, .stack-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-card::after { content: ''; position: absolute; inset: 0; background: #050407; opacity: var(--dim, 0); transition: opacity 500ms; pointer-events: none; }
.stack-card[data-pos="0"] { --r: 2.5deg; z-index: 4; }
.stack-card[data-pos="1"] { --x: -20%; --y: -3%; --r: -8deg; --s: .95; --dim: .35; z-index: 3; }
.stack-card[data-pos="2"] { --x: 20%; --y: -5%; --r: 10deg; --s: .92; --dim: .5; z-index: 2; }
.stack-card[data-pos="3"] { --x: -4%; --y: -9%; --r: -16deg; --s: .88; --dim: .68; z-index: 1; }
.stack-card[data-pos="hidden"] { --x: 0%; --y: -6%; --r: 22deg; --s: .8; --dim: 1; opacity: 0; z-index: 0; pointer-events: none; }
.stack-card__meta { position: absolute; inset: auto 0 0; padding: 48px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); z-index: 2; display: flex; flex-direction: column; }
.stack-card__meta b { font-weight: 700; font-size: 1.0625rem; color: #fff; }
.stack-card__meta i { font: 500 .75rem var(--mono); font-style: normal; color: var(--ink-2); }
.stack__next {
  position: absolute; right: -36px; top: 15%; z-index: 6; width: 76px; height: 76px; border-radius: 50%;
  background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center;
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  transition: transform var(--med) var(--ease-spring), background var(--fast);
}
.stack__next:hover { transform: scale(1.08); background: var(--yellow-hover); }
.stack__next:active { transform: scale(.96); }
.stack__pause {
  position: absolute; right: -14px; top: calc(15% + 88px); z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(14,12,20,.86); color: var(--ink); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transition: background var(--fast);
}
.stack__pause:hover { background: var(--surface-2); }
.js .stack { opacity: 0; transform: translateY(44px) scale(.95); transition: opacity 800ms 300ms, transform 1200ms 300ms var(--ease-out); }
.is-ready .stack { opacity: 1; transform: none; }
.js .hero__copy { opacity: 0; transition: opacity 900ms 650ms; }
.is-ready .hero__copy { opacity: 1; }

@media (max-width: 980px) {
  .hero {
    --name-size: 20.8vw; --card-h: min(118vw, 560px);
    grid-template-columns: minmax(0, 1fr); padding: 84px var(--gutter) 56px; min-height: 0; justify-items: center;
    background: radial-gradient(90% 34% at 50% 30%, rgba(74, 28, 140, .38), transparent 72%);
  }
  .hero__name { position: relative; left: auto; right: auto; bottom: auto; order: -2; width: 100%; font-size: var(--name-size); margin-bottom: calc(var(--name-size) * -.14); }
  .stack { order: -1; margin: 0 0 44px; }
  .stack__next { width: 60px; height: 60px; right: -22px; }
  .stack__pause { right: -14px; top: calc(15% + 70px); }
  .stack-card[data-pos="1"] { --x: -14%; }
  .stack-card[data-pos="2"] { --x: 14%; }
  .hero__copy { max-width: 60ch; width: 100%; justify-self: start; }
  .hero__copy--a { margin-bottom: 16px; }
  .hero__copy--b { justify-self: start; }
  .hero__copy .btn { width: 100%; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .hero { column-gap: 40px; --card-h: min(58dvh, 520px); }
  .hero__copy { font-size: .9375rem; line-height: 1.5; }
}

/* ---------- logo bar ---------- */
.logos { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 24px var(--gutter); border-block: 1px solid var(--line); background: var(--bg); position: relative; }
.logos__label { color: var(--ink-3); white-space: nowrap; flex: none; }
.marquee { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); display: flex; }
.marquee__list { display: flex; align-items: center; gap: clamp(44px, 6vw, 88px); padding-right: clamp(44px, 6vw, 88px); flex: none; }
.marquee__list li { flex: none; display: flex; align-items: center; height: 52px; }
.marquee__list img { height: var(--h); width: auto; opacity: .86; }
.js .marquee__list { animation: marquee 44s linear infinite; }
.marquee:hover .marquee__list, .marquee.is-paused .marquee__list { animation-play-state: paused; }
.marquee__pause { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.marquee__pause:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (max-width: 720px) {
  .logos { flex-wrap: wrap; }
  .logos__label { flex: 1; }
  .marquee { order: 3; flex-basis: 100%; }
}

/* ---------- section headers ---------- */
.section { padding-block: var(--section); position: relative; overflow: clip; }
.section--glow { background: radial-gradient(50% 45% at 0% 12%, rgba(58, 22, 112, .36), transparent 72%); }
.section--glow-b { background: radial-gradient(46% 40% at 100% 60%, rgba(58, 22, 112, .3), transparent 72%); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-title {
  width: fit-content; max-width: 100%; font-size: clamp(3.25rem, 11vw, 10rem); line-height: .86; font-weight: 900; font-stretch: 62%;
  letter-spacing: -.008em; text-transform: uppercase; padding-bottom: .1em; position: relative; text-wrap: balance;
}
.sec-title::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(3px, .5vw, 6px); background: var(--yellow); transform: scaleX(var(--u, 1)); transform-origin: left; transition: transform 1200ms 250ms var(--ease-out); }
.js .sec-title.reveal { --u: 0; }
.js .sec-title.reveal.in { --u: 1; }
.sec-title--long { font-size: clamp(2.625rem, 7vw, 6.5rem); line-height: .92; }
.sec-sub { max-width: 62ch; color: var(--ink-2); font-size: clamp(1.0625rem, .5vw + .95rem, 1.25rem); line-height: 1.55; }
.sec-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }

/* reveal */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 800ms var(--ease-out), translate 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- work grid ---------- */
.grid-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding-bottom: 72px; }
.grid-work > li:nth-child(3n + 2) { margin-top: 72px; margin-bottom: -72px; }
.vcard {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line); text-align: left; transition: transform var(--med) var(--ease-out), box-shadow var(--med);
}
.vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 229, 0, .6), 0 28px 60px rgba(0,0,0,.6); }
.vcard:active { transform: scale(.985); }
.vcard:focus-visible { outline-offset: 4px; border-radius: 18px; }
.vcard__meta { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 2px; padding: 72px 76px 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.vcard__brand { font-size: clamp(1.0625rem, 1vw + .8rem, 1.375rem); font-weight: 700; line-height: 1.15; color: #fff; }
.vcard__cat { font: 500 .75rem/1.4 var(--mono); color: #d5d3dc; }
.vcard__play { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); transition: transform var(--med) var(--ease-spring); }
.vcard:hover .vcard__play { transform: scale(1.12); }

@media (max-width: 760px) {
  .grid-work { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .grid-work > li:nth-child(3n + 2) { margin: 0; }
  .grid-work > li:first-child { grid-column: 1 / -1; }
  .vcard__meta { padding: 56px 58px 12px 12px; }
  .vcard__play { width: 44px; height: 44px; right: 10px; bottom: 10px; }
  .grid-work > li:first-child .vcard__meta { padding: 72px 76px 18px 18px; }
}

/* ---------- stats ---------- */
.stat { position: relative; padding: clamp(20px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 4px 12px 12px 4px; }
.stat__num { font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .94; font-weight: 900; font-stretch: 62%; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font: 500 .9375rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.stat__note { color: var(--ink-3); font-size: .9375rem; line-height: 1.4; margin-top: 2px; }

.shop { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.shop__stats { display: grid; gap: clamp(16px, 2vw, 28px); position: sticky; top: 96px; }
.shop__panel { padding: clamp(10px, 1.2vw, 16px); background: var(--surface); border: 1px solid rgba(255, 229, 0, .24); border-radius: 12px; }
.shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 6px; overflow: hidden; }
.shop__grid li { overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.shop__grid img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform var(--slow) var(--ease-out); }
.shop__grid li:hover img { transform: scale(1.04); }
.shop__grid li.is-tall { position: relative; }
.shop__grid li.is-tall::before { content: ''; position: absolute; inset: -12px; background: var(--bg) center / cover; filter: blur(10px) brightness(.55); }
.shop__grid li.is-tall img { position: relative; object-fit: contain; }
.shop__panel figcaption { text-align: center; padding-top: 12px; font-size: .75rem; }
@media (max-width: 860px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .shop__stats { position: static; }
}

/* ---------- analytics ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); margin-bottom: clamp(12px, 2vw, 28px); }
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.chart { padding: clamp(20px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.chart__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 22px; }
.bars { display: grid; gap: 16px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.bars__label { color: var(--ink-2); }
.bars__value { font-weight: 650; font-variant-numeric: tabular-nums; }
.bars__track { grid-column: 1 / -1; height: 10px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: calc(var(--v) * 1%); min-width: 4px; background: var(--yellow); border-radius: 0 4px 4px 0; transform-origin: left; transition: transform 1200ms var(--ease-out); transition-delay: 150ms; }
.js .bars:not(.in) .bars__fill { transform: scaleX(0); }
.split { display: flex; gap: 2px; height: 44px; margin-bottom: 22px; }
.split__seg { flex: var(--v) 1 0; min-width: 6px; transform-origin: left; transition: transform 1200ms var(--ease-out); }
.js .split:not(.in) .split__seg { transform: scaleX(0); }
.split__seg--a { background: var(--yellow); border-radius: 4px 0 0 4px; }
.split__seg--b { background: var(--purple); }
.split__seg--c { background: #d6cff0; border-radius: 0 4px 4px 0; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.legend li:first-child { border-top: 0; }
.legend strong { font-variant-numeric: tabular-nums; }
.legend__key { width: 14px; height: 14px; border-radius: 4px; }
.legend__key--a { background: var(--yellow); }
.legend__key--b { background: var(--purple); }
.legend__key--c { background: #d6cff0; }
@media (max-width: 960px) { .charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .stats-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.turnaround { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); }
.turnaround strong { font-size: 1.25rem; }
.steps { display: grid; }
.step { display: grid; grid-template-columns: clamp(64px, 9vw, 128px) minmax(0, 1fr); gap: 8px; padding-block: clamp(28px, 3.4vw, 48px); border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-size: clamp(2.75rem, 5.5vw, 5rem); line-height: .9; font-weight: 900; font-stretch: 62%; color: var(--ink-3); transition: color var(--med); font-variant-numeric: tabular-nums; }
.step.is-active .step__n { color: var(--yellow); }
.step h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.625rem); line-height: 1.2; font-weight: 500; margin-bottom: 12px; }
.step h3 span { display: block; font-size: clamp(1.875rem, 2.4vw + 1rem, 3rem); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: 1.02; }
.step p { color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .process__aside { position: static; }
  .process__aside .photo-slot--tall { aspect-ratio: 1 / 1; }
  .process__aside .photo-slot img { object-position: 50% 0%; }
}

/* ---------- photo placeholders ---------- */
.photo-slot {
  display: grid; place-content: center; justify-items: center; gap: 8px; aspect-ratio: 4 / 5; border-radius: 14px;
  color: var(--ink-3); font: 500 .8125rem var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(160deg, #1b1527, #0e0c14 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); overflow: hidden;
}
.photo-slot { position: relative; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-slot:has(img)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); pointer-events: none; }
.photo-slot--tall { aspect-ratio: 4 / 5; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 2vw, 24px); padding-bottom: 28px; }
.quote {
  --bubble: var(--surface-2); position: relative; display: flex; align-items: center; min-height: 148px; padding: 24px; border-radius: 22px; background: var(--bubble);
  box-shadow: 0 0 0 1px var(--line); rotate: var(--r, 0deg); transition: rotate var(--med) var(--ease-spring), opacity 800ms var(--ease-out), translate 900ms var(--ease-out);
  font-size: clamp(1.0625rem, .5vw + .95rem, 1.25rem); line-height: 1.35; font-weight: 600;
}
.quote:hover { rotate: 0deg; }
.quote::after { content: ''; position: absolute; left: 34px; bottom: -15px; width: 28px; height: 16px; background: var(--bubble); clip-path: polygon(0 0, 100% 0, 18% 100%); }
.quote--flip::after { left: auto; right: 34px; clip-path: polygon(0 0, 100% 0, 82% 100%); }
.quote--feature { --bubble: var(--yellow); grid-column: span 2; color: var(--on-yellow); font-size: clamp(1.5rem, 2.2vw + .6rem, 2.75rem); font-weight: 800; font-stretch: 80%; line-height: 1.08; padding: clamp(24px, 3vw, 40px); box-shadow: none; }
@media (max-width: 960px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { min-height: 136px; padding: 18px; }
}
@media (max-width: 480px) { .quote { font-size: 1rem; } .quote--feature { font-size: 1.625rem; } }

/* ---------- final CTA ---------- */
.cta {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); overflow: clip;
  padding: var(--section) max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter)));
  border-top: 1px solid var(--line);
  background: radial-gradient(50% 70% at 28% 50%, rgba(74, 28, 140, .34), transparent 72%);
}
.cta__fan { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.cta__fan .photo-slot { position: absolute; left: 25%; top: 12%; width: 50%; transform: translateX(var(--x)) rotate(var(--r)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 24px 60px rgba(0,0,0,.55); transition: transform var(--slow) var(--ease-out); }
.js .cta:not(.in) .cta__fan .photo-slot { transform: translateX(0) rotate(0deg); }
.cta__text { display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); font-size: clamp(1.125rem, .6vw + 1rem, 1.375rem); }
.cta__title { font-size: clamp(5rem, 15vw, 14rem); line-height: .82; font-weight: 900; font-stretch: 62%; text-transform: uppercase; color: var(--ink); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
@media (max-width: 860px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__text { order: -1; }
  .cta__fan { width: 74%; }
  .cta__actions .btn { flex: 1 1 100%; }
}

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 24px var(--gutter); border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9375rem; }
.footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer a { display: inline-block; padding-block: 4px; text-underline-offset: 3px; }
.footer a:hover { color: var(--yellow); }

/* ---------- video player ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(5, 4, 7, .94); color: var(--ink); overflow: hidden; }
.lb[open] { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 16px; animation: lb-in 260ms ease-out; }
.lb::backdrop { background: rgba(5, 4, 7, .7); }
.lb__fig { display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: center; min-width: 0; }
.lb__fig video { height: auto; max-height: calc(100dvh - 76px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; animation: lb-pop 420ms var(--ease-out); }
.lb__fig figcaption { color: var(--ink-3); text-align: center; font-size: .9375rem; }
.lb__fig figcaption strong { font-size: 1.0625rem; }
.lb__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--fast), color var(--fast); }
.lb__btn:hover { background: var(--yellow); color: var(--on-yellow); }
.lb__prev { justify-self: end; }
.lb__next { justify-self: start; }
.lb__close { position: absolute; top: 16px; right: 16px; z-index: 2; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-pop { from { transform: scale(.94); opacity: .4; } }
@media (max-width: 640px) {
  .lb { padding: 8px; }
  .lb[open] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lb__fig { grid-column: 1 / -1; grid-row: 1; min-height: 0; align-items: center; }
  .lb__fig video { max-height: calc(100dvh - 120px); }
  .lb__prev { grid-row: 2; }
  .lb__next { grid-row: 2; }
  .lb__close { top: 12px; right: 12px; }
}

/* ---------- contact page ---------- */
.page-contact { background: radial-gradient(60% 60% at 80% 40%, rgba(74, 28, 140, .34), transparent 72%), var(--bg); }
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1360px; min-height: calc(100dvh - 72px); margin-inline: auto; padding: 112px var(--gutter) 64px; }
.contact__main { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; min-width: 0; }
.contact__title { font-size: clamp(5rem, 12.4vw, 11.5rem); line-height: .86; font-weight: 900; font-stretch: 62%; text-transform: uppercase; }
.contact__lead { color: var(--ink-2); font-size: clamp(1.125rem, .6vw + 1rem, 1.375rem); max-width: 48ch; line-height: 1.45; }
.contact__email { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.contact__address { font-weight: 600; overflow-wrap: anywhere; }
.contact__address a { text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 12px; }
.socials a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .9375rem; transition: border-color var(--fast), color var(--fast), transform var(--fast); }
.socials a:hover { border-color: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.socials svg { flex: none; color: var(--yellow); }
.socials strong { display: block; line-height: 1.2; }
.page-contact .turnaround { width: 100%; }
.badge-wrap { justify-self: center; perspective: 1000px; }
.badge {
  position: relative; width: min(100%, 370px); padding: 44px 20px 20px; border-radius: 26px; background: var(--yellow); color: var(--on-yellow);
  rotate: 5deg; box-shadow: 0 40px 90px rgba(0,0,0,.6); animation: sway 7s ease-in-out infinite; transform-origin: 50% -30px;
}
.badge__slot { position: absolute; top: 16px; left: 50%; width: 72px; height: 12px; margin-left: -36px; border-radius: 99px; background: rgba(0,0,0,.28); }
.badge .photo-slot { width: 100%; }
.badge__name { margin-top: 16px; font-size: clamp(3rem, 5.4vw, 4.75rem); line-height: .9; font-weight: 900; font-stretch: 62%; text-transform: uppercase; white-space: nowrap; }
.badge__role { font: 500 .9375rem var(--mono); margin-top: 6px; }
.badge__foot { margin-top: 14px; padding-top: 10px; border-top: 2px solid var(--on-yellow); font: 500 .8125rem var(--mono); }
@keyframes sway { 50% { rotate: 2deg; } }
@media (max-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr); padding-top: 88px; }
  .badge-wrap { padding-block: 16px; }
  .badge { width: min(78vw, 320px); }
}
@media (max-width: 520px) {
  .socials { grid-template-columns: minmax(0, 1fr); }
  .contact__email .btn { flex: 1 1 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .stack, .js .hero__copy { opacity: 1; translate: none; transform: none; }
  .js .hero__name .ch { transform: none; }
  .stack-card { transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1)); }
  .hero__name { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__list { flex-wrap: wrap; flex: 1; justify-content: center; gap: 16px 40px; padding: 0; }
  .marquee__list[aria-hidden="true"], .marquee__pause { display: none; }
}
@media (forced-colors: active) {
  .bars__fill, .split__seg, .legend__key { forced-color-adjust: none; }
}
