/* Antramind — "the colony film": a full-screen painted story plays behind glass cards.
   Warm amber earth (the natural colony) turns to cyan circuitry (the agents). */
:root {
  --bg: #0b0806;
  --ink: #f4ecdc;
  --muted: #c4b8a2;
  --line: rgba(244, 236, 220, .14);
  --amber: #f2a33a;
  --amber-soft: rgba(242, 163, 58, .18);
  --cyan: #3fe0d0;
  --cyan-soft: rgba(63, 224, 208, .16);
  --red: #ff5a4f;
  --glass: rgba(12, 9, 7, .64);

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(18px, 5vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16.5px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .22em; color: var(--cyan); margin: 0 0 18px; }
.display {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(27px, 3.3vw, 56px); line-height: 1.04; letter-spacing: -.035em; margin: 0;
  overflow-wrap: break-word; text-wrap: balance;
}
.display em { font-style: normal; color: var(--amber); }
/* the gradient sits on each word: split words are inline-blocks, which a parent's
   background-clip:text would not paint through */
.display em, .display em .w > span {
  background: linear-gradient(100deg, var(--amber) 0%, #ffd58a 60%, #ffe2a8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.display em:has(.w) { background: none; -webkit-text-fill-color: currentColor; }
.lead { font-size: clamp(16px, 1.22vw, 19px); color: var(--ink); opacity: .92; margin: 18px 0 0; }
.card p { color: var(--muted); }
.card p.lead { color: var(--ink); }
.card b { color: var(--ink); }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; will-change: transform; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px; transition: transform .3s, background .3s, color .3s, border-color .3s;
}
.btn--ghost { border: 1px solid var(--line); background: rgba(11, 8, 6, .45); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--solid { background: var(--amber); color: var(--bg); box-shadow: 0 0 60px var(--amber-soft); }
.btn--solid:hover { transform: translateY(-2px); background: #ffbb5c; }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; background: #000; }
.stage canvas, .stage__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__fallback { object-fit: cover; max-width: none; }
.stage.gl-on .stage__fallback { display: none; }
.stage__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 78%, rgba(0,0,0,.55) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 18px; }
.loader__icon { width: 84px; filter: drop-shadow(0 0 30px var(--cyan-soft)); }
.loader__count { font-family: var(--f-display); font-size: 44px; font-weight: 600; }
.loader__line { width: 200px; height: 2px; background: var(--line); overflow: hidden; }
.loader__line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--amber)); transform-origin: left; transform: scaleX(0); }
.loader__hint { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .2em; margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px var(--pad);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), background .4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: linear-gradient(rgba(8,6,5,.85), rgba(8,6,5,0)); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 26px; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .3s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 10px 20px; font-size: 14px; }

/* ---------- chapter rail ---------- */
.rail { position: fixed; left: calc(var(--pad) * .4); top: 50%; z-index: 60; transform: translateY(-50%); pointer-events: none; }
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rail__list li { width: 6px; height: 6px; border-radius: 50%; background: rgba(244,236,220,.3); transition: background .4s, box-shadow .4s, transform .4s; }
.rail__list li.done { background: rgba(242,163,58,.75); }
.rail__list li.on { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform: scale(1.6); }
.rail__now { display: none; }

/* ---------- audit log: the system that watches ---------- */
.log {
  position: fixed; left: calc(var(--pad) * .4 + 26px); bottom: 18px; z-index: 5; width: min(390px, 32vw);
  font-size: 11.5px; line-height: 1.55; pointer-events: none;
  background: rgba(6, 8, 9, .74); border: 1px solid rgba(63,224,208,.25); border-radius: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 12px;
  opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s;
}
.log.is-on { opacity: 1; transform: none; }
.log__head { display: flex; align-items: center; gap: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; margin-bottom: 6px; }
.log__head i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.log__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; min-height: 6.2em; align-content: end; }
.log__lines li:not(:nth-last-child(-n+4)) { display: none; }
.log__lines li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(244,236,220,.8); animation: logIn .35s ease both; }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } }
.log__lines .t { color: rgba(244,236,220,.38); margin-right: 6px; }
.log__lines .ok { color: var(--cyan); }
.log__lines .no { color: var(--red); }
.log__lines .wait { color: var(--amber); }

/* ---------- story chapters ---------- */
main { position: relative; z-index: 10; }
.ch { position: relative; padding-bottom: 80vh; }     /* the empty tail is where the film transition plays */
.beat { min-height: 175vh; display: flex; align-items: flex-start; padding: 0 var(--pad) 0 calc(var(--pad) + 16px); }
.card {
  position: sticky; top: max(84px, 13vh);
  width: min(500px, 100%);
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(20px, 2.3vw, 34px);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.beat + .beat { margin-top: -15vh; }
.card--right { margin-left: auto; }
.card--wide { width: min(600px, 100%); }
.card--alert { border-color: rgba(255,90,79,.5); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(255,90,79,.2); }
.card--alert .eyebrow { color: var(--red); }
.card > p:not(.eyebrow):not(.lead) { margin: 14px 0 0; font-size: 15.5px; }

.ch--hero .beat--hero { min-height: 100vh; align-items: center; position: relative; }
.card--hero { position: relative; top: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; width: min(780px, 100%); max-height: none; padding: 0; overflow: visible; }
.card--hero .display { font-size: clamp(40px, 6.4vw, 110px); line-height: .96; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.card--hero .lead { max-width: 46ch; text-shadow: 0 2px 20px rgba(0,0,0,.9); }
.scroll-cue { margin-top: 34px; display: flex; align-items: center; gap: 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .2em; color: var(--ink); opacity: .8; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--amber), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.ch--end { padding-bottom: 25vh; }
.beat--end { justify-content: center; padding: 0 var(--pad); }
.card--center { text-align: center; margin: 0 auto; width: min(640px, 100%); }
.card--center .lead { margin-left: auto; margin-right: auto; max-width: 40ch; }
.card--center .btn { margin-top: 26px; }
.card__antra { width: 116px; margin: -6px auto 10px; filter: drop-shadow(0 0 30px rgba(63,224,208,.35)); }

/* ---------- card content ---------- */
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid rgba(63,224,208,.5); }
.facts b { font-size: 15px; }
.facts span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 12.5px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(63,224,208,.35); background: rgba(63,224,208,.07); color: var(--ink);
}
.chips li:nth-child(3n+2) { border-color: rgba(242,163,58,.4); background: rgba(242,163,58,.08); }

.steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--muted); font-size: 15.5px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: var(--f-mono); font-size: 12px; color: var(--cyan);
  border: 1px solid rgba(63,224,208,.4); border-radius: 8px; padding: 1px 6px;
}
.card .note { font-size: 12px; color: var(--amber); margin-top: 18px; }

.gate { margin: 18px 0 0; display: grid; gap: 6px; font-size: 12.5px; }
.gate__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.gate__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gate__row b { flex: none; }
.gate__row.ok b { color: var(--cyan); }
.gate__row.no { border-color: rgba(255,90,79,.45); background: rgba(255,90,79,.08); }
.gate__row.no b { color: var(--red); }

.autopilot { display: flex; align-items: center; gap: 18px; margin: 22px 0 4px; }
.autopilot__switch { width: 72px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.4); position: relative; flex: none; }
.autopilot__switch i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--muted); }
.autopilot__labels { position: relative; font-size: 12.5px; min-height: 3.2em; flex: 1; }
.autopilot__labels span { position: absolute; left: 0; top: 0; width: 100%; }
.autopilot__labels .on { opacity: 0; color: var(--cyan); }

.shot { margin: 18px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; height: auto; max-height: 32vh; object-fit: cover; object-position: top; }

.tabs { margin-top: 20px; }
.tabs__bar { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs__bar button {
  font: inherit; font-size: 12px; color: var(--muted); cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  transition: color .3s, border-color .3s, background .3s;
}
.tabs__bar button:hover { color: var(--ink); border-color: var(--amber); }
.tabs__bar button[aria-selected="true"] { color: var(--bg); background: var(--amber); border-color: var(--amber); }
.tabs__panes { margin-top: 14px; }
.pane { display: none; }
.pane.is-on { display: block; animation: pane .5s ease both; }
@keyframes pane { from { opacity: 0; transform: translateY(8px); } }
.card .pane p { margin: 0 0 12px; font-size: 15px; }
.pane img { border-radius: 12px; border: 1px solid var(--line); width: 100%; height: auto; max-height: 28vh; object-fit: cover; object-position: top; }

.grid2 { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.grid2 li { display: grid; gap: 3px; align-content: start; padding-top: 10px; border-top: 1px solid var(--line); }
.grid2 b { font-size: 14.5px; }
.grid2 span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.layers { margin: 18px 0 0; display: grid; gap: 6px; font-size: 12px; }
.layers__l { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(63,224,208,.3); background: rgba(63,224,208,.06); }
.layers__l span { color: var(--muted); }
.layers .l2 { margin: 0 6%; border-color: rgba(63,224,208,.45); background: rgba(63,224,208,.1); }
.layers .l3 { margin: 0 12%; border-color: var(--cyan); background: rgba(63,224,208,.16); box-shadow: 0 0 24px rgba(63,224,208,.18); }

.net { margin: 22px 0 6px; }
.net__track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(63,224,208,.35), rgba(242,163,58,.35), rgba(255,90,79,.35)); border: 1px solid var(--line); }
.net__knob { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -2px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.net__opts { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); }
.net__opts span { transition: color .3s; }
.net__opts span.on { color: var(--ink); }

/* ---------- after the story ---------- */
.more { position: relative; padding: 18vh var(--pad) 10vh; background: linear-gradient(rgba(8,6,5,0), rgba(8,6,5,.9) 14vh, var(--bg) 42vh); }
.more__head { margin-bottom: 6vh; }
.more__head .display { font-size: clamp(32px, 4.6vw, 76px); }
.more__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cap { padding: 24px 20px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.cap::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 0% 0%, var(--amber-soft), transparent 70%); opacity: 0; transition: opacity .5s; }
.cap:hover::before { opacity: 1; }
.cap span { font-size: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; position: relative; }
.cap h3 { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; line-height: 1.2; margin: 12px 0 8px; position: relative; }
.cap p { color: var(--muted); margin: 0; font-size: 14.5px; position: relative; }


.footer { position: relative; z-index: 10; background: var(--bg); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer__note { margin-inline-start: auto; }

/* ---------- responsive ---------- */
/* ---------- hero: film + where it runs ---------- */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.hero__actions .btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn svg { width: 18px; height: 18px; margin-left: -4px; }
.btn .mono { font-size: 12px; font-weight: 500; opacity: .7; }
.hero__deploy { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 11.5px; }
.hero__deploy li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(63,224,208,.3); background: rgba(8, 12, 12, .5); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__deploy li:last-child { border-color: rgba(242,163,58,.45); color: #ffd58a; }

.hero-film {
  position: absolute; right: var(--pad); bottom: 14vh; width: min(400px, 30vw); padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #000; color: var(--ink); font: inherit; text-align: left;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 60px var(--amber-soft); transition: transform .4s, border-color .4s;
}
.hero-film img { display: block; width: 100%; height: auto; aspect-ratio: 16/7; object-fit: cover; object-position: 50% 0; opacity: .85; transition: opacity .4s, transform .6s; }
.hero-film__play { position: absolute; left: 50%; top: 42%; width: 62px; height: 62px; margin: -31px 0 0 -31px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--bg); box-shadow: 0 0 0 10px rgba(242,163,58,.22), 0 0 50px rgba(242,163,58,.5); transition: transform .4s; }
.hero-film__play svg { width: 26px; height: 26px; margin-left: 3px; }
.hero-film__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: 11px; color: var(--muted); background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero-film__cap b { display: block; font-family: var(--f-display); font-size: 17px; color: var(--ink); letter-spacing: 0; margin-bottom: 2px; }
.hero-film:hover { transform: translateY(-4px); border-color: var(--amber); }
.hero-film:hover img { opacity: 1; transform: scale(1.03); }
.hero-film:hover .hero-film__play { transform: scale(1.08); }

.filmbox { width: min(92vw, calc(84vh * 1.78)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #000; overflow: visible; box-shadow: 0 0 140px rgba(242,163,58,.22); }
.filmbox::backdrop { background: rgba(5, 4, 3, .86); backdrop-filter: blur(8px); }
.filmbox video { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 20px; background: #000; }
.filmbox__x { position: absolute; top: -48px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,16,12,.8); color: var(--ink); font-size: 16px; cursor: pointer; }
.filmbox__x:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- demo form ---------- */
.demo { margin-top: 22px; text-align: left; }
@media (min-width: 1000px) {
  .card--demo { width: min(1040px, 100%); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; text-align: left; }
  .card--demo .card__antra { margin: 0 0 14px; }
  .card--demo .lead { margin-left: 0; }
  .card--demo .demo { margin-top: 0; }
}
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.demo label { display: grid; gap: 5px; min-width: 0; }
.demo label > span { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.demo label i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }
.demo input, .demo select, .demo textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--ink);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  transition: border-color .25s, box-shadow .25s;
}
.demo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.demo select option { background: #1a1410; color: var(--ink); }
.demo textarea { resize: vertical; min-height: 46px; }
.demo input::placeholder { color: rgba(196, 184, 162, .45); }
.demo input:focus, .demo select:focus, .demo textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.demo [aria-invalid="true"] { border-color: var(--red); }
.demo__wide { grid-column: 1 / -1; }
.demo__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo .btn { margin-top: 18px; width: 100%; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.demo .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.demo__status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; text-align: center; }
.card .demo__status.ok { color: var(--cyan); }
.card .demo__status.no { color: var(--red); }
.demo.is-sent .demo__grid, .demo.is-sent .btn { display: none; }
.demo.is-sent .demo__status { font-size: 16px; padding: 18px 0 6px; }

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .hero-film { display: none; }
  .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 860px) and (min-width: 761px) {
  .display { font-size: clamp(25px, 2.7vw, 42px); }
  .card { padding: 22px 26px; top: 80px; }
  .lead { font-size: 15.5px; margin-top: 12px; }
  .facts { gap: 8px; margin-top: 14px; }
  .facts span, .grid2 span { font-size: 13px; }
  .card > p:not(.eyebrow):not(.lead) { font-size: 14px; }
  .shot img, .pane img { max-height: 24vh; }
  .eyebrow { margin-bottom: 12px; }
  .card__antra { display: none; }
  .demo { margin-top: 14px; }
  .demo__grid { gap: 7px 12px; }
  .demo input, .demo select, .demo textarea { padding: 7px 11px; font-size: 14px; }
  .demo .btn { margin-top: 12px; padding: 11px 22px; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .rail { display: none; }
  /* phones: the audit stream would sit on top of the cards, so it stays a desktop detail */
  .log { display: none; }
  .nav { padding: 12px 16px; }
  .nav__logo img { height: 26px; }
  .nav__cta { padding: 9px 16px; font-size: 13px; }
  /* phones: the scene gets the screen first, then the card scrolls over it */
  .beat, .beat--end { display: block; min-height: 0; padding: 62vh 12px 0; }
  .beat + .beat { margin-top: 0; padding-top: 30vh; }
  .card, .card--wide { position: relative; top: auto; width: 100%; margin: 0; max-height: none; overflow: visible; padding: 20px; }
  .display { font-size: 25px; }
  .ch--hero .beat--hero { display: flex; min-height: 100vh; min-height: 100svh; padding: 84px 16px 9vh; align-items: flex-end; }
  .card--hero .display { font-size: clamp(32px, 9.4vw, 40px); }
  .card--hero .lead { font-size: 15.5px; }
  .card--hero .eyebrow { font-size: 10.5px; letter-spacing: .16em; }
  .scroll-cue { margin-top: 22px; }
  .scroll-cue span { height: 30px; }
  .hero__actions { margin-top: 22px; }
  .hero__actions { gap: 8px; }
  .hero__actions .btn { padding: 12px 16px; font-size: 14px; gap: 8px; min-height: 46px; }
  .hero__actions .btn .mono { display: none; }
  .hero__deploy { margin-top: 16px; font-size: 10.5px; gap: 6px; }
  .hero__deploy li { padding: 5px 10px; }
  .filmbox { width: 96vw; }
  .grid2, .more__grid { grid-template-columns: minmax(0, 1fr); }
  .gate__row { flex-wrap: wrap; row-gap: 2px; }
  .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .demo input, .demo select, .demo textarea { font-size: 16px; }
  .gate__row span { white-space: normal; }
  .layers .l2, .layers .l3 { margin: 0; }
  .chips { gap: 6px; margin-top: 16px; }
  .chips li { font-size: 11.5px; padding: 5px 10px; }
  .tabs__bar button { min-height: 40px; }
  .lead { font-size: 15.5px; }
  .shot img, .pane img { max-height: 20vh; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue span, .log__head i { animation: none; }
  .pane.is-on { animation: none; }
  .nav, .btn, .hero-film, .hero-film img, .hero-film__play, .net__opts span { transition: none; }
}

/* ---------- accessibility (invisible until used) ---------- */
.skip { position: fixed; left: 16px; top: -100px; z-index: 300; padding: 10px 18px; border-radius: 999px; background: var(--amber); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
main:focus, .ch:focus { outline: none; }
