/* Tokens. Studio grey is the render backdrop, so renders sit on the page without a frame. */
:root {
  --studio: #EEF0F3;
  --taxel: #DFE2E7;
  --dent: #C9CDD4;
  --ink: #14161B;
  --slate: #5B616C;
  --rule: #D5D8DE;
  --fired: #6B3BFF;
  --paper: #FFFFFF;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--studio);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fired); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h2 {
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variation-settings: "wdth" 84;
}
.caption { font-size: 14px; color: var(--slate); }

/* Header */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background-color .3s ease, box-shadow .3s ease, translate .35s ease;
}
.bar.away { translate: 0 -100%; }
.bar:focus-within { translate: 0 0; }
.bar.scrolled { background: rgb(238 240 243 / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.mark { height: 28px; width: auto; color: var(--ink); }
.mark .fired { fill: var(--fired); }
.mark .quiet { fill: var(--taxel); }
.wordmark { font-size: 19px; font-weight: 700; letter-spacing: 0.015em; line-height: 1; white-space: nowrap; }
.wordmark span { font-weight: 500; letter-spacing: 0; color: var(--slate); }
.bar-cta {
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 9px 16px; border-radius: 10px; background: var(--ink); color: var(--paper);
}
.bar-cta:hover { background: #2a2d35; }

/* Hero: the page is skin */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden; touch-action: pan-y;
}
.skin { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(88px, 14vh, 150px);
  max-width: min(980px, calc(100% - 2 * var(--gutter)));
  pointer-events: none;
}
h1 {
  font-size: clamp(54px, 9.6vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 78;
  font-weight: 500;
  max-width: 11ch;
}
.lede { margin-top: 28px; max-width: 36em; font-size: clamp(18px, 1.5vw, 21px); color: #2b2f37; }
.hint { margin-top: 14px; font-size: 15px; color: var(--fired); font-weight: 600; }
.meter {
  position: absolute; right: var(--gutter); bottom: clamp(88px, 14vh, 150px);
  text-align: right; font-size: 14px; color: var(--slate); line-height: 1.7;
  pointer-events: none;
}
.meter .num { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; font-size: 16px; }

/* Orbit: sticky stage, frames scrubbed by scroll */
.orbit { position: relative; height: 340vh; background: #E9ECF0; }
.orbit-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.orbit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(var(--inset, 0px) round var(--round, 0px)); }
.orbit-steps {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(460px, 40vw);
}
.step {
  position: absolute; left: 0; top: 0; transform: translateY(-50%);
  opacity: 0; translate: 0 18px;
  transition: opacity .5s ease, translate .6s cubic-bezier(.2,.7,.2,1);
}
.step.on { opacity: 1; translate: 0 0; }
.step h2 { font-size: clamp(34px, 4.4vw, 64px); }
.step p { margin-top: 18px; color: #2b2f37; max-width: 30em; }
.orbit-caption { position: absolute; left: var(--gutter); bottom: 24px; }
.orbit-progress { position: absolute; right: var(--gutter); bottom: 30px; width: 120px; height: 2px; background: var(--rule); }
.orbit-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* Readout */
.readout { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.readout-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.readout-head p { max-width: 34em; color: #2b2f37; }
.strip { position: relative; margin: clamp(56px, 7vw, 96px) 0 0; }
.srow + .srow { margin-top: 22px; }
.srow p { font-size: 14px; color: var(--slate); margin-bottom: 10px; }
.srow.ours p { color: var(--fired); font-weight: 600; }
.srow svg { display: block; width: 100%; overflow: visible; }
.srow.ours { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.s-press { height: 80px; }
.s-clock { height: 34px; }
.s-ours { height: 48px; }
.strip .press { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.strip .r1 { clip-path: inset(0 100% 0 0); }
.strip .band { fill: var(--dent); }
.strip .r2 { clip-path: inset(0 100% 0 0); }
.strip .ticks rect { fill: var(--fired); opacity: 0; }
.strip .caption { margin-top: 14px; }
.rate { margin-top: 40px; max-width: 880px; }
.rate-head { font-size: 14px; color: var(--slate); }
.rate-row {
  display: grid; grid-template-columns: 9.5em 1fr 9em 6em; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.rate-row:first-of-type { margin-top: 10px; border-top: 1px solid var(--rule); }
.rate-row .who { font-weight: 600; }
.rate-row .rbar { height: 10px; border-radius: 3px; background: transparent; overflow: hidden; }
.rate-row .rbar i { display: block; height: 100%; width: calc(var(--w) * 100%); min-width: 4px; border-radius: 3px; background: var(--dent); transform-origin: left; transform: scaleX(0); }
.rate-row.ours .rbar i { background: var(--fired); }
.rate-row .n { color: var(--slate); font-variant-numeric: tabular-nums; font-size: 16px; }
.rate-row .b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; font-variation-settings: "wdth" 88; }
.rate-row.ours .b { color: var(--fired); }
.rate-sum { margin-top: 14px; font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); }
.rate-note { margin-top: 6px; max-width: 40em; color: #2b2f37; }
.strip.play .rate-row .rbar i { transform: scaleX(1); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) 1.9s; }
.strip.play .r1 { clip-path: inset(0 0 0 0); transition: clip-path 1.8s linear; }
.strip.play .r2 { clip-path: inset(0 0 0 0); transition: clip-path 1.8s linear; }
.strip.play .ticks rect { opacity: 1; transition: opacity .15s ease var(--d, 0s); }

.chip { margin-top: clamp(72px, 9vw, 120px); }
.chip h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; font-variation-settings: "wdth" 90; }
.spec { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.spec div { padding: 20px 20px 20px 0; }
.spec div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.spec dt { font-size: 14px; color: var(--slate); }
.spec dd { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "wdth" 88; line-height: 1.15; }
.spec dd small { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--slate); font-variation-settings: "wdth" 100; }
.cite { margin-top: 22px; font-size: 15px; color: var(--slate); }
.cite a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Proof photos */
.proof { padding: clamp(80px, 10vw, 140px) 0; background: var(--paper); }
.proof-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.proof-head p { max-width: 32em; color: #2b2f37; }
.photos {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
}
.ph { margin: 0; overflow: hidden; border-radius: 14px; background: var(--taxel); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-a { grid-row: 1 / 3; }
.ph-b img { object-position: 50% 40%; }
.proof .caption { margin-top: 14px; }

/* Roadmap */
.road { padding: clamp(96px, 12vw, 170px) 0 clamp(64px, 8vw, 110px); }
.steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps img { width: 100%; aspect-ratio: 1023 / 600; object-fit: cover; border-radius: 12px; }
.when { margin-top: 18px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "wdth" 84; }
.steps li p:last-child { margin-top: 6px; color: #2b2f37; max-width: 26em; }
.road .caption { margin-top: 18px; }

/* Name: FIRST written in taxels on the logo's grid. Untouched skin until it scrolls into view, then
   each letter is pressed in: a taxel fires violet while it changes and goes quiet (ink) once it holds. */
.name { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--rule); }
.name-lead { color: var(--slate); font-size: clamp(18px, 1.5vw, 21px); }
.acro { list-style: none; margin: clamp(28px, 3.5vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.acro svg { display: block; height: clamp(104px, 11.5vw, 150px); width: auto; overflow: visible; }
.acro rect { fill: var(--taxel); transform-box: fill-box; transform-origin: center; }
.acro .on { fill: var(--ink); }
.acro .hot { fill: var(--fired); }
.acro .word { display: block; margin-top: 20px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.015em; font-variation-settings: "wdth" 90; }
.acro.armed .on, .acro.armed .hot { fill: var(--taxel); }
.acro.armed .word { clip-path: inset(0 100% 0 0); }
.acro.play .on { animation: fire .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.acro.play .hot { animation: fire-hold .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
.acro.play .word { clip-path: inset(0 0 0 0); transition: clip-path .5s cubic-bezier(.2,.7,.2,1) var(--w, 0s); }
.acro.done .on, .acro.done .hot { animation: none; }
.acro.done li.re .on { animation: refire .6s cubic-bezier(.2,.7,.2,1) var(--r, 0s) both; }
.acro.done li.re .hot { animation: refire-hold .6s cubic-bezier(.2,.7,.2,1) var(--r, 0s) both; }
@keyframes fire { 0% { fill: var(--taxel); transform: scale(1); } 22% { fill: var(--fired); transform: scale(.8); } 100% { fill: var(--ink); transform: scale(1); } }
@keyframes fire-hold { 0% { fill: var(--taxel); transform: scale(1); } 22% { fill: var(--fired); transform: scale(.8); } 100% { fill: var(--fired); transform: scale(1); } }
@keyframes refire { 0% { fill: var(--ink); transform: scale(1); } 25% { fill: var(--fired); transform: scale(.8); } 100% { fill: var(--ink); transform: scale(1); } }
@keyframes refire-hold { 0% { transform: scale(1); } 25% { transform: scale(.8); } 100% { transform: scale(1); } }

/* Team */
.team { padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--rule); }
.people { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.person h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.015em; font-variation-settings: "wdth" 90; }
.role { color: var(--fired); font-weight: 600; font-size: 15px; margin-top: 2px; }
.person p:last-child { margin-top: 12px; color: #2b2f37; max-width: 34em; }
@media (max-width: 1100px) { .people { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
}
.contact-copy p { margin-top: 20px; max-width: 26em; color: #2b2f37; font-size: clamp(18px, 1.5vw, 21px); }
.button {
  display: inline-block; margin-top: 32px; padding: 16px 22px; border-radius: 12px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
  overflow-wrap: anywhere;
}
.button:hover { background: #2a2d35; }
.contact-img { margin: 0; }
.contact-img img { width: 100%; max-height: 760px; object-fit: cover; border-radius: 16px; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between;
  font-size: 14px; color: var(--slate); margin-top: clamp(48px, 6vw, 80px);
}

/* Narrow screens */
@media (max-width: 860px) {
  .readout-head, .proof-head, .people { grid-template-columns: 1fr; gap: 20px; }
  .spec { grid-template-columns: 1fr 1fr; }
  .spec div:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .ph-a { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .ph-b, .ph-c { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .acro { grid-template-columns: 1fr; gap: 18px; }
  .acro li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 20px; }
  .acro svg { height: 64px; }
  .acro .word { margin-top: 0; font-size: 26px; }
  .contact { grid-template-columns: 1fr; }
  .contact-img img { max-height: 480px; }
  .meter { left: var(--gutter); right: auto; text-align: left; bottom: 28px; }
  .hero-copy { bottom: 110px; }
  .lede { font-size: 17px; margin-top: 20px; }
}
@media (max-width: 640px) {
  .rate-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .rate-row .rbar { grid-column: 1 / -1; grid-row: 2; }
  .rate-row .n { grid-column: 1; grid-row: 3; font-size: 14px; }
  .rate-row .b { grid-column: 2; grid-row: 1; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .bar-cta { padding: 8px 12px; }
  .s-press { height: 64px; }
}

@media (max-width: 860px), (max-aspect-ratio: 11/10) {
  .orbit-steps { top: 84px; transform: none; width: auto; right: var(--gutter); max-width: 560px; }
  .step { transform: none; }
  .step h2 { font-size: clamp(30px, 8vw, 48px); }
  .step p { font-size: 16px; margin-top: 12px; }
  .orbit-progress { display: none; }
  .orbit-caption { right: var(--gutter); bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .step { transition: none; }
  .strip .r1 { clip-path: none; }
  .strip .r2 { clip-path: none; }
  .strip .ticks rect { opacity: 1; }
  .strip.play .r1, .strip.play .r2, .strip.play .ticks rect, .strip.play .rate-row .rbar i { transition: none; }
  .rate-row .rbar i { transform: none; }
  .acro .on, .acro .hot { animation: none !important; }
  .acro .word { clip-path: none !important; transition: none !important; }
}
