/* =========================================================
   MILES TALENT — Design system (dark)
   Black · White · Red. Tight grotesk (Inter Tight),
   serif italic reserved for the "miles" wordmark.
   ========================================================= */

:root {
  /* Color */
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --text: #F5F5F3;
  --text-2: rgba(245, 245, 243, 0.7);
  --text-3: rgba(245, 245, 243, 0.45);
  --red: #EE3124;
  --red-dark: #C7241A;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.6);

  /* Type */
  --sans: "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lede: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
  --fs-h2: clamp(2.4rem, 1.4rem + 4vw, 5.5rem);
  --fs-h2-xl: clamp(2.6rem, 1.2rem + 5.4vw, 7rem);
  --fs-display: clamp(3.2rem, 0.8rem + 7.6vw, 9.5rem);

  /* Space & shape */
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.75rem);
  --section: clamp(6rem, 4rem + 7vw, 11rem);
  --maxw: 1440px;
  --radius: clamp(16px, 1.6vw, 28px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.red { color: var(--red); }
.muted { color: var(--text-3); }
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-3);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.eyebrow--sub { margin: clamp(4rem, 8vw, 7rem) 0 1.75rem; }

.h2 { font-weight: 500; font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.045em; }
.h2--xl { font-size: var(--fs-h2-xl); }
.lede { font-size: var(--fs-lede); line-height: 1.35; letter-spacing: -0.015em; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: -0.01em;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--text); color: var(--bg); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: var(--red); color: #fff; }
.btn--outline { border-color: rgba(255, 255, 255, .3); color: var(--text); }
.btn--outline:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.btn--sm { padding: .55rem 1.1rem; font-size: .875rem; }

/* ---------- Wordmark ---------- */
.wordmark { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.wordmark em { font-style: italic; font-weight: 500; }
.wordmark .dot { color: var(--red); }

/* =========================================================
   NAV — floating pill
   ========================================================= */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter); pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 2rem;
  width: min(760px, 100%);
  padding: .45rem .45rem .45rem 1.25rem;
  background: rgba(20, 20, 20, .72);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; font-size: .9rem; font-weight: 500; }
.nav__links a { color: var(--text-3); transition: color .25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__toggle { display: none; }

.mobile-menu {
  pointer-events: auto; width: 100%; margin-top: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); padding: .75rem 1.25rem 1.25rem;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a:not(.btn) { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 1.25rem; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__pill { justify-content: space-between; padding: .35rem .35rem .35rem 1.1rem; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 42px; height: 42px; padding: 0 12px; border-radius: 50%;
    background: var(--text); border: 0; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--bg); transition: transform .35s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(7rem, 5rem + 4vw, 8.5rem); padding-bottom: 0; }
.hero__title {
  font-weight: 500; font-size: var(--fs-display); line-height: .92; letter-spacing: -0.055em;
  margin-bottom: clamp(1.5rem, 2.4vw, 2.25rem);
}
.hero__line { display: block; }

.hero__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}
.hero__tag { font-size: var(--fs-sm); font-weight: 500; color: var(--text-3); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Photo: pinned while scrolling, grows from a rounded card to full screen.
   main.js sets --ct/--cs/--cb (clip insets), --r (radius) and --zoom from scroll progress. */
.hero__band {
  --ct: 0px; --cs: var(--gutter); --cb: 40vh; --r: var(--radius); --zoom: 1.12;
  position: relative; height: 230vh;
}
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__band-inner {
  position: absolute; inset: 0; isolation: isolate; background: var(--bg);
  clip-path: inset(var(--ct) var(--cs) var(--cb) var(--cs) round var(--r));
  will-change: clip-path;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; transform: scale(var(--zoom)); will-change: transform; }
/* Abstract light: large blurred orbs drifting on independent loops */
.hero__abstract { background: radial-gradient(120% 120% at 70% 30%, #1a1a1a 0%, #0b0b0b 60%); }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform;
  mix-blend-mode: screen;
}
.orb--red   { width: 52vmax; height: 52vmax; left: 8%;  top: 18%; background: radial-gradient(circle, #ff4636 0%, #e0261a 45%, rgba(224,38,26,0) 70%); opacity: 1; animation: orbA 9s ease-in-out infinite alternate, morph 7s ease-in-out infinite; }
.orb--white { width: 34vmax; height: 34vmax; left: 52%; top: -12%; background: radial-gradient(circle, rgba(255,250,240,.95) 0%, rgba(255,250,240,.35) 45%, rgba(255,250,240,0) 70%); animation: orbB 11s ease-in-out infinite alternate, morph 9s ease-in-out infinite reverse; }
.orb--ember { width: 30vmax; height: 30vmax; left: 62%; top: 45%; background: radial-gradient(circle, #ff8a5c 0%, rgba(238,49,36,.5) 45%, rgba(238,49,36,0) 70%); animation: orbC 7s ease-in-out infinite alternate, morph 6s ease-in-out infinite; }
.orb--smoke { width: 46vmax; height: 46vmax; left: 25%; top: 40%; background: radial-gradient(circle, rgba(10,10,10,.95) 0%, rgba(10,10,10,0) 70%); mix-blend-mode: normal; animation: orbD 13s ease-in-out infinite alternate; }
/* a soft light streak for a sense of motion */
.streak {
  position: absolute; left: -20%; top: 38%; width: 140%; height: 18%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,240,230,.35) 50%, rgba(255,255,255,0));
  filter: blur(40px); transform: rotate(-8deg); mix-blend-mode: screen;
  animation: streak 8s ease-in-out infinite;
}
@keyframes orbA { to { transform: translate3d(28%, -18%, 0) scale(1.15); } }
@keyframes orbB { to { transform: translate3d(-38%, 30%, 0) scale(.85); } }
@keyframes orbC { to { transform: translate3d(-45%, -25%, 0) scale(1.25); } }
@keyframes orbD { to { transform: translate3d(30%, -30%, 0) scale(1.1); } }
@keyframes morph {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  33%      { border-radius: 62% 38% 55% 45% / 45% 60% 40% 55%; }
  66%      { border-radius: 40% 60% 42% 58% / 58% 42% 60% 40%; }
}
/* glow that follows the cursor / finger (main.js sets --mx, --my in px) */
.orb--cursor {
  z-index: -1; width: 30vmax; height: 30vmax; left: 0; top: 0; opacity: 0;
  background: radial-gradient(circle, rgba(255,70,50,1) 0%, rgba(238,49,36,.6) 38%, rgba(238,49,36,0) 70%);
  filter: blur(40px); pointer-events: none;
  transform: translate3d(calc(var(--mx, 50vw) - 50%), calc(var(--my, 50vh) - 50%), 0) scale(var(--gs, 1));
  animation: morph 5s ease-in-out infinite;
}
@keyframes streak {
  0%, 100% { transform: translate3d(-15%, 10%, 0) rotate(-8deg); opacity: .2; }
  50%      { transform: translate3d(15%, -10%, 0) rotate(-4deg); opacity: .7; }
}

/* warm wash + vignette + film grain */
.hero__film {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 60%, rgba(10,8,4,.4) 100%),
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.05));
}
.hero__film::after {
  content: ""; position: absolute; inset: -50%; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%271.1%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-2%, 1.5%); } 50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); } 100% { transform: translate(2%, 2%); }
}
/* overlay follows the visible card */
.hero__overlay {
  position: absolute; z-index: 1; top: var(--ct); right: var(--cs); bottom: var(--cb); left: var(--cs);
  display: flex; align-items: flex-end; justify-content: flex-end; text-align: right;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0) 45%, rgba(10,10,10,.72) 100%);
  border-radius: var(--r);
}
.hero__overlay-text {
  color: #fff; font-weight: 500;
  font-size: clamp(1.75rem, 0.9rem + 3.2vw, 4.25rem); line-height: 1; letter-spacing: -0.045em;
  max-width: 18ch; text-shadow: 0 2px 30px rgba(0,0,0,.3);
}

@media (max-width: 640px) { .hero__band { height: 190vh; } }
@media (prefers-reduced-motion: reduce) {
  .hero__band { height: auto; --cs: 0px; --cb: 0px; --r: 0px; --zoom: 1; }
  .hero__sticky { position: relative; height: 75vh; }
}


/* =========================================================
   STATEMENT — words light up on scroll
   ========================================================= */
.statement { padding: clamp(3rem, 6vw, 6rem) 0 0; }
.statement__panel { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.statement__kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); margin-bottom: 2rem;
}
.statement__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.statement__text {
  font-weight: 500; font-size: clamp(2rem, 1rem + 4vw, 5.25rem);
  line-height: 1.02; letter-spacing: -0.05em; max-width: 20ch;
}
.statement__text .w { color: rgba(255, 255, 255, .14); transition: color .35s ease; }
.statement__text .w.is-lit { color: var(--text); }
.statement__text .w.is-lit.is-key { color: var(--red); }

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: 1.5rem; justify-items: start; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-head .h2 { max-width: 15ch; }

/* =========================================================
   EXPERTISE
   ========================================================= */
.stage-list { border-top: 1px solid var(--line-strong); }
.stage-list li {
  display: grid; grid-template-columns: 4rem 1fr; align-items: baseline;
  font-weight: 500; font-size: clamp(1.5rem, 1rem + 2.4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.04em;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  transition: color .3s, padding-left .45s var(--ease);
}
.stage-list li:hover { color: var(--red); padding-left: .5rem; }
.stage-list .idx { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; color: var(--text-3); }

.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.discipline {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.75rem); min-height: 18rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.discipline h3 { font-weight: 500; font-size: var(--fs-h3); letter-spacing: -0.04em; line-height: 1; }
.discipline p { color: var(--text-2); font-size: var(--fs-sm); max-width: 22rem; transition: color .4s; }
.discipline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.discipline:hover p { color: rgba(10, 10, 10, .7); }

.regions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.regions ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.regions li { font-weight: 500; font-size: var(--fs-sm); padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; }

@media (max-width: 900px) {
  .disciplines { grid-template-columns: 1fr; }
  .discipline { min-height: 0; }
  .stage-list li { grid-template-columns: 2.5rem 1fr; }
}

/* =========================================================
   APPROACH — sticky stacked cards (scroll to reveal next)
   ========================================================= */
.approach { border-top: 1px solid var(--line); }
.approach__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.approach__intro { position: sticky; top: 120px; display: grid; gap: 1.5rem; justify-items: start; }
.approach__intro .h2 { max-width: 12ch; }
.approach__hint { font-size: var(--fs-sm); color: var(--text-3); }
.approach__hint span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

.stack { display: grid; gap: 0; }
.stack__card {
  position: sticky; top: calc(120px + var(--i) * 1.25rem);
  min-height: clamp(320px, 42vh, 420px);
  margin-bottom: 26vh;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: flex; flex-direction: column;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .55);
  transform-origin: 50% 0;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.stack__card:last-child { margin-bottom: 0; }
.stack__card.is-behind { transform: scale(.95); filter: brightness(.55); }
.stack__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 3rem; }
.stack__num { font-weight: 500; font-size: clamp(3.5rem, 2rem + 4vw, 6rem); line-height: .8; letter-spacing: -0.06em; color: var(--text-3); }
.stack__count { font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; }
.stack__title { font-weight: 500; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 1rem; }
.stack__body { color: var(--text-2); max-width: 34rem; }
.stack__badge {
  margin-top: 1.5rem; align-self: flex-start;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .45rem .95rem;
}

@media (max-width: 900px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__intro { position: static; }
  .stack__card { top: calc(88px + var(--i) * .9rem); margin-bottom: 18vh; }
}

/* =========================================================
   RESULTS — counters + time-to-hire race
   ========================================================= */
.results { border-top: 1px solid var(--line); padding-bottom: 0; }
/* ---------- Results dashboard ---------- */
.dash { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: .75rem; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem); min-height: 19rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .3s, transform .4s var(--ease);
}
.kpi:hover { border-color: var(--red); transform: translateY(-4px); }
.kpi__head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.kpi__label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.kpi__tag { font-size: .75rem; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; white-space: nowrap; }
.kpi__value { font-weight: 500; font-size: clamp(3rem, 1.8rem + 3vw, 5.25rem); line-height: .85; letter-spacing: -0.065em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi__value small { font-size: .3em; letter-spacing: -0.02em; color: var(--red); margin-left: .4rem; }
.kpi__note { margin-top: auto; font-size: var(--fs-xs); color: var(--text-3); }

/* sparkline bars with an average line */
.spark { position: relative; flex: 1; min-height: 9rem; display: flex; align-items: flex-end; gap: .6rem; padding-top: 1.25rem; }
.spark__bar {
  position: relative; flex: 1; height: calc(var(--v) / 30 * 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.12));
  border-radius: 10px 10px 4px 4px;
  transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s var(--ease);
}
.spark__bar--best { background: linear-gradient(180deg, var(--red), rgba(238,49,36,.25)); }
.spark__bar b { position: absolute; top: .5rem; left: 0; right: 0; text-align: center; font-size: .95rem; font-weight: 600; color: var(--bg); }
.spark__bar--best b { color: #fff; }
.spark__bar em { position: absolute; bottom: -1.5rem; left: 0; right: 0; text-align: center; font-style: normal; font-size: .7rem; color: var(--text-3); white-space: nowrap; }
.spark { margin-bottom: 0; }
.spark__avg {
  position: absolute; left: 0; right: 0; bottom: calc(var(--v) / 30 * (100% - 1.25rem)); z-index: 2;
  border-top: 1.5px dashed rgba(255,255,255,.7); opacity: 0; transition: opacity .6s 1.1s;
}
.spark__avg i { position: absolute; right: 0; top: -1.6rem; font-style: normal; font-size: .7rem; font-weight: 600; background: var(--text); color: var(--bg); padding: .15rem .45rem; border-radius: 999px; }
.dash .is-in .spark__bar { transform: scaleY(1); }
.dash .is-in .spark__bar:nth-of-type(3) { transition-delay: .12s; }
.dash .is-in .spark__bar:nth-of-type(4) { transition-delay: .24s; }
.dash .is-in .spark__avg { opacity: 1; }

/* ring gauge */
.ring { position: relative; width: min(100%, 11rem); aspect-ratio: 1; margin: .25rem auto 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: rgba(255,255,255,.08); }
.ring__fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease); }
.dash .is-in .ring__fg { stroke-dashoffset: calc(100 - var(--pct)); }
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__center b { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.ring__center small { font-size: .8rem; color: var(--text-3); }

/* checks */
.checks { display: flex; gap: .5rem; }
.checks li {
  width: 2.6rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: transparent; font-size: 1.1rem; font-weight: 700;
  transition: background .4s, color .4s, border-color .4s, transform .5s cubic-bezier(.34,1.56,.64,1);
  transform: scale(.6);
}
.checks li::before { content: "✓"; }
.dash .is-in .checks li { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1); }
.dash .is-in .checks li:nth-child(2) { transition-delay: .25s; }
.dash .is-in .checks li:nth-child(3) { transition-delay: .5s; }

/* dot matrix */
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; max-width: 11rem; }
.dots li { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .3s, transform .4s cubic-bezier(.34,1.56,.64,1); transform: scale(.5); }
.dash .is-in .dots li { background: var(--text); transform: scale(1); }
.dash .is-in .dots li:nth-child(odd) { background: var(--red); }
.dash .is-in .dots li:nth-child(2) { transition-delay: .08s; } .dash .is-in .dots li:nth-child(3) { transition-delay: .16s; }
.dash .is-in .dots li:nth-child(4) { transition-delay: .24s; } .dash .is-in .dots li:nth-child(5) { transition-delay: .32s; }
.dash .is-in .dots li:nth-child(6) { transition-delay: .40s; } .dash .is-in .dots li:nth-child(7) { transition-delay: .48s; }
.dash .is-in .dots li:nth-child(8) { transition-delay: .56s; } .dash .is-in .dots li:nth-child(9) { transition-delay: .64s; }
.dash .is-in .dots li:nth-child(10) { transition-delay: .72s; }

/* journey timeline */
.journey {
  margin-top: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.75rem) clamp(4.5rem, 6vw, 5.5rem);
}
.journey__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.journey__track { position: relative; height: 6px; margin: 0 4.5rem 0 .5rem; border-radius: 999px; background: rgba(255,255,255,.08); }
.journey__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(238,49,36,.25), var(--red)); transform: scaleX(0); transform-origin: left; }
.journey__runner {
  position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 6px rgba(238,49,36,.25), 0 0 24px rgba(238,49,36,.8);
}
.journey.is-in .journey__fill { animation: journeyFill 6s var(--ease) infinite; }
.journey.is-in .journey__runner { animation: journeyRun 6s var(--ease) infinite; }
@keyframes journeyFill { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
@keyframes journeyRun { 0% { left: 0; } 80%, 100% { left: 100%; } }
.journey__stop { position: absolute; left: calc(var(--at) * 1%); top: 50%; transform: translateX(-50%); }
.journey__stop::before {
  content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--text);
}
.journey__stop b, .journey__stop span { display: block; white-space: nowrap; text-align: center; }
.journey__stop b { margin-top: 1.4rem; font-size: var(--fs-sm); font-weight: 600; }
.journey__stop span { font-size: var(--fs-xs); color: var(--text-3); }
.journey__stop:first-of-type { transform: none; }
.journey__stop:first-of-type b, .journey__stop:first-of-type span { text-align: left; }
.journey__stop:first-of-type::before { left: 0; margin-left: -6px; }

@media (max-width: 1100px) { .dash { grid-template-columns: 1fr 1fr; } .kpi--wide { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .journey { padding-bottom: 1.75rem; }
  .journey__track { height: auto; background: none; margin: 0; display: grid; gap: 1.25rem; padding-left: 1.75rem; border-left: 2px solid rgba(255,255,255,.1); border-radius: 0; }
  .journey__fill, .journey__runner { display: none; }
  .journey__stop, .journey__stop:first-of-type { position: relative; left: auto; top: auto; transform: none; }
  .journey__stop::before, .journey__stop:first-of-type::before { left: -2.2rem; top: .3rem; margin-left: 0; }
  .journey__stop b { margin-top: 0; }
  .journey__stop b, .journey__stop span, .journey__stop:first-of-type b, .journey__stop:first-of-type span { text-align: left; }
}
@media (max-width: 520px) { .dash { grid-template-columns: 1fr; } .kpi { min-height: 0; } }

.race {
  margin-top: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.75rem);
}
.race__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.race__title { font-weight: 500; font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); letter-spacing: -0.03em; }
.race__legend { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-xs); color: var(--text-3); }
.race__legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.race__rows { display: grid; gap: 1.1rem; }
.race__row { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr 6.5rem; align-items: center; gap: 1.25rem; }
.race__role { font-weight: 500; font-size: var(--fs-sm); }
.race__track { position: relative; height: 44px; border-radius: 999px; background: rgba(255,255,255,.05); }
.race__bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(var(--days) / 30 * 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.85));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease);
}
.race__pin {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%) scale(0);
  background: var(--red); color: #fff; font-size: .75rem; font-weight: 600;
  padding: .35rem .7rem; border-radius: 999px; white-space: nowrap;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.race__pin::before { content: "✓ "; }
.race__days { font-size: var(--fs-sm); color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.race__days b { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.04em; color: var(--text); }
.race__axis { margin-top: .9rem; }
.race__ticks { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); border-top: 1px dashed var(--line); padding-top: .6rem; }
.race.is-in .race__bar { transform: scaleX(1); }
.race.is-in .race__pin { transform: translateY(-50%) scale(1); transition-delay: 1.5s; }
.race.is-in .race__row:nth-child(2) .race__bar { transition-delay: .15s; }
.race.is-in .race__row:nth-child(3) .race__bar { transition-delay: .3s; }
.race.is-in .race__row:nth-child(2) .race__pin { transition-delay: 1.35s; }
.race.is-in .race__row:nth-child(3) .race__pin { transition-delay: 1.8s; }

.philosophy {
  padding: clamp(4rem, 9vw, 8rem) 0;
  font-weight: 500; font-size: clamp(1.9rem, 1rem + 3.2vw, 4.25rem);
  line-height: 1.02; letter-spacing: -0.045em; max-width: 20ch;
}

@media (max-width: 700px) {
  .race__row { grid-template-columns: 1fr auto; row-gap: .5rem; }
  .race__role { grid-column: 1; }
  .race__days { grid-column: 2; grid-row: 1; }
  .race__track { grid-column: 1 / -1; }
  .race__axis > span:first-child, .race__axis > span:last-child { display: none; }
  .race__ticks { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
}

/* ---------- Client marquee ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0; overflow: hidden; }
.clients__label { padding: 0 var(--gutter); max-width: var(--maxw); margin: 0 auto 1.75rem; display: flex; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* Logos: one translucent white treatment for every client.
   main.js removes each file's background and redraws the mark in white (img.is-white). */
.marquee__group { display: flex; flex: none; align-items: center; gap: clamp(3rem, 6vw, 5.5rem); padding-right: clamp(3rem, 6vw, 5.5rem); }
.marquee__group .logo {
  flex: none; height: clamp(26px, 2.6vw, 38px);
  display: flex; align-items: center; justify-content: center;
  opacity: .55; transition: opacity .3s var(--ease);
}
.marquee__group .logo:hover { opacity: 1; }
.marquee__group .logo img { height: 100%; width: auto; max-width: none; display: block; opacity: 0; transition: opacity .4s; }
.marquee__group .logo img.is-white { opacity: 1; }
.marquee__group .logo--text {
  font-weight: 600; font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); letter-spacing: -0.03em; color: #fff; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   FOUNDERS
   ========================================================= */
.founders__intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
.founders__intro .eyebrow { grid-column: 1 / -1; }
.founders__intro .h2 { grid-column: 1 / span 9; }
.founders__copy { grid-column: 7 / -1; display: grid; gap: 1.1rem; color: var(--text-2); margin-top: 1.5rem; }

.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); }
.founder__photo { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--surface); }
.founder__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.03); transition: transform 1.2s var(--ease);
}
.founder:hover .founder__photo img { transform: scale(1); }
.founder__info { padding: 1.5rem .25rem 0; }
.founder__name { font-weight: 500; font-size: clamp(2.2rem, 1.3rem + 3vw, 4.25rem); line-height: .95; letter-spacing: -0.05em; }
.founder__role { margin-top: .75rem; font-size: var(--fs-sm); color: var(--text-3); }
.founder__bio { margin-top: 1.1rem; color: var(--text-2); max-width: 30rem; }
.founder__links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.founder__mail { font-size: var(--fs-sm); color: var(--text-2); border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.founder__mail:hover { color: var(--red); border-color: var(--red); }

@media (max-width: 900px) {
  .founders__intro .h2, .founders__copy { grid-column: 1 / -1; }
  .founders__copy { margin-top: 0; }
}
@media (max-width: 640px) {
  .founder-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .founder--offset { margin-top: 0; }
}

/* =========================================================
   CONTACT — surface panel with red glow
   ========================================================= */
.contact { padding: 0 var(--gutter); }
.contact__panel {
  position: relative; overflow: hidden;
  max-width: var(--maxw); margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(3.5rem, 8vw, 7.5rem) clamp(1.5rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}
.contact__panel::before {
  content: ""; position: absolute; right: -15%; top: -40%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(238, 49, 36, .5), rgba(238, 49, 36, 0) 65%);
  pointer-events: none;
}
.contact__panel > * { position: relative; }
.contact__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem; align-items: end; }
.contact__title { font-weight: 500; font-size: var(--fs-h2-xl); line-height: .95; letter-spacing: -0.055em; }
.contact__copy { color: var(--text-2); font-size: var(--fs-sm); max-width: 26rem; }

.contact__options { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.contact__options li { border-bottom: 1px solid var(--line); }
.contact__options li:last-child { border-bottom: 0; }
.contact__options a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: clamp(1.25rem, 2.2vw, 1.9rem) 0;
  transition: color .3s var(--ease), padding-left .45s var(--ease);
}
.opt__label { font-weight: 500; font-size: clamp(1.5rem, 1rem + 2.2vw, 3.25rem); letter-spacing: -0.045em; line-height: 1.05; }
.opt__arrow {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: clamp(2.75rem, 4vw, 3.75rem); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); font-size: 1.25rem;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.contact__options a:hover { color: var(--red); padding-left: .75rem; }
.contact__options a:hover .opt__arrow { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-8deg); }

@media (max-width: 900px) { .contact__head { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: clamp(5rem, 9vw, 8rem) 0 0; }
.footer__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 2fr) minmax(0, 3fr); gap: 3rem var(--gutter); }
.footer__brand .wordmark { font-size: 1.6rem; }
.footer__tagline {
  margin: 1.5rem 0 1.25rem; font-weight: 500; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem);
  line-height: 1; letter-spacing: -0.045em; color: var(--text-3); max-width: 16ch;
}
.footer__tagline span { color: var(--text); }
.footer__desc { color: var(--text-3); font-size: var(--fs-sm); max-width: 26rem; }
.footer__col { display: flex; flex-direction: column; gap: .5rem; font-size: var(--fs-sm); }
.footer__col a { width: fit-content; color: var(--text-2); transition: color .25s; }
.footer__col a:hover { color: var(--red); }
.footer__label { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: .4rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: clamp(4rem, 8vw, 6rem); padding: 1.5rem 0 2rem; border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-3);
}

@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

/* =========================================================
   MOTION
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .statement__text .w { color: var(--text); }
  .race__bar { transform: none; }
  .race__pin { transform: translateY(-50%); }
}


/* =========================================================
   HERO — dynamic layer
   1) intro on load  2) 3D tilt that flattens while it grows (main.js: --tilt, --sc)
   3) glows shift with the mouse at different depths (--px, --py)  4) words rise in
   ========================================================= */
.hero__sticky { perspective: 1400px; }
.hero__band-inner {
  transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1));
  transform-origin: 50% 0%;
  animation: heroIntro 1.4s cubic-bezier(.16, 1, .3, 1) .15s both;
}
@keyframes heroIntro {
  from { opacity: 0; translate: 0 14vh; }
  to   { opacity: 1; translate: 0 0; }
}
.hero__abstract { animation: bloom 2.2s cubic-bezier(.16, 1, .3, 1) .35s both; }
@keyframes bloom {
  from { scale: .55; opacity: 0; filter: blur(30px) saturate(.4); }
  to   { scale: 1;   opacity: 1; filter: none; }
}
/* mouse depth: each glow moves a different amount (uses the separate `translate` property so it stacks with the drift animations) */
.orb, .streak { transition: translate .9s cubic-bezier(.16, 1, .3, 1); }
.orb--red   { translate: calc(var(--px, 0) * -60px) calc(var(--py, 0) * -40px); }
.orb--white { translate: calc(var(--px, 0) * 90px)  calc(var(--py, 0) * 70px); }
.orb--ember { translate: calc(var(--px, 0) * -130px) calc(var(--py, 0) * 90px); }
.orb--smoke { translate: calc(var(--px, 0) * 40px)  calc(var(--py, 0) * -30px); }
.streak     { translate: calc(var(--px, 0) * 120px) calc(var(--py, 0) * -60px); }
/* overlay words rise in, then drift up a little as the card grows */
.hero__overlay-text { translate: 0 calc(var(--lift, 0) * -1px); }
.hero__overlay-text .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero__overlay-text .hw > span { display: inline-block; transform: translateY(110%); animation: wordUp .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.9s + var(--i) * 55ms); }
@keyframes wordUp { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__band-inner { transform: none; }
  .hero__overlay-text .hw > span { transform: none; }
}

/* =========================================================
   HERO — talent story (canvas: js/hero-talent.js) + process steps
   ========================================================= */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero__abstract { opacity: .55; }
.hero__phases {
  position: absolute; bottom: clamp(1.5rem, 4vw, 3.5rem); left: clamp(1.5rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left;
}
.hero__phases li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 500; color: rgba(255, 255, 255, .6);
  padding: .45rem .85rem; border-radius: 999px;
  background: rgba(10, 10, 10, .4); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.hero__phases li b { font-weight: 600; color: rgba(255, 255, 255, .45); transition: color .5s; }
.hero__phases li.is-active { background: #fff; color: #0a0a0a; border-color: #fff; transform: translateY(-2px); }
/* only the current step is shown, to keep the picture calm */
.hero__phases li:not(.is-active) { display: none; }
.hero__phases li.is-active b { color: var(--red); }
@media (max-width: 640px) {
  .hero__phases { bottom: auto; top: 5.25rem; }
}

/* the moving "you are here" dot is hidden on phones, so hide its legend too */
@media (max-width: 760px) { .journey .race__legend { display: none; } }

/* when the 3D scene is running, the glows become a soft backdrop */
.hero__band-inner:has(.hero__canvas.is-3d) .hero__abstract { opacity: .4; }


/* =========================================================
   UPDATES — positioning, expertise, metrics, logos, founders
   ========================================================= */

/* Buttons: a calmer hover for every red button */
.btn--red:hover { background: var(--red-dark); color: #fff; }

/* Hero: positioning statement above the headline */
.hero__position {
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
  padding: .5rem 1rem .5rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: clamp(.95rem, .85rem + .35vw, 1.15rem); font-weight: 500; letter-spacing: -0.01em; color: var(--text);
  background: rgba(255, 255, 255, .03);
}
.hero__position::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(238, 49, 36, .18);
}

/* Who we work with: no headline, tighter head */
.section-head--compact { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* Expertise: four equal disciplines */
.disciplines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); } .discipline { min-height: 14rem; } }
@media (max-width: 640px)  { .disciplines { grid-template-columns: 1fr; } .discipline { min-height: 0; } }

/* Geographic coverage: larger and centered */
.regions { flex-direction: column; justify-content: center; text-align: center; gap: 1.25rem; margin-top: clamp(3.5rem, 7vw, 6rem); }
.regions ul { justify-content: center; gap: .75rem; }
.regions li { font-size: clamp(1.1rem, .95rem + .6vw, 1.5rem); letter-spacing: -0.02em; padding: .8rem 1.6rem; }

/* Results: three cards */
.dash { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .dash { grid-template-columns: 1fr; } }

/* Offer acceptance meter */
.meter { margin-top: auto; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter__fill {
  display: block; height: 100%; width: calc(var(--pct) * 1%); border-radius: inherit;
  background: linear-gradient(90deg, rgba(238, 49, 36, .35), var(--red));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s;
}
.dash .is-in .meter__fill { transform: scaleX(1); }

/* Client logos: sized by visual weight (main.js sets --f per logo) so wide and compact marks look balanced */
.marquee__group { --logo-h: clamp(26px, 2.5vw, 36px); }
.marquee__group .logo { height: calc(var(--logo-h) * 1.3); }
.marquee__group .logo img { height: calc(var(--logo-h) * var(--f, 1)); width: auto; object-fit: contain; }

/* =========================================================
   Founders — biography revealed over the portrait
   ========================================================= */
.founders__hint { grid-column: 1 / -1; font-size: var(--fs-sm); color: var(--text-3); }
.founders__hint-touch { display: none; }
@media (hover: none) { .founders__hint-desktop { display: none; } .founders__hint-touch { display: inline; } }

.founder__photo { position: relative; cursor: pointer; isolation: isolate; outline: none; }
.founder__photo:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--red); }
.founder__photo img { transition: transform 1.2s var(--ease), filter .7s var(--ease); }

.founder__bio {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, .86) 45%, rgba(10, 10, 10, .94) 100%);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.founder__bio-inner {
  width: 100%; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(4rem, 6vw, 5rem);
  color: #fff; font-size: clamp(.9rem, .82rem + .28vw, 1.02rem); line-height: 1.55; letter-spacing: -0.005em;
  transform: translateY(18px); transition: transform .7s var(--ease);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.founder__bio-inner p + p { margin-top: .8em; }
.founder__bio-kicker {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.founder__bio-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* toggle chip (same on both portraits) */
.founder__toggle {
  position: absolute; left: clamp(1rem, 2vw, 1.5rem); bottom: clamp(1rem, 2vw, 1.5rem); z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .55rem .5rem 1rem; border-radius: 999px;
  background: rgba(10, 10, 10, .55); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: .85rem; font-weight: 500;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.founder__toggle i {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--red); font-style: normal; font-size: 1.1rem; line-height: 1;
  transition: transform .5s var(--ease);
}

/* open state: hover (mouse), focus (keyboard) or .is-open (tap) */
.founder__photo.is-open .founder__bio,
.founder__photo:focus-visible .founder__bio { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.founder__photo.is-open .founder__bio-inner,
.founder__photo:focus-visible .founder__bio-inner { transform: none; }
.founder__photo.is-open img,
.founder__photo:focus-visible img { transform: scale(1.06); filter: grayscale(1) contrast(1.05) blur(2px); }
.founder__photo.is-open .founder__toggle i,
.founder__photo:focus-visible .founder__toggle i { transform: rotate(45deg); }
.founder__photo.is-open .founder__toggle,
.founder__photo:focus-visible .founder__toggle { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); }

@media (hover: hover) and (pointer: fine) {
  .founder__photo:hover .founder__bio { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
  .founder__photo:hover .founder__bio-inner { transform: none; }
  .founder__photo:hover img { transform: scale(1.06); filter: grayscale(1) contrast(1.05) blur(2px); }
  .founder__photo:hover .founder__toggle i { transform: rotate(45deg); }
  .founder:hover .founder__photo img { transform: scale(1.06); }
}

/* override the old inline-bio rule so the overlay covers the whole portrait */
.founder__photo .founder__bio { max-width: none; margin: 0; color: #fff; }

/* touch screens: when open, the card grows to fit the whole biography (no inner scrolling) */
@media (hover: none), (max-width: 640px) {
  .founder__photo.is-open { aspect-ratio: auto; min-height: calc((100vw - 2 * var(--gutter)) * 1.25); }
  .founder__photo.is-open img { position: absolute; inset: 0; }
  .founder__photo.is-open .founder__bio { position: relative; inset: auto; min-height: inherit; }
  .founder__photo.is-open .founder__bio-inner { max-height: none; overflow: visible; padding-bottom: 5rem; }
}
@media (hover: none) and (min-width: 641px) {
  .founder__photo.is-open { min-height: 0; }
}

/* hero picture: the longer positioning statement */
.hero__overlay-text--long {
  max-width: 26ch;
  font-size: clamp(1.4rem, 0.8rem + 2.2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.04em;
}

/* hero statement: dim words light up on scroll; "entire recruitment process." turns red */
.hero__overlay-text .hw__w { color: rgba(255, 255, 255, .22); transition: color .35s ease; }
.hero__overlay-text .hw__w.is-lit { color: #fff; }
.hero__overlay-text .hw__w.is-lit.is-key { color: var(--red); }

/* =========================================================
   APPLY — application form pop-up
   ========================================================= */
.apply {
  width: min(760px, calc(100vw - 2 * var(--gutter))); max-width: none; height: min(88vh, 960px); max-height: none;
  padding: 0; margin: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.apply::backdrop { background: rgba(5, 5, 5, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.apply[open] { animation: applyIn .5s var(--ease) both; }
.apply[open]::backdrop { animation: fadeIn .4s ease both; }
@keyframes applyIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.apply__panel { display: flex; flex-direction: column; height: 100%; }
.apply__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 1.25rem; border-bottom: 1px solid var(--line);
}
.apply__title { margin-top: .6rem; font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); line-height: 1; letter-spacing: -0.045em; }
.apply__actions { display: flex; align-items: center; gap: .75rem; }
.apply__newtab { font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; transition: color .25s; }
.apply__newtab:hover { color: var(--red); }
.apply__close {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.apply__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

.apply__frame { position: relative; flex: 1; background: #fff; }
.apply__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.apply__loading { position: absolute; inset: 0; display: grid; place-items: center; color: #6e6e6e; font-size: var(--fs-sm); }
body.apply-open { overflow: hidden; }

@media (max-width: 640px) {
  .apply { width: 100vw; height: 100svh; border-radius: 0; border: 0; }
  .apply__newtab { display: none; }
}
