@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-wdth.woff2") format("woff2-variations"), url("/assets/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #e7e8e6;
  --ground-2: #dcdedb;
  --ink: #121314;
  --ink-2: #45494b;
  --rail: #c6c9c6;
  --red: #d52b1e;
  --red-deep: #b0211a;
  --red-text: #b1231a;
  --white: #ffffff;
  --band-h: clamp(52px, 5.4vw, 76px);
  --gutter: clamp(16px, 3.4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--red); color: var(--white); }

html { scrollbar-color: var(--ink) var(--ground); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--ground); }

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--red); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3, p { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

svg { width: 1em; height: 1em; flex: none; }

/* ---------- top ---------- */

.top {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2vw, 26px) var(--gutter);
}
.mark {
  font-weight: 800; font-stretch: 112%; font-size: 1.15rem; letter-spacing: -.02em;
  text-decoration: none; display: inline-flex; align-items: center; gap: .5em;
}
.mark::before {
  content: ""; width: .82em; height: .82em; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 .2em var(--red);
}
.top-nav { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: .95rem; font-weight: 520; }
.top-nav a { text-decoration: none; position: relative; padding: 4px 0; }
.top-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.top-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: max(420px, calc(100svh - var(--band-h) - clamp(200px, 30svh, 300px)));
  perspective: 1400px;
  overflow: clip;
  overflow-clip-margin: 0;
}

.name {
  position: absolute; left: var(--gutter); bottom: clamp(10px, 1.6vw, 26px); z-index: 1;
  font-weight: 820; font-stretch: 116%;
  font-size: clamp(3.4rem, 9.1vw, 11rem);
  line-height: .82; letter-spacing: -.035em; text-transform: uppercase;
  transform: translate3d(var(--nx, 0), var(--ny, 0), 0);
  will-change: transform;
}
.name .line { display: block; overflow: clip; padding-bottom: .04em; }
.name .line > span { display: inline-block; }

.portrait {
  position: absolute; z-index: 2;
  right: clamp(0px, 1.6vw, 40px); bottom: calc(var(--band-h) * -0.62);
  height: min(104%, 34vw); aspect-ratio: 1244 / 1600;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transform-origin: 50% 100%;
  will-change: transform;
}
.portrait img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  filter: saturate(.22) contrast(1.06) brightness(1.02);
}

/* ---------- band ---------- */

.band {
  position: sticky; top: 0; z-index: 20;
  height: var(--band-h);
  background: var(--red); color: var(--white);
  box-shadow: 0 10px 24px -14px rgba(18, 19, 20, .5);
}
.band-track {
  height: 100%; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px);
  padding: 0 var(--gutter);
}
.band-dot {
  width: calc(var(--band-h) * .42); height: calc(var(--band-h) * .42); border-radius: 50%; flex: none;
  background: var(--white); box-shadow: inset 0 0 0 calc(var(--band-h) * .1) var(--ink);
}
.band-names { position: relative; flex: 1; height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.band-row {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 3.2em;
  white-space: nowrap; font-size: clamp(1.15rem, 1.9vw, 1.9rem); font-weight: 560; letter-spacing: -.01em;
}
.band-row b { font-weight: inherit; }
.band-exit {
  display: inline-flex; align-items: center; gap: .45em; flex: none;
  height: calc(var(--band-h) * .58); padding: 0 .9em;
  background: var(--white); color: var(--ink); text-decoration: none;
  font-weight: 640; font-size: clamp(.9rem, 1.05vw, 1.05rem);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.band.docked .band-exit { opacity: 1; transform: none; pointer-events: auto; }
.band-exit svg { color: var(--red); }

/* ---------- intro ---------- */

.intro {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 72px); align-items: end;
  padding: clamp(24px, 3.4vw, 52px) var(--gutter) clamp(56px, 9vw, 140px);
}
.claim {
  font-weight: 640; font-stretch: 104%;
  font-size: clamp(1.65rem, 3.3vw, 3.3rem); line-height: 1.04; letter-spacing: -.028em;
  max-width: 24ch; text-wrap: balance;
}
.intro-side { display: grid; gap: clamp(18px, 2vw, 28px); justify-items: start; }
.role { color: var(--ink-2); font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.45; }

.sign {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: .8em;
  min-height: 56px; padding: 0 1.05em 0 1.25em;
  background: var(--red); color: var(--white); text-decoration: none;
  font-weight: 620; font-size: 1.08rem; letter-spacing: -.005em;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: background-color .35s var(--ease-out), transform .5s var(--ease-out), box-shadow .35s var(--ease-out);
  box-shadow: 0 12px 26px -16px rgba(176, 33, 26, .9);
}
.sign svg { font-size: 1.25em; transition: transform .45s var(--ease-out); }
.sign:hover { background: var(--red-deep); }
.sign:hover svg { transform: translateX(5px); }
.sign:active { transform: translate3d(var(--mx), calc(var(--my) + 1px), 0) scale(.985); }

.sign-inverse { background: var(--white); color: var(--ink); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .55); }
.sign-inverse svg { color: var(--red); }
.sign-inverse:hover { background: var(--ink); color: var(--white); }

/* ---------- about ---------- */

.about {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  padding: clamp(80px, 12vw, 190px) var(--gutter) clamp(60px, 8vw, 120px);
  scroll-margin-top: var(--band-h);
}
.about-lead {
  grid-column: 1 / span 10;
  font-weight: 560; font-stretch: 104%;
  font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; text-wrap: pretty;
}
.about-body {
  grid-column: 6 / span 6; margin-top: clamp(40px, 5vw, 80px);
  display: grid; gap: 1.1em; font-size: clamp(1.05rem, 1.25vw, 1.22rem); color: var(--ink-2); max-width: 60ch;
}

/* ---------- talk (board / team) ---------- */

.talk {
  padding: clamp(80px, 11vw, 170px) var(--gutter);
  background: var(--ink); color: var(--ground);
  scroll-margin-top: var(--band-h);
}
.talk-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px;
  margin-bottom: clamp(44px, 6vw, 90px);
}
.talk-head h2 {
  font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(2rem, 5.4vw, 5.6rem); line-height: .9; letter-spacing: -.035em; max-width: 17ch;
}

.switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  background: #26292b; padding: 5px; isolation: isolate;
}
.switch-btn {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer;
  color: #b9bcbb; font: inherit; font-weight: 600; font-size: 1rem; padding: 14px 22px; white-space: nowrap;
  transition: color .35s var(--ease-out);
}
.switch-btn[aria-pressed="true"] { color: var(--white); }
.switch-btn:hover { color: var(--white); }
.switch-thumb {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: var(--red); transition: transform .6s var(--ease-out);
}
.switch[data-mode="team"] .switch-thumb { transform: translateX(100%); }

.pairs { list-style: none; margin: 0; padding: 0; counter-reset: pair; perspective: 1200px; }
.pair {
  counter-increment: pair;
  position: relative; display: grid; grid-template-columns: clamp(44px, 6vw, 96px) minmax(0, 1fr);
  align-items: center; min-height: clamp(96px, 9.5vw, 150px);
  border-top: 1px solid #34383a;
}
.pair:last-child { border-bottom: 1px solid #34383a; }
.pair-n::before {
  content: counter(pair); display: grid; place-items: center;
  width: clamp(30px, 2.6vw, 40px); height: clamp(30px, 2.6vw, 40px); border-radius: 50%;
  background: var(--white); color: var(--ink); font-weight: 760; font-size: .95rem;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 4px var(--red);
}
.say {
  grid-column: 2; grid-row: 1;
  font-weight: 560; font-size: clamp(1.25rem, 2.5vw, 2.45rem); line-height: 1.12; letter-spacing: -.022em;
  padding: 22px 0; max-width: 34ch; text-wrap: balance;
  transform-origin: 50% 50% -40px; backface-visibility: hidden;
  transition: transform .8s var(--ease-out), opacity .5s var(--ease-out), filter .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.say-team { color: #f3f4f2; }
.pairs[data-mode="board"] .say-team,
.pairs[data-mode="team"] .say-board {
  opacity: 0; transform: rotateX(-88deg); filter: blur(4px); pointer-events: none;
}
.pairs[data-mode="team"] .say-board { transform: rotateX(88deg); }
.pairs[data-mode="team"] .pair-n::before { background: var(--red); color: var(--white); box-shadow: inset 0 0 0 4px var(--white); }
.pair-n::before { transition: background-color .5s var(--ease-out), color .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.talk-note { margin-top: 30px; color: #9fa3a2; font-size: 1rem; }

/* ---------- route ---------- */

.route { position: relative; scroll-margin-top: var(--band-h); }
.route-pin {
  position: sticky; top: var(--band-h);
  height: calc(100svh - var(--band-h)); min-height: 520px;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  padding-top: clamp(40px, 6vh, 80px);
}
.route-title {
  padding: 0 var(--gutter);
  font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(2rem, 5.4vw, 5.6rem); line-height: .9; letter-spacing: -.035em;
}
.route-view { position: relative; align-self: center; perspective: 1600px; }
.route-rail {
  position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--rail);
  transform: translateX(var(--tx, 0));
  width: var(--track-w, 100%);
}
.route-fill { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.route-track {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: flex; gap: 0; width: max-content;
  transform: translateX(var(--tx, 0));
}
.stop {
  position: relative; width: clamp(300px, 26vw, 400px); padding: 52px 40px 0 0;
  opacity: .42; transform: translateY(14px) rotateX(10deg); transform-origin: 0 0;
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.stop.passed { opacity: 1; transform: none; }
.stop-dot {
  position: absolute; left: 0; top: -9px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 7px var(--rail);
  transition: box-shadow .5s var(--ease-out), transform .6s var(--ease-out);
}
.stop.passed .stop-dot { box-shadow: inset 0 0 0 7px var(--red); }
.stop.current .stop-dot { transform: scale(1.32); }
.stop-x .stop-dot { width: 60px; border-radius: 16px; }
.stop-end .stop-dot { background: var(--red); box-shadow: inset 0 0 0 7px var(--red), 0 0 0 6px var(--ground), 0 0 0 9px var(--red); }
.stop-when {
  display: block; font-size: .95rem; font-weight: 600; color: var(--red);
  font-variant-numeric: tabular-nums; margin-bottom: 10px; color: var(--red-text);
}
.stop-name {
  font-weight: 800; font-stretch: 110%; text-transform: uppercase;
  font-size: clamp(1.55rem, 2.3vw, 2.3rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 14px;
  max-width: 11ch;
}
.stop p { color: var(--ink-2); max-width: 28ch; font-size: 1.02rem; }

/* ---------- how ---------- */

.how {
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(90px, 12vw, 190px);
  scroll-margin-top: var(--band-h);
}
.how-title {
  font-weight: 800; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(2rem, 5.4vw, 5.6rem); line-height: .9; letter-spacing: -.035em;
  margin-bottom: clamp(40px, 6vw, 90px);
}
.rules { list-style: none; margin: 0; padding: 0; display: grid; }
.rules li {
  display: grid; grid-template-columns: clamp(40px, 5vw, 80px) minmax(0, 1fr); align-items: baseline;
  padding: clamp(18px, 2.4vw, 34px) 0;
  font-weight: 560; font-stretch: 104%;
  font-size: clamp(1.4rem, 3.2vw, 3.2rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance;
  border-top: 1px solid var(--rail);
}
.rules li::before {
  content: ""; width: .5em; height: .5em; border-radius: 50%; translate: 0 -.02em;
  background: var(--white); box-shadow: inset 0 0 0 .12em var(--red);
}
.rules li:last-child { border-bottom: 1px solid var(--rail); }

/* ---------- end ---------- */

.end {
  position: relative; background: var(--red); color: var(--white);
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr);
  scroll-margin-top: 0;
  clip-path: inset(var(--end-clip, 0%) 0 0 0);
}
.end-inner { align-self: center; padding: clamp(100px, 14vw, 200px) var(--gutter) 60px; }
.end-title {
  font-weight: 820; font-stretch: 100%; text-transform: uppercase;
  font-size: clamp(3.2rem, 14.6vw, 17rem); line-height: .8; letter-spacing: -.04em;
  margin-left: -.04em; white-space: nowrap;
}
.end-title .ch { display: inline-block; font-variation-settings: "wdth" var(--w, 100), "wght" var(--g, 820); }
.end-text {
  margin: clamp(28px, 3vw, 44px) 0 clamp(30px, 3.4vw, 48px);
  font-weight: 560; font-size: clamp(1.35rem, 2.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; max-width: 24ch;
}
.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .35); font-size: .95rem; color: var(--white);
}

/* ---------- cursor ---------- */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 4px var(--red), 0 2px 8px rgba(0, 0, 0, .18);
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, box-shadow .3s, opacity .3s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.link { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(255, 255, 255, .0); box-shadow: inset 0 0 0 2px var(--red); }
.cursor.dark.link { box-shadow: inset 0 0 0 2px var(--white); }
.cursor.press { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}

/* ---------- motion (JS only, visible by default) ---------- */

html.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }

html.js .name .line > span { transform: translateY(105%); }
html.js .portrait img { opacity: 0; transform: translateY(6%) scale(.97); filter: saturate(.22) contrast(1.06) brightness(1.02) blur(8px); }
html.js .band { transform: translateX(104%); filter: blur(10px); }
html.js .intro > * { opacity: 0; transform: translateY(18px); }

html.js.loaded .name .line > span { transform: none; transition: transform 1.2s var(--ease-out); }
html.js.loaded .name .line:nth-child(2) > span { transition-delay: .09s; }
html.js.loaded .portrait img { opacity: 1; transform: none; filter: saturate(.22) contrast(1.06) brightness(1.02); transition: opacity 1.1s var(--ease-out) .25s, transform 1.4s var(--ease-out) .25s, filter 1.1s var(--ease-out) .25s; }
html.js.loaded .band { transform: none; filter: none; transition: transform 1.3s var(--ease-out) .45s, filter 1.1s var(--ease-out) .55s; }
html.js.loaded .intro > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) 1s, transform 1s var(--ease-out) 1s; }
html.js.loaded .intro > *:nth-child(2) { transition-delay: 1.12s; }

.band-row.out { transform: translateX(-38%); opacity: 0; filter: blur(8px); transition: transform .7s var(--ease-in-out), opacity .55s ease, filter .6s ease; }
.band-row.enter { transform: translateX(42%); opacity: 0; filter: blur(8px); }
.band-row.enter.go { transform: none; opacity: 1; filter: none; transition: transform .9s var(--ease-out), opacity .6s ease .05s, filter .7s ease .05s; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .top-nav { display: none; }
}

@media (max-width: 820px) {
  .band-row b:not(:first-child) { display: none; }
  .hero { height: calc(100svh - var(--band-h) - 236px); min-height: 400px; }
  .name {
    top: calc(62px + 1.5svh); bottom: auto; z-index: 3;
    font-stretch: 86%; font-size: clamp(2.6rem, 13.4vw, 6rem); line-height: .86;
  }
  .portrait { right: -4vw; height: calc(100% - 22vw - 52px); bottom: calc(var(--band-h) * -0.5); }
  .intro { grid-template-columns: 1fr; padding-top: 26px; padding-bottom: 72px; }
  .about-lead, .about-body { grid-column: 1 / -1; }
  .about-body { margin-top: 32px; }
  .talk-head { margin-bottom: 36px; }
  .switch { width: 100%; }
  .switch-btn { padding: 13px 10px; font-size: .95rem; }
  .pair { grid-template-columns: 44px minmax(0, 1fr); align-items: start; }
  .pair-n { padding-top: 22px; }

  .route-pin { position: static; height: auto; min-height: 0; overflow: visible; padding: 90px 0 40px; }
  .route-view { perspective: none; margin-top: 44px; }
  .route-rail { left: calc(var(--gutter) + 9px); right: auto; top: 0; bottom: 0; width: 14px; height: auto; transform: none; }
  .route-fill { transform-origin: top; transform: scaleY(var(--fill, 0)); }
  .route-track { flex-direction: column; width: auto; transform: none; padding-left: calc(var(--gutter) + 58px); }
  .stop { width: auto; padding: 0 0 46px 0; transform: translateX(12px); }
  .stop.passed { transform: none; }
  .stop-dot { left: -58px; top: -2px; }
  .stop-x .stop-dot { width: 32px; height: 52px; }
  .end-title { font-stretch: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation: none !important; }
  html.js .reveal, html.js .intro > *, html.js .band, html.js .portrait img, html.js .name .line > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .portrait img { filter: saturate(.22) contrast(1.06) brightness(1.02) !important; }
  .stop { opacity: 1; transform: none; }
}
