/* Retroworks v2: dark-first, charcoal and silver (owner 1 Nov: no orange, calmer colors), green only on the CRT screens. Fonts self-hosted, no CDN. Type (owner pick 2 Nov, direction 1): Zilla Slab 500 headings, Public Sans body, VT323 for labels, terminals and the CRT screens. VT323 runs small, so mono sizes are about 1.4x what a normal mono would use. */
@font-face { font-family: "Zilla Slab"; src: url("/fonts/zillaslab-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "VT323"; src: url("/fonts/vt323.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root, :root[data-theme="dark"], :root[data-theme="turbo"] {
  --bg: #0b0c0e; --bg-2: #121417; --card: #17191d; --card-2: #1e2126;
  --ink: #eceef1; --ink-2: #aab0b8; --ink-3: #8a919b; --line: #272a30; --line-2: #3a3f47;
  --brass: #b4bac3; --signal: #c9ced6; --phosphor: #6fcfae; --glow: rgb(201 206 214 / .28);
  --shadow: 0 30px 60px -30px rgb(0 0 0 / .8);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f3f5; --bg-2: #e6e8eb; --card: #ffffff; --card-2: #f5f6f8;
  --ink: #16181b; --ink-2: #4a5059; --ink-3: #5d646e; --line: #d8dbe0; --line-2: #c2c7ce;
  --brass: #5f6670; --signal: #4b5260; --phosphor: #2a6f5b; --glow: rgb(75 82 96 / .22);
  --shadow: 0 30px 60px -30px rgb(20 24 30 / .25);
  color-scheme: light;
}
:root[data-theme="turbo"] { --signal: #3fe0b0; --brass: #3fe0b0; --glow: rgb(63 224 176 / .4); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 "Public Sans", system-ui, sans-serif; overflow-x: clip; transition: background .4s, color .4s; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, kbd, .mono { font-family: "VT323", ui-monospace, monospace; }
code { color: var(--phosphor); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 17px/1.3 "VT323", monospace; letter-spacing: .09em; text-transform: uppercase; color: var(--brass); }
.eyebrow .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 12px var(--phosphor); animation: pulse 2s infinite; }
h1, h2, h3 { margin: 0; font-family: "Zilla Slab", Georgia, serif; font-weight: 500; font-synthesis: none; letter-spacing: 0; line-height: 1.08; }
h1 { font-size: clamp(36px, 5vw, 68px); }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h2 em, h1 .accent { font-style: normal; color: var(--signal); }
h3 { font-size: 23px; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-2); max-width: 38em; }
.fine { font-size: 14px; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 400; }
section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.head-block { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); }

/* film grain + scroll progress */
.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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--brass), var(--signal)); }

/* custom cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid var(--signal); border-radius: 50%; opacity: 0; transition: width .2s, height .2s, margin .2s, background .2s, opacity .3s; }
.cursor i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--signal); }
.cursor.on { opacity: 1; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgb(201 206 214 / .1); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input[type="range"], .has-cursor .term-body, .has-cursor input:not([type]) { cursor: auto; }

/* boot */
.boot { position: fixed; inset: 0; z-index: 300; background: #070605; color: var(--phosphor); display: grid; place-content: center; gap: 18px; padding: 24px; transition: opacity .5s, visibility .5s; }
.boot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(0 0 0 / .35) 0 1px, transparent 1px 3px); }
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot.gone { display: none; }
.boot-log { margin: 0; font: 20px/1.7 "VT323", monospace; min-height: 12em; width: min(560px, 86vw); text-shadow: 0 0 8px rgb(63 224 176 / .6); white-space: pre-wrap; }
.boot-bar { width: min(560px, 86vw); height: 4px; background: #13261f; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--phosphor); box-shadow: 0 0 12px var(--phosphor); transition: width .15s; }
.boot-skip { font: 15px/1 "VT323", monospace; letter-spacing: .10em; text-transform: uppercase; color: #2c6b56; }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 100; padding: 14px 0; transition: transform .35s, background .3s, padding .3s; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); padding: 8px 0; }
.top.hide { transform: translateY(-100%); }
.top .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font: 500 22px/1 "Zilla Slab", Georgia, serif; text-decoration: none; }
.brand svg { width: 36px; height: 36px; }
.brand:hover .needle { transform: rotate(-70deg); }
.needle { transform-origin: 20px 24.1px; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--card); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--line-2); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn kbd { font-size: 15px; color: var(--ink-2); }
#paletteBtn { width: auto; padding: 0 10px; }
#soundBtn[aria-pressed="false"] .wave { opacity: .25; }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--line-2); background: transparent; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .3s, color .2s; will-change: transform; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: #0b0c0e; box-shadow: 0 10px 40px -10px var(--glow); }
.btn.primary:hover { box-shadow: 0 16px 50px -8px var(--glow); }
/* Ghost buttons get a solid fill so their text reads over the hero computer and any photo behind them (owner 1 Nov, phone). */
.btn.ghost { background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 2; color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.big { min-height: 64px; padding: 0 36px; font-size: 18px; }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* hero */
.hero { min-height: 100svh; padding: 0; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 60% at 75% 45%, rgb(201 206 214 / .14), transparent 70%), radial-gradient(50% 50% at 80% 60%, rgb(63 224 176 / .08), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
/* hero video loop (Higgsfield): mirrored on desktop so the bright monitor wall sits behind the 3D terminal and the copy side stays dark */
.hero-media { position: absolute; inset: 0; z-index: -3; background: #0b0d0c url("/assets/media/hero-poster.jpg") center / cover no-repeat; transform: scaleX(-1); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s linear; }
.hero-media video.on { opacity: 1; }
.hero-media video.instant { transition: none; }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 3; transform: scaleX(-1); background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 38%, color-mix(in srgb, var(--bg) 35%, transparent) 70%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }
:root[data-theme="light"] .hero-media { opacity: .14; filter: grayscale(.4); }
#stage3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }
.hero-fallback { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); z-index: -1; width: min(520px, 44vw); display: none; }
.no-webgl .hero-fallback { display: block; }
.crt-css { aspect-ratio: 4/3; border-radius: 28px; background: linear-gradient(160deg, #3a3026, #1b1612); padding: 22px; box-shadow: var(--shadow); }
.crt-css-screen { height: 100%; border-radius: 18px; background: #0d1f17; color: var(--phosphor); font: 18px/1.9 "VT323", monospace; padding: 18px; display: grid; align-content: start; }
.hero-copy { position: relative; padding-top: 110px; padding-bottom: 80px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; max-width: min(620px, 48vw); }
.hero h1 { margin-top: 22px; }
.split .word { display: inline-block; white-space: nowrap; }
.hero .lede { margin-top: 26px; max-width: 30em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hint { margin-top: 26px; font: 17px/1 "VT323", monospace; color: var(--ink-3); letter-spacing: .04em; }
.kbd { display: inline-block; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); }
.split .line { display: block; overflow: hidden; padding-bottom: .06em; }
.split .ch { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 22ms + var(--d, 0ms)); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--signal); animation: cue 1.8s infinite; }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { font: 500 clamp(20px, 2.8vw, 34px)/1 "Zilla Slab", Georgia, serif; letter-spacing: 0; color: var(--ink-3); display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.track span::after { content: "✦"; font-size: .6em; color: var(--signal); }

/* mission scrub */
.mission .wrap { display: grid; gap: 30px; }
.scrub { font: 500 clamp(30px, 5vw, 74px)/1.04 "Zilla Slab", Georgia, serif; letter-spacing: 0; max-width: 17em; }
.scrub .w { color: var(--ink-3); transition: color .25s; }
.scrub .w.lit { color: var(--ink); }
.scrub .w.hot { color: var(--signal); }

/* custom builds: pinned sideways scroll (height set in JS) */
.build { padding: 0; }
.build-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 40px; overflow: hidden; padding: 90px 0 40px; }
.build-head { display: grid; gap: 16px; }
.build-head h2 { max-width: 15em; }
.rail { display: flex; gap: 22px; width: max-content; padding-left: max(16px, calc((100vw - 1200px) / 2)); padding-right: 16px; will-change: transform; }
.panel { flex: 0 0 min(380px, 78vw); min-height: 360px; border-radius: 28px; padding: 30px; background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .2s; }
.panel .k { font: 17px/1 "VT323"; letter-spacing: .07em; color: var(--brass); text-transform: uppercase; }
.panel h3 { font-size: 30px; }
.panel p { color: var(--ink-2); }
/* build panels with a Higgsfield still: always a dark card, also in light theme */
.panel.media { position: relative; background: transparent; border-color: #272a30; --ink: #eceef1; --ink-2: #c3c8cf; --bg: #0b0c0e; --card-2: #1e2126; --line: #30343b; color: var(--ink); }
.panel-bg, .panel-shade { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.panel-bg { object-fit: cover; opacity: .92; background: #0d0e10; }
.panel-bg.warm { filter: saturate(.82) brightness(.84); }
.panel-shade { background: linear-gradient(180deg, rgb(11 12 14 / .86) 0%, rgb(11 12 14 / .42) 34%, rgb(11 12 14 / .18) 56%, rgb(11 12 14 / .8) 100%); }
.panel.media > :not(.panel-bg):not(.panel-shade) { position: relative; z-index: 1; }
.panel.media h3, .panel.media p { text-shadow: 0 2px 14px rgb(0 0 0 / .7); }
.panel.media .ui { background: rgb(11 12 14 / .72); backdrop-filter: blur(6px); }
.panel-cta { background: var(--signal); color: #0b0c0e; justify-content: center; border-color: var(--signal); }
.panel-cta p { color: #2a2e35; }
.panel-cta .btn.primary { background: #0b0c0e; color: #eceef1; border-color: #0b0c0e; align-self: flex-start; margin-top: 12px; }
.ui { margin-top: auto; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); padding: 16px; display: grid; gap: 8px; font: 17px/1.4 "VT323"; color: var(--ink-2); min-height: 130px; transform: translateZ(30px); }
.ui u { text-decoration: none; }
.ui-portal i { height: 8px; border-radius: 4px; background: var(--line); } .ui-portal i:nth-child(2) { width: 70%; } .ui-portal i:nth-child(3) { width: 45%; }
.ui-portal u { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--phosphor) var(--w), var(--line) var(--w)); }
.ui-kanban { grid-template-columns: repeat(3, 1fr); align-items: start; }
.ui-kanban span { display: grid; gap: 6px; } .ui-kanban i { height: 26px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); animation: float 3s ease-in-out infinite; } .ui-kanban span:nth-child(2) i { animation-delay: .4s; } .ui-kanban span:nth-child(3) i { background: color-mix(in srgb, var(--phosphor) 25%, var(--card-2)); animation-delay: .8s; }
.ui-track { grid-template-columns: repeat(5, 1fr); align-items: center; } .ui-track i { height: 10px; border-radius: 5px; background: var(--line); } .ui-track i.on { background: var(--signal); box-shadow: 0 0 10px var(--glow); }
.ui-order b { font-weight: 400; padding: 8px 10px; border-radius: 8px; background: var(--card-2); } .ui-order u { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--signal); color: #0b0c0e; font-weight: 700; }
.ui-bars { grid-template-columns: repeat(6, 1fr); align-items: end; height: 130px; } .ui-bars i { height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--brass), color-mix(in srgb, var(--brass) 30%, transparent)); transform-origin: bottom; animation: grow 2.4s ease-in-out infinite alternate; } .ui-bars i:nth-child(odd) { animation-delay: .5s; }
.ui-chat b { font-weight: 400; padding: 10px 12px; border-radius: 12px 12px 12px 2px; background: var(--card-2); } .ui-chat u { justify-self: end; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--phosphor); color: var(--phosphor); }

/* stages */
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stage { position: relative; border-radius: 28px; padding: 32px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; }
.stage:hover { transform: translateY(-4px); border-color: var(--line-2); }
.stage.lit { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), 0 30px 80px -40px var(--glow); }
.stage.pick { border-color: var(--phosphor); box-shadow: 0 0 0 2px var(--phosphor), 0 30px 80px -40px rgb(63 224 176 / .45); }
.stage .tag { position: absolute; top: 20px; right: 20px; font: 15px/1 "VT323"; letter-spacing: .05em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--signal); color: #0b0c0e; }
.stage .num { font: 17px/1 "VT323"; letter-spacing: .08em; color: var(--brass); }
.stage h3 { font-size: 34px; }
.stage .for { color: var(--ink-2); }
.price { display: grid; gap: 4px; padding: 16px 0; border-block: 1px dashed var(--line-2); margin: 6px 0; }
.price b { font-family: "Zilla Slab", Georgia, serif; font-weight: 500; font-synthesis: none; font-size: 42px; letter-spacing: 0; }
.price span { font: 17px/1.3 "VT323"; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.stage ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.stage li { display: flex; gap: 10px; color: var(--ink-2); }
.stage li::before { content: "→"; color: var(--signal); font-family: "VT323"; }
.stage .time { font: 17px/1 "VT323"; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 16px; }
.spot { --mx: 50%; --my: 50%; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(400px circle at var(--mx) var(--my), rgb(201 206 214 / .12), transparent 60%); }
.spot:hover::before { opacity: 1; }

.finder { margin-top: 28px; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 28px; align-items: center; padding: 30px; border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2); }
.finder h3 { margin-top: 10px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; font-size: 15px; transition: border-color .2s, background .2s; }
.checks label:has(input:checked) { border-color: var(--phosphor); background: color-mix(in srgb, var(--phosphor) 8%, transparent); }
.checks input { accent-color: var(--phosphor); width: 18px; height: 18px; flex: none; }
.verdict { display: grid; gap: 6px; text-align: right; }
.verdict span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.verdict b { font-size: 30px; letter-spacing: -.02em; color: var(--phosphor); }

/* agents */
.agent-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.agent-list { display: grid; gap: 6px; align-content: start; }
.agent-list button { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid transparent; background: none; text-align: left; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .2s; white-space: nowrap; }
.agent-list button i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 10px var(--phosphor); animation: pulse 2.4s infinite; }
.agent-list button:nth-child(even) i { animation-delay: .7s; }
.agent-list button:hover { color: var(--ink); background: var(--card); }
.agent-list button[aria-selected="true"] { color: var(--ink); background: var(--card); border-color: var(--line-2); }
.agent-log, .term { border-radius: 22px; background: #0a0f0c; border: 1px solid #1c2a23; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.agent-log::after, .term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(0 0 0 / .18) 0 1px, transparent 1px 3px); }
.bar { display: flex; gap: 8px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #1c2a23; }
.bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a3a32; } .bar span:first-child { background: #c9ced6; } .bar span:nth-child(2) { background: #b4bac3; }
.bar b { margin-left: 10px; font: 17px/1 "VT323"; color: #5d8f7c; font-weight: 400; }
.agent-log pre { margin: 0; padding: 22px; min-height: 300px; font: 20px/1.5 "VT323"; color: #3fe0b0; text-shadow: 0 0 8px rgb(63 224 176 / .45); white-space: pre-wrap; }
.agent-log pre .dim, .term pre .dim { color: #4f7d6b; text-shadow: none; }
.agent-log pre .warn, .term pre .warn { color: #dfe3e8; }
.agent-log pre .ok, .term pre .ok { color: #9dffd9; }
.agent-log pre .cur::after, .term-body .blink::after { content: "▍"; animation: pulse 1s steps(1) infinite; }

/* terminal */
.term-body { padding: 20px 22px 24px; height: 380px; overflow-y: auto; font: 20px/1.45 "VT323"; color: #3fe0b0; cursor: text; }
.term pre { margin: 0; white-space: pre-wrap; text-shadow: 0 0 8px rgb(63 224 176 / .45); }
.term-body pre { font: inherit; }
.term-line { display: flex; gap: 10px; align-items: center; }
.term-line .ps { color: #b4bac3; white-space: nowrap; }
.term-line input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #3fe0b0; font: inherit; caret-color: #c9ced6; text-shadow: 0 0 8px rgb(63 224 176 / .45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid #1c2a23; position: relative; z-index: 1; }
.chips button { font: 17px/1 "VT323"; padding: 8px 12px; border-radius: 999px; border: 1px solid #24382f; background: #0f1813; color: #7fd8b8; cursor: pointer; }
.chips button:hover { border-color: #3fe0b0; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: linear-gradient(160deg, var(--card-2), var(--bg-2)); border: 1px solid var(--line); }
.calc h2 { margin: 14px 0 18px; }
.sliders { display: grid; gap: 22px; }
.sliders label { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.sliders output { font: 21px/1 "VT323"; color: var(--ink); }
.sliders input { grid-column: 1 / -1; width: 100%; accent-color: var(--signal); height: 28px; }
.result { display: grid; gap: 4px; padding: 22px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.result span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.result b { font-size: clamp(44px, 6vw, 72px); letter-spacing: -.04em; color: var(--signal); line-height: 1; }
.result small { font: 18px/1 "VT323"; color: var(--ink-2); }

/* rules: stacking sticky cards */
.stack { display: grid; gap: 24px; }
.card-s { position: sticky; top: calc(110px + var(--i, 0) * 22px); padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: grid; grid-template-columns: clamp(120px, 14vw, 200px) 1fr; gap: 6px 28px; min-height: 220px; align-content: center; }
.card-s .n { grid-row: span 2; font: 500 clamp(56px, 8vw, 110px)/1 "Zilla Slab", Georgia, serif; letter-spacing: 0; color: var(--signal); }
.card-s h3 { font-size: clamp(26px, 3vw, 40px); align-self: end; }
.card-s p { color: var(--ink-2); font-size: 19px; }
.card-s:nth-child(2) { --i: 1; background: var(--card-2); } .card-s:nth-child(3) { --i: 2; }

/* work */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case { position: relative; overflow: hidden; border-radius: 24px; padding: 28px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.case .big { font: 500 clamp(52px, 6vw, 80px)/1 "Zilla Slab", Georgia, serif; letter-spacing: 0; color: var(--ink); }
.case .who { font: 17px/1.3 "VT323"; letter-spacing: .05em; text-transform: uppercase; color: var(--brass); }
.case p:last-child { color: var(--ink-2); font-size: 16px; }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 34px; }
.steps-line { position: absolute; top: 0; left: 0; width: 100%; height: 4px; overflow: visible; }
.steps-line path { stroke: var(--signal); stroke-width: 4; fill: none; stroke-dasharray: 1000; stroke-dashoffset: var(--draw, 1000); }
.step { display: grid; gap: 10px; align-content: start; }
.step .k { font: 17px/1 "VT323"; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.step h3 { font-size: 32px; }
.step p:last-child { color: var(--ink-2); }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; font-weight: 700; font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 42px/1 "VT323"; color: var(--signal); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div > p { color: var(--ink-2); max-width: 46em; padding-bottom: 26px; }

/* contact */
.cta { text-align: center; display: grid; justify-items: center; gap: 22px; padding: clamp(48px, 8vw, 110px) 24px; border-radius: 40px; background: radial-gradient(70% 90% at 50% 0%, rgb(201 206 214 / .2), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.cta { position: relative; isolation: isolate; overflow: hidden; }
.cta-media { position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.cta-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s linear; }
.cta-media video.on { opacity: .8; }
.cta-media video.instant { transition: none; }
.cta-media::after { content: ""; position: absolute; inset: 0; z-index: 3; background: radial-gradient(70% 90% at 50% 0%, rgb(201 206 214 / .22), transparent 70%), radial-gradient(90% 80% at 50% 50%, transparent, var(--bg-2)); }
:root[data-theme="light"] .cta-media { display: none; }
.cta h2 { max-width: 13em; }
.cta .ctas { justify-content: center; }
footer { padding: 40px 0 60px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-hint { font-size: 16px; opacity: .6; }

/* palette + toast */
.palette { width: min(560px, 92vw); padding: 0; border-radius: 20px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); box-shadow: 0 40px 120px -20px rgb(0 0 0 / .8); }
.palette::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); }
.palette input { width: 100%; padding: 20px 22px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 500 18px/1 "Zilla Slab", Georgia, serif; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; cursor: pointer; }
.palette li small { font: 17px/1.6 "VT323"; color: var(--ink-3); }
.palette li[aria-selected="true"] { background: var(--card-2); color: var(--signal); }
.pal-foot { padding: 10px 22px 14px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 160; opacity: 0; transform: translate(-50%, 200%); padding: 14px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise { to { transform: none; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } }
@keyframes float { 50% { transform: translateY(-4px); } }
@keyframes grow { from { transform: scaleY(.55); } }

/* responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .stages, .proof { grid-template-columns: 1fr 1fr; }
  .finder { grid-template-columns: 1fr; } .verdict { text-align: left; }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .hero-copy > * { max-width: none; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 54px); }
  #paletteBtn, #soundBtn { display: none; }
  .top .btn { padding: 0 14px; }
  .hero { align-items: start; }
  .hero-copy { padding-top: 96px; padding-bottom: 52vh; }
  .hint { display: none; }
  .stages, .proof, .steps, .checks { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .agent-log pre { min-height: 260px; font-size: 18px; }
  .term-body { height: 320px; font-size: 18px; }
  .term-line .ps { display: none; }
  .card-s { grid-template-columns: 1fr; position: relative; top: 0; }
  .card-s .n { grid-row: auto; }
  .build { height: auto !important; }
  .build-pin { position: relative; height: auto; padding: 80px 0; }
  .rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; }
  .panel { scroll-snap-align: start; }
  .hero-fallback { right: 50%; transform: translate(50%, 0); top: auto; bottom: 6vh; width: 80vw; }
  .hero-media { transform: none; background-image: url("/assets/media/hero-poster-portrait.jpg"); }
  .hero-media::after { transform: none; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, color-mix(in srgb, var(--bg) 30%, transparent) 75%, var(--bg) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .split .ch { transform: none; }
  .grain { display: none; }
}

/* ---------- book-a-call form (posts to /api/book, filed in the lead portal) ---------- */
.book { width: min(100%, 640px); display: grid; gap: 16px; text-align: left; margin-top: 8px; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.book label.wide { grid-column: 1 / -1; }
.book input, .book textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink); font: 500 16px/1.4 inherit; font-family: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.book textarea { resize: vertical; min-height: 96px; }
.book input:focus-visible, .book textarea:focus-visible { border-color: var(--signal); box-shadow: 0 0 0 3px var(--glow); }
.book ::placeholder { color: var(--ink-3); }
.book .btn { justify-self: center; }
.book .btn:disabled { opacity: .6; cursor: progress; }
.book .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book label[hidden] { display: none; }
.book-msg { min-height: 1.4em; text-align: center; font-weight: 700; }
.book-msg.err { color: var(--signal); }
.book-msg.ok { color: var(--ink-2); }
.book-note { text-align: center; font-size: 14px; color: var(--ink-3); }
.book-done { text-align: center; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--phosphor); outline: none; }
.has-cursor .book input, .has-cursor .book textarea { cursor: auto; }
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.thanks .cta { max-width: 640px; }
@media (max-width: 720px) { .book-grid { grid-template-columns: 1fr; } }

/* Silver accent (owner, 1 Nov): on the light theme the steel button needs light text. */
:root[data-theme="light"] .btn.primary, :root[data-theme="light"] .panel-cta, :root[data-theme="light"] .ui-order u, :root[data-theme="light"] .stage .tag { color: #fff; }
:root[data-theme="light"] .panel-cta p { color: #e6e9ed; }
/* Calmer media (owner 1 Nov: colors clash): pull the warm orange out of the video loops and card photos. */
.hero-media, .hero-media video, .cta-media video { filter: saturate(.45); }
.panel-bg { filter: saturate(.5) brightness(.9); }
.panel-bg.warm { filter: saturate(.35) brightness(.82); }
.stage li a { text-underline-offset: 3px; text-decoration-color: var(--line-2); } .stage li a:hover { color: var(--ink); text-decoration-color: var(--signal); }
.stage h3 a { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 6px; } .stage h3 a::after { content: " →"; font-family: "VT323", monospace; font-size: .6em; color: var(--signal); vertical-align: middle; } .stage h3 a:hover { color: var(--signal); }
.lang { height: 40px; min-width: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 18px/1 "VT323", monospace; letter-spacing: .04em; text-decoration: none; transition: border-color .2s, color .2s; } .lang:hover { border-color: var(--line-2); color: var(--ink); }
@media (max-width: 480px) { .top .tools .btn { white-space: nowrap; padding-inline: 14px; } .sm-hide { display: none; } }
/* header menu (products, prices, language) */
.menu { position: relative; }
.menu > summary { list-style: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { border-color: var(--line-2); }
.menu > summary svg { width: 18px; height: 18px; }
.menu > summary .chev { width: 12px; height: 12px; transition: transform .2s; }
.menu[open] > summary .chev { transform: rotate(180deg); }
.menu .burger { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 250px; display: grid; gap: 2px; padding: 10px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .5); }
.menu-panel p { margin: 6px 10px 4px; font: 15px/1 "VT323", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.menu-panel a { display: grid; gap: 2px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu-panel a small { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--card); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-panel .only-sm { display: none; }
.menu-panel { max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 1080px) {
  .menu > summary { width: 40px; padding: 0; justify-content: center; }
  .menu .label, .menu .chev { display: none; }
  .menu .burger { display: block; }
}
@media (max-width: 480px) {
  .tools .lang { display: none; }
  .menu-panel .only-sm { display: grid; }
  .menu-panel { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; }
  .menu-panel a { padding: 8px 10px; }
}
/* prices page */
.prices-page .stages { margin-top: 8px; }
.prices-page .faq { margin-top: 8px; }

/* legal pages (privacy, terms): one readable text column */
.legal-sec { padding: 0 0 clamp(64px, 10vw, 120px); }
.legal { max-width: 44em; font-size: 17px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.legal h2 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; color: var(--ink); margin: 2.2em 0 .6em; }
.legal h3 { font-size: 18px; line-height: 1.3; color: var(--ink); margin: 1.6em 0 .5em; }
.legal p, .legal ul { margin: 0 0 1em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin: .4em 0; }
.legal li::marker { color: var(--brass); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--signal); }
.legal .meta { margin-bottom: 1.6em; font: 18px/1.8 "VT323", monospace; color: var(--ink-3); }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer .foot-links a { color: var(--ink-2); text-decoration: none; }
footer .foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Sites we've built: desktop screenshot with the phone view overlapping */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.site { margin: 0; display: grid; gap: 14px; }
.site-shots { position: relative; padding: 0 10% 12% 0; }
.site-shots img { height: auto; border: 1px solid var(--line-2); background: var(--card); }
.site-desk { width: 100%; border-radius: 14px; box-shadow: 0 30px 60px -40px rgb(0 0 0 / .8); }
.site-phone { position: absolute; right: 0; bottom: 0; width: 27%; border-radius: 12px; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .85); }
.site figcaption { font: 17px/1.3 "VT323", monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--brass); }
.sites-sec .lede a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--signal); }
@media (max-width: 1080px) { .sites { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .sites { grid-template-columns: 1fr; gap: 40px; } }

/* Private AI callout on the custom software card */
.stage-feature { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--phosphor); background: rgb(63 224 176 / .06); }
.stage-feature b { font-size: 17px; color: var(--ink); }
.stage-feature span { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
/* Footer social links */
footer .foot-phone { color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; }
footer .foot-phone:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
footer .foot-social { display: flex; gap: 8px; }
footer .foot-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); }
footer .foot-social a:hover { color: var(--ink); border-color: var(--line-2); }
footer .foot-social svg { width: 20px; height: 20px; }

/* Home: QuickBooks agents and Plug-ins bands */
.suite-sec { padding: clamp(24px, 4vw, 56px) 0 clamp(56px, 8vw, 110px); }
.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.suite-card { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 40px); border-radius: 28px; border: 1px solid var(--line); background: var(--card); }
.suite-card h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; }
.suite-card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); font-size: 17px; }
.suite-card li::marker { color: var(--brass); }
.suite-card .suite-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.suite-card .suite-chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink); font-size: 16px; }
.suite-link { justify-self: start; margin-top: 4px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--signal); }
.suite-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 720px) { .suite { grid-template-columns: 1fr; } }
/* Pay buttons on /prices (Stripe Payment Links, for customers with a written quote or agreed scope) */
.stage .pay { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.stage .pay-note { margin: 0; font-size: 15px; color: var(--ink-2); }
.stage .pay-btn { min-height: 46px; font-size: 15px; padding: 0 18px; justify-self: start; text-align: center; }
footer .foot-areas span { color: var(--ink-3); }
