/* bytesuite.co/labplatform
   Layout: one 1600px column of full-width bands; square corners, hairlines, flat colour.
   Type: Space Grotesk for display and body, JetBrains Mono for labels and captions.
   Self-contained: the site's CSP allows no inline styles, so everything lives here. */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --ground: #f0f0ee;
  --fg: #1a3c2b;
  --fg-2: #3a3a38;
  --muted: rgba(26, 60, 43, .68);
  --line: rgba(26, 60, 43, .2);
  --line-strong: rgba(26, 60, 43, .45);
  --accent: #9effbf;
  --accent-ink: #1a3c2b;
  --coral: #ff8c69;
  --gold: #f4d35e;
  --forest: #1a3c2b;
  --forest-hover: #244d38;
  --paper: #f7f7f5;
  --field: #ffffff;
  --screen: #0a0a0b;
  --font-sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a14; --ground: #152219; --fg: #e8f0ea; --fg-2: #cfd8d1;
    --muted: rgba(232, 240, 234, .66); --line: rgba(232, 240, 234, .18); --line-strong: rgba(232, 240, 234, .4);
    --forest: #15301f; --forest-hover: #1f4530; --paper: #e8f0ea; --field: #0b130e; --accent-ink: #0f1a14;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1a14; --ground: #152219; --fg: #e8f0ea; --fg-2: #cfd8d1;
  --muted: rgba(232, 240, 234, .66); --line: rgba(232, 240, 234, .18); --line-strong: rgba(232, 240, 234, .4);
  --forest: #15301f; --forest-hover: #1f4530; --paper: #e8f0ea; --field: #0b130e; --accent-ink: #0f1a14;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 70; transform: translateY(-200%); }
.skip:focus { transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- type roles ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.eyebrow.soon::before { background: var(--coral); }
.caption { font-family: var(--font-mono); font-size: .66rem; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.display { font-size: clamp(2.5rem, 6vw, 6.2rem); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.display-s { font-size: clamp(2rem, 4.2vw, 4.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; letter-spacing: -.01em; }
.body { font-size: 1rem; line-height: 1.6; color: var(--fg-2); }
.small { font-size: .875rem; line-height: 1.6; color: var(--fg-2); }
.h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.h4 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.measure { max-width: 62ch; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; }
.mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.max-390 { max-width: 390px; } .max-440 { max-width: 440px; } .max-460 { max-width: 460px; } .max-470 { max-width: 470px; } .max-520 { max-width: 520px; }
.fg-2 { color: var(--fg-2); }
.rule-top { padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- layout ---- */
.wrap { max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 56px; } }
.section { padding-block: clamp(64px, 8vw, 120px); }
.section-head { display: grid; gap: 20px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 1024px) { .section-head { grid-template-columns: 8fr 4fr; gap: 48px; } .section-head > .lead { max-width: 420px; justify-self: end; } }
.band { color: var(--paper); background: var(--forest); --fg: var(--paper); --fg-2: rgba(247, 247, 245, .82); --muted: rgba(247, 247, 245, .66); --line: rgba(247, 247, 245, .25); --line-strong: rgba(247, 247, 245, .5); --field: rgba(247, 247, 245, .06); }
.band-mint { background: var(--accent); color: var(--accent-ink); --fg: var(--accent-ink); --fg-2: var(--accent-ink); --muted: rgba(26, 60, 43, .7); --line: rgba(26, 60, 43, .25); --line-strong: rgba(26, 60, 43, .45); }
.band-ground { background: var(--ground); }
.hairline { border-top: 1px solid var(--line); }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 48px; padding: 0 22px; background: var(--forest); color: #f7f7f5; font-size: .95rem; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--forest-hover); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--ground); }
.band .btn-ghost:hover { background: rgba(247, 247, 245, .08); }
.btn-mint { background: var(--accent); color: var(--accent-ink); }
.btn-mint:hover { background: #b6ffcf; }
.linkline { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; border-bottom: 1px solid currentColor; padding-bottom: 2px; text-decoration: none; font-size: .95rem; }
.linkline svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.linkline:hover svg { transform: translate(2px, -2px); }
.arrow { width: 18px; height: 18px; }
.roll { display: inline-grid; overflow: hidden; line-height: 1.35; }
.roll > span { grid-area: 1 / 1; transition: transform .38s var(--ease); }
.roll > span + span { transform: translateY(105%); }
.btn:hover .roll > span { transform: translateY(-105%); }
.btn:hover .roll > span + span { transform: none; }

/* ---- product windows ---- */
.window { border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.window-bar { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.window-bar span:last-child { overflow: hidden; text-overflow: ellipsis; }
.window img { width: 100%; background: var(--screen); }
.window picture { display: block; }
.window figcaption { padding: 10px 12px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.band .window { background: rgba(247, 247, 245, .04); }
.only-sm { display: none; }
@media (max-width: 639px) { .only-sm { display: inline; } .only-lg { display: none; } }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--fg); text-decoration: none; }
.brand svg { height: 28px; width: 161px; }
.brand-tag { display: none; padding: 4px 8px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
@media (min-width: 640px) { .brand-tag { display: inline-block; } .brand svg { height: 30px; width: 173px; } }
.nav { display: none; gap: 32px; font-size: .95rem; }
.nav a { text-decoration: none; transition: color .2s; }
.nav a:hover { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) { .nav { display: flex; } .menu { display: none; } }
.menu summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; padding: 0 12px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--forest); color: #f7f7f5; border-color: var(--forest); }
.menu summary .close, .menu[open] summary .open { display: none; }
.menu[open] summary .close { display: inline; }
.menu-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-block: 1px solid var(--line); padding: 0 var(--gutter) 24px; }
@media (min-width: 640px) { .menu-panel { padding-inline: 32px; } }
.menu-panel a { display: flex; align-items: center; gap: 20px; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu-panel a .n { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; color: var(--muted); }
.menu-panel .btn { margin-top: 20px; width: 100%; border-bottom: 0; }
@media (min-width: 640px) { .menu-panel .btn { display: none; } }

/* ---- ticker ---- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 24px; padding: 10px 12px 10px 24px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; background: var(--coral); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---- hero ---- */
.hero { position: relative; padding-block: 28px 0; }
.hero-mark { position: absolute; width: 14px; height: 14px; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.hero-mark.tl { top: 12px; left: var(--gutter); border-top-width: 2px; border-left-width: 2px; }
.hero-mark.tr { top: 12px; right: var(--gutter); border-top-width: 2px; border-right-width: 2px; }
.hero-mark.bl { bottom: 12px; left: var(--gutter); border-bottom-width: 2px; border-left-width: 2px; }
.hero-mark.br { bottom: 12px; right: var(--gutter); border-bottom-width: 2px; border-right-width: 2px; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; }
.hero-top .caption { color: var(--fg); }
.hero-top .caption:last-child { display: none; }
@media (min-width: 1024px) { .hero-top .caption:last-child { display: block; } }
.hero-title { margin-top: clamp(28px, 4vw, 52px); text-align: center; font-size: clamp(2.9rem, 9vw, 8.4rem); line-height: .92; letter-spacing: -.065em; font-weight: 500; }
.hero-title .w { display: inline-block; animation: rise .9s var(--ease) both; }
.hero-title .w.i1 { animation-delay: 70ms; } .hero-title .w.i2 { animation-delay: 140ms; } .hero-title .w.i3 { animation-delay: 210ms; }
.hero-title .dot { color: var(--coral); }
.hl { display: inline-block; line-height: .8; padding: .02em .05em 0; background: var(--accent); color: var(--accent-ink); }
.hero-lead { margin: clamp(20px, 2.5vw, 32px) auto 0; max-width: 560px; text-align: center; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--fg-2); animation: rise .9s var(--ease) both; animation-delay: .35s; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; animation: rise .9s var(--ease) both; animation-delay: .45s; }
.hero-media { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 56px); animation: rise 1.1s var(--ease) both; animation-delay: .55s; }
@media (min-width: 760px) { .hero-media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } }
.hero-media .window { display: flex; flex-direction: column; }
.hero-media .window picture { flex: 1; min-height: 0; display: flex; }
.hero-media .window img { width: 100%; height: 100%; object-fit: contain; object-position: top; }
.hero-media .window figcaption { margin-top: auto; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 20px 40px; margin-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; }
.hero-foot span, .hero-foot a { display: inline-flex; gap: 12px; align-items: center; min-height: 32px; }
.hero-foot a { text-decoration: none; color: var(--muted); }
.spark { width: 16px; height: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---- gallery (rows switch the media) ---- */
.gallery { display: grid; gap: 28px; }
@media (min-width: 1024px) { .gallery { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } }
.gallery-media { min-width: 0; }
.gallery-panel[hidden] { display: none; }
.gallery-rows { border-top: 1px solid var(--line); }
.gallery-row { display: block; width: 100%; text-align: left; border-bottom: 1px solid var(--line); padding: 20px 0; transition: color .2s; }
.row-head { display: flex; align-items: center; gap: 18px; }
.row-n { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); width: 2ch; }
.row-title { font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.05; letter-spacing: -.035em; color: var(--muted); transition: color .2s; }
.gallery-row:hover .row-title { color: var(--fg); }
.gallery-row[aria-selected="true"] .row-title { color: var(--accent); }
.row-icon { margin-left: auto; width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0; line-height: 1; transition: background .2s; }
.row-icon::before { content: "+"; font-size: 1rem; }
.gallery-row[aria-selected="true"] .row-icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gallery-row[aria-selected="true"] .row-icon::before { content: "−"; }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.gallery-row[aria-selected="true"] .row-body { grid-template-rows: 1fr; }
.row-inner { min-height: 0; overflow: hidden; }
.row-inner p { padding: 12px 0 2px 36px; max-width: 46ch; color: var(--fg-2); font-size: .95rem; line-height: 1.55; }
.gallery-note { margin-top: 20px; }
.diagram-panel { display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); background: rgba(247, 247, 245, .04); }
.diagram-panel svg { display: block; width: 100%; max-width: 760px; height: auto; overflow: visible; }

/* ---- flow: every step, told ---- */
.flow { display: grid; gap: 40px; }
@media (min-width: 1024px) { .flow { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.steps { display: grid; gap: 8px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-strong); } }
.step { display: grid; gap: 14px; align-content: start; padding: 18px 16px 20px; border: 1px solid var(--line-strong); background: var(--bg); }
@media (min-width: 640px) { .step { border: 0; border-right: 1px solid var(--line); min-height: 170px; } .step:last-child { border-right: 0; } }
.step .n { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }
.step .t { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }
.step .t i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border: 1px solid currentColor; vertical-align: 1px; }
.step.on .t i { background: var(--accent); border-color: var(--accent); }
.step .w { font-size: .875rem; line-height: 1.5; color: var(--fg-2); }
.step .w b { font-weight: 500; color: var(--fg); }
.loops { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .loops { grid-template-columns: 1fr 1fr; } }
.loop { display: grid; gap: 8px; padding: 16px; border: 1px dashed var(--line-strong); }
.loop .caption { color: var(--fg); }
.loop p { font-size: .875rem; line-height: 1.5; color: var(--fg-2); }
.notify { border-top: 1px solid var(--line); }
.notify div { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notify dt { font-size: 1rem; letter-spacing: -.01em; }
.notify dd { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.notify-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .875rem; color: var(--muted); }
.notify-foot svg { width: 16px; height: 16px; flex: none; }

/* ---- who: three cards ---- */
.cards3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.card-tag { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-body { display: grid; gap: 10px; padding: 18px 18px 22px; align-content: start; flex: 1; }
.card-body ul { display: grid; gap: 10px; margin-top: 8px; font-size: .9rem; line-height: 1.45; color: var(--fg-2); }
.card-body li { display: flex; gap: 12px; }
.card-body li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.card-foot { padding: 14px 18px; border-top: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mark::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--fg); }
.mark.solid::before { background: var(--fg); }

/* ---- origin band ---- */
.origin { display: grid; gap: 40px; padding-block: clamp(64px, 7vw, 96px); }
@media (min-width: 1024px) { .origin { grid-template-columns: 7fr 5fr; align-items: center; gap: 64px; } }
.origin-tile { border: 1px solid var(--line-strong); background: var(--paper); color: #1a3c2b; padding: 28px 24px 24px; }
@media (min-width: 640px) { .origin-tile { padding-inline: 36px; } }
.origin-tile .lhead { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(26, 60, 43, .2); }
.origin-tile .lhead .caption { color: #1a3c2b; }
.origin-tile dl { font-size: .9rem; }
.origin-tile dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(26, 60, 43, .2); }
.origin-tile dl div:last-child { border-bottom: 0; }
.origin-tile dt { color: rgba(26, 60, 43, .7); }
.origin-tile dd { font-family: var(--font-mono); font-size: .8rem; text-align: right; }
.origin-tile .ok { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(26, 60, 43, .45); font-size: .8rem; }

/* ---- faq ---- */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; font-size: clamp(1.05rem, 1.4vw, 1.3rem); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0; transition: background .2s; }
.faq summary .plus::before { content: "+"; font-size: 1rem; }
.faq[open] summary .plus { background: var(--forest); color: #f7f7f5; border-color: var(--forest); }
.faq[open] summary .plus::before { content: "−"; }
.faq .answer { max-width: 68ch; padding: 0 0 24px; color: var(--fg-2); line-height: 1.6; }

/* ---- waitlist ---- */
.cta-wrap { padding-top: clamp(56px, 6vw, 96px); }
.cta-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cta-head a { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line-strong); text-decoration: none; transition: background .2s, color .2s; }
.cta-head a:hover { background: var(--accent); color: var(--accent-ink); }
.cta { display: grid; gap: 48px; padding-block: 48px; }
@media (min-width: 1024px) { .cta { grid-template-columns: 5fr 7fr; gap: 64px; padding-block: 64px; } }
.cta .email { display: inline-flex; align-items: center; gap: 16px; margin-top: 12px; padding-bottom: 4px; border-bottom: 1px solid rgba(158, 255, 191, .6); color: var(--accent); text-decoration: none; font-size: 1.1rem; letter-spacing: -.01em; }
.form { color-scheme: light; border: 1px solid var(--line); background: #f7f7f5; color: #1a3c2b; padding: 24px; --fg: #1a3c2b; --fg-2: #3a3a38; --muted: rgba(26, 60, 43, .62); --line: rgba(26, 60, 43, .2); --line-strong: rgba(26, 60, 43, .4); }
@media (min-width: 640px) { .form { padding: 32px; } }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.form-head b { font-weight: 700; }
.form-head span { font-weight: 400; letter-spacing: .08em; color: var(--muted); }
.fields { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: block; }
.field > span, .field-label { display: block; font-family: var(--font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(58, 58, 56, .75); }
.field > span em, .field-label em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: rgba(58, 58, 56, .55); }
.field input, .field textarea { margin-top: 8px; width: 100%; border: 1px solid var(--line-strong); background: #fff; color: #1a3c2b; padding: 10px 12px; font: inherit; font-size: .95rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(58, 58, 56, .45); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #1a3c2b; outline-offset: 0; }
.field.full { grid-column: 1 / -1; }
.choices { margin-top: 24px; }
.checks { display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } .checks.four { grid-template-columns: repeat(4, 1fr); } .checks.three { grid-template-columns: repeat(3, 1fr); } }
.checks label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); background: #fff; font-size: .9rem; cursor: pointer; transition: background .2s, border-color .2s; }
.checks label:has(:checked) { border-color: #1a3c2b; background: rgba(158, 255, 191, .4); }
.checks label:has(:focus-visible) { outline: 2px solid #1a3c2b; outline-offset: 2px; }
.checks input { width: 16px; height: 16px; flex: none; accent-color: #1a3c2b; margin: 0; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .form-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.form-foot .small { max-width: 300px; font-size: .78rem; }
.form-foot .small a { text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.form-foot .btn { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-foot .btn:disabled { opacity: .6; }
.form-status { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line-strong); font-size: .9rem; }
.form-status.error { border-color: rgba(255, 140, 105, .7); background: rgba(255, 140, 105, .12); }
.noscript-note { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line-strong); background: #fff; font-size: .9rem; }
.success { border: 1px solid var(--accent); background: rgba(158, 255, 191, .12); padding: 24px; }
@media (min-width: 640px) { .success { padding: 32px; } }
.success .caption.accent { font-weight: 700; letter-spacing: .12em; }
footer { padding: 32px 0 24px; border-top: 1px solid var(--line); }
footer .wordmark { width: 100%; height: auto; color: var(--paper); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 32px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .03em; color: var(--muted); }
.foot-row a { color: var(--accent); text-underline-offset: 4px; }
.foot-row span { display: inline-flex; align-items: center; gap: 8px; }
.foot-row i { width: 6px; height: 6px; background: var(--accent); }

/* ---- motion: enter reveals, scroll-linked hero exit, wipe-in media ---- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.d1 { transition-delay: 90ms; } .js .rv.d2 { transition-delay: 180ms; } .js .rv.d3 { transition-delay: 270ms; }
.js .rv.in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media { animation: rise 1.1s var(--ease) both, hero-exit linear both; animation-delay: .55s, 0s; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
    .gallery-media .window, .gallery-media .diagram-panel { animation: wipe-in linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@keyframes hero-exit { to { transform: translateY(-28px) scale(.965); opacity: .5; } }
@keyframes wipe-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .roll > span + span { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { width: auto; flex-wrap: wrap; }
  .ticker-track span:nth-child(n+7) { display: none; }
}
