/* ============ Font ============ */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens ============
   Theme: dark only (client decision). One accent: brand green from the logo.
   Shape rule: interactive elements are full pills; surfaces and media use --radius. */
:root {
  --ink: #060C18;
  --ink-2: #0A1426;
  --surface: #0E1B33;
  --surface-2: #12223F;
  --line: rgba(214, 224, 240, 0.10);
  --line-strong: rgba(214, 224, 240, 0.20);
  --text: #EDF1F7;
  --soft: #C2CBD9;
  --muted: #8F9BB0;
  --green: #3DCB6C;
  --green-soft: #8EE6A8;
  --green-ink: #06190D;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --radius: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Film grain lives on a fixed, non-interactive layer only */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--green); color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--green-soft); font-weight: 300; }
.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--green); color: var(--green-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--green-soft);
}

.section-title {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 18ch;
}

/* ============ Buttons ============ */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.pill .icon { transition: transform .35s var(--ease); }
.pill:hover .icon { transform: translateX(3px); }
.pill:active { transform: scale(.98); }
.pill--solid { background: var(--green); color: var(--green-ink); }
.pill--solid:hover { background: var(--green-soft); }
.pill--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(214, 224, 240, .03); }
.pill--ghost:hover { border-color: var(--green-soft); color: var(--green-soft); }
.pill--small { height: 40px; padding: 0 18px; font-size: 14px; }
.pill--wide { width: 100%; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(6, 12, 24, .74);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; gap: 40px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__tile { width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.brand__name { font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.brand__name span { font-weight: 400; color: var(--muted); }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a { font-size: 14px; color: var(--soft); position: relative; padding: 6px 0; transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green-soft);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  padding: 112px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; padding: 10px 0; }
.mobile-menu__foot { color: var(--muted); font-size: 14px; line-height: 1.8; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 96px 0 56px; overflow: hidden; isolation: isolate;
}
.hero__aura {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 85% 20%, rgba(41, 140, 74, .30), transparent 70%),
    radial-gradient(ellipse 60% 60% at 5% 100%, rgba(22, 52, 112, .55), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.hero__eyebrow { margin-bottom: 24px; }
.hero__title {
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.06; font-weight: 500; letter-spacing: -0.04em;
  max-width: 22ch; text-wrap: balance;
}
.hero__lead { margin-top: 28px; max-width: 36ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); line-height: 1.55; }
.hero__actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__frame {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 76vh; margin-left: auto;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -30px rgba(2, 6, 14, .8);
}
.hero__frame img { width: 100%; height: 112%; object-fit: cover; object-position: center 22%; }
.hero__caption {
  position: absolute; left: -28px; bottom: 32px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(10, 20, 38, .72); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: 13px; color: var(--soft);
}
.hero__caption strong { font-size: 15px; color: var(--text); font-weight: 600; }

/* ============ Manifesto ============ */
.manifesto { padding: clamp(120px, 20vh, 220px) 0 clamp(80px, 12vh, 140px); }
.manifesto__text {
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.14; font-weight: 500; letter-spacing: -0.03em;
  max-width: 24ch; text-wrap: balance;
}

/* ============ Numbers ============ */
.numbers { padding: 0 0 clamp(40px, 6vh, 80px); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.stat__value {
  display: block; font-size: clamp(52px, 6vw, 96px); font-weight: 300; line-height: 1;
  letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 16px; max-width: 24ch; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ============ Track (horizontal pan) ============ */
.track { position: relative; background: var(--ink); }
.track__pin {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 96px 0 48px;
}
.track__rail { display: flex; gap: 24px; align-items: stretch; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.track__intro { width: min(460px, 80vw); flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding-right: 56px; }
.track__intro .section-title { margin: 20px 0 24px; font-size: clamp(34px, 4vw, 58px); }
.track__note { color: var(--muted); font-size: 15px; max-width: 40ch; }
.track__cards { display: flex; gap: 20px; align-items: stretch; }

.case {
  width: clamp(300px, 28vw, 400px); flex-shrink: 0; min-height: min(560px, 66vh);
  display: flex; flex-direction: column;
  padding: 28px 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .5s var(--ease);
}
.case--tint { background: linear-gradient(165deg, #123A2A 0%, #0E1F3A 62%); }
.case:hover { box-shadow: inset 0 0 0 1px rgba(142, 230, 168, .45); }
.case__head { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.case__seg { color: var(--green-soft); font-weight: 600; max-width: 24ch; line-height: 1.45; }
.case__year { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.case__metric {
  margin-top: auto; padding-top: 40px;
  font-size: clamp(76px, 7vw, 120px); font-weight: 300; letter-spacing: -0.06em; line-height: .92; color: var(--text);
}
.case__metric small { font-size: .36em; letter-spacing: -0.02em; margin-left: 6px; color: var(--soft); }
.case__metric--word { font-size: clamp(46px, 4.2vw, 68px); letter-spacing: -0.04em; line-height: 1; }
.case__metric-label { margin-top: 14px; font-size: 14px; color: var(--soft); max-width: 32ch; line-height: 1.5; }
.case__title { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.case__desc { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Scroll-position indicator for the horizontal pan (no filled track behind it) */
.track__progress { margin: 40px var(--gutter) 0; height: 2px; position: relative; }
.track__progress span { position: absolute; inset: 0; background: var(--green-soft); transform-origin: left; transform: scaleX(0); border-radius: 2px; }

/* ============ About ============ */
.about { padding: clamp(120px, 18vh, 200px) 0; }
.about__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.about__text { margin-top: 32px; color: var(--soft); font-size: 18px; max-width: 58ch; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__quote { margin-top: 48px; }
.about__quote blockquote {
  font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; font-weight: 400; letter-spacing: -0.02em; color: var(--text); max-width: 30ch;
}
.about__quote figcaption { margin-top: 22px; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.about__quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.about__quote figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.about__side { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; padding-top: 8px; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.credential {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.credential--wide { grid-column: 1 / -1; background: linear-gradient(140deg, #123A2A 0%, #0E1F3A 70%); }
.credential__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-soft); font-weight: 600; }
.credential__value { font-size: 15px; line-height: 1.45; color: var(--text); }
.credential--wide .credential__value { font-size: 20px; letter-spacing: -0.01em; }

/* ============ Areas (bento) ============ */
.areas { padding: clamp(80px, 12vh, 140px) 0 clamp(120px, 18vh, 200px); }
.areas__title { margin-bottom: clamp(40px, 6vh, 64px); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell {
  display: flex; flex-direction: column; min-height: 280px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.cell:hover { box-shadow: inset 0 0 0 1px rgba(142, 230, 168, .4); transform: translateY(-3px); }
.cell--a { grid-column: span 2; background: linear-gradient(150deg, #155134 0%, #0F2A3D 55%, #0E1B33 100%); }
.cell--b { background: linear-gradient(180deg, #16294A 0%, #0E1B33 100%); }
.cell--c { grid-column: span 2; background: radial-gradient(ellipse 80% 90% at 100% 100%, rgba(61, 203, 108, .22), transparent 70%), var(--surface-2); }
.cell__title { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; max-width: 18ch; }
.cell--a .cell__title, .cell--c .cell__title { font-size: clamp(24px, 2.2vw, 34px); }
.cell__desc { margin-top: 12px; color: var(--soft); font-size: 15px; max-width: 46ch; }
.cell__proof { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--muted); }
.cell__proof strong { display: block; font-size: clamp(34px, 3vw, 48px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; color: var(--green-soft); margin-bottom: 4px; }

/* ============ Method ============ */
.method {
  padding: clamp(120px, 18vh, 200px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(41, 140, 74, .20), transparent 70%),
    var(--ink-2);
}
.method__line { margin-top: clamp(56px, 9vh, 96px); height: 1px; background: var(--line-strong); position: relative; }
.method__line span { position: absolute; inset: 0; background: var(--green-soft); transform-origin: left; transform: scaleX(1); }
.method__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { padding-top: 40px; position: relative; }
/* Timeline marker: marks a real point on the sequence line */
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-soft); box-shadow: 0 0 0 4px var(--ink-2);
  transition: background .4s var(--ease);
}
.motion .step::before { background: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--green-soft), 0 0 0 4px var(--ink-2); }
.motion .step.is-active::before { background: var(--green-soft); }
.step__title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.step__desc { margin-top: 12px; color: var(--soft); font-size: 15.5px; }
.step__out { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ============ Contact ============ */
.contact { position: relative; padding: clamp(120px, 18vh, 200px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact__title { margin: 20px 0 24px; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; font-weight: 500; letter-spacing: -0.04em; max-width: 12ch; text-wrap: balance; }
.contact__lead { color: var(--soft); font-size: 18px; max-width: 44ch; }
.contact__direct { margin-top: 48px; display: grid; gap: 22px; }
.contact__direct dt { font-size: 13px; color: var(--muted); }
.contact__direct dd { margin-top: 2px; font-size: 19px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact__direct a { transition: color .3s; }
.contact__direct a:hover { color: var(--green-soft); }

.form {
  padding: clamp(24px, 3.2vw, 44px); border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(2, 6, 14, .8);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--soft); }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text);
  background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 14px; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238EE6A8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-soft); box-shadow: 0 0 0 3px rgba(142, 230, 168, .18); }
.field__error { display: none; font-size: 13px; color: #FFA8A8; }
.field.is-invalid input { border-color: #FF8A8A; }
.field.is-invalid .field__error { display: block; }
.form .pill--wide { margin-top: 8px; height: 56px; font-size: 16px; }
.form__note { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.form__feedback { margin-top: 8px; font-size: 14.5px; color: var(--green-soft); text-align: center; }
.form__feedback:empty { display: none; }
.form__feedback a { text-decoration: underline; }

/* ============ Footer ============ */
.footer { padding: clamp(80px, 12vh, 128px) 0 40px; background: var(--ink); border-top: 1px solid var(--line); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: 64px; }
.footer__claim { font-size: clamp(40px, 6vw, 96px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; max-width: 14ch; }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.footer__cols nav, .footer__cols > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.footer__cols a:not(.brand) { color: var(--soft); font-size: 15px; transition: color .3s; overflow-wrap: anywhere; }
.footer__cols a:not(.brand):hover { color: var(--green-soft); }
.footer__label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.footer__text { margin-top: 20px; color: var(--muted); font-size: 15px; max-width: 36ch; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__top-link:hover { color: var(--green-soft); }

/* ============ Motion initial states (only with JS + motion allowed) ============ */
.motion .hero__eyebrow, .motion .hero__lead, .motion .hero__actions, .motion .hero__caption { opacity: 0; }
.motion .hero__title { visibility: hidden; }
.motion .hero__frame { clip-path: inset(100% 0 0 0 round var(--radius)); }

/* SplitText line masks: keep descenders and overhangs visible */
.line-mask { padding: 0 .08em .14em 0; margin: 0 -.08em -.14em 0; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav__links { gap: 22px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell--a, .cell--c { grid-column: span 2; }
  .method__steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%;
    background: transparent; cursor: pointer; padding: 0 12px; position: relative; z-index: 110;
  }
  .nav__toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .hero { min-height: 0; padding: 100px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 440px; }
  .hero__frame { max-height: none; margin-left: 0; }
  .hero__caption { left: 16px; bottom: 16px; }
  .hero__actions .pill { flex: 1 1 auto; }

  /* Track: swipeable carousel, intro above */
  .track__pin { min-height: 0; padding: 96px 0 72px; }
  .track__rail { display: block; width: auto; padding: 0; }
  .track__intro { width: auto; padding: 0 var(--gutter) 36px; }
  .track__cards {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  }
  .track__cards::-webkit-scrollbar { display: none; }
  .case { scroll-snap-align: start; width: 82vw; min-height: 480px; }
  .track__progress { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .stat__value { font-size: 48px; }
  .stat__label { font-size: 14px; }
  .credentials { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell--a, .cell--c { grid-column: auto; }
  .cell { min-height: 0; }
  .hero__title { font-size: 34px; }
  /* Method: vertical timeline on phones */
  .method__line { display: none; }
  .method__steps { grid-template-columns: 1fr; row-gap: 36px; margin-top: 48px; padding-left: 28px; border-left: 1px solid var(--line-strong); }
  .step { padding-top: 0; }
  .step::before { top: 9px; left: -33px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__top { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Without the scroll-driven pan (reduced motion or scripts unavailable),
   the track record becomes a native horizontal carousel on every screen size */
html:not(.motion) .track__pin { min-height: 0; padding: clamp(96px, 14vh, 160px) 0 48px; }
html:not(.motion) .track__rail { display: block; width: auto; padding: 0; }
html:not(.motion) .track__intro { width: auto; padding: 0 var(--gutter) 40px; }
html:not(.motion) .track__cards {
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter) 16px; scroll-padding: 0 var(--gutter);
  scrollbar-color: var(--line-strong) transparent;
}
html:not(.motion) .case { scroll-snap-align: start; }
html:not(.motion) .track__progress { display: none; }
