/*
  Shockfront marketing site.
  Layout: a live bow shock simulation opens the page; full-bleed NASA photo panels carry one
  uppercase Saira headline each, between Cloudflare-style content bands (compatibility, figures,
  live decision log, policy bento, product tour, developers, trust, footer).
  Color still encodes decisions: coral only where something is blocked.
*/
:root {
  --void: #060d15;
  --void-2: #0a131e;
  --void-3: #0f1b29;
  --ink: #e8eef6;
  --dim: #94a3b8;
  --faint: #7a8aa3;
  --line: rgba(232, 238, 246, 0.1);
  --line-2: rgba(232, 238, 246, 0.16);
  --shock: #ff4f6d;
  --shock-hot: #ffb3bf;
  --field: #00d4ff;
  --allow: #34d399;
  --flag: #fbbf24;
  --redact: #c084fc;

  --display: "Saira", "DM Sans", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--void); color: var(--ink); font: 300 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--field); outline-offset: 3px; }
::selection { background: rgba(0, 212, 255, .28); color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--void); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display); font-weight: 600; font-stretch: 94%;
  text-transform: uppercase; letter-spacing: 0.012em; line-height: 0.96;
  margin: 0; text-wrap: balance;
}
.display.xl { font-size: clamp(44px, 6.4vw, 96px); }
.display.l { font-size: clamp(34px, 4.2vw, 64px); }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--dim); max-width: 46ch; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; overflow: hidden; isolation: isolate;
  font: 500 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: color .35s var(--ease);
}
/* the fill sweeps in from the left, the way traffic arrives at the front */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.btn:hover { color: var(--void); }
.btn:hover::before { transform: scaleX(1); }
.btn.solid { color: var(--void); }
.btn.solid::before { transform: scaleX(1); transform-origin: right; }
.btn.solid:hover { color: var(--ink); }
.btn.solid:hover::before { transform: scaleX(0); }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 12px; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--allow); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.nav.scrolled { background: rgba(6, 13, 21, .78); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; gap: 40px; height: 84px; }
.nav .brand { flex: none; }
.nav .brand img { height: 36px; width: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { white-space: nowrap; }
.nav ul a, .nav .signin { position: relative; font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--ink); opacity: .82; transition: opacity .2s; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover, .nav .signin:hover { opacity: 1; }
.nav ul a:hover::after { transform: scaleX(1); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
@media (max-width: 1320px) { .nav .signin { display: none; } }
.lang { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font: 500 12px/1 var(--sans); letter-spacing: .06em; text-decoration: none; color: var(--dim); transition: color .2s, background .2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: rgba(232, 238, 246, .12); color: var(--ink); }
.lang img { width: auto; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(232, 238, 246, .2); }
@media (max-width: 1180px) { .nav ul, .nav .signin { display: none; } .nav .brand img { height: 30px; } .nav .wrap { height: 70px; gap: 16px; } .nav .right { gap: 12px; } }
@media (max-width: 480px) { .nav .btn.small { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-content: end; padding-block: 150px 0; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: .32; filter: saturate(.9); animation: breathe 30s ease-in-out infinite alternate; }
.shock { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,13,21,.9) 0%, rgba(6,13,21,.55) 34%, rgba(6,13,21,0) 60%), linear-gradient(0deg, var(--void) 0%, rgba(6,13,21,0) 30%); }
.hero-copy { display: grid; gap: 28px; padding-bottom: 36px; }
.hero-copy .display { max-width: 16ch; }
.hero-copy > * { animation: rise 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.status { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(6,13,21,.5); backdrop-filter: blur(8px); font-size: 14px; color: var(--ink); }
.hero-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 22px 30px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.hero-legend span { display: inline-flex; align-items: center; gap: 10px; }
.hero-legend i { display: inline-block; width: 22px; height: 2px; border-radius: 2px; }
.k-wind { background: linear-gradient(90deg, transparent, var(--dim)); }
.k-block { background: linear-gradient(90deg, transparent, var(--shock)); }
.credit { position: absolute; right: var(--gutter); bottom: 18px; font: 400 12px/1.3 var(--sans); color: var(--faint); max-width: 44ch; text-align: right; }
.hero .credit { bottom: 34px; }
@media (max-width: 700px) {
  /* on a phone the shock gets its own band above the copy instead of sitting behind it */
  .hero { padding-top: 42svh; }
  .shock { height: 48svh; bottom: auto; }
  .hero::after { background: linear-gradient(0deg, var(--void) 0%, var(--void) 52%, rgba(6,13,21,0) 70%); }
  .hero .credit { position: static; text-align: left; padding: 0 var(--gutter) 20px; }
}

/* ---------- compatibility ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 28px 32px; }
.strip .wrap { display: grid; gap: 18px; }
.strip p { font-size: 14px; color: var(--dim); }
.compat { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1280px) { .compat { justify-content: space-between; } }
.compat li { font: 600 18px/1 var(--display); font-stretch: 94%; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); opacity: .62; white-space: nowrap; }

/* ---------- figures ---------- */
.figures .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(56px, 7vw, 88px) 0; }
.figure { padding: 0 28px; border-left: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure b { font: 600 clamp(40px, 4vw, 56px)/.9 var(--display); font-stretch: 94%; font-variant-numeric: tabular-nums; }
.figure b small { font-size: .4em; margin-left: 4px; letter-spacing: .02em; }
.figure > span { font-size: 15px; color: var(--dim); max-width: 26ch; }
@media (max-width: 900px) { .figures .wrap { grid-template-columns: 1fr 1fr; gap: 44px 0; } .figure:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- split sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.copy { display: grid; gap: 28px; align-content: start; min-width: 0; }
.copy .display { max-width: 14ch; }
.copy .text { color: var(--dim); max-width: 48ch; display: grid; gap: 16px; }
.textlink { font: 500 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; justify-self: start; padding-bottom: 7px; background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1.5px no-repeat; transition: background-size .35s var(--ease); }
.textlink:hover { background-size: 30% 1.5px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.legend { margin: 0; display: grid; gap: 12px; }
.legend div { display: flex; align-items: center; gap: 12px; }
.legend dt { flex: none; width: 76px; }
.legend dd { margin: 0; font-size: 14.5px; color: var(--dim); }

/* the decision log */
.log { margin: 0; min-width: 0; background: var(--void-2); border: 1px solid var(--line); font: 400 13.5px/1 var(--mono); position: relative; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.log header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--sans); font-size: 13px; }
.log header > span { display: inline-flex; align-items: center; gap: 9px; }
.log header b { font-weight: 500; color: var(--ink); }
.log ol { list-style: none; margin: 0; padding: 0; height: calc(6 * 50px); overflow: hidden; }
.log li { display: grid; grid-template-columns: 70px 52px 1fr auto; gap: 16px; align-items: center; height: 50px; padding: 0 20px; white-space: nowrap; border-bottom: 1px solid rgba(232,238,246,.05); }
.log li.enter { animation: slot .6s var(--ease) both; }
@keyframes slot { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: none; } }
.log time { color: var(--faint); }
.log .who { color: var(--dim); }
.log .what { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.log li.blocked { background: linear-gradient(90deg, rgba(255,79,109,.14), transparent 70%); }
.log li.blocked.enter { animation: slot .6s var(--ease) both, hit 1.4s .3s ease-out; }
@keyframes hit { 0% { box-shadow: inset 3px 0 0 var(--shock); } 100% { box-shadow: inset 3px 0 0 transparent; } }
.log figcaption { padding: 14px 20px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--sans); color: var(--faint); }
.verdict { display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border: 1px solid; line-height: 1; }
.verdict.allow { color: var(--allow); }
.verdict.redact { color: var(--redact); }
.verdict.flag { color: var(--flag); }
.verdict.block { color: var(--void); background: var(--shock); border-color: var(--shock); }
@media (max-width: 620px) { .log li { grid-template-columns: 1fr auto; } .log time, .log .who { display: none; } }

/* ---------- photo panels ---------- */
.panel { position: relative; isolation: isolate; min-height: 86svh; display: flex; align-items: flex-end; padding-block: 140px clamp(64px, 10vh, 120px); overflow: hidden; }
.panel .photo-wrap { position: absolute; inset: -6% -2%; z-index: -2; overflow: hidden;
  translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -12px); transition: translate .8s var(--ease); }
.panel .photo { width: 100%; height: 100%; object-fit: cover; animation: breathe 26s ease-in-out infinite alternate; }
.streaks { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes breathe { from { scale: 1; } to { scale: 1.07; } }
/* first sight: the photo is uncovered from the left, the direction the wind comes from */
.panel.armed .photo-wrap { clip-path: inset(0 100% 0 0); transition: translate .8s var(--ease), clip-path .75s cubic-bezier(.6, 0, .2, 1); }
.panel.armed.seen .photo-wrap { clip-path: inset(0 0 0 0); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,13,21,.92) 0%, rgba(6,13,21,.5) 42%, rgba(6,13,21,0) 72%), linear-gradient(0deg, var(--void) 0%, rgba(6,13,21,0) 38%), linear-gradient(180deg, var(--void) 0%, rgba(6,13,21,0) 28%); }
.panel .wrap { display: grid; gap: 28px; }
.panel .display { max-width: 18ch; }
.closing { min-height: 80svh; align-items: center; }
.closing .photo { object-position: 60% 50%; }
.mail { font-size: 15px; color: var(--dim); }

/* scroll-linked: the photos drift behind their headline */
@supports (animation-timeline: view()) {
  .panel .photo-wrap { animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { transform: translateY(-5%) scale(1.06); } to { transform: translateY(5%) scale(1); } }
}

/* ---------- bento ---------- */
.bento-wrap { padding-block: 0 clamp(24px, 3vw, 40px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; background: var(--void-2); border: 1px solid var(--line); padding: 30px; display: grid; gap: 26px; align-content: space-between; min-height: 260px; transition: border-color .3s; }
.tile:hover { border-color: var(--line-2); }
.tile-copy { display: grid; gap: 8px; max-width: 34ch; }
.tile h3 { font: 600 26px/1 var(--display); font-stretch: 94%; letter-spacing: .03em; text-transform: uppercase; margin: 0; }
.tile p { font-size: 15.5px; color: var(--dim); }
.t-tools { grid-column: span 4; grid-template-columns: 1fr 1.3fr; align-items: start; }
.t-models { grid-column: span 2; }
.t-data, .t-spend { grid-column: span 3; }
.t-topics { grid-column: span 6; grid-template-columns: 1fr 2fr; align-items: start; min-height: 0; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-tools, .t-topics, .t-models { grid-column: span 2; grid-template-columns: 1fr; }
  .t-data, .t-spend { grid-column: span 1; }
}
@media (max-width: 620px) { .bento > * { grid-column: 1 / -1 !important; } }

.yaml { margin: 0; min-width: 0; padding: 20px 22px; background: var(--void); border: 1px solid var(--line); font: 400 14px/1.75 var(--mono); color: var(--ink); overflow-x: auto; }
.yaml .k { color: var(--field); }
.yaml .n { color: var(--flag); }
.yaml .c { color: var(--faint); }
.yaml .b { color: var(--shock); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: end; }
.chips li { font: 400 13.5px/1 var(--mono); padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.chips .ok::before { background: var(--allow); }
.chips .no { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--shock); border-color: rgba(255,79,109,.4); }
.chips .no::before { background: var(--shock); }

.tile .redaction { font: 400 16px/1.9 var(--mono); color: var(--ink); }
.pii { position: relative; color: var(--redact); transition: color .4s; }
.pii::after { content: attr(data-mask); position: absolute; left: 0; top: 0; color: var(--redact); white-space: nowrap; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); }
.redacted .pii { color: transparent; }
.redacted .pii::after { clip-path: inset(0 0 0 0); }
.redacted .pii:nth-child(2)::after { transition-delay: .25s; }
.redacted .pii:nth-child(3)::after { transition-delay: .5s; }

.meter { display: grid; gap: 14px; }
.bar { height: 10px; background: var(--void); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--field), var(--flag)); transition: width 1.6s var(--ease); }
.in .bar span { width: var(--v); }
.meter-row { display: flex; align-items: baseline; gap: 10px; }
.meter-row b { font: 600 34px/1 var(--display); font-stretch: 94%; }
.meter-row span { font-size: 14px; color: var(--dim); }

/* ---------- product tour ---------- */
.tour .wrap { display: grid; gap: 48px; }
.tour-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.tour-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tour-tabs button { position: relative; text-align: left; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 22px 20px 0 0; display: grid; grid-template-columns: 30px 1fr; gap: 6px; font: 300 14.5px/1.5 var(--sans); }
.tour-tabs b { font: 600 18px/1.3 var(--display); color: var(--faint); }
.tour-tabs strong { display: block; font-weight: 500; font-size: 16px; color: var(--dim); margin-bottom: 4px; }
.tour-tabs [aria-selected="true"] strong, .tour-tabs [aria-selected="true"] b { color: var(--ink); }
.tour-tabs .progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--field); transform: scaleX(0); transform-origin: left; }
.tour-tabs [aria-selected="true"] .progress { animation: progress var(--tour, 6s) linear forwards; }
.tour.paused .tour-tabs [aria-selected="true"] .progress { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.window { margin: 0; border: 1px solid var(--line-2); background: var(--void-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.chrome span { margin-left: 14px; font: 400 12px/1 var(--mono); color: var(--faint); }
.window { overflow: hidden; }
.window img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; transition: opacity .35s, filter .35s, scale .5s var(--ease); }
.window img.swap { opacity: 0; filter: blur(10px); scale: 1.03; }
@media (max-width: 900px) {
  .tour-head { grid-template-columns: 1fr; }
  .tour-tabs { grid-template-columns: 1fr 1fr; }
  .tour-tabs button { padding-bottom: 18px; }
}

/* ---------- managed models ---------- */
.models { border-top: 1px solid var(--line); }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip .copy { order: 2; }
.points { list-style: none; margin: clamp(56px, 6vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.points li { display: grid; gap: 10px; align-content: start; padding: 30px 28px 4px 0; border-top: 1px solid var(--line); }
.points li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.points h3 { font: 500 17px/1.3 var(--sans); margin: 0; }
.points p { font-size: 15px; color: var(--dim); }
@media (max-width: 1100px) { .points { grid-template-columns: 1fr 1fr; } .points li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 620px) { .points { grid-template-columns: 1fr; } .points li, .points li + li { padding: 24px 0 20px; border-left: 0; } }
.text code { font: 400 .86em/1 var(--mono); color: var(--ink); }

/* an alias and its ordered targets; on first sight it plays one fallback */
.route { margin: 0; min-width: 0; background: var(--void-2); border: 1px solid var(--line); font: 400 13.5px/1 var(--mono); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.route header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--sans); font-size: 13px; }
.route header b { font: 500 14px/1 var(--mono); color: var(--ink); }
.route ol { list-style: none; margin: 0; padding: 0; }
.route li { display: grid; grid-template-columns: 22px 92px 1fr auto; gap: 16px; align-items: center; height: 64px; padding: 0 20px; white-space: nowrap; border-bottom: 1px solid rgba(232,238,246,.05); }
.route li b { font: 600 17px/1 var(--display); color: var(--faint); }
.route .prov { color: var(--dim); }
.route .model { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.route .res { font-size: 12.5px; color: var(--faint); }
.route .r-fail .model { color: var(--dim); }
.route .r-ok { background: rgba(0, 212, 255, .07); }
.route .r-ok b, .route .r-ok .res { color: var(--field); }
.route .r-idle .model { color: var(--faint); }
.route-event { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.route-event .what { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.route-event .verdict { flex: none; }
.route figcaption { padding: 14px 20px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--sans); color: var(--faint); }
.route.armed:not(.play) .res, .route.armed:not(.play) .route-event { opacity: 0; }
.route.armed:not(.play) .r-ok { background: transparent; }
.route.play .r-fail { animation: attempt 1.1s .2s var(--ease) both; }
.route.play .r-fail .res { animation: fade .4s 1s both; }
.route.play .r-ok { animation: land .6s 1.3s var(--ease) both; }
.route.play .r-ok .res { animation: fade .4s 1.9s both; }
.route.play .r-idle .res { animation: fade .4s 2.3s both; }
.route.play .route-event { animation: rise .6s 2.6s var(--ease) both; }
@keyframes attempt { 0%, 100% { background: transparent; } 35% { background: rgba(0, 212, 255, .07); } }
@keyframes land { from { background: transparent; } to { background: rgba(0, 212, 255, .07); } }
@media (min-width: 901px) { .split.flip .route { order: 1; } }
@media (max-width: 900px) { .split.flip { grid-template-columns: 1fr; } .split.flip .copy { order: 0; } }
@media (max-width: 620px) {
  .route-event .what { white-space: normal; line-height: 1.6; }
  .route li { grid-template-columns: 18px 1fr auto; gap: 12px; }
  .route .prov { display: none; }
  .route header span { display: none; }
  .code .tabs { overflow-x: auto; scrollbar-width: none; }
  .code .tabs button { padding: 16px 12px; white-space: nowrap; }
  .code .copy-btn { position: sticky; right: 0; background: var(--void); box-shadow: -12px 0 12px -4px var(--void); }
}

/* ---------- developers ---------- */
.dev { background: var(--void-2); border-block: 1px solid var(--line); }
.code { margin: 0; min-width: 0; border: 1px solid var(--line); background: var(--void); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.code .tabs { display: flex; border-bottom: 1px solid var(--line); }
.code .tabs button { font: 500 13px/1 var(--sans); color: var(--dim); background: none; border: 0; border-bottom: 2px solid transparent; padding: 16px 20px; cursor: pointer; }
.code .tabs [aria-selected="true"] { color: var(--ink); border-color: var(--field); }
.code .copy-btn { margin-left: auto; color: var(--faint); }
.code .copy-btn:hover { color: var(--ink); }
.code pre { margin: 0; padding: 28px 24px; overflow-x: auto; font: 400 15px/1.8 var(--mono); color: var(--ink); min-height: 190px; }
.code .c { color: var(--faint); }
.code .k { color: var(--field); }
.code .s { color: #a5e6c8; }

/* ---------- trust ---------- */
.trust ul { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust li { padding: 34px 32px 38px 0; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.trust li:nth-child(3n+2), .trust li:nth-child(3n) { padding-left: 32px; border-left: 1px solid var(--line); }
.trust h3 { font: 500 19px/1.3 var(--sans); margin: 0; }
.trust p { font-size: 15.5px; color: var(--dim); }
@media (max-width: 900px) { .trust ul { grid-template-columns: 1fr; } .trust li, .trust li:nth-child(3n+2), .trust li:nth-child(3n) { padding-left: 0; border-left: 0; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 72px 36px; font-size: 14px; color: var(--dim); }
footer .cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; }
footer .cols > div { display: grid; gap: 12px; align-content: start; }
footer .cols p { max-width: 30ch; }
footer h4 { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 6px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .fine { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--faint); }
footer .fine p { max-width: 90ch; }
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- footer composition: the logo assembles itself, then keeps working ----------
   Intro: wind draws in, the front and the agent appear, letters rise, an attack hits the
   front. Then it loops: wind flows, an attack crosses every 4.5 s and stops in a spark.
   Without .armed (no JS, reduced motion) it is the plain, complete logo. */
.footer-stage { position: relative; margin-top: 96px; padding-block: 24px; }
.footer-stage::before { content: ""; position: absolute; left: -4%; top: -30%; width: 46%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,79,109,.16), transparent); filter: blur(10px); }
.mark-anim { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.mark-anim * { transform-box: fill-box; }
.mark-anim .flow, .mark-anim .bolt, .mark-anim .ring { opacity: 0; }

.armed .wind { stroke-dasharray: 1; animation: draw 1.1s var(--ease) calc(var(--n) * .09s) both; }
.armed .hit { stroke-dasharray: 1; animation: draw .5s var(--ease) 1.15s both; }
.armed .orbit { stroke-dasharray: 1; animation: draw 1s var(--ease) .85s both; }
.armed .front { transform-origin: left center; animation: front .7s var(--ease) .4s both; }
.armed .agent { transform-origin: center; animation: agent .8s cubic-bezier(.3, 1.5, .5, 1) .7s both; }
.armed .ch { animation: letter .8s var(--ease) calc(.95s + var(--n) * .05s) both; }
.armed .glow { transform-origin: center; animation: fade 1s ease 1.5s both, glow 4.5s ease-in-out 2.6s infinite; }
.armed .spark { transform-origin: center; animation: flash .7s cubic-bezier(.3, 1.6, .5, 1) 1.55s both, pulse 4.5s ease-out 2.6s infinite; }
.armed .flow { stroke-dasharray: .035 .165; animation: fade .8s ease 2.2s forwards, flow 5s linear 2.2s infinite; }
.armed .bolt { stroke-dasharray: .16 1.2; stroke-dashoffset: .16; animation: bolt 4.5s linear 2.6s infinite; }
.armed .ring { transform-origin: center; animation: ring 4.5s ease-out 2.6s infinite; }
.armed:not(.play) * { animation-play-state: paused; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes front { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: none; } }
@keyframes agent { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes letter { from { transform: translateY(115%); } to { transform: none; } }
@keyframes flash { 0% { transform: scale(0) rotate(-45deg); } 100% { transform: none; } }
@keyframes flow { to { stroke-dashoffset: -1; } }
/* the attack travels the first 20% of the cycle, then the front lights up where it stopped */
@keyframes bolt { 0% { stroke-dashoffset: .16; opacity: 1; } 19% { stroke-dashoffset: -.98; opacity: 1; } 20%, 100% { stroke-dashoffset: -.98; opacity: 0; } }
@keyframes pulse { 0%, 19% { transform: none; } 23% { transform: scale(1.6); } 34%, 100% { transform: none; } }
@keyframes ring { 0%, 19% { opacity: 0; transform: scale(.4); } 21% { opacity: .9; } 45%, 100% { opacity: 0; transform: scale(3.2); } }
@keyframes glow { 0%, 19% { opacity: 1; } 24% { opacity: 1.6; transform: scale(1.25); } 45%, 100% { opacity: 1; transform: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bar span { width: var(--v); }
}
.tour:not(.inview) .tour-tabs .progress { animation-play-state: paused; }

/* ---------- legal pages (tools/build_legal.py): a readable column, the site's tokens ---------- */
.legal-page .nav { position: sticky; top: 0; background: rgba(6, 13, 21, .92); border-bottom-color: var(--line); }
.legal-page .nav .wrap { justify-content: space-between; height: 72px; }
.legal-page .nav .right { display: flex; align-items: center; gap: 24px; }
.legal { padding-block: 56px 96px; }
.legal .wrap { max-width: 760px; }
.legal header { margin-bottom: 40px; }
.legal .eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.legal h1 { font: 600 clamp(34px, 5vw, 52px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 12px; }
.legal .version { font: 400 13px/1.4 var(--mono); color: var(--faint); margin: 0 0 28px; }
.legal .lede { max-width: none; }
.legal .toc { border: 1px solid var(--line); padding: 20px 24px; margin-bottom: 48px; font-size: 15px; }
.legal .toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2 240px; column-gap: 32px; }
.legal .toc li { break-inside: avoid; padding: 3px 0; }
.legal .toc a { text-decoration: none; color: var(--dim); }
.legal .toc a:hover { color: var(--ink); }
.legal section { scroll-margin-top: 96px; margin-bottom: 36px; }
.legal h2 { font: 500 22px/1.3 var(--sans); margin: 0 0 12px; }
.legal p, .legal li { color: var(--dim); font-size: 17px; }
.legal b { color: var(--ink); font-weight: 500; }
.legal i { font-style: normal; display: block; border-left: 2px solid var(--line); padding-left: 16px; color: var(--faint); font-size: 15px; }
.legal ul { padding-left: 20px; margin: 0 0 16px; }
.legal a { color: var(--field); }
footer .legal-fine { display: grid; gap: 8px; justify-content: start; margin-top: 0; border-top: 0; padding-top: 0; }
@media (max-width: 640px) { .legal-page .nav .signin { display: none; } }
