/* ============================================================
   Corpix Labs — visual system v2
   Graphite ground · warm paper ink · signal orange, cyan for "built to order"
   General Sans (display + UI) · JetBrains Mono (data)
   Page heroes carry a WebGL field of glossy pixel-cubes (field.js).
   ============================================================ */

:root {
  --ground: #060608;
  --panel: #0d0e11;
  --panel-2: #121317;
  --ink: #f4f1ea;
  --muted: #9a988f;
  --faint: #64635e;
  --accent: #ff6a3d;
  --accent-ink: #160803;
  --cyan: #5fe3e0;
  --line: rgba(244, 241, 234, 0.12);
  --line-soft: rgba(244, 241, 234, 0.065);

  --sans: 'General Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --wrap: 1280px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 4.6rem;

  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.accent { color: var(--accent); }
.muted { color: var(--faint); }
.mono { font-family: var(--mono); font-size: .86rem; }
.mini { font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .75rem; }

.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .045; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- type ---------- */
.display { font-size: clamp(3.2rem, 9vw, 8.4rem); font-weight: 500; letter-spacing: -0.058em; line-height: .9; }
.display-2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -0.045em; line-height: .98; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font: 500 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(255, 106, 61, .7); }
.dot.cyan { background: var(--cyan); box-shadow: 0 0 12px rgba(95, 227, 224, .6); }
.lead { font-size: clamp(1.05rem, 1.45vw, 1.22rem); color: var(--muted); max-width: 36rem; }
.lead-sm { color: var(--muted); margin-top: 1.2rem; max-width: 26rem; }
.ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.ln > span { display: inline-block; animation: rise 1.25s var(--ease) both; }
.ln:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- buttons & links ---------- */
.btn { --h: 2.9rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: var(--h); padding: 0 1.3rem; border-radius: 12px; font-weight: 500; font-size: .95rem; letter-spacing: -0.01em; white-space: nowrap; transition: transform .35s var(--ease), background .25s, box-shadow .35s, border-color .25s, color .25s; }
.btn-sm { --h: 2.45rem; padding: 0 1rem; font-size: .88rem; border-radius: 10px; }
.btn-lg { --h: 3.35rem; padding: 0 1.6rem; font-size: 1rem; border-radius: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(255, 106, 61, .5); }
.btn-primary:hover { transform: translateY(-2px); background: #ff7d55; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 12px 40px -10px rgba(255, 106, 61, .7); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(244, 241, 234, .35); background: rgba(255, 255, 255, .07); }
.arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link { position: relative; display: inline-flex; gap: .45rem; align-items: center; font-weight: 500; font-size: .93rem; }
.link::after { content: '→'; transition: transform .35s var(--ease); }
.link::before { content: ''; position: absolute; left: 0; right: 1.2em; bottom: -3px; height: 1px; background: currentColor; opacity: .35; transform-origin: left; transition: opacity .3s, background .3s; }
.link:hover, a:hover > .link { color: var(--accent); }
.link:hover::after, a:hover > .link::after { transform: translateX(4px); }
.link:hover::before, a:hover > .link::before { opacity: 1; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 9px; border: 1px solid var(--line); font: .78rem var(--mono); color: var(--muted); transition: color .2s, border-color .2s; }
.chip:hover { color: var(--ink); border-color: rgba(244, 241, 234, .35); }
.chip svg { width: .9rem; height: .9rem; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.logo { display: block; height: 26px; width: auto; overflow: visible; }
.logo-labs { fill: var(--muted); }
.logo-x-a, .logo-x-b { transition: transform .5s var(--ease), fill .3s; }
.brand:hover .logo-x-a { transform: translate(3px, -3px); fill: var(--accent); }
.brand:hover .logo-x-b { transform: translate(-3px, 3px); fill: var(--accent); }
.foot-brand .logo { height: 34px; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 var(--pad); transition: background .35s, border-color .35s, height .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 6, 8, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line-soft); height: 4rem; }
.nav-links { display: flex; gap: .2rem; }
.nav-links a, .nav-contact { padding: .45rem .8rem; border-radius: 9px; font-size: .9rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-contact:hover { color: var(--ink); }
.nav-links a.active, .nav-contact.active { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 29; background: rgba(6, 6, 8, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 6rem var(--pad) 2rem; display: flex; flex-direction: column; gap: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .35s; }
.menu-open .menu { opacity: 1; pointer-events: auto; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; justify-content: space-between; font-size: 1.9rem; letter-spacing: -0.04em; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.menu nav a span { color: var(--faint); }
.menu-open .menu nav a { transform: none; opacity: 1; }
.menu-open .menu nav a:nth-child(2) { transition-delay: .04s; } .menu-open .menu nav a:nth-child(3) { transition-delay: .08s; } .menu-open .menu nav a:nth-child(4) { transition-delay: .12s; } .menu-open .menu nav a:nth-child(5) { transition-delay: .16s; }
.menu-mail { font: .85rem var(--mono); color: var(--muted); text-align: center; }

/* ---------- page hero + field ---------- */
.phero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 4rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; isolation: isolate; }
.hero-home { min-height: 100svh; }
.field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; pointer-events: none; mix-blend-mode: screen; }
.field-host { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.field-host::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6, 6, 8, .7) 0%, rgba(6, 6, 8, .25) 40%, transparent 62%); }
.no-webgl .field-host { background: radial-gradient(60% 60% at 70% 60%, rgba(255, 106, 61, .18), transparent 70%), radial-gradient(40% 40% at 80% 30%, rgba(95, 227, 224, .08), transparent 70%), #000; }
.phero-inner { width: 100%; }
.phero .kicker { margin-bottom: 1.8rem; animation: fadeUp 1s .05s var(--ease) both; }
.phero .lead { margin-top: 2rem; animation: fadeUp 1s .4s var(--ease) both; }
.phero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; animation: fadeUp 1s .5s var(--ease) both; }
.hero-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; margin-top: 3.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); max-width: 46rem; font-size: .9rem; color: var(--muted); animation: fadeUp 1s .65s var(--ease) both; }
.hero-strip b { color: var(--ink); font-weight: 600; margin-right: .2rem; }
.strip-mail { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .3rem .3rem .85rem; border-radius: 11px; border: 1px solid var(--line); background: rgba(13, 14, 17, .92); }
.strip-mail a { font-size: .95rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.strip-mail a:hover { color: var(--accent); }
.strip-mail .copy { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; color: var(--muted); transition: color .2s, background .2s; }
.strip-mail .copy:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.strip-mail svg { width: .95rem; height: .95rem; }

/* ---------- sections ---------- */
.sec { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .display-2 { margin-top: 1.1rem; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.two-col .sec-head { position: sticky; top: 7rem; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.ticks { display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .7rem; align-items: baseline; font-size: .95rem; }
.ticks li::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 1.5px; background: var(--accent); transform: translateY(-2px); }
[data-kind="build"] .ticks li::before { background: var(--cyan); }
.tag { font: 500 .7rem var(--mono); letter-spacing: .16em; color: var(--accent); }
[data-kind="build"] .tag { color: var(--cyan); }
.pill { font: 500 .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 6px; border: 1px solid; white-space: nowrap; }
.pill-shelf { color: var(--accent); border-color: rgba(255, 106, 61, .35); background: rgba(255, 106, 61, .07); }
.pill-build { color: var(--cyan); border-color: rgba(95, 227, 224, .35); background: rgba(95, 227, 224, .06); }

/* ---------- statement (scroll-scrubbed words) ---------- */
.say { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem); }
.say-text { font-size: clamp(1.9rem, 4.3vw, 3.7rem); line-height: 1.12; letter-spacing: -0.04em; font-weight: 500; max-width: 22ch; max-width: 1100px; }
.say .w { opacity: var(--o, .14); transition: opacity .15s linear; }
.say .w.acc { color: var(--accent); }

/* ---------- deck: cards stack on scroll, then resolve to an overview ---------- */
.deck { position: relative; height: calc(var(--n) * 62vh + 170vh); }
.deck-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.deck-frame { height: 100%; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 2rem; }
.deck-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: .4rem; will-change: opacity; }
.deck-head .display-2 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.deck-progress { display: grid; justify-items: end; gap: .7rem; }
.deck-count { font: 500 .8rem var(--mono); color: var(--faint); }
.deck-count b { color: var(--ink); font-weight: 500; }
.deck-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.deck-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.deck-skip { font: .72rem var(--mono); color: var(--faint); transition: color .2s; }
.deck-skip:hover { color: var(--ink); }
.deck-stage { position: relative; flex: 1; min-height: 0; will-change: transform, opacity; }
.dcard { position: absolute; inset: 12px 0 0; display: grid; grid-template-columns: 1fr 1.08fr; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, #121317, #0c0d10); border: 1px solid var(--line); box-shadow: 0 -24px 60px -18px rgba(0, 0, 0, .9); will-change: transform; }
.dcard::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--dim, 0); pointer-events: none; transition: opacity .1s linear; }
.dcard::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 106, 61, .7), transparent); }
.dcard[data-kind="build"]::before { background: linear-gradient(90deg, transparent, rgba(95, 227, 224, .6), transparent); }
.dcard-body { padding: clamp(1.5rem, 3vw, 2.6rem); display: flex; flex-direction: column; min-height: 0; }
.dcard-top { display: flex; align-items: center; gap: .8rem; }
.dcard-n { margin-left: auto; font: .72rem var(--mono); color: var(--faint); }
.dcard h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -0.045em; margin: clamp(.8rem, 2vh, 1.4rem) 0 .5rem; }
.dcard-line { font-size: 1.1rem; color: var(--muted); margin-bottom: clamp(1rem, 2.5vh, 1.6rem); }
.dcard-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); }
.dcard-meta dt { font: 500 .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .3rem; }
.dcard-meta dd { font-size: .9rem; }
.dcard-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.3rem; }
.dcard-viz { position: relative; margin: 12px; border-radius: 16px; overflow: hidden; background: #08090b; border: 1px solid var(--line-soft); }
.deck-overview { position: absolute; inset: calc(var(--nav-h) + 1.5rem) var(--pad) 2rem; display: flex; flex-direction: column; justify-content: center; opacity: 0; pointer-events: none; }
.deck-overview.live { pointer-events: auto; }
.ov-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 1.8rem; }
.ov-head .display-2 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3.4rem); }
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.ov-tile { position: relative; display: flex; flex-direction: column; padding: 1.35rem 1.4rem 0; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .3s, background .3s, transform .45s var(--ease); will-change: transform, opacity; }
.ov-tile::before { content: ''; position: absolute; left: 1.4rem; right: 1.4rem; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity .3s; }
.ov-tile[data-kind="build"]::before { background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.ov-tile:hover { border-color: var(--line); background: var(--panel-2); }
.ov-tile:hover::before { opacity: 1; }
.ov-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.ov-idx { font: 500 .72rem var(--mono); color: var(--faint); letter-spacing: .06em; }
.ov-tile .ico { width: 1.35rem; height: 1.35rem; color: var(--muted); transition: color .3s; }
.ov-tile:hover .ico { color: var(--accent); }
.ov-tile[data-kind="build"] .ico, .ov-tile[data-kind="build"] .ov-idx { color: var(--cyan); }
.ov-name { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.ov-line { font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: .35rem; }
.ov-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding: 1.1rem 0 1.15rem; border-top: 1px solid var(--line-soft); transform: translateY(0); }
.ov-line + .ov-foot { margin-top: 1.4rem; }
.ov-ships { font: .7rem var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ov-go { flex: none; font-size: .82rem; font-weight: 500; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease), color .3s; }
.ov-tile:hover .ov-go { opacity: 1; transform: none; color: var(--ink); }
.ov-tile:hover .arr { transform: translateX(3px); }
.ov-more { border-style: dashed; border-color: rgba(95, 227, 224, .3); }
.ov-more:hover { border-color: rgba(95, 227, 224, .55); }
@media (hover: none) { .ov-go { opacity: 1; transform: none; } }

/* ---------- viz (shared by deck cards and catalogue entries) ---------- */
.viz { position: absolute; inset: 0; overflow: hidden; }
.viz * { animation-play-state: paused !important; }
.viz-live .viz * { animation-play-state: running !important; }
.viz svg { width: 100%; height: 100%; }
.vz-t { fill: var(--faint); font: 8px var(--mono); text-anchor: middle; }
.vz-t.l { text-anchor: start; }

.viz-code { display: flex; flex-direction: column; background: radial-gradient(80% 60% at 20% 0%, rgba(255, 106, 61, .08), transparent 70%); }
.code-pane { flex: 1; padding: 8% 9%; display: flex; flex-direction: column; justify-content: center; gap: 4.5%; }
.code-pane i { display: block; height: 8px; border-radius: 4px; width: var(--w); margin-left: calc(var(--x, 0) * 1.6rem); background: rgba(244, 241, 234, .2); transform-origin: left; animation: type 6s var(--ease) infinite; animation-delay: calc(var(--i) * .18s); }
.code-pane i.hl { background: linear-gradient(90deg, var(--accent) 32%, rgba(244, 241, 234, .2) 32%); }
.code-pane i.del { background: rgba(255, 92, 92, .5); }
.code-pane i.add { background: rgba(95, 227, 224, .55); }
@keyframes type { 0% { transform: scaleX(0); } 18%, 86% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.code-meta { display: flex; gap: 1.4rem; padding: .8rem 1.3rem; border-top: 1px solid var(--line-soft); font: .7rem var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; }
.code-meta .pos { color: var(--cyan); }

.viz-ops { background: radial-gradient(70% 70% at 80% 50%, rgba(255, 106, 61, .08), transparent 70%); padding: 6%; }
.viz-ops .edge { stroke: rgba(244, 241, 234, .14); stroke-width: 1.2; }
.viz-ops .flow { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 22 340; animation: flow 3.4s linear infinite; filter: drop-shadow(0 0 4px var(--accent)); }
.viz-ops .flow.f2 { stroke: var(--cyan); animation-delay: -1.7s; filter: drop-shadow(0 0 4px var(--cyan)); }
@keyframes flow { from { stroke-dashoffset: 362; } to { stroke-dashoffset: 0; } }
.viz-ops .node { fill: #121317; stroke: rgba(244, 241, 234, .5); stroke-width: 1.2; }
.viz-ops .node-hot { stroke: var(--accent); animation: glow 3.4s infinite; }
@keyframes glow { 0%, 70% { fill: #121317; } 80% { fill: var(--accent); } 100% { fill: #121317; } }

.viz-ego { background: radial-gradient(ellipse at 40% 60%, rgba(255, 106, 61, .14), transparent 60%), repeating-linear-gradient(115deg, rgba(244, 241, 234, .035) 0 16px, transparent 16px 32px), #08090b; }
.ego-frame { position: absolute; inset: 7%; }
.ego-rec { position: absolute; top: 0; left: 0; font: .68rem var(--mono); color: #ff5c5c; letter-spacing: .08em; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.ego-box { position: absolute; left: 20%; top: 36%; width: 34%; height: 40%; border: 1.5px solid var(--accent); border-radius: 4px; animation: track 6s var(--ease) infinite; }
.ego-box.b2 { left: 60%; top: 22%; width: 24%; height: 32%; border-color: var(--cyan); animation-delay: -3s; }
.ego-box b { position: absolute; top: -1.35rem; left: -1px; font: 500 .62rem var(--mono); background: var(--accent); color: var(--accent-ink); padding: .12rem .4rem; border-radius: 3px; white-space: nowrap; }
.ego-box.b2 b { background: var(--cyan); }
@keyframes track { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(12%, -6%) scale(1.05); } 66% { transform: translate(-6%, 8%) scale(.95); } }
.ego-scan { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(95, 227, 224, .1), transparent); animation: scan 3.5s linear infinite; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
.corner { position: absolute; width: 14px; height: 14px; border: 1.5px solid rgba(244, 241, 234, .6); }
.c1 { top: 0; right: 0; border-left: 0; border-bottom: 0; } .c2 { bottom: 0; left: 0; border-right: 0; border-top: 0; } .c3 { bottom: 0; right: 0; border-left: 0; border-top: 0; } .c4 { display: none; }

.viz-med { background: radial-gradient(70% 60% at 50% 50%, rgba(255, 106, 61, .07), transparent 70%); }
.viz-med svg { position: absolute; inset: 12% 0 22%; height: 66%; }
.viz-med .grid-line { stroke: rgba(244, 241, 234, .06); }
.viz-med .ecg { stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 500; stroke-dashoffset: 500; animation: ecg 3s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 106, 61, .8)); vector-effect: non-scaling-stroke; }
@keyframes ecg { to { stroke-dashoffset: -500; } }
.med-meta, .fx, .rubric, .aud-tx { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1rem; font: .7rem var(--mono); color: var(--faint); display: flex; gap: 1.2rem; }
.med-meta .c { color: var(--cyan); }

.viz-aud { background: radial-gradient(70% 60% at 50% 50%, rgba(255, 106, 61, .08), transparent 70%); }
.viz-aud .bars { position: absolute; inset: 14% 8% 26%; display: flex; align-items: center; gap: 1.2%; }
.viz-aud .bars i { flex: 1; height: 100%; border-radius: 4px; background: linear-gradient(var(--accent), rgba(255, 106, 61, .25)); transform: scaleY(var(--h)); animation: eq 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -4s); }
@keyframes eq { from { transform: scaleY(calc(var(--h) * .25)); } to { transform: scaleY(var(--h)); } }
.aud-tx span { color: var(--ink); }
.aud-tx em { font-style: normal; margin-left: auto; }

.viz-cad { background: linear-gradient(rgba(95, 227, 224, .06) 1px, transparent 1px) 0 0/18px 18px, linear-gradient(90deg, rgba(95, 227, 224, .06) 1px, transparent 1px) 0 0/18px 18px, #08090b; padding: 6%; }
.cad-edge { stroke: var(--cyan); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 600; animation: draw 6s var(--ease) infinite; filter: drop-shadow(0 0 3px rgba(95, 227, 224, .6)); }
.cad-hidden { stroke: rgba(95, 227, 224, .35); stroke-dasharray: 3 4; }
.cad-hole { stroke: var(--accent); stroke-width: 1.5; }
.cad-dim { stroke: rgba(244, 241, 234, .4); stroke-width: 1; }
.cad-txt { fill: var(--muted); font: 9px var(--mono); text-anchor: middle; }
@keyframes draw { 0% { stroke-dashoffset: 600; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -600; } }

.viz-ppt { background: radial-gradient(70% 60% at 50% 60%, rgba(95, 227, 224, .07), transparent 70%); }
.slides { position: absolute; inset: 0; display: grid; place-items: center; }
.slide { grid-area: 1/1; width: 62%; aspect-ratio: 16/9; border-radius: 8px; background: #1a1c21; border: 1px solid var(--line); transition: transform .8s var(--ease); }
.s3 { transform: translate(22px, -22px) rotate(4deg); opacity: .4; }
.s2 { transform: translate(11px, -11px) rotate(2deg); opacity: .7; }
.s1 { background: #f4f1ea; padding: 7% 8%; display: flex; flex-direction: column; gap: 6%; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); animation: fan 6s var(--ease) infinite; }
@keyframes fan { 0%, 100% { transform: none; } 50% { transform: translate(-8px, 6px) rotate(-1.5deg); } }
.s-title { display: block; height: 9%; width: 58%; border-radius: 2px; background: #1a1c21; }
.s-sub { display: block; height: 5%; width: 38%; border-radius: 2px; background: #b8b4aa; }
.s-chart { flex: 1; display: flex; align-items: flex-end; gap: 6%; }
.s-chart i { flex: 1; height: calc(var(--h) * 100%); background: #2b2d33; border-radius: 2px 2px 0 0; transform-origin: bottom; animation: grow 4s var(--ease) infinite; }
.s-chart i:last-child { background: var(--accent); }
@keyframes grow { 0% { transform: scaleY(0); } 30%, 100% { transform: scaleY(1); } }

.viz-fin { background: radial-gradient(70% 60% at 70% 40%, rgba(95, 227, 224, .07), transparent 70%); }
.sheet { position: absolute; inset: 10% 7% 22%; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); grid-auto-rows: 1fr; gap: 4px; font: .72rem var(--mono); }
.sheet span, .sheet i { display: flex; align-items: center; padding: 0 .6rem; background: rgba(244, 241, 234, .04); border-radius: 4px; font-style: normal; color: var(--muted); }
.sheet span.hd { color: var(--faint); justify-content: flex-end; background: none; }
.sheet span:first-child { background: none; }
.sheet i { justify-content: flex-end; }
.sheet i.f { color: var(--ink); animation: cell 4s infinite; }
.sheet i.hot { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
@keyframes cell { 0%, 20%, 100% { background: rgba(244, 241, 234, .04); } 10% { background: rgba(95, 227, 224, .22); } }
.fx { color: var(--cyan); }

.viz-rlhf { background: radial-gradient(70% 60% at 70% 50%, rgba(95, 227, 224, .07), transparent 70%); }
.pair { position: absolute; inset: 10% 7% 22%; display: grid; grid-template-columns: 1fr 1fr; gap: 4%; }
.resp { position: relative; border-radius: 12px; border: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: rgba(244, 241, 234, .02); }
.resp b { font: 500 .66rem var(--mono); color: var(--muted); margin-bottom: .3rem; }
.resp i { display: block; height: 7px; width: var(--w); border-radius: 4px; background: rgba(244, 241, 234, .15); }
.resp.win { animation: pick 4s var(--ease) infinite; }
@keyframes pick { 0%, 40% { border-color: var(--line); box-shadow: none; } 55%, 100% { border-color: var(--cyan); box-shadow: 0 0 30px -8px rgba(95, 227, 224, .6); } }
.check { position: absolute; right: .8rem; bottom: .8rem; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--cyan); color: #031414; font-size: .85rem; animation: pop 4s var(--ease) infinite; }
@keyframes pop { 0%, 45% { transform: scale(0); } 55%, 100% { transform: scale(1); } }
.rubric span { color: var(--cyan); }

/* ---------- ways / flow / gets ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.way { position: relative; padding: 2rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); display: flex; flex-direction: column; min-height: 20rem; overflow: hidden; transition: border-color .4s, transform .6s var(--ease); }
.way::after { content: ''; position: absolute; width: 320px; height: 320px; right: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 61, .22), transparent 65%); opacity: 0; transition: opacity .5s; }
.way:nth-child(2)::after { background: radial-gradient(circle, rgba(95, 227, 224, .2), transparent 65%); }
.way:hover { border-color: var(--line); transform: translateY(-4px); }
.way:hover::after { opacity: 1; }
.way-n { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font: 500 .8rem var(--mono); color: var(--accent); }
.way h3 { font-size: 1.7rem; margin: auto 0 .8rem; padding-top: 3rem; }
.way p { color: var(--muted); margin-bottom: 1.6rem; }
.way .link { align-self: flex-start; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: f; }
.flow li { position: relative; padding: 1.8rem 1.6rem 2rem; border-top: 1px solid var(--line); }
.flow li::before { content: ''; position: absolute; top: -1px; left: 0; width: 40%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.flow li.in::before { transform: scaleX(1); }
.flow span { font: 500 .74rem var(--mono); color: var(--accent); }
.flow h3 { font-size: 1.6rem; margin: 1.2rem 0 .7rem; }
.flow p { color: var(--muted); font-size: .95rem; }

.gets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.get { padding: 1.8rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .4s; }
.get:hover { border-color: var(--line); }
.get-n { display: inline-block; font: 500 .72rem var(--mono); color: var(--accent); padding: .3rem .55rem; border-radius: 6px; background: rgba(255, 106, 61, .08); }
.get h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin: 2.2rem 0 .6rem; }
.get p { color: var(--muted); font-size: .94rem; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.cmp-col { padding: clamp(1.8rem, 4vw, 3rem); background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; }
.cmp-build { background: linear-gradient(180deg, rgba(95, 227, 224, .04), transparent 50%), var(--panel-2); border-left: 1px solid var(--line); }
.cmp-col h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.4rem 0 .8rem; }
.cmp-col > p { color: var(--muted); max-width: 30rem; }
.cmp-col dl { width: 100%; margin: 2rem 0; }
.cmp-col dl div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line-soft); }
.cmp-col dt { font: 500 .66rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.cmp-col .btn { margin-top: auto; }

/* ---------- owners ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.who-card { padding: 1.8rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); transition: border-color .4s, transform .6s var(--ease); }
.who-card:hover { border-color: var(--line); transform: translateY(-3px); }
.who-card .ico { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 11px; background: rgba(255, 106, 61, .08); color: var(--accent); }
.who-card h3 { font-size: 1.35rem; letter-spacing: -0.025em; margin: 2rem 0 .5rem; }
.who-card p { color: var(--muted); font-size: .94rem; }
.who-other { border-style: dashed; border-color: var(--line); }
.od-plus { position: relative; width: 2.6rem; height: 2.6rem; border-radius: 11px; border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .3s; }
.od-plus span { position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: var(--accent); transform: translate(-50%, -50%); }
.od-plus span + span { transform: translate(-50%, -50%) rotate(90deg); }
.who-other:hover .od-plus, .entry-other:hover .od-plus { transform: rotate(90deg); border-color: var(--accent); }
.keep { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.keep-col { padding: clamp(1.8rem, 4vw, 3rem); background: var(--panel); }
.keep-col + .keep-col { border-left: 1px solid var(--line); background: var(--panel-2); }
.big-list { margin-top: 1.6rem; }
.big-list li { font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.big-list li:last-child { border-bottom: 0; }

/* ---------- catalogue page ---------- */
.cat { padding-top: 3rem; }
.cat-grid { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cat-side { position: sticky; top: 6rem; }
.cat-filter { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 2rem; }
.cat-filter .chip { justify-content: space-between; font-family: var(--sans); font-size: .9rem; padding: .6rem .8rem; }
.cat-filter .chip b { font: 500 .7rem var(--mono); color: var(--faint); }
.cat-filter .chip.on { color: var(--ink); border-color: var(--accent); background: rgba(255, 106, 61, .08); }
.cat-nav { display: grid; gap: .1rem; border-left: 1px solid var(--line-soft); }
.cat-nav a { display: flex; align-items: center; gap: .7rem; padding: .5rem .9rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--faint); font-size: .92rem; transition: color .2s, border-color .2s; }
.cat-nav a .ico { width: 1rem; height: 1rem; }
.cat-nav a:hover { color: var(--ink); }
.cat-nav a.active { color: var(--ink); border-left-color: var(--accent); }
.cat-nav a.active .ico { color: var(--accent); }
.cat-nav a.hide, .entry.hide, .group-head.hide { display: none; }
.cat-list { display: grid; gap: 1.2rem; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2.5rem 0 .5rem; color: var(--muted); font-size: .92rem; }
.group-head:first-child { padding-top: 0; }
.entry { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); overflow: hidden; scroll-margin-top: 6rem; transition: border-color .4s; }
.entry:hover { border-color: var(--line); }
.entry-viz { position: relative; min-height: 340px; margin: 12px; border-radius: 16px; overflow: hidden; background: #08090b; border: 1px solid var(--line-soft); }
.entry-body { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; align-items: flex-start; }
.entry h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -0.045em; margin: 1.1rem 0 .4rem; }
.entry-line { color: var(--ink); font-size: 1.05rem; }
.entry-desc { color: var(--muted); margin-top: .9rem; }
.entry-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; margin: 1.6rem 0; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.entry-cols p:not(.mini) { font-size: .93rem; margin-bottom: 1.2rem; }
.entry-cols .ticks li { font-size: .9rem; }
.entry .btn { margin-top: auto; }
.entry-other { grid-template-columns: auto 1fr auto; align-items: center; gap: 1.8rem; padding: 2rem; border-style: dashed; border-color: var(--line); }
.entry-other h2 { margin: 0; font-size: 1.8rem; }
.entry-other .entry-desc { margin-top: .4rem; }

/* ---------- timeline ---------- */
.tl { position: relative; display: grid; gap: 1rem; padding-left: 4.5rem; }
.tl-line { position: absolute; left: 1.2rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: var(--line); border-radius: 2px; }
.tl-line i { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--cyan)); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; box-shadow: 0 0 14px rgba(255, 106, 61, .6); }
.tl-step { position: relative; }
.tl-node { position: absolute; left: -4.5rem; top: 1.3rem; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); font: 500 .74rem var(--mono); color: var(--faint); transition: color .4s, border-color .4s, box-shadow .4s, background .4s; }
.tl-step.on .tl-node { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 24px rgba(255, 106, 61, .5); }
.tl-card { padding: 1.6rem 1.8rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); opacity: .45; transform: translateX(10px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s; }
.tl-step.on .tl-card { opacity: 1; transform: none; border-color: var(--line); }
.tl-card h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.tl-card p { color: var(--muted); max-width: 44rem; }
.tl-who { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tl-who span { font: .7rem var(--mono); padding: .3rem .6rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.tl-who .us { color: var(--accent); border-color: rgba(255, 106, 61, .35); }

.lines { display: grid; }
.lines li { display: flex; gap: 1.4rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-soft); }
.lines li:first-child { padding-top: 0; }
.lines .x { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 106, 61, .08); color: var(--accent); font-size: 1.3rem; line-height: 1; }
.lines h3 { font-size: 1.35rem; letter-spacing: -0.025em; margin-bottom: .3rem; }
.lines p { color: var(--muted); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 1.5rem 3rem 1.5rem 0; position: relative; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-75%) rotate(45deg); transition: transform .4s var(--ease), border-color .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); border-color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq { padding: .4rem 1.8rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); }
.faq details:first-child { border-top: 0; }
.faq-a { color: #c9c6bd; padding: 0 3rem 1.6rem 0; animation: fadeUp .5s var(--ease); }
.fmt-list { display: grid; gap: 0; margin-top: .9rem; border-top: 1px solid var(--line-soft); }
.fmt-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .6rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.fmt-list span { color: var(--muted); }
.fmt-list b { font: 500 .8rem var(--mono); color: var(--ink); text-align: right; }
.lines { padding: 1.6rem 1.8rem .2rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); }
.gets-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(4rem, 9vw, 7rem) 0; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; padding: clamp(2rem, 5vw, 4rem); border-radius: 28px; background: radial-gradient(60% 120% at 100% 100%, rgba(255, 106, 61, .2), transparent 60%), radial-gradient(50% 90% at 0% 0%, rgba(95, 227, 224, .07), transparent 60%), var(--panel); border: 1px solid var(--line); overflow: hidden; }
.cta-inner .display-2 { font-size: clamp(2.4rem, 6vw, 5rem); }
.cta-side p { color: var(--muted); margin-bottom: 1.6rem; max-width: 26rem; }
.cta-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.cta-btns .btn-ghost.copy { font-family: var(--mono); font-size: .84rem; }

/* ---------- contact ---------- */
.phero-contact { min-height: 100svh; align-items: center; }
.phero-contact .field-host::after { background: linear-gradient(90deg, rgba(6, 6, 8, .6), transparent 55%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; width: 100%; }
.contact-left .kicker { margin-bottom: 1.8rem; }
.contact-left .display { font-size: clamp(3rem, 7.5vw, 7rem); }
.contact-direct { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.contact-direct .mini { width: 100%; margin: 0; }
.contact-mail { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; letter-spacing: -0.03em; transition: color .2s; }
.contact-mail:hover { color: var(--accent); }
.contact-card { padding: clamp(1.5rem, 3vw, 2.2rem); border-radius: 26px; background: rgba(13, 14, 17, .82); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: fadeUp 1s .3s var(--ease) both; }
.intent { display: grid; gap: .5rem; margin-bottom: 1.6rem; }
.intent-opt input { position: absolute; opacity: 0; pointer-events: none; }
.io-box { display: grid; gap: .15rem; padding: 1rem 1.1rem 1rem 3rem; border-radius: 14px; border: 1px solid var(--line-soft); cursor: pointer; position: relative; transition: border-color .25s, background .25s; }
.io-box::before { content: ''; position: absolute; left: 1.1rem; top: 1.25rem; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--faint); transition: all .25s; }
.io-box b { font-weight: 500; }
.io-box span { color: var(--muted); font-size: .88rem; }
.intent-opt:hover .io-box { border-color: var(--line); }
.intent-opt input:checked + .io-box { border-color: var(--accent); background: rgba(255, 106, 61, .07); }
.intent-opt input:checked + .io-box::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(255, 106, 61, .6); }
.intent-opt input:focus-visible + .io-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.intent-panel { display: none; }
.intent-panel.on { display: block; animation: fadeUp .5s var(--ease); }
.intent-panel .ticks { margin-bottom: 1.6rem; }
.intent-panel .btn { width: 100%; }
.cal-inline { height: 640px; margin-top: 1.4rem; border-radius: 14px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line-soft); background: var(--ground); padding-top: 4.5rem; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.foot-brand p { color: var(--muted); max-width: 22rem; margin: 1.2rem 0 1.4rem; font-size: .95rem; }
.foot-mail { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .35rem .35rem .9rem; border-radius: 11px; border: 1px solid var(--line); font: .84rem var(--mono); }
.foot-mail a:hover { color: var(--accent); }
.foot-mail .copy { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; color: var(--muted); transition: color .2s, background .2s; }
.foot-mail .copy:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.foot-mail svg { width: .95rem; height: .95rem; }
.foot-col { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; font-size: .92rem; }
.foot-col p { font: 500 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.foot-col a { color: var(--muted); transition: color .2s; }
.foot-col a:hover { color: var(--ink); }
.foot-start a { display: flex; align-items: baseline; gap: .55rem; color: var(--ink); }
.foot-start a span { font: .68rem var(--mono); color: var(--faint); }
.foot-start a:hover { color: var(--accent); }
.foot-pixels { width: min(440px, calc(100% - 2 * var(--pad))); margin: 3.5rem auto 2rem; }
.foot-pixels canvas { display: block; width: 100%; cursor: crosshair; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.2rem; padding-bottom: 1.8rem; border-top: 1px solid var(--line-soft); font: .72rem var(--mono); color: var(--faint); }
.foot-status { display: inline-flex; align-items: center; gap: .5rem; }
.foot-status i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: blink 2.4s infinite; }
.foot-up { font: inherit; color: var(--faint); transition: color .2s; }
.foot-up:hover { color: var(--ink); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 2rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .75rem 1.15rem; border-radius: 12px; background: var(--ink); color: var(--ground); font-size: .88rem; font-weight: 500; transition: opacity .3s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cal-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 1.2rem; background: rgba(6, 6, 8, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cal-modal.open { opacity: 1; pointer-events: auto; }
.cal-box { position: relative; width: min(640px, 100%); height: min(780px, 100%); border-radius: 22px; overflow: hidden; background: #0d0e11; border: 1px solid var(--line); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 106, 61, .08); transform: translateY(16px) scale(.98); transition: transform .45s var(--ease); }
.cal-modal.open .cal-box { transform: none; }
.cal-box-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 3.4rem; padding: 0 .8rem 0 1.4rem; border-bottom: 1px solid var(--line-soft); }
.cal-box-head .mini { margin: 0; }
.cal-box-head b { color: var(--ink); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .9rem; margin-left: .6rem; }
.cal-close { width: 2.2rem; height: 2.2rem; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-size: 1.2rem; line-height: 1; transition: color .2s, border-color .2s; }
.cal-close:hover { color: var(--ink); border-color: var(--ink); }
.cal-body { position: absolute; inset: 3.4rem 0 0; }
.cal-body .calendly-inline-widget, .cal-body iframe { position: relative; z-index: 1; width: 100%; height: 100%; }
.cal-body .spinner { position: absolute; left: 50%; top: 45%; margin: -13px 0 0 -13px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.cal-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .ways, .who { grid-template-columns: 1fr 1fr; }
  .flow, .gets { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .two-col .sec-head { position: static; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-side { position: sticky; top: 4rem; z-index: 5; margin: 0 calc(var(--pad) * -1); padding: .7rem var(--pad); background: rgba(6, 6, 8, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
  .cat-filter { flex-direction: row; margin: 0; }
  .cat-filter .chip { flex: 1; justify-content: center; gap: .5rem; }
  .cat-nav { display: none; }
  .entry { grid-template-columns: 1fr; }
  .entry-viz { min-height: 240px; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .cta-inner { grid-template-columns: 1fr; }
  .dcard { grid-template-columns: 1fr; grid-template-rows: minmax(0, 34%) 1fr; }
  .dcard-viz { order: -1; margin-bottom: 0; }
  .ov-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .display { font-size: clamp(3rem, 15vw, 4.6rem); }
  .field-host::after { background: linear-gradient(180deg, transparent 30%, rgba(6, 6, 8, .6) 55%, rgba(6, 6, 8, .2) 100%); }
  .cat-filter .chip { font-size: .8rem; padding: .5rem .4rem; white-space: nowrap; }
  .cat-filter .chip b { display: none; }
  .phero { min-height: 92svh; }
  .phero-cta .btn { flex: 1 1 100%; }
  .ways, .who, .flow, .gets, .compare, .keep { grid-template-columns: 1fr; }
  .cmp-build, .keep-col + .keep-col { border-left: 0; border-top: 1px solid var(--line); }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
  .way { min-height: 0; }
  .entry-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .entry-other { grid-template-columns: 1fr; }
  .deck-head .deck-progress { display: none; }
  .deck-head { margin-bottom: 1rem; }
  .dcard-body { padding: 1.2rem 1.3rem 1.3rem; }
  .dcard h3 { font-size: 2rem; margin-top: .6rem; }
  .dcard-line { font-size: .98rem; margin-bottom: .8rem; }
  .dcard .ticks li { font-size: .88rem; }
  .dcard-meta { gap: .7rem; padding-top: .8rem; }
  .dcard-meta dd { font-size: .8rem; }
  .dcard-actions { margin-top: .9rem; }
  .dcard-actions .btn { --h: 2.6rem; font-size: .88rem; }
  .ov-head { flex-direction: column; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
  .ov-head .btn { --h: 2.4rem; font-size: .85rem; }
  .ov-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .ov-tile { padding: .9rem .95rem .95rem; border-radius: 14px; }
  .ov-top { margin-bottom: .9rem; }
  .ov-name { font-size: 1rem; }
  .ov-line, .ov-foot { display: none; }
  .dcard { inset: 8px 0 0; }
  .tl { padding-left: 3.4rem; }
  .tl-line { left: .9rem; }
  .tl-node { left: -3.4rem; width: 2.1rem; height: 2.1rem; }
  .tl-card { padding: 1.3rem; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-wrap: wrap; }
  .foot-status { order: 3; width: 100%; }
}
@media (max-height: 760px) and (min-width: 681px) {
  .ov-line { display: none; }
  .ov-top { margin-bottom: 1rem; }
  .dcard .ticks { gap: .35rem; }
  .dcard-line { margin-bottom: .8rem; }
  .dcard h3 { margin-top: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   v3 additions: built-to-order switcher, mini-scan, Corpix Scan
   ============================================================ */
.sec-aside { color: var(--muted); max-width: 22rem; }
.nav-cta .btn-ghost { border-color: var(--line-soft); }

/* ---------- built to order (tabbed, auto-advancing) ---------- */
.bto-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 1rem; }
.bto-list { display: grid; gap: .5rem; align-content: start; }
.bto-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; text-align: left; padding: 1.15rem 1.3rem 1.3rem; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--panel); overflow: hidden; transition: border-color .3s, background .3s; }
.bto-item .tag { color: var(--faint); grid-row: 1 / 3; padding-top: .35rem; min-width: 2.6rem; transition: color .3s; }
.bto-name { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.03em; }
.bto-line { color: var(--faint); font-size: .9rem; transition: color .3s; }
.bto-item:hover { border-color: var(--line); }
.bto-item.on { border-color: rgba(95, 227, 224, .4); background: linear-gradient(90deg, rgba(95, 227, 224, .07), transparent 70%), var(--panel-2); }
.bto-item.on .tag { color: var(--cyan); }
.bto-item.on .bto-line { color: var(--muted); }
.bto-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.bto-bar i { display: block; height: 100%; background: var(--cyan); transform-origin: left; transform: scaleX(0); }
.bto-item.on .bto-bar i { animation: btoBar var(--bto-ms, 5200ms) linear forwards; }
.bto-grid.paused .bto-item.on .bto-bar i { animation: none; transform: scaleX(1); opacity: .35; }
@keyframes btoBar { to { transform: scaleX(1); } }
.bto-stage { position: relative; min-height: 440px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.bto-panel { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .55s var(--ease), transform .7s var(--ease); pointer-events: none; }
.bto-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.bto-viz { position: relative; margin: 12px 12px 0; border-radius: 16px; overflow: hidden; background: #08090b; border: 1px solid var(--line-soft); }
.bto-panel.on .viz * { animation-play-state: running !important; }
.bto-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding: 1.4rem 1.6rem 1.5rem; }
.bto-meta .ticks li { font-size: .92rem; }
.bto-act { display: grid; justify-items: end; gap: .7rem; }
.bto-act .mono { color: var(--faint); font-size: .74rem; }

/* ---------- corpus map (shared by mini-scan and the scan page) ---------- */
.cmap { display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr); gap: 3px; }
.cmap i { aspect-ratio: 1; border-radius: 2.5px; background: rgba(244, 241, 234, .05); transform: scale(.82); transition: background .5s var(--ease), transform .5s var(--ease), box-shadow .5s; }
.cmap i.on { transform: none; box-shadow: 0 0 10px -2px currentColor; }
.cmap-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1.1rem; font-size: .84rem; color: var(--muted); }
.cmap-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.cmap-legend i { width: 9px; height: 9px; border-radius: 2px; }
.cmap-legend .empty { color: var(--faint); }
.map-live { display: inline-flex; align-items: center; gap: .45rem; font: .7rem var(--mono); color: var(--faint); }
.map-live i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: blink 2s infinite; }

/* ---------- mini-scan on home ---------- */
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ms-left .display-2 { margin: 1.1rem 0 1.8rem; }
.ms-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ms-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .9rem .6rem .7rem; border-radius: 11px; border: 1px solid var(--line); font-size: .92rem; color: var(--muted); background: rgba(255, 255, 255, .02); transition: color .2s, border-color .2s, background .2s, transform .3s var(--ease); }
.ms-chip .ico { width: 1.05rem; height: 1.05rem; }
.ms-chip:hover { color: var(--ink); border-color: rgba(244, 241, 234, .3); transform: translateY(-1px); }
.ms-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: rgba(255, 106, 61, .1); }
.ms-chip[aria-pressed="true"] .ico { color: var(--accent); }
.ms-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.ms-card, .map-card { padding: 1.4rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(255, 106, 61, .25); }
.ms-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ms-head .mini { margin: 0; }
.ms-signal { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.ms-signal .mini { margin: 0; }
.ms-meter { height: 6px; border-radius: 3px; background: rgba(244, 241, 234, .07); overflow: hidden; }
.ms-meter i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--accent)); transition: width .8s var(--ease); }
.ms-signal b { font-weight: 500; font-size: .92rem; min-width: 6.5rem; text-align: right; }

/* ---------- scan page ---------- */
.scan-hero { padding: calc(var(--nav-h) + 4rem) 0 2.5rem; background: radial-gradient(50% 80% at 85% 0%, rgba(255, 106, 61, .14), transparent 70%), radial-gradient(40% 60% at 0% 20%, rgba(95, 227, 224, .05), transparent 70%); }
.scan-hero .kicker { margin-bottom: 1.4rem; }
.scan-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.scan-hero .lead { margin-top: 1.4rem; max-width: 44rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.trust li { font: .74rem var(--mono); color: var(--muted); padding: .45rem .7rem; border-radius: 8px; border: 1px solid var(--line-soft); }
.trust li::before { content: '✓ '; color: var(--accent); }
.scan { padding: 1rem 0 6rem; }
.scan-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.2rem; align-items: start; }
.scan-side { position: sticky; top: 5.5rem; }
.map-fine { margin-top: 1.1rem; font-size: .78rem; color: var(--faint); }
.scan-card { border-radius: 26px; background: var(--panel); border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.4rem); min-height: 560px; display: flex; flex-direction: column; }
.scan-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.04em; margin-top: .8rem; }
.step-sub { color: var(--muted); margin-top: .5rem; }
.steps-bar { display: flex; gap: .4rem; margin-bottom: 1.6rem; }
.steps-bar span { flex: 1; font: .62rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-bar i { display: block; height: 3px; border-radius: 2px; background: var(--line); margin-bottom: .5rem; transition: background .4s; }
.steps-bar .done i { background: rgba(255, 106, 61, .55); }
.steps-bar .cur { color: var(--ink); }
.steps-bar .cur i { background: var(--accent); box-shadow: 0 0 10px rgba(255, 106, 61, .6); }
.scan-form { flex: 1; margin-top: 1.8rem; animation: fadeUp .5s var(--ease); }
.scan-foot { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.scan-foot:empty { display: none; }
.scan-foot .btn-primary { margin-left: auto; }
.scan-foot .btn[disabled] { opacity: .35; pointer-events: none; }
.foot-hint { font-size: .82rem; color: var(--faint); }

.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; padding: 1.6rem; border-radius: 18px; border: 1px solid var(--line); background: var(--panel-2); min-height: 15rem; transition: border-color .3s, transform .4s var(--ease), background .3s; }
.mode svg { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 11px; background: rgba(255, 106, 61, .1); color: var(--accent); margin-bottom: auto; }
.mode[data-mode="buy"] svg { background: rgba(95, 227, 224, .08); color: var(--cyan); }
.mode b { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; margin-top: 2rem; }
.mode span { color: var(--muted); font-size: .93rem; }
.mode i { font: normal .74rem var(--mono); color: var(--faint); margin-top: .6rem; }
.mode:hover { border-color: var(--accent); transform: translateY(-3px); }
.mode[data-mode="buy"]:hover { border-color: var(--cyan); }

.q { border: 0; margin-bottom: 1.6rem; }
.q legend, .q .legend { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; width: 100%; font-size: .92rem; font-weight: 500; margin-bottom: .7rem; }
.q legend em, .q .legend em { font-style: normal; font-weight: 400; color: var(--faint); font-size: .8rem; margin-right: auto; }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.6rem; }
.q-row .q { margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt { padding: .6rem .9rem; border-radius: 10px; border: 1px solid var(--line); font-size: .9rem; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.opt:hover { color: var(--ink); border-color: rgba(244, 241, 234, .3); }
.opt.on { color: var(--ink); border-color: var(--accent); background: rgba(255, 106, 61, .1); }
.q-select select { width: 100%; height: 2.9rem; padding: 0 .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: inherit; font-size: .92rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.q-range, .q-text { display: block; }
.q-range output { font: .8rem var(--mono); color: var(--accent); }
input[type="range"] { width: 100%; height: 2rem; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 6px; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 61, .18); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 6px; background: var(--accent); }
.q-text textarea, .lead-form input, .lead-form textarea { width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: inherit; font-size: .93rem; resize: vertical; transition: border-color .2s; }
.q-text textarea:focus, .lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.tile { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; text-align: left; padding: .95rem 2.6rem .95rem 1rem; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--panel-2); transition: border-color .2s, background .2s; }
.tile svg { grid-row: 1 / 3; width: 2.2rem; height: 2.2rem; padding: .5rem; border-radius: 9px; background: rgba(244, 241, 234, .05); color: var(--muted); transition: color .2s, background .2s; }
.tile b { font-weight: 500; font-size: .95rem; }
.tile span { color: var(--faint); font-size: .78rem; line-height: 1.35; }
.tile .tick { position: absolute; right: .9rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 5px; border: 1.5px solid var(--faint); transition: all .2s; }
.tile:hover { border-color: var(--line); }
.tile.on { border-color: var(--accent); background: rgba(255, 106, 61, .07); }
.tile.on svg { color: var(--accent); background: rgba(255, 106, 61, .12); }
.tile.on .tick { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23160803' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; border-color: var(--accent); }
.tile.k-build.on { border-color: var(--cyan); background: rgba(95, 227, 224, .06); }
.tile.k-build.on svg { color: var(--cyan); background: rgba(95, 227, 224, .1); }
.tile.k-build.on .tick { background-color: var(--cyan); border-color: var(--cyan); }

.vols { display: grid; gap: .7rem; }
.vol { padding: 1.1rem 1.2rem .6rem; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--panel-2); display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.vol-head { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.vol-head svg { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.vol-head b { font-weight: 500; }
.vol .legend { font-size: .82rem; color: var(--muted); font-weight: 400; display: flex; justify-content: space-between; }

.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.side-stats .mini { display: block; margin-bottom: .45rem; }
.side-stats b { font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.side-stats small { color: var(--faint); font-size: .75rem; }

/* result layout */
.is-result .scan-grid { grid-template-columns: 1fr 0.8fr; }
.report { animation: fadeUp .6s var(--ease); }
.rep-top { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line-soft); }
.rep-fit h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.045em; color: var(--accent); }
.rep-fit p:not(.mini) { color: var(--muted); margin-top: .5rem; max-width: 30rem; }
.rep-gauge { position: relative; width: 120px; text-align: center; }
.rep-gauge .mini { margin: .5rem 0 0; }
.gauge { width: 120px; height: 120px; transform: rotate(-90deg); }
.g-bg, .g-fg { fill: none; stroke-width: 9; }
.g-bg { stroke: rgba(244, 241, 234, .07); }
.g-fg { stroke: var(--accent); stroke-linecap: round; stroke-dashoffset: 289; transition: stroke-dashoffset 1.4s var(--ease) .2s; filter: drop-shadow(0 0 6px rgba(255, 106, 61, .6)); }
.g-fg.go { stroke-dashoffset: var(--off); }
.g-n { position: absolute; left: 0; right: 0; top: 38px; font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; }
.segs { display: grid; gap: .5rem; margin: 1.4rem 0; }
.seg { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-soft); animation: fadeUp .6s var(--ease) both; }
.seg:nth-child(2) { animation-delay: .06s; } .seg:nth-child(3) { animation-delay: .12s; } .seg:nth-child(4) { animation-delay: .18s; } .seg:nth-child(n+5) { animation-delay: .24s; }
.seg-sw { width: 12px; height: 34px; border-radius: 4px; }
.seg-sw.k-shelf { background: var(--accent); } .seg-sw.k-build { background: var(--cyan); }
.seg-main { display: grid; gap: .1rem; }
.seg-main b { font-weight: 500; }
.seg-meta { font: .74rem var(--mono); color: var(--faint); }
.seg-use { font-size: .82rem; color: var(--muted); }
.seg-tags { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.tag-line { font: .66rem var(--mono); color: var(--faint); letter-spacing: .06em; }
.chipx { font: 500 .68rem var(--mono); padding: .25rem .5rem; border-radius: 6px; white-space: nowrap; }
.d-hi { color: var(--accent); background: rgba(255, 106, 61, .12); }
.d-mid { color: var(--cyan); background: rgba(95, 227, 224, .1); }
.d-lo { color: var(--muted); background: rgba(244, 241, 234, .06); }
.p-ok { color: #6be39b; background: rgba(61, 220, 132, .1); }
.p-work { color: #ffd36b; background: rgba(255, 211, 107, .1); }
.rep-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; }
.regimes { display: flex; flex-wrap: wrap; gap: .4rem; }
.regimes span { font: .74rem var(--mono); padding: .35rem .6rem; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); }
.nexts { display: grid; gap: .5rem; counter-reset: nx; }
.nexts li { counter-increment: nx; display: flex; gap: .7rem; font-size: .9rem; color: var(--muted); }
.nexts li::before { content: counter(nx, decimal-leading-zero); font: 500 .7rem var(--mono); color: var(--accent); padding-top: .2rem; }
.rep-fine { margin-top: 1.4rem; font-size: .78rem; color: var(--faint); }
.rep-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.spec { margin: .4rem 0 1rem; }
.spec div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line-soft); }
.spec dt { font: 500 .66rem/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

.lead-box { margin-top: 2rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 20px; border: 1px solid rgba(255, 106, 61, .35); background: radial-gradient(70% 100% at 100% 0%, rgba(255, 106, 61, .14), transparent 60%), var(--panel-2); }
.lead-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.035em; margin: .8rem 0 .4rem; }
.lead-head p { color: var(--muted); font-size: .93rem; }
.lead-head b { color: var(--ink); font-weight: 500; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; }
.lead-form label span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.lead-form label em { font-style: normal; color: var(--faint); }
.lead-form .full { grid-column: 1 / -1; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.lead-actions .btn[disabled] { opacity: .6; }
.lead-fine { font-size: .78rem; color: var(--faint); }
.lead-err { color: #ff8a7a; font-size: .86rem; }
.lead-err:empty { display: none; }
.lead-done { text-align: left; }
.done-ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #3ddc84; color: #04130a; font-weight: 600; margin-bottom: 1rem; box-shadow: 0 0 30px rgba(61, 220, 132, .45); }
.lead-done h3 { font-size: 1.7rem; letter-spacing: -0.035em; margin-bottom: .4rem; }
.lead-done p { color: var(--muted); }
.lead-done a { color: var(--accent); text-decoration: underline; }
.lead-done .cal-inline { height: 660px; margin-top: 1.4rem; }


@media (max-width: 1080px) {
  .bto-grid, .ms-grid, .scan-grid, .is-result .scan-grid { grid-template-columns: 1fr; }
  .bto-list { grid-template-columns: 1fr 1fr; }
  .scan-side { position: static; order: -1; }
  .scan-side .cmap { --cols: 30 !important; }
  .is-result .scan-side { order: 0; }
}
@media (max-width: 680px) {
  .bto-list { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .bto-item { grid-template-columns: 1fr; padding: .8rem .9rem 1rem; }
  .bto-item .tag { grid-row: auto; padding: 0; }
  .bto-name { font-size: 1rem; }
  .bto-line { display: none; }
  .bto-stage { min-height: 400px; }
  .bto-meta { flex-direction: column; align-items: stretch; padding: 1.1rem 1.2rem 1.2rem; }
  .bto-act { justify-items: stretch; }
  .mode-pick, .tiles, .q-row, .vol, .lead-form, .rep-cols { grid-template-columns: 1fr; }
  .mode { min-height: 0; }
  .mode b { margin-top: 1rem; }
  .rep-top { grid-template-columns: 1fr; }
  .seg { grid-template-columns: auto 1fr; }
  .seg-tags { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .steps-bar span { font-size: 0; }
  .scan-foot .foot-hint { display: none; }
  .scan-side .cmap { --cols: 20 !important; }
}

@media print {
  .nav, .menu, .footer, .grain, .toast, .scan-hero, .scan-side, .lead-box, .rep-tools, .scan-foot, .steps-bar { display: none !important; }
  body { background: #fff; color: #111; }
  .scan-card { border: 0; background: #fff; padding: 0; }
  .seg, .regimes span { background: #f5f5f5; border-color: #ddd; }
  .rep-fit p, .seg-use, .nexts li, .step-sub { color: #444; }
  .scan-grid { display: block; }
}

@media (max-width: 560px) { .cal-box-head b { display: none; } .cal-modal { padding: .6rem; } }

/* ---------- home quick-start tabs ---------- */
.ms-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); margin-bottom: 1.6rem; }
.ms-tabs button { position: relative; z-index: 1; padding: .6rem 1.2rem; font-size: .92rem; font-weight: 500; color: var(--muted); border-radius: 9px; transition: color .25s; white-space: nowrap; }
.ms-tabs button.on { color: var(--accent-ink); }
.ms-tab-ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--accent); box-shadow: 0 6px 24px -8px rgba(255, 106, 61, .7); transition: transform .45s var(--ease); }
[data-ms="have"] .ms-tab-ink { transform: translateX(100%); }
.ms-pane { display: none; }
.ms-pane.on { display: block; animation: fadeUp .45s var(--ease); }
.ms-pane .display-2 { margin: 0 0 1.6rem; }
.ms-chip[data-kind="build"][aria-pressed="true"] { border-color: var(--cyan); background: rgba(95, 227, 224, .08); }
.ms-chip[data-kind="build"][aria-pressed="true"] .ico { color: var(--cyan); }
.strip-link { color: var(--ink); transition: color .2s; }
.strip-link:hover { color: var(--accent); }

/* ---------- multi-select dropdown (scan) ---------- */
.dd { position: relative; }
.dd-btn { width: 100%; height: 2.9rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 0 .95rem; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: .92rem; text-align: left; transition: border-color .2s; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--accent); }
.dd-val { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd-val b { font: 500 .72rem var(--mono); color: var(--accent); margin-left: .2rem; }
.dd-ph { color: var(--faint); }
.dd-car { flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.dd.open .dd-car { transform: translateY(2px) rotate(-135deg); }
.dd-panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); padding: .4rem; border-radius: 12px; border: 1px solid var(--line); background: #15161a; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); max-height: 320px; overflow-y: auto; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.dd.open .dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.dd-opt { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 8px; font-size: .9rem; color: var(--muted); text-align: left; transition: background .15s, color .15s; }
.dd-opt:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
.dd-opt.on { color: var(--ink); }
.dd-box { flex: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--faint); transition: all .15s; }
.dd-opt.on .dd-box { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23160803' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; }
.dd-foot { position: sticky; bottom: -.4rem; display: flex; justify-content: space-between; margin: .3rem -.4rem -.4rem; padding: .5rem .6rem; border-top: 1px solid var(--line-soft); background: #15161a; }
.dd-clear, .dd-done { font-size: .82rem; color: var(--muted); padding: .3rem .5rem; border-radius: 6px; }
.dd-done { color: var(--accent); font-weight: 500; }
.dd-clear:hover, .dd-done:hover { background: rgba(255, 255, 255, .05); }

/* ============================================================
   Mobile pass: legible labels, 44px tap targets, no overlap
   ============================================================ */
@media (max-width: 680px) {
  :root { --pad: 1.25rem; }
  /* type floor: nothing under ~11.5px */
  .kicker, .mini, .tag, .pill, .dcard-meta dt, .cmp-col dt, .spec dt, .tl-who span, .deck-count, .code-meta, .med-meta, .fx, .rubric, .aud-tx, .ov-idx, .foot-col p, .foot-bottom, .contact-alt-label, .trust li, .chipx, .tag-line, .seg-meta, .bto-act .mono, .steps-bar span, .map-live { font-size: .74rem !important; }
  .kicker { letter-spacing: .12em; }
  .phero .kicker { margin-bottom: 1.3rem; }
  .lead { font-size: 1.02rem; }

  /* hero: copy gets the room, the shape lives top-right */
  .phero { min-height: 0; padding-top: calc(var(--nav-h) + 9.5rem); padding-bottom: 3rem; }
  .hero-home { min-height: 100svh; }
  .field-host::after { background: linear-gradient(180deg, transparent 0%, rgba(6, 6, 8, .35) 30%, rgba(6, 6, 8, .75) 55%, rgba(6, 6, 8, .4) 100%); }
  .hero-strip { gap: .8rem 1.4rem; margin-top: 2.2rem; }
  .strip-mail { width: 100%; justify-content: space-between; }

  /* tap targets */
  .brand { padding: .55rem 0; }
  .nav { height: 4rem; }
  .link { min-height: 44px; }
  .chip, .cat-filter .chip { min-height: 44px; }
  .faq summary { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .ms-chip, .opt { min-height: 44px; }
  .foot-col { gap: 0; }
  .foot-col a { display: flex; align-items: center; min-height: 44px; }
  .foot-start a { justify-content: space-between; width: 100%; }
  .foot-start a span { white-space: nowrap; font-size: .76rem; }
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .foot-start { grid-column: 1 / -1; }
  .foot-mail { width: 100%; justify-content: space-between; }
  .foot-mail .copy, .strip-mail .copy { width: 2.6rem; height: 2.6rem; }
  .foot-up { min-height: 44px; }
  .foot-pixels { margin: 2.5rem auto 1.5rem; }

  /* catalogue */
  .group-head { flex-direction: column; align-items: flex-start; gap: .5rem; padding-top: 2rem; }
  .entry-viz { min-height: 210px; }
  .entry-body { padding: 1.4rem; }
  .entry .btn, .od-other .btn, .entry-other .btn { width: 100%; }

  /* sections breathe less on small screens */
  .sec { padding: 4rem 0; }
  .sec-head { margin-bottom: 2rem; }
  .display-2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cta-inner { padding: 1.8rem 1.4rem; border-radius: 22px; gap: 1.6rem; }
  .cta-btns .btn { flex: 1 1 100%; }
  .compare dl div, .cmp-col dl div { grid-template-columns: 6.5rem 1fr; }
  .cmp-col .btn, .keep-col .btn { width: 100%; }
  .way, .get, .who-card, .std { padding: 1.5rem; }

  /* contact */
  .phero-contact { padding-top: calc(var(--nav-h) + 8rem); }
  .contact-card { padding: 1.2rem; border-radius: 20px; }
  .contact-direct { flex-wrap: nowrap; }
  .contact-mail { font-size: 1.15rem; }
  .cal-inline { background: #0d0e11; }

  /* get started: form first, map follows */
  .scan-hero { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 1.5rem; }
  .scan-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .trust { gap: .4rem; }
  .scan-side { order: 2 !important; position: static; }
  .scan-card { padding: 1.3rem; border-radius: 20px; min-height: 0; }
  .scan-foot { position: sticky; bottom: 0; z-index: 5; margin: 1.6rem -1.3rem -1.3rem; padding: .9rem 1.3rem; background: rgba(13, 14, 17, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 0 0 20px 20px; }
  .scan-foot .btn { --h: 2.9rem; }
  .map-card { padding: 1.1rem; }
  .side-stats b { font-size: 1rem; }
  .lead-form .btn { width: 100%; white-space: normal; height: auto; min-height: 3.2rem; padding-top: .7rem; padding-bottom: .7rem; }
  .dd-panel { max-height: 55vh; }
  .rep-gauge { justify-self: start; }

  /* menu */
  .menu { padding-top: 5.5rem; overflow-y: auto; }
  .menu nav a { font-size: 1.6rem; min-height: 56px; align-items: center; }
}
@media (max-width: 380px) {
  .display { font-size: 2.8rem; }
  .bto-list, .ov-grid { grid-template-columns: 1fr 1fr; }
  .tabs-small, .ms-tabs button { padding: .55rem .8rem; font-size: .86rem; }
}
@media (max-width: 680px) {
  .strip-mail a, .foot-mail a, .contact-mail { display: inline-flex; align-items: center; min-height: 44px; }
  .strip-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 1080px) { .burger { background: rgba(6, 6, 8, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
.done-alt { margin-top: .9rem; font-size: .9rem; }
.done-alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
