/* Airlock launch page. Dark, JetBrains-flavoured, one brand gradient. */
:root {
  --bg: #000;
  --bg-2: #0a0a0c;
  --island: #1e1f22;
  --island-bar: #2b2d30;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f7;
  --muted: #a8a8b2;
  --dim: #8d8d97; /* 6:1 on black, AA for small text */
  --orange: #ff8a00;
  --magenta: #ff318c;
  --violet: #7b4dff;
  --blue: #087cfa;
  --green: #3fd68a;
  --grad: linear-gradient(90deg, #ff8a00 0%, #ff318c 34%, #7b4dff 68%, #087cfa 100%);
  --warm: linear-gradient(90deg, #ff8a00, #ff318c);
  --cool: linear-gradient(90deg, #7b4dff, #087cfa);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  /* three body sizes */
  --fs-h2: clamp(2rem, 4.2vw, 3.6rem);
  --fs-body: 1.0625rem;
  --fs-sm: .875rem;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
h3 { font-size: var(--fs-body); font-weight: 600; letter-spacing: -.01em; }
code, pre { font-family: var(--mono); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
section { position: relative; }
section[id], main[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
main:focus { outline: none; }

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 12px 16px; border-radius: 8px; background: #fff; color: #000; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 160ms var(--ease);
}
.skip:focus { transform: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
code { font-size: .92em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: var(--fs-body);
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(255, 49, 140, 0);
  transition: transform 180ms var(--ease), box-shadow 240ms var(--ease), background-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .35); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-small { height: 38px; padding: 0 16px; font-size: var(--fs-sm); border-radius: 8px; }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), backdrop-filter 240ms var(--ease);
}
.nav.scrolled {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.03em;
}
.brand-mark { width: 30px; height: 30px; }
.nav .brand { min-height: 44px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9375rem;
  transition: color 160ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.menu-btn {
  display: none;
  appearance: none; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; place-items: center;
}
.menu-ico { display: grid; gap: 6px; width: 18px; }
.menu-ico i { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform 200ms var(--ease); }
.menu-btn[aria-expanded="true"] .menu-ico i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  min-height: max(100svh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  animation: art-in 1.8s var(--ease) both;
}
.hero-copy {
  padding: calc(var(--nav-h) + clamp(36px, 8vh, 96px)) var(--gutter) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-size: clamp(3.2rem, 7.4vw, 7.25rem);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 800;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-title .w { display: inline-block; animation: rise .9s var(--ease) both; }
.hero-title .w:nth-child(2) { animation-delay: 70ms; }
.hero-title .w:nth-child(3) { animation-delay: 140ms; }
.hero-title .w:nth-child(4) { animation-delay: 210ms; }
.hero-sub {
  margin-top: 22px;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--fs-body);
  animation: rise .9s var(--ease) .28s both;
}
.hero-actions { margin-top: 30px; animation: rise .9s var(--ease) .36s both; }
.ticker {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  min-height: 30px;
  animation: rise .9s var(--ease) .44s both;
}
.tick-raw {
  color: #ffd2a8;
  background: rgba(255, 138, 0, .12);
  box-shadow: inset 0 -2px 0 var(--magenta);
  border-radius: 4px;
  padding: 2px 6px;
}
.tick-arrow { color: var(--dim); }
.tick-tok {
  color: #d9d0ff;
  background: linear-gradient(90deg, rgba(123, 77, 255, .3), rgba(8, 124, 250, .3));
  box-shadow: inset 0 0 0 1px rgba(123, 77, 255, .55);
  border-radius: 6px;
  padding: 2px 8px;
}
.ticker.flip .tick-raw, .ticker.flip .tick-tok { animation: blink-in 420ms var(--ease) both; }
.ticker.flip .tick-tok { animation-delay: 160ms; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes art-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes blink-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Where Airlock sits */
.sits {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(70px, .8fr) minmax(0, 1fr) minmax(70px, .8fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  text-align: center;
}
.sits-node { display: grid; justify-items: center; gap: 4px; }
.sits-node b { font-weight: 600; }
.sits-node span:not(.sits-logo) { color: var(--muted); font-size: var(--fs-sm); }
.sits-logo { width: 56px; height: 56px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 14px; background: var(--island); border: 1px solid var(--line-2); color: #d9d9df; }
.sits-logo svg { width: 26px; height: 26px; fill: currentColor; }
.sits-us .sits-logo { background: transparent; border: 0; }
.sits-us .sits-logo svg { width: 56px; height: 56px; }
.sits-pair { width: auto; padding: 0 14px; grid-auto-flow: column; gap: 12px; }
.sits-link { position: relative; height: 28px; margin-top: 14px; display: grid; place-items: center; }
.sits-link i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.sits-link i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 6px solid #6a6a74; }
.sits-link code { position: relative; font-size: var(--fs-sm); padding: 2px 8px; border-radius: 6px; background: #000; white-space: nowrap; }
.sits-link.warm code { color: #ffd2a8; box-shadow: inset 0 0 0 1px rgba(255, 138, 0, .45); }
.sits-link.cool code { color: #ddd5ff; box-shadow: inset 0 0 0 1px rgba(123, 77, 255, .55); }

/* Swap: pinned story */
.swap { height: 320vh; }
.swap-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 24px;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.swap-head h2 { max-width: 12ch; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 4px 1fr; column-gap: 18px; }
.steps b { font-weight: 600; color: var(--dim); transition: color 240ms var(--ease); }
.steps li.on b { color: var(--text); }
.steps li > span:last-child { grid-column: 2; color: var(--muted); font-size: var(--fs-sm); }
.step-bar { grid-row: 1 / span 2; width: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.step-bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.steps li[data-step="0"] .step-bar i { background: var(--warm); }
.steps li[data-step="1"] .step-bar i { background: var(--cool); }
.steps li[data-step="2"] .step-bar i { background: linear-gradient(#3fd68a, #087cfa); }

.ide {
  margin: 0;
  position: relative;
  border-radius: 14px;
  background: var(--island);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9);
}
.ide::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .22;
  pointer-events: none;
}
.ide-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: var(--island-bar);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, .4);
}
.ide-dots { display: flex; gap: 7px; }
.ide-dots i { width: 11px; height: 11px; border-radius: 50%; background: #45474d; }
.ide-tab { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: #dfe1e5; font-family: var(--font); }
.ide-tab svg { width: 14px; height: 14px; }
.ide-where {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.ide-where::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); transition: background-color 240ms var(--ease), box-shadow 240ms var(--ease); }
.ide-where[data-mode="cloud"]::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.ide-where[data-mode="back"]::before { background: var(--green); box-shadow: 0 0 12px var(--green); }
.ide-body { position: relative; overflow: hidden; }
.code {
  margin: 0;
  padding: 18px 0;
  white-space: normal;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: #bcbec4;
  overflow-x: auto;
}
.ln { display: block; white-space: pre; padding: 0 20px 0 0; transition: background-color 240ms var(--ease); }
.ln i { display: inline-block; width: 3.2em; padding-right: 1.4em; text-align: right; font-style: normal; color: #4b5059; user-select: none; }
.k { color: #cf8e6d; }
.s { color: #6aab73; }
.n { color: #2aacb8; }
.sec {
  color: #ffd2a8;
  background: rgba(255, 138, 0, .13);
  box-shadow: inset 0 -2px 0 var(--magenta);
  border-radius: 4px;
  padding: 1px 3px;
}
.sec.masked {
  color: #ddd5ff;
  background: linear-gradient(90deg, rgba(123, 77, 255, .32), rgba(8, 124, 250, .32));
  box-shadow: inset 0 0 0 1px rgba(123, 77, 255, .6);
  border-radius: 6px;
  padding: 1px 6px;
}
.sec.swapping { animation: flip 360ms var(--ease) both; }
@keyframes flip { 0% { transform: scaleY(.2); opacity: .2; } 100% { transform: none; opacity: 1; } }
.sec { display: inline-block; line-height: 1.5; }
.decoy { transition: box-shadow 240ms var(--ease); }
.decoy.checked { box-shadow: inset 0 -2px 0 var(--green); }
#port-line.edited { background: rgba(8, 124, 250, .12); }
#port-line.edited i { color: #56a8f5; }
#port-line.kept { background: rgba(63, 214, 138, .1); }
#port-line.kept i { color: var(--green); }
#port-line.kept i::before { content: "+ "; }
.scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--grad);
  box-shadow: 0 0 18px 2px rgba(255, 49, 140, .55), 0 0 40px 6px rgba(123, 77, 255, .35);
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
  z-index: 2;
}
.ide-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
  min-height: 52px;
}
.ide-foot span { display: inline-flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.ide-foot span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ide-foot span.on { opacity: 1; transform: none; }

/* Sections shared */
.how, .mellum, .proof, .bench, .process, .install {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter) 0;
}

/* How it works */
.how > h2 { max-width: 16ch; }
.stage {
  margin-top: 48px;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.stage-fallback { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 68%; }
.stage iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.stage.has-figure { background: #000; }
@media (max-width: 600px) { .stage iframe { aspect-ratio: 4 / 3; } }
.how-sub { margin-top: 16px; color: var(--muted); max-width: 52ch; }
.flow {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.flow button {
  appearance: none; width: 100%; height: 100%; text-align: left; cursor: pointer;
  display: grid; align-content: start; gap: 6px;
  padding: 16px 14px 18px; border: 0; border-top: 2px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--text); font: inherit;
  transition: border-color 240ms var(--ease), background-color 240ms var(--ease);
}
.flow button:hover { background: rgba(255, 255, 255, .03); }
.flow em { font-style: normal; font-family: var(--mono); font-size: var(--fs-sm); color: var(--dim); }
.flow b { font-weight: 600; }
.flow span { color: var(--muted); font-size: var(--fs-sm); }
.flow button[aria-pressed="true"], .flow button.on { border-top-color: transparent; background: linear-gradient(rgba(123, 77, 255, .08), transparent 70%); border-image: var(--grad) 1; border-image-width: 2px 0 0 0; }
.flow button.on em, .flow button[aria-pressed="true"] em { color: var(--text); }

.caught {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.term { background: var(--island); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.term-bar { padding: 10px 16px; background: var(--island-bar); font-size: var(--fs-sm); color: var(--muted); }
.term pre { margin: 0; padding: 16px; font-size: var(--fs-sm); line-height: 1.8; color: #bcbec4; white-space: pre-wrap; word-break: break-all; }
.term .dim { color: var(--dim); }
.term .raw { color: #ffd2a8; background: rgba(255, 138, 0, .13); box-shadow: inset 0 -2px 0 var(--magenta); border-radius: 4px; }
.term .tok { color: #ddd5ff; background: linear-gradient(90deg, rgba(123, 77, 255, .32), rgba(8, 124, 250, .32)); box-shadow: inset 0 0 0 1px rgba(123, 77, 255, .6); border-radius: 6px; padding: 0 3px; }
.term-cloud { border-color: rgba(123, 77, 255, .35); }
.caught-arrow svg { width: 100%; height: 24px; }
.caught-note { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-sm); text-align: center; }

/* Mellum2 */
.mellum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.mellum-art { position: relative; overflow: hidden; border-radius: 18px; }
.mellum-art img { width: 100%; aspect-ratio: 1; object-fit: cover; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 68%); mask-image: radial-gradient(circle at 50% 50%, #000 45%, transparent 68%); transform: scale(1.55); }
.mellum-copy > p { margin-top: 18px; color: var(--muted); max-width: 42ch; }
.judge, .judge-legend {
  --cols: minmax(0, 13.5rem) minmax(0, 1fr) 7.5rem;
}
.judge { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.judge li { display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center; }
.judge code { font-size: var(--fs-sm); color: #bcbec4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { height: 8px; border-radius: 4px; background: #1b1c20; overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v, 0) * 100%); border-radius: 4px; background: linear-gradient(90deg, #4a4b55, #ff8a00 70%, #ff318c); transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease); }
.judge.in .meter i { transform: scaleX(1); }
.judge li:nth-child(2) .meter i { transition-delay: 120ms; }
.judge li:nth-child(3) .meter i { transition-delay: 240ms; }
.judge li:nth-child(4) .meter i { transition-delay: 360ms; }
.verdict { font-size: var(--fs-sm); justify-self: start; opacity: 0; transition: opacity 240ms var(--ease) 650ms; }
.judge.in .verdict { opacity: 1; }
.verdict.tok { font-family: var(--mono); color: #ddd5ff; background: linear-gradient(90deg, rgba(123, 77, 255, .32), rgba(8, 124, 250, .32)); box-shadow: inset 0 0 0 1px rgba(123, 77, 255, .6); border-radius: 6px; padding: 1px 7px; }
.verdict.keep { color: var(--muted); }
.judge-legend { margin-top: 12px; display: grid; grid-template-columns: var(--cols); gap: 16px; font-size: var(--fs-sm); color: var(--dim); }
.jl-mid { display: flex; justify-content: space-between; gap: 8px; }
.jl-mid em { font-style: normal; }
.jl-mid em:nth-child(2) { color: var(--muted); }
.judge-note { margin-top: 10px; color: var(--dim); font-size: var(--fs-sm); max-width: 46ch; }
.stats {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 28px 28px 0; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { color: var(--muted); font-size: var(--fs-sm); max-width: 24ch; }
.stats dd { margin: 0; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.mellum-note { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-sm); display: flex; align-items: center; gap: 10px; }
.mellum-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* Proof */
.proof-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.shot { margin: 0; }
.shot img { border-radius: 14px; border: 1px solid var(--line-2); }
.shot.demo { margin-top: 48px; }
.proof-stats { margin-top: 36px; }
.demo-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.demo-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; background: #000; }
.shot figcaption a { color: var(--text); text-underline-offset: 3px; }
@media (max-width: 600px) { .demo-frame iframe { aspect-ratio: 4 / 5; } }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: var(--fs-sm); }
.big { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-label { margin-top: 10px; color: var(--muted); }
.reqs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.reqs li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 5.5rem; gap: 14px; align-items: center; font-size: var(--fs-sm); }
.reqs span { color: var(--muted); }
.reqs i { height: 10px; border-radius: 5px; background: var(--cool); transform-origin: left; transform: scaleX(0); transition: transform 800ms var(--ease); }
.receipt.in .reqs i { transform: scaleX(1); }
.reqs li:nth-child(2) i { transition-delay: 120ms; }
.reqs li:nth-child(3) i { transition-delay: 240ms; }
.reqs li:nth-child(4) i { transition-delay: 360ms; }
.reqs b { color: var(--green); font-weight: 600; }
.receipt-facts { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--muted); }
.receipt-facts b { color: var(--text); }
.receipt-facts code { font-size: var(--fs-sm); color: var(--text); }

/* Benchmarks */
.bench > h2 { max-width: 15ch; }
.ladder { margin-top: 48px; padding: 32px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.ladder-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.ladder-score { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.ladder-sub { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--dim); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i + i, .legend .lg-mellum { margin-left: 10px; }
.lg-rules { background: #4a4b53; }
.lg-mellum { background: #5a4bb8; }
.bars {
  margin-top: 36px;
  height: 280px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 22px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
  position: relative;
}
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; position: relative; }
.bar b { font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.bar i { width: 100%; max-width: 52px; height: calc(var(--v) * 2.2px); border-radius: 6px 6px 0 0; background: #34353c; transform-origin: bottom; transform: scaleY(0); transition: transform 900ms var(--ease); }
.bar.m i { background: #5a4bb8; }
.bar.now i { background: linear-gradient(to top, #ff8a00, #ff318c 35%, #7b4dff 70%, #087cfa); }
.bar.now b { color: var(--text); }
.bar span { position: absolute; top: 100%; margin-top: 12px; font-size: var(--fs-sm); color: var(--dim); text-align: center; line-height: 1.25; }
.ladder { padding-bottom: 72px; }
.ladder.in .bar i { transform: scaleY(1); }
.bar:nth-child(2) i { transition-delay: 60ms; } .bar:nth-child(3) i { transition-delay: 120ms; }
.bar:nth-child(4) i { transition-delay: 180ms; } .bar:nth-child(5) i { transition-delay: 240ms; }
.bar:nth-child(6) i { transition-delay: 300ms; } .bar:nth-child(7) i { transition-delay: 360ms; }
.bar:nth-child(8) i { transition-delay: 420ms; }

.unseen { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.unseen-list h3 + ul { margin-top: 16px; }
.unseen-list ul + h3 { margin-top: 30px; }
.unseen-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.unseen-list li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 3.5rem; gap: 16px; align-items: center; font-size: var(--fs-sm); }
.unseen-list li span { color: var(--muted); }
.unseen-list li i { height: 10px; border-radius: 5px; background: #1b1c20; position: relative; overflow: hidden; }
.unseen-list li i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 1%); border-radius: 5px; background: #8d8d97; transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease); }
.unseen-list.in li i::after { transform: scaleX(1); }
.unseen-list li b { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.facts { margin: 0; display: grid; }
.facts > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sources { margin-top: 40px; color: var(--dim); font-size: var(--fs-sm); }

/* Process */
.process > h2 { max-width: 15ch; }
.ideas-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.ideas-grid h3 { color: var(--muted); font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ideas { list-style: none; margin: 0; padding: 0; }
.ideas li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ideas li::before { content: ""; grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; }
.ideas b { font-weight: 600; }
.ideas span { grid-column: 2; color: var(--muted); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.kept::before { background: var(--grad); }
.drop::before { border: 1.5px solid var(--dim); }
.drop b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }

/* Install */
.install { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.install-copy p { margin-top: 18px; color: var(--muted); max-width: 36ch; }
.install-notes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; max-width: 40ch; }
.install-notes li { position: relative; padding-left: 18px; color: var(--muted); font-size: var(--fs-sm); }
.install-notes li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #3a3b42; }
.install-notes code { color: var(--text); }
.code-win { position: relative; background: var(--island); border: 1px solid var(--line); border-radius: 14px; padding: 14px 0 0; min-width: 0; }
.seg { display: inline-flex; margin: 0 14px; padding: 3px; border-radius: 9px; background: #141517; border: 1px solid var(--line); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 500 var(--fs-sm) / 1 var(--font); padding: 8px 14px; border-radius: 6px; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg button[aria-selected="true"] { background: var(--island-bar); color: var(--text); }
.seg button:focus-visible, .copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.copy { position: absolute; top: 14px; right: 14px; appearance: none; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 var(--fs-sm) / 1 var(--font); padding: 9px 12px; border-radius: 8px; cursor: pointer; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.copy:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.snippet { margin: 0; padding: 20px; font-size: var(--fs-sm); line-height: 1.8; color: #bcbec4; overflow-x: auto; }
.snippet .jk { color: #c77dbb; }
.snippet .js { color: #6aab73; }
.snippet .p { color: #bcbec4; }
.snippet .dim { color: var(--dim); }

/* Team: AgnoSpeech and Strasbourg */
.team { position: relative; margin-top: clamp(80px, 12vw, 160px); padding-top: clamp(80px, 9vw, 120px); isolation: isolate; }
.team-backdrop { position: absolute; inset: 0 0 auto 0; height: clamp(520px, 52vw, 760px); z-index: -1; overflow: hidden; }
.team-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: .22;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 45%, transparent 100%); }
.team-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.team-inner > h2 { max-width: 15ch; }
.team-sub { margin-top: 18px; color: var(--muted); max-width: 58ch; }
.team-stats { margin-top: 44px; }
.team-stats dd { white-space: nowrap; }
.agno { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.agno-photo { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.agno-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 35%; border-radius: 18px; border: 1px solid var(--line); }
.agno-photo figcaption { color: var(--dim); font-size: var(--fs-sm); }
.dial-card { padding: clamp(20px, 2.6vw, 32px); border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); display: grid; align-content: start; gap: 14px; }
.dial-card > p:first-of-type { color: var(--muted); }
.dial { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; margin-top: 6px; border-radius: 10px; background: #141517; border: 1px solid var(--line); }
.dial label { position: relative; cursor: pointer; }
.dial input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dial span { display: grid; place-items: center; min-height: 40px; padding: 0 6px; border-radius: 7px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; text-align: center; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.dial input:checked + span { background: var(--island-bar); color: var(--text); }
.dial input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.dial-out { min-height: 9.5em; padding: 18px; border-radius: 12px; background: var(--island); border: 1px solid var(--line); display: grid; align-content: start; gap: 12px; }
.dial-post { font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.8; color: #d4d5da; }
.dial-post.dial-swap { animation: blink-in 320ms var(--ease) both; }
.dial-post mark { background: rgba(255, 49, 140, .14); color: #ffd6e6; box-shadow: inset 0 -2px 0 rgba(255, 49, 140, .7); border-radius: 3px; padding: 0 2px; }
.dial-post .pii { color: #ffd2a8; background: rgba(255, 138, 0, .13); border-radius: 3px; padding: 0 2px; }
.dial-post .tok { color: #ddd5ff; background: linear-gradient(90deg, rgba(123, 77, 255, .32), rgba(8, 124, 250, .32)); box-shadow: inset 0 0 0 1px rgba(123, 77, 255, .6); border-radius: 5px; padding: 0 5px; }
.dial-post .gone { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.dial-note { color: var(--muted); font-size: var(--fs-sm); }
.dial-foot { color: var(--dim); font-size: var(--fs-sm); }
.paper {
  margin-top: 16px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(20px, 2.6vw, 32px); border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); overflow: hidden;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.paper:hover { border-color: var(--line-2); background: #0e0e11; }
.paper-thumb { display: block; height: 170px; position: relative; }
.paper-thumb img { position: absolute; left: 10px; top: -6px; width: 170px; height: auto; border-radius: 4px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8); transform: rotate(-4deg); transform-origin: 50% 0; transition: transform 240ms var(--ease); }
.paper:hover .paper-thumb img { transform: rotate(-1deg) translateY(-6px); }
.paper-body { display: grid; gap: 8px; }
.paper-title { font-weight: 600; max-width: 52ch; }
.paper-meta { color: var(--muted); font-size: var(--fs-sm); }
.paper-authors { color: var(--dim); font-size: var(--fs-sm); }
.paper-cta { margin-top: 6px; font-weight: 600; font-size: var(--fs-sm); }
.paper:hover .paper-cta { text-decoration: underline; text-underline-offset: 3px; }

/* Closing: two doors and a lit seam, drawn in CSS */
.seal { margin-top: clamp(100px, 14vw, 180px); display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.seal-copy { padding: 0 var(--gutter); display: grid; justify-items: center; gap: 30px; }
.seal-copy h2 { max-width: 16ch; }
.seal-stage {
  --open: 0;
  position: relative;
  width: min(720px, calc(100% - 2 * var(--gutter)));
  height: clamp(260px, 30vw, 380px);
  margin-top: 64px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.seal-behind {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 0 24px 36px; text-align: center;
  background:
    radial-gradient(ellipse 55% 60% at 50% 45%, rgba(123, 77, 255, calc(.22 * var(--open))), transparent 70%),
    radial-gradient(ellipse 45% 40% at 50% 85%, rgba(255, 138, 0, calc(.12 * var(--open))), transparent 70%);
}
.seal-token {
  grid-area: 1 / 1;
  font-family: var(--mono); font-size: var(--fs-body);
  color: #ddd5ff; background: linear-gradient(90deg, rgba(123, 77, 255, .32), rgba(8, 124, 250, .32));
  box-shadow: inset 0 0 0 1px rgba(123, 77, 255, .6); border-radius: 8px; padding: 6px 14px;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.seal-thanks {
  grid-area: 1 / 1;
  font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.045em; line-height: 1;
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity 420ms var(--ease) 120ms, transform 420ms var(--ease) 120ms;
}
.seal-from { color: var(--muted); font-size: var(--fs-sm); opacity: 0; transition: opacity 420ms var(--ease) 320ms; }
.seal-stage.restored .seal-token { opacity: 0; transform: translateY(-10px) scale(.96); }
.seal-stage.restored .seal-thanks { opacity: 1; transform: none; }
.seal-stage.restored .seal-from { opacity: 1; }
.seal-door {
  position: absolute; top: 0; bottom: 0; width: calc(50% - 4px);
  background: linear-gradient(to bottom, #17181c, #0c0c0e 85%);
  border: 1px solid var(--line); border-bottom: 0;
  will-change: transform;
}
.seal-door::before { content: ""; position: absolute; inset: 18px 18px 0; border-radius: 10px 10px 0 0; border: 1px solid rgba(255, 255, 255, .05); border-bottom: 0; }
.seal-door::after { content: ""; position: absolute; top: 46%; width: 3px; height: 44px; border-radius: 2px; background: #2c2d33; }
.seal-door.left { left: 0; border-radius: 16px 6px 0 0; transform: translateX(calc(var(--open) * -101%)); }
.seal-door.left::after { right: 14px; }
.seal-door.right { right: 0; border-radius: 6px 16px 0 0; transform: translateX(calc(var(--open) * 101%)); }
.seal-door.right::after { left: 14px; }
.seal-seam {
  position: absolute; left: 50%; top: 14px; bottom: 0; width: 2px;
  transform: translateX(-50%) scaleX(calc(1 + var(--open) * 22));
  opacity: calc(1 - var(--open) * 1.5);
  border-radius: 1px;
  background: linear-gradient(to bottom, #087cfa, #7b4dff 22%, #ff318c 48%, #ff8a00 70%);
  box-shadow: 0 0 22px 1px rgba(123, 77, 255, .4);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .seal-stage { --open: 1; }
}

/* Footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.foot .brand { font-size: 1.1rem; color: var(--text); }
.foot .brand-mark { width: 24px; height: 24px; }
.foot-meta { margin-left: auto; color: var(--dim); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.flow-dots { display: none; }

/* Tablet */
@media (max-width: 980px) {
  .nav { gap: 10px; }
  .nav .btn-small { margin-left: auto; height: 44px; }
  .menu-btn { display: grid; }
  .nav-links {
    display: none;
    position: absolute; top: calc(var(--nav-h) - 4px); right: var(--gutter); left: var(--gutter);
    flex-direction: column; gap: 0; margin: 0; padding: 8px;
    background: rgba(14, 14, 16, .97); border: 1px solid var(--line-2); border-radius: 14px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  }
  .nav.open .nav-links { display: flex; }
  .nav.open { background: rgba(0, 0, 0, .9); border-bottom-color: var(--line); }
  .nav-links a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 8px; font-size: var(--fs-body); color: var(--text); }
  .nav-links a:hover { background: rgba(255, 255, 255, .05); }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow button { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 10px; border-top: 0; border-left: 2px solid var(--line-2); padding: 12px 14px; }
  .flow button em { grid-row: 1 / span 2; padding-top: 2px; }
  .flow button[aria-pressed="true"], .flow button.on { border-image: linear-gradient(#ff8a00, #ff318c, #7b4dff, #087cfa) 1; border-image-width: 0 0 0 2px; }
  .agno { grid-template-columns: 1fr; }
  .agno-photo img { aspect-ratio: 16 / 10; height: auto; }

  .swap-pin { grid-template-columns: 1fr; align-content: center; gap: 22px; }
  .swap-head h2 { max-width: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .steps li { grid-template-columns: 1fr; row-gap: 8px; }
  .step-bar { grid-row: auto; width: 100%; height: 4px; }
  .step-bar i { transform-origin: left; transform: scaleX(var(--fill, 0)); }
  .steps li > span:last-child { display: none; }
  .mellum { grid-template-columns: 1fr; }
  .mellum-art { width: min(100%, 320px); margin: 0 auto; }
  .proof-grid, .unseen, .install { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 680px) {
  .hero { min-height: 0; padding-bottom: 8px; }
  .hero-art { position: relative; height: 300px; width: 100%; margin-top: 8px; order: 2; }
  .hero-art img { object-position: 50% 70%; }
  .hero-title { font-size: clamp(2.9rem, 13.5vw, 4rem); }
  .ticker { font-size: var(--fs-sm); gap: 8px; }
  .swap { height: 300vh; }
  .swap-pin { padding-top: calc(var(--nav-h) + 8px); }
  .code { line-height: 1.7; font-size: var(--fs-sm); }
  .ln { padding-right: 12px; }
  .ln i { width: 2.6em; padding-right: 1em; }
  .ide-where { font-size: var(--fs-sm); }
  .ide-dots { display: none; }
  .ide-foot { padding: 12px 14px; gap: 6px 14px; }
  .sits { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .sits-link { height: 56px; margin: 6px 0; }
  .sits-link i { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .sits-link i::after { right: -3px; top: auto; bottom: -1px; border: 3.5px solid transparent; border-top: 6px solid #6a6a74; }
  .caught { grid-template-columns: 1fr; }
  .caught-arrow { transform: rotate(90deg); width: 48px; justify-self: center; }
  .judge, .judge-legend { --cols: minmax(0, 1fr) 6.5rem; }
  .judge li { grid-template-columns: var(--cols); row-gap: 8px; }
  .judge code { grid-column: 1 / -1; }
  .judge-legend > span:first-child, .judge-legend > span:last-child { display: none; }
  .judge-legend { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-left: 0; padding: 22px 0 0; }
  .ladder { padding: 22px 18px; }
  .bars { height: auto; grid-template-columns: 1fr; gap: 12px; border-bottom: 0; margin-top: 26px; }
  .bar { flex-direction: row-reverse; justify-content: flex-end; height: auto; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 2.6rem; align-items: center; gap: 10px; }
  .bar span { position: static; margin: 0; text-align: left; grid-column: 1; grid-row: 1; }
  .bar i { grid-column: 2; grid-row: 1; height: 12px; max-width: none; width: calc(var(--v) * 1%); border-radius: 0 6px 6px 0; transform-origin: left; transform: scaleX(0); }
  .ladder.in .bar i { transform: scaleX(1); }
  .bar b { grid-column: 3; grid-row: 1; text-align: right; }
  .unseen-list li { grid-template-columns: minmax(0, 1fr) 3rem; row-gap: 6px; }
  .unseen-list li span { grid-column: 1 / -1; }
  .ideas-grid { grid-template-columns: 1fr; }
  .team-stats dd { white-space: normal; }
  .dial span { min-height: 44px; }
  .paper { grid-template-columns: 1fr; }
  .paper-thumb { height: auto; }
  .paper-thumb img { position: relative; left: 6px; top: 0; width: 120px; transform: rotate(-3deg); }
  .dial span { padding: 0 2px; }
  .foot-meta { margin-left: 0; }
  .brand { font-size: 1.2rem; }
  .nav .btn-small { padding: 0 12px; }
  .seg button { min-height: 44px; padding: 0 14px; }
  .copy { position: static; display: block; width: fit-content; min-height: 44px; padding: 0 14px; margin: 10px 14px 0 auto; }
  .seg { display: flex; margin: 0 14px; }
  .seg button { flex: 1; padding: 0 8px; }
  .snippet { white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Phone experience: built for one hand and a narrow screen */
@media (max-width: 680px) {
  /* Hero: one full-width action */
  .hero-actions { width: 100%; display: flex; justify-content: center; }
  .hero-actions .btn { width: min(100%, 340px); justify-content: center; height: 52px; }

  /* Where Airlock sits: one compact row, the ticker above already shows the swap */
  .sits { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); gap: 4px; padding: 28px var(--gutter) 40px; }
  .sits-link { height: 20px; margin: 18px 0 0; }
  .sits-link i { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .sits-link i::after { right: -1px; top: -3px; bottom: auto; border: 3.5px solid transparent; border-left: 6px solid #6a6a74; }
  .sits-link code { display: none; }
  .sits-logo { width: 48px; height: 48px; margin-bottom: 8px; border-radius: 12px; }
  .sits-logo svg { width: 22px; height: 22px; }
  .sits-us .sits-logo svg { width: 48px; height: 48px; }
  .sits-pair { padding: 0 10px; gap: 8px; }
  .sits-node b { font-size: var(--fs-sm); line-height: 1.3; }
  .sits-node span:not(.sits-logo) { display: none; }

  /* Pinned code story: shorter scroll on phones */
  .swap { height: 260vh; }

  /* How it works: swipe through the steps; the machine follows */
  .flow {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 18px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .flow::-webkit-scrollbar { display: none; }
  .flow li { flex: 0 0 82%; scroll-snap-align: center; }
  .flow button, .flow button[aria-pressed="true"], .flow button.on {
    display: grid; grid-template-columns: 1fr; gap: 6px; height: 100%;
    padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
    border-image: none;
  }
  .flow button em { grid-row: auto; padding-top: 0; }
  .flow button[aria-pressed="true"], .flow button.on { border-color: rgba(123, 77, 255, .55); background: linear-gradient(rgba(123, 77, 255, .1), var(--bg-2) 70%); }
  .flow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .flow-dots i { width: 6px; height: 6px; border-radius: 3px; background: #3a3b42; transition: width 200ms var(--ease), background-color 200ms var(--ease); }
  .flow-dots i.on { width: 18px; background: #8d8d97; }

  /* Mellum2: smaller cube, the judge carries the section */
  .mellum-art { width: 200px; }

  /* Short numbers sit side by side */
  .stats-row, .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-row > div, .stats-row > div:first-child { padding: 18px 10px 0 0; border-left: 0; }
  .stats-row > div + div { padding-left: 10px; border-left: 1px solid var(--line); }
  .facts > div, .facts > div:first-child { border-top: 0; padding: 0 10px 0 0; }
  .facts > div + div { padding-left: 10px; border-left: 1px solid var(--line); }
  .stats-row dd, .facts dd { font-size: var(--fs-h2); letter-spacing: -.05em; }
}

@media (max-width: 360px) {
  .nav .btn-small { display: none; }
  .hero-title { font-size: 2.6rem; }
  .ticker { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
