/* =========================================================
   NAHEEN KHAN — Bet on Yourself
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0A0A;
  --ink-2: #141414;
  --ink-3: #1E1E1E;
  --bone: #EDEAE4;
  --bone-2: #D9D5CD;
  --grey-500: #8A8781;
  --grey-700: #4A4844;
  --line: rgba(237, 234, 228, .14);
  --line-dark: rgba(10, 10, 10, .14);
  --amber-glow: rgba(255, 190, 120, .10);

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-mega: clamp(4.5rem, 17vw, 22rem);
  --fs-xl: clamp(3.25rem, 10vw, 11rem);
  --fs-l: clamp(2rem, 5vw, 5rem);
  --fs-m: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: clamp(1rem, 1.1vw, 1.2rem);
  --fs-label: .75rem;

  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(6rem, 14vh, 12rem);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::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; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--bone); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; }
.light :focus-visible { outline-color: var(--ink); }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 850;
  font-stretch: 70%;
  font-variation-settings: "wdth" 70;
  text-transform: uppercase;
  line-height: .85;
  letter-spacing: -.02em;
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.mono, .eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 400;
}
.eyebrow { color: var(--grey-500); margin-bottom: 1.25rem; }
.muted { color: var(--grey-500); }

.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line__in { display: block; }
.char, .word { display: inline-block; will-change: transform; }

.section-title { font-size: var(--fs-xl); }

.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.ulink:hover { background-size: 100% 1px; }

/* ---------- Pills ---------- */
.pill {
  position: relative;
  display: inline-flex; align-items: center; gap: .6em;
  height: 3.25rem; padding: 0 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(10, 10, 10, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .4s var(--ease-out), color .4s var(--ease-out), border-color .4s;
  overflow: hidden;
}
.pill:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.pill--sm { height: 2.5rem; padding: 0 1.1rem; font-size: .72rem; }
.pill--xl {
  height: clamp(4.5rem, 9vw, 6.5rem);
  padding: 0 clamp(2rem, 4vw, 3.5rem);
  font-family: var(--f-display); font-stretch: 75%; font-variation-settings: "wdth" 75;
  font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 2.25rem); letter-spacing: 0;
  border-color: var(--bone);
  background: transparent;
}
.pill--xl:hover { background: transparent; }
.pill__fill { position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); border-radius: inherit; }
.pill--xl:hover .pill__fill { transform: scaleX(1); }
.pill__text { position: relative; z-index: 1; }

/* ---------- Grain + cursor ---------- */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: overlay; }
.cursor {
  position: fixed; top: 0; left: 0; z-index: 95;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--bone);
  pointer-events: none; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-active { width: 90px; height: 90px; margin: -45px 0 0 -45px; }
.cursor__label { font-family: var(--f-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.preloader__half {
  position: absolute; left: 0; right: 0; height: 50%;
  background: var(--ink); overflow: hidden;
  display: flex; justify-content: center;
}
.preloader__half--top { top: 0; align-items: flex-end; }
.preloader__half--bottom { bottom: 0; align-items: flex-start; }
.preloader__word {
  font-family: var(--f-display); font-weight: 850; font-stretch: 70%; font-variation-settings: "wdth" 70;
  font-size: clamp(3.5rem, 15vw, 16rem); line-height: .82; letter-spacing: -.02em;
}
.preloader__count { position: absolute; left: var(--gutter); bottom: var(--gutter); z-index: 2; color: var(--grey-500); }
.preloader__tag { position: absolute; right: var(--gutter); bottom: var(--gutter); z-index: 2; color: var(--grey-500); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem var(--gutter);
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__mark { font-family: var(--f-display); font-weight: 850; font-stretch: 70%; font-variation-settings: "wdth" 70; font-size: 1.35rem; letter-spacing: -.01em; mix-blend-mode: difference; margin-right: auto; }
.nav__links { display: flex; gap: 2rem; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; mix-blend-mode: difference; }
.nav__links a { 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 .5s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; min-height: 44px; }

.menu {
  position: fixed; inset: 0; z-index: 79; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
  padding: var(--gutter);
}
.menu[hidden] { display: none; }
.menu a { font-family: var(--f-display); font-weight: 850; font-stretch: 70%; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: clamp(3rem, 16vw, 6rem); line-height: .95; }

/* ---------- Scenes (video sequences + fallbacks) ---------- */
.pin { position: relative; }
.pin__inner { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene { position: absolute; inset: 0; z-index: 0; }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.scene--live .scene__canvas { opacity: 1; }
.scene--live .scene__fallback { opacity: 0; }
.scene__fallback { position: absolute; inset: 0; transition: opacity .8s; }

.scene__fallback--hero {
  background:
    radial-gradient(ellipse 34% 42% at 50% 22%, rgba(255, 190, 120, .16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(237, 234, 228, .05), transparent 70%),
    var(--ink);
}
.scene__fallback--mission {
  background:
    radial-gradient(ellipse 45% 70% at 0% 50%, rgba(150, 170, 200, .09), transparent 70%),
    radial-gradient(ellipse 45% 70% at 100% 50%, rgba(255, 190, 120, .13), transparent 70%),
    var(--ink);
}
.scene__fallback--mission::before {
  /* cold tower grid on the left, fades toward the warm side */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(237, 234, 228, .05) 1px, transparent 1px),
    linear-gradient(rgba(237, 234, 228, .05) 1px, transparent 1px);
  background-size: 48px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 45%);
}
.scene__fallback--work {
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(255, 190, 120, .08), transparent 70%),
    var(--ink);
}
.scene__fallback--cta {
  background:
    radial-gradient(ellipse 50% 38% at 50% 78%, rgba(255, 190, 120, .2), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(237, 234, 228, .04), transparent 70%),
    var(--ink);
}
.vignette { position: absolute; inset: 0; pointer-events: none; z-index: 4; background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0, 0, 0, .75) 100%); }

/* ---------- 01 Hero ---------- */
.hero { height: 250vh; }
.hero__title {
  position: absolute; z-index: 1; left: 0; right: 0; top: 13vh;
  font-size: var(--fs-mega);
  text-align: center;
  pointer-events: none;
}
.hero__line { white-space: nowrap; }
.hero__line--b { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.hero__portrait {
  position: absolute; z-index: 2; left: 50%; bottom: 0;
  height: 86vh; height: 86svh; width: auto; max-width: none;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: grayscale(1) contrast(1.06) brightness(.92) drop-shadow(0 0 40px rgba(0, 0, 0, .6));
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero__meta {
  position: absolute; z-index: 5; left: var(--gutter); bottom: var(--gutter);
  max-width: 24rem;
}
.hero__meta .eyebrow { margin-bottom: 1rem; }
.hero__sub { color: var(--bone-2); margin-bottom: 1.5rem; font-size: clamp(.95rem, 1.05vw, 1.1rem); }
.hero__quote {
  position: absolute; z-index: 5; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center; font-size: var(--fs-l); line-height: 1.05;
  padding: 0 var(--gutter);
  text-wrap: balance;
  opacity: 0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .8);
}
.hero__cue { position: absolute; z-index: 5; right: var(--gutter); bottom: var(--gutter); color: var(--grey-500); }
.hero__cue i { display: inline-block; font-style: normal; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- 02 Stats ---------- */
.light { background: var(--bone); color: var(--ink); }
.light .eyebrow { color: var(--grey-700); }
.stats { position: relative; z-index: 2; padding: var(--section) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--gutter); }
.stat { padding: 0 clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font-size: clamp(4rem, 9vw, 9.5rem); margin-bottom: 1rem; white-space: nowrap; }
.stat__pre, .stat__plus { font-size: .55em; vertical-align: .55em; margin-right: .03em; }
.stat__label { display: block; max-width: 15rem; color: var(--grey-700); font-size: .95rem; line-height: 1.4; }
.marquee { margin-top: var(--section); border-top: 1px solid var(--line-dark); padding: 1.1rem 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 3rem; animation: marquee 38s linear infinite; }
.marquee__track span::after { content: "·"; margin-left: 3rem; color: var(--grey-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 03 Mission ---------- */
.mission { height: 220vh; }
.mission__body {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  max-width: 78rem;
}
.mission__text {
  font-family: var(--f-display); font-weight: 750; font-stretch: 80%; font-variation-settings: "wdth" 80;
  text-transform: uppercase; letter-spacing: -.015em;
  font-size: clamp(2.1rem, 5.6vw, 6rem); line-height: .95;
}
.mission__text .word { opacity: .14; margin-right: .22em; }
.mission__last { display: inline-block; font-size: 1.15em; text-transform: none; letter-spacing: -.02em; opacity: .14; }
.mission__note { margin-top: 2.5rem; max-width: 30rem; color: var(--bone-2); }

/* ---------- 04 Pillars ---------- */
.pillars { position: relative; z-index: 2; padding: var(--section) var(--gutter); }
.section-head { margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.5vw, 1.5rem); }
.pillar {
  position: relative; overflow: hidden;
  min-height: clamp(30rem, 70vh, 44rem);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.pillar__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  filter: grayscale(1) contrast(1.05) brightness(.55);
  transform: scale(1.08);
  transition: filter .9s var(--ease-out), transform 1.4s var(--ease-out);
}
.pillar::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 10, .95) 10%, rgba(10, 10, 10, .2) 70%); }
.pillar:hover .pillar__img { filter: grayscale(0) contrast(1) brightness(.6); transform: scale(1); }
.pillar__num {
  position: absolute; top: clamp(1rem, 2vw, 2rem); left: clamp(1.5rem, 2.5vw, 2.5rem);
  font-size: clamp(5rem, 10vw, 10rem);
  color: transparent; -webkit-text-stroke: 1px rgba(237, 234, 228, .5);
  transition: color .6s var(--ease-out);
}
.pillar:hover .pillar__num { color: var(--bone); }
.pillar__title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; font-size: clamp(1.75rem, 2.6vw, 2.6rem); line-height: .95; margin-bottom: .75rem; }
.pillar__promise { font-size: clamp(1.25rem, 1.6vw, 1.6rem); color: var(--bone-2); margin-bottom: 1.5rem; }
.pillar__topics { display: grid; gap: .5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; color: var(--grey-500); }
.pillar__topics li::before { content: "+ "; color: var(--bone); }

/* ---------- 05 Story ---------- */
.story { position: relative; background: var(--ink); }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__track { display: flex; align-items: stretch; height: 100%; width: max-content; will-change: transform; }
.story__intro, .chapter, .story__outro {
  flex: 0 0 auto; height: 100%;
  padding: 18vh clamp(2rem, 4vw, 4rem) 12vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
}
.story__intro { width: min(80vw, 64rem); padding-left: var(--gutter); }
.story__title { font-size: var(--fs-mega); margin-bottom: 2rem; }
.story__hint { color: var(--grey-500); }
.chapter { width: clamp(22rem, 34vw, 34rem); border-left: 1px solid var(--line); }
.chapter--photo { width: clamp(26rem, 42vw, 44rem); }
.chapter__year {
  position: absolute; top: 8vh; left: clamp(1.25rem, 3vw, 3rem);
  font-size: clamp(7rem, 15vw, 16rem);
  color: transparent; -webkit-text-stroke: 1px var(--grey-700);
  pointer-events: none; white-space: nowrap;
}
.chapter__photo { position: relative; margin-bottom: 2rem; aspect-ratio: 4 / 3; overflow: hidden; z-index: 1; }
.chapter__photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1) contrast(1.05); transition: filter .9s var(--ease-out); }
.chapter:hover .chapter__photo img { filter: grayscale(0); }
.chapter__num { color: var(--grey-500); margin-bottom: .75rem; position: relative; }
.chapter__title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; font-size: clamp(2.25rem, 3.5vw, 3.75rem); line-height: .9; margin-bottom: 1rem; position: relative; }
.chapter__title.serif { font-family: var(--f-serif); font-weight: 400; text-transform: none; font-size: clamp(3rem, 5vw, 5rem); }
.chapter__copy { color: var(--bone-2); max-width: 28rem; position: relative; }
.story__outro { width: 70vw; justify-content: center; align-items: center; border-left: 1px solid var(--line); }
.story__outro p { font-size: var(--fs-xl); line-height: 1; white-space: nowrap; }
.story__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 1px; background: var(--line); }
.story__progress span { display: block; height: 100%; background: var(--bone); transform: scaleX(0); transform-origin: left; }

/* ---------- 06 Work ---------- */
.work { position: relative; padding: var(--section) var(--gutter); overflow: clip; }
.work__bg { position: sticky; top: 0; height: 100vh; margin: 0 calc(var(--gutter) * -1) -100vh; z-index: 0; }
.work .section-head, .biz { position: relative; z-index: 2; }
.biz { border-top: 1px solid var(--line); counter-reset: biz; }
.biz__row { border-bottom: 1px solid var(--line); position: relative; }
.biz__link {
  position: relative; display: grid;
  grid-template-columns: 4rem 1fr auto 3rem;
  align-items: center; gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
  isolation: isolate;
}
.biz__link::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--bone); transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease);
}
a.biz__link:hover::before { transform: scaleY(1); transform-origin: top; }
a.biz__link:hover { color: var(--ink); }
.biz__num { color: var(--grey-500); }
.biz__name { font-size: clamp(2.5rem, 7.5vw, 8rem); transition: transform .6s var(--ease-out); }
a.biz__link:hover .biz__name { transform: translateX(1.5rem); }
.biz__cat { color: var(--grey-500); text-align: right; }
a.biz__link:hover .biz__cat { color: var(--grey-700); }
.biz__arrow { font-size: 2rem; text-align: right; transition: transform .6s var(--ease-out); }
a.biz__link:hover .biz__arrow { transform: rotate(45deg); }
.biz__row--soon .biz__name { color: transparent; -webkit-text-stroke: 1px var(--grey-500); }
.biz__soon { grid-column: 4; justify-self: end; color: var(--grey-500); white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; font-size: .65rem; }
.biz__desc { display: none; }

.biz-preview {
  position: fixed; top: 0; left: 0; z-index: 70;
  width: clamp(16rem, 22vw, 22rem); aspect-ratio: 4 / 5;
  pointer-events: none;
  opacity: 0; transform: scale(.8);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.biz-preview.is-visible { opacity: 1; transform: scale(1); }
.biz-preview__inner { width: 100%; height: 100%; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.biz-preview__inner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.biz-preview__card { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; background: var(--ink-2); color: var(--bone); }
.biz-preview__card strong { font-family: var(--f-display); font-weight: 850; font-stretch: 70%; font-variation-settings: "wdth" 70; text-transform: uppercase; font-size: 3.5rem; line-height: .85; }

/* ---------- 07 Content ---------- */
.content { padding: var(--section) 0; }
.content .section-head { padding: 0 var(--gutter); }
.content__sub { max-width: 22rem; color: var(--bone-2); }
.reels { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch; }
.reels::-webkit-scrollbar { display: none; }
.reels.is-dragging { cursor: grabbing; }
.reels.is-dragging .reel { pointer-events: none; }
.reels__track { display: flex; gap: clamp(.75rem, 1.5vw, 1.5rem); padding: 0 var(--gutter); width: max-content; }
.reel {
  position: relative; flex: 0 0 auto;
  width: clamp(15rem, 22vw, 21rem); aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem;
  isolation: isolate;
  transition: border-color .4s;
  user-select: none; -webkit-user-drag: none;
}
.reel:hover { border-color: rgba(237, 234, 228, .4); }
.reel__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out); -webkit-user-drag: none; }
.reel:hover .reel__media, .reel.is-playing .reel__media { filter: grayscale(0); transform: scale(1.04); }
.reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 10, .9), transparent 55%); }
.reel__tag { position: absolute; top: 1.25rem; left: 1.25rem; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .62rem; background: rgba(10, 10, 10, .4); }
.reel__title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; font-size: 1.6rem; line-height: .95; }
.reel--soon { background: var(--ink-2); }
.reel__big { position: absolute; top: 3.5rem; left: 1rem; font-size: 9rem; color: transparent; -webkit-text-stroke: 1px var(--grey-700); }
.reel__soon { margin-top: .75rem; color: var(--grey-500); }

/* ---------- 08 CTA ---------- */
.cta { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: var(--section) var(--gutter); }
.cta__bg { transform-origin: 50% 80%; }
.cta__portrait {
  position: absolute; z-index: 1; right: 4vw; bottom: 0;
  height: 82%; width: auto; max-width: none;
  filter: grayscale(1) contrast(1.05) brightness(.85);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.cta__body { position: relative; z-index: 5; }
.cta__title { font-size: var(--fs-mega); margin-bottom: 2rem; }
.cta__title .line:last-child { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.cta__copy { color: var(--bone-2); max-width: 34rem; margin-bottom: 2.5rem; font-size: var(--fs-m); line-height: 1.35; }

/* ---------- 09 Footer ---------- */
.footer { position: relative; padding: var(--section) var(--gutter) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 2rem; margin-bottom: 4rem; }
.footer__cols ul { display: grid; gap: .5rem; }
.footer__clock { color: var(--grey-500); }
.footer__legal { color: var(--grey-500); margin-bottom: 2rem; }
.footer__mark { font-size: 15.5vw; line-height: .75; white-space: nowrap; margin: 0 calc(var(--gutter) * -1); text-align: center; transform: translateY(12%); }

/* ---------- Reveal helpers (JS sets initial state) ---------- */
.no-js .reveal-up { opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { min-height: 26rem; }
  .biz__link { grid-template-columns: 2.5rem 1fr 2rem; }
  .biz__cat { grid-column: 2; grid-row: 2; text-align: left; margin-top: -.75rem; }
  .biz__arrow, .biz__soon { grid-column: 3; grid-row: 1; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cta__portrait { opacity: .45; right: -10vw; }
}

@media (max-width: 640px) {
  .nav { gap: 1rem; }
  .nav__links, .nav .pill { display: none; }
  .nav__menu { display: block; mix-blend-mode: difference; }

  .hero { height: 180vh; }
  .hero__title { top: 15svh; font-size: clamp(3.5rem, 19vw, 7rem); }
  .hero__portrait { height: 72svh; }
  .hero__meta { right: var(--gutter); max-width: none; }
  .hero__sub { font-size: .95rem; }
  .hero__cue { display: none; }
  .hero__quote { top: 40%; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: clamp(3.25rem, 17vw, 5rem); }
  .stat__label { font-size: .85rem; }

  .mission { height: 160vh; }

  /* Story turns into a vertical stack on phones */
  .story__pin { position: static; height: auto; overflow: visible; }
  .story__track { flex-direction: column; width: auto; height: auto; transform: none !important; }
  .story__intro, .chapter, .chapter--photo, .story__outro { width: auto; height: auto; padding: 4rem var(--gutter); border-left: 0; border-top: 1px solid var(--line); }
  .story__intro { border-top: 0; padding-top: var(--section); }
  .chapter { padding-top: 7rem; }
  .chapter__year { top: 1.5rem; left: var(--gutter); font-size: 5.5rem; }
  .story__outro { padding: 6rem var(--gutter); }
  .story__outro p { font-size: 3.5rem; white-space: normal; text-align: center; }
  .story__progress, .story__hint { display: none; }

  .biz__name { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .biz__desc { display: block; overflow: hidden; max-height: 0; color: var(--bone-2); font-size: .95rem; transition: max-height .6s var(--ease), padding .6s var(--ease); }
  .biz__row.is-open .biz__desc { max-height: 12rem; padding-bottom: 1.5rem; }
  .biz__link::before { display: none; }
  a.biz__link:hover { color: inherit; }
  a.biz__link:hover .biz__name { transform: none; }

  .reels { scroll-snap-type: x mandatory; }
  .reel { width: 72vw; scroll-snap-align: center; }

  .cta { align-items: flex-start; padding-top: 22svh; }
  .cta__title { font-size: clamp(3.75rem, 20vw, 7rem); }
  .cta__portrait { height: 40%; right: -14vw; opacity: .45; }
  .pill--xl { width: 100%; justify-content: center; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__top { order: -1; }
}

/* Taller pin sections only make sense when motion is on */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero, .mission { height: auto; }
  .pin__inner { position: relative; }
  .hero .pin__inner { height: 100vh; }
  .mission .pin__inner { height: auto; min-height: 100vh; }
  .mission__body { position: relative; padding: var(--section) var(--gutter); }
  .mission__text .word, .mission__last { opacity: 1; }
  .hero__quote { display: none; }
  .story__pin { position: static; height: auto; overflow: visible; }
  .story__track { flex-direction: column; width: auto; height: auto; }
  .story__intro, .chapter, .chapter--photo, .story__outro { width: auto; border-left: 0; border-top: 1px solid var(--line); }
  .story__progress { display: none; }
  .marquee__track { animation: none; }
  .grain, .cursor { display: none; }
}
