:root {
  --bg: #0a0e14;
  --panel: rgb(10 14 20 / .52);
  --ink: #f2efe6;
  --dim: #a7adb5;
  --line: rgb(242 239 230 / .16);
  --amber: #f5b301;
  --on-amber: #14100a;
  --gutter: clamp(16px, 4vw, 56px);
  --display: 'Big Shoulders Display', Impact, sans-serif;
  --body: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  /* z-index scale: canvas 0, content 1, nav 10 */
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color-scheme: dark; }
body { font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.noscript { position: relative; z-index: 1; padding: var(--gutter); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: radial-gradient(120% 80% at 60% 100%, #1a1a16, var(--bg) 60%); }
main { position: relative; z-index: 1; }

h1, h2, .svc-title, .panel h3, .figure b { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.005em; line-height: .92; }
h2 { font-size: clamp(52px, 8.4vw, 132px); }

.nav { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgb(10 14 20 / .95) 55%, transparent); }
.nav-name { font: 700 24px/1 var(--display); text-transform: uppercase; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a { text-decoration: none; }
.nav nav a:not(.nav-cta):hover { color: var(--amber); }
.nav-cta { padding: 8px 14px; background: var(--ink); color: var(--bg); font-weight: 500; transition: background .2s; }
.nav-cta:hover { background: var(--amber); color: var(--on-amber); }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

.btn { display: inline-block; padding: 14px 24px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform .18s cubic-bezier(.16,1,.3,1), background .2s, color .2s; }
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--amber); color: var(--on-amber); }
.btn-solid:hover { background: var(--ink); }
.btn-line { box-shadow: inset 0 0 0 1px var(--ink); background: rgb(10 14 20 / .5); }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* Hero: the graph is the visual; the copy sits on a scrim down the left. */
.hero { min-height: 100dvh; padding: 88px var(--gutter) var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; cursor: crosshair;
  background: linear-gradient(90deg, rgb(10 14 20 / .8), rgb(10 14 20 / .25) 48%, transparent 62%); }
.hero-copy { max-width: 720px; cursor: auto; }
.eyebrow { font: 500 14px/1 var(--mono); color: var(--amber); margin-bottom: 20px; }
h1 { font-size: clamp(58px, 7.5vw, 132px); }
.hero-sub { margin: 18px 0 24px; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); color: #d6d6d0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
h1 .w { display: inline-block; }

.sim { flex: 0 0 auto; width: 270px; font: 400 13px/1.4 var(--mono); padding: 14px 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: auto; }
.sim-call { color: var(--amber); min-height: 2.8em; font-size: 14px; }
.sim-stats { margin: 10px 0; display: grid; gap: 4px; }
.sim-stats div { display: flex; justify-content: space-between; }
.sim-stats dt { color: var(--dim); }
.sim-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.sim-note { color: var(--dim); font-size: 12px; }
@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; background: linear-gradient(0deg, rgb(10 14 20 / .94) 52%, transparent 84%); }
  .sim { width: 100%; order: 2; }
  .sim-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sim-stats div { display: block; }
  .sim-call { min-height: 0; }
}

/* Speed: the measured build times, biggest type on the page after the headline. */
.speed { padding: 14vh var(--gutter); background: linear-gradient(90deg, rgb(10 14 20 / .9), rgb(10 14 20 / .62) 52%, rgb(10 14 20 / .06) 74%); }
.speed-list li { max-width: 62vw; }
.speed-list { margin-top: 5vh; }
.speed-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); align-items: center; padding: 24px 0; border-top: 1px solid var(--line); }
.speed-list b { font: 900 clamp(64px, 10vw, 168px)/.92 var(--display); text-transform: uppercase; color: var(--amber); }
.speed-list h3 { font: 700 clamp(30px, 3.4vw, 52px)/1 var(--display); text-transform: uppercase; }
.speed-list p { margin-top: 8px; max-width: 38em; color: #cfd0cc; }
.speed-list .note { font: 400 14px/1.5 var(--mono); color: var(--dim); }
@media (max-width: 640px) { .speed-list li { grid-template-columns: minmax(0, 1fr); } }

/* Services: a list of huge lines that open as they reach the middle of the screen. */
.services { min-height: 100dvh; padding: 14vh var(--gutter); background: linear-gradient(90deg, rgb(10 14 20 / .8), rgb(10 14 20 / .55) 55%, rgb(10 14 20 / .15)); }
.services h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; margin-bottom: 5vh; color: var(--amber); }
.svc li { padding: 2.2vh 0; max-width: 1200px; }
.svc-title { font-size: clamp(50px, 9vw, 150px); opacity: .34; transition: opacity .35s, transform .5s cubic-bezier(.16,1,.3,1); transform-origin: left; text-shadow: 0 2px 24px rgb(10 14 20 / .8); }
.svc-more { opacity: .34; transition: opacity .35s; }
.svc-more p { max-width: 38em; padding-top: 14px; font-size: 19px; text-shadow: 0 1px 14px rgb(10 14 20); }
.svc-more small { display: block; padding-top: 8px; font: 400 14px/1.4 var(--mono); color: var(--amber); }
.svc li.on .svc-title { opacity: 1; }
.svc li.on .svc-more { opacity: 1; }

/* Selected work: vertical scroll drives a horizontal strip. */
.work { overflow: hidden; }
.track { display: flex; width: max-content; min-height: 100dvh; align-items: stretch; }
.panel { width: min(92vw, 1320px); min-height: 100dvh; padding: 92px clamp(24px, 4vw, 64px) 40px; background: var(--panel); border-right: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.panel:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.panel:nth-child(even) .panel-copy { order: 2; }
.panel h3 { font-size: clamp(56px, 7.4vw, 118px); overflow-wrap: anywhere; }
.panel .tag { margin: 16px 0 12px; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.25; font-weight: 500; }
.panel .desc { color: #cfd0cc; max-width: 36em; }
.panel .meta { margin-top: 16px; font: 400 13px/1.5 var(--mono); color: var(--dim); }
.panel .meta a { color: var(--amber); display: inline-block; margin-top: 8px; }
.panel-visual { min-width: 0; }

.screens { position: relative; aspect-ratio: 16 / 11.5; }
.screens img { position: absolute; width: 74%; height: auto; display: block; box-shadow: 0 24px 60px rgb(2 4 8 / .7), 0 0 0 1px var(--line); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.screens img:nth-child(1) { left: 0; top: 0; z-index: 3; }
.screens img:nth-child(2) { right: 0; top: 16%; z-index: 2; }
.screens img:nth-child(3) { left: 13%; bottom: 0; z-index: 1; }
.screens img:hover { z-index: 4; transform: scale(1.03); }

.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.demo-bar button { padding: 9px 14px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--ink); transition: background .2s, color .2s; }
.demo-bar button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.demo-bar button:disabled { opacity: .4; cursor: default; }
.demo-note { font: 400 13px/1.4 var(--mono); color: var(--dim); }
.demo-readout { font: 500 15px/1.4 var(--mono); color: var(--amber); margin-top: 12px; min-height: 1.4em; }

.tile-stage { position: relative; aspect-ratio: 16 / 10; background: #05070b; box-shadow: inset 0 0 0 1px var(--line); padding: 0; }
.tile-stage.is-empty::after { content: 'No windows open. Add one.'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font: 400 14px var(--mono); }
.tile { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: calc(var(--w) * 100%); height: calc(var(--h) * 100%); border: 4px solid #05070b; background: #161c25; display: grid; place-items: center; font: 700 clamp(28px, 4vw, 64px)/1 var(--display); color: var(--dim); transition: left .42s cubic-bezier(.16,1,.3,1), top .42s cubic-bezier(.16,1,.3,1), width .42s cubic-bezier(.16,1,.3,1), height .42s cubic-bezier(.16,1,.3,1), background .15s, color .15s; }
.tile:hover { background: var(--amber); color: var(--on-amber); }

.ts-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: clamp(220px, 38vh, 380px); }
.ts-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.ts-col i { display: block; flex: 1; background: #39414d; transform: scaleY(.5); transform-origin: bottom; transition: transform .2s ease-out, background .2s; }
.ts-col.is-pick i { background: var(--amber); }
.ts-col b { font: 500 14px/1 var(--mono); padding: 8px 0 4px; font-variant-numeric: tabular-nums; }
.ts-col span { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; }

.tiers { display: grid; gap: 8px; grid-template-columns: repeat(12, 1fr); }
.tier { padding: clamp(16px, 2vw, 28px); }
.tier b { display: block; font: 900 clamp(34px, 4vw, 64px)/1 var(--display); text-transform: uppercase; }
.tier p { margin-top: 8px; font-size: 15px; }
.tier-hot { grid-column: span 12; background: var(--amber); color: var(--on-amber); }
.tier-warm { grid-column: span 7; background: #232a35; }
.tier-cold { grid-column: span 5; background: #11161e; box-shadow: inset 0 0 0 1px var(--line); }

.figure b { display: block; font-size: clamp(150px, 26vw, 420px); line-height: .8; color: var(--amber); }
.figure-long b { font-size: clamp(110px, 15vw, 240px); line-height: .92; white-space: nowrap; }
.figure span { display: block; margin-top: 18px; font-size: 22px; }

/* Everything else */
.all { padding: 16vh var(--gutter) 10vh; background: var(--panel); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.filters button { padding: 9px 16px; font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.filters button:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.grid { column-count: 3; column-gap: clamp(24px, 3vw, 48px); }
.item { break-inside: avoid; padding: 22px 0 26px; border-top: 1px solid var(--line); display: block; text-decoration: none; }
.item h3 { font: 700 clamp(30px, 2.8vw, 42px)/1 var(--display); text-transform: uppercase; transition: color .2s; }
.item p { margin-top: 8px; color: #cfd0cc; font-size: 16px; }
.item .tag { color: var(--ink); }
.item small { display: block; margin-top: 10px; font: 400 13px/1.5 var(--mono); color: var(--dim); }
a.item:hover h3 { color: var(--amber); }
.grid-empty { color: var(--dim); }
@media (max-width: 1040px) { .grid { column-count: 2; } }
@media (max-width: 640px) { .grid { column-count: 1; } }

/* Career */
.career { padding: 12vh 0 0; background: linear-gradient(180deg, var(--panel), rgb(10 14 20 / .55)); }
.career-list { padding: 0 var(--gutter); display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 5vw, 80px); }
.job h3 { font: 900 clamp(46px, 6vw, 96px)/.95 var(--display); text-transform: uppercase; }
.job h3 a { text-decoration: none; }
.job h3 a:hover { color: var(--amber); }
.job .role { margin-top: 8px; font-size: 19px; font-weight: 500; }
.job .dates { font: 400 14px var(--mono); color: var(--dim); }
.job p.b { margin-top: 12px; max-width: 38em; color: #cfd0cc; }
.marquee { margin-top: 10vh; overflow: hidden; padding: 14px 0; border-block: 1px solid var(--line); }
.marquee-in { display: flex; width: max-content; animation: slide 46s linear infinite; font: 700 clamp(26px, 3vw, 44px)/1 var(--display); text-transform: uppercase; }
.marquee-in span { padding-right: 1.1em; }
.marquee-in span:nth-child(3n) { color: var(--amber); }
.marquee:hover .marquee-in { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .career-list { grid-template-columns: 1fr; } }

/* Contact: the release at the end of the camera path */
.contact { min-height: 100dvh; padding: 18vh var(--gutter) 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 32px; }
.contact h2 { font-size: clamp(60px, 11vw, 190px); max-width: 11em; text-shadow: 0 4px 40px rgb(10 14 20 / .7); }
.btn-big { font-size: 22px; padding: 20px 34px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.copy { font: 500 16px var(--mono); text-decoration: underline; text-underline-offset: 4px; padding: 4px 0; }
.copy:hover { color: var(--amber); }
.contact-links { display: flex; gap: 18px; }
.contact-links a:hover { color: var(--amber); }
.off { margin-top: auto; color: #cfd0cc; font-size: 15px; background: rgb(10 14 20 / .7); padding: 6px 10px; margin-left: -10px; }

/* Under the width where pinning stops, the strip becomes a plain column. */
@media (max-width: 900px) {
  .track { flex-direction: column; width: 100%; }
  .panel, .panel:nth-child(even) { width: 100%; min-height: 0; padding: 64px var(--gutter); grid-template-columns: minmax(0, 1fr); border-right: 0; border-bottom: 1px solid var(--line); }
  .panel:nth-child(even) .panel-copy { order: 0; }
  .svc-title { opacity: 1; }
  .svc li .svc-more { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .marquee-in { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .marquee-in span[aria-hidden] { display: none; }
  .svc-title { opacity: 1; }
  .svc li .svc-more { opacity: 1; }
  .track { flex-direction: column; width: 100%; }
  .panel, .panel:nth-child(even) { width: 100%; min-height: 0; }
}

/* The story caption and the plain "how it works" steps. */
.stage-caption { position: fixed; z-index: 5; top: 78px; right: var(--gutter); font: 500 13px/1 var(--mono); color: var(--amber); padding: 8px 10px; background: rgb(10 14 20 / .72); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.how { padding: 14vh var(--gutter); background: var(--panel); }
.how-list { margin-top: 5vh; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.how-list li { border-top: 2px solid var(--amber); padding-top: 14px; }
.how-list b { font: 900 54px/1 var(--display); color: var(--amber); }
.how-list h3 { margin-top: 8px; font: 700 clamp(26px, 2.4vw, 36px)/1 var(--display); text-transform: uppercase; }
.how-list p { margin-top: 10px; color: #cfd0cc; }
.contact { background: linear-gradient(90deg, rgb(10 14 20 / .55), transparent 70%); }
@media (max-width: 900px) { .how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .speed-list li { max-width: none; } .speed { background: var(--panel); } }
@media (max-width: 640px) { .how-list { grid-template-columns: minmax(0, 1fr); } }
.panel-copy { background: rgb(10 14 20 / .55); box-shadow: 0 0 40px 30px rgb(10 14 20 / .55); }
.all .item, .how-list li { background: rgb(10 14 20 / .55); }
@media (max-width: 900px) { .speed, .panel, .how, .all { background: rgb(10 14 20 / .82); } }
