/* 2SNR — site styles. No external resources. */
:root {
  --paper: #F3EEE3;
  --card: #FFFBF2;
  --ink: #15182D;
  --deep: #1B1F3A;
  --night: #0D0F1F;
  --muted: #55586B;
  --coral: #FF5C39;
  --teal: #12B3A2;
  --sun: #FFC53D;
  --lilac: #B9A7FF;
  --r: 14px;
  --sh: 6px 6px 0 var(--ink);
  --head: 64px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sans: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(21, 24, 45, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; display: inline-block; background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 6px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.lede strong { color: var(--ink); }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%); }
.small { font-size: .9rem; }

/* Letter tiles: the 2 / S / N / R system used across the site */
.tl { display: inline-grid; place-items: center; flex: none; width: 1.55em; height: 1.55em; border: 2px solid var(--ink); border-radius: .32em; font-family: var(--sans); font-weight: 800; font-style: normal; line-height: 1; color: var(--ink); }
.tl-2 { background: var(--ink); color: var(--paper); }
.tl-s { background: var(--coral); }
.tl-n { background: var(--teal); }
.tl-r { background: var(--sun); }
.on-ink .tl { border-color: var(--paper); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; gap: 3px; font-size: 1.02rem; text-decoration: none; }
.logo .tl { transition: transform .3s var(--spring); }
.logo .tl:nth-child(odd) { transform: rotate(-5deg); }
.logo .tl:nth-child(even) { transform: rotate(4deg); }
.logo:hover .tl { transform: translateY(-4px) rotate(0); }
.logo:hover .tl:nth-child(2) { transition-delay: .05s; }
.logo:hover .tl:nth-child(3) { transition-delay: .1s; }
.logo:hover .tl:nth-child(4) { transition-delay: .15s; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-family: var(--mono); font-size: .85rem; text-decoration: none; padding: 8px 10px; border-radius: 8px; border: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); background: var(--card); }

/* Buttons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: 13px 20px; border: 2px solid var(--ink); border-radius: 12px; background: var(--coral); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; cursor: pointer; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn-alt { background: var(--card); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.on-ink .btn { border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.on-ink .btn:hover { box-shadow: 6px 6px 0 var(--paper); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.35fr .65fr; gap: 56px; } }

.name { font-size: clamp(2.7rem, 8.2vw, 6.2rem); line-height: 1.3; letter-spacing: -.03em; margin: 0 0 .35em; text-wrap: wrap; }
.name .w { display: inline-block; white-space: nowrap; }
.name .tl { width: 1.1em; height: 1.1em; border-width: 3px; border-radius: .2em; margin-right: .05em; box-shadow: .06em .06em 0 var(--ink); transition: transform .3s var(--spring); animation: tile-in .7s var(--spring) both; }
.name .w:nth-child(1) .tl { transform: rotate(-6deg); }
.name .w:nth-child(2) .tl { transform: rotate(4deg); animation-delay: .12s; }
.name .w:nth-child(3) .tl { transform: rotate(-3deg); animation-delay: .24s; }
.name .w:nth-child(4) .tl { transform: rotate(5deg); animation-delay: .36s; }
.name .w:hover .tl { transform: rotate(0) scale(1.08); }
@keyframes tile-in { from { opacity: 0; transform: translateY(-.7em) rotate(-28deg) scale(.5); } }

.panel-bar { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .75rem; padding: 2px 4px 12px; color: rgba(243, 238, 227, .7); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); flex: none; }
.dot:nth-child(2) { background: var(--sun); }
.dot:nth-child(3) { background: var(--teal); margin-right: 8px; }

.decode { background: var(--ink); color: var(--paper); border-radius: 20px; box-shadow: 10px 10px 0 var(--coral); padding: 14px 18px 20px; transform: rotate(1.4deg); }
.decode ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.decode li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.decode .tl { grid-row: span 2; font-size: 1.45rem; transition: transform .3s var(--spring); }
.decode li:hover .tl { transform: rotate(-8deg) scale(1.1); }
.decode strong { font-size: 1.25rem; line-height: 1.2; }
.decode span { font-family: var(--mono); font-size: .8rem; color: rgba(243, 238, 227, .7); }

/* Band: scroll-linked marquee. The wrapper clips the tilted strip so it can never cause sideways scrolling. */
.band-wrap { overflow: hidden; padding: max(14px, 1.3vw) 0; }
.band { background: var(--ink); color: var(--sun); transform: rotate(-1deg); margin: 0 -12px; padding: 13px 0; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.band-track { display: inline-flex; align-items: center; will-change: transform; }
.band-track span { margin: 0 18px; }
.band-track i { width: 9px; height: 9px; background: var(--coral); transform: rotate(45deg); flex: none; }

/* Sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { max-width: 46em; margin-bottom: 2.4rem; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.sub-h { font-size: 1.5rem; margin: 3.2rem 0 1.4rem; }

.card { background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; transition: transform .15s, box-shadow .15s, opacity .5s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card h3, .card h4 { margin-bottom: .45em; }

.tile { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 16px; margin-bottom: 18px; transform: rotate(-4deg); transition: transform .2s; }
.card:hover .tile, .cat-head:hover .tile { transform: rotate(5deg) scale(1.05); }
.tile svg { width: 40px; height: 40px; }
.t-coral { background: var(--coral); }
.t-teal { background: var(--teal); }
.t-sun { background: var(--sun); }
.t-lilac { background: var(--lilac); }
.ico { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.sec-ink { background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink); }
.sec-ink .lede { color: rgba(243, 238, 227, .78); }
.sec-ink .lede strong { color: var(--paper); }
.sec-ink .eyebrow { background: var(--sun); color: var(--ink); }
.sec-ink .card { box-shadow: 6px 6px 0 var(--lilac); }
.sec-ink .card:hover { box-shadow: 9px 9px 0 var(--lilac); }

/* Reveal on scroll (only when JS is running) */
.js .rv { opacity: 0; translate: 0 26px; transition: opacity .55s ease, translate .65s cubic-bezier(.2, .8, .2, 1), transform .15s, box-shadow .15s; }
.js .rv.in { opacity: 1; translate: none; }

/* ---------- The build: scroll-driven scene ---------- */
.build { padding-bottom: 24px; }
.build-grid { display: grid; }
.stick { position: sticky; top: var(--head); z-index: 5; margin: 0 -20px; padding: 8px 14px 12px; background: var(--paper); box-shadow: 0 12px 14px -12px rgba(21, 24, 45, .4); }
.stage { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 10px 12px 12px; box-shadow: 5px 5px 0 var(--teal); }
.stage .panel-bar { padding-bottom: 8px; }
.stage-step { margin-left: auto; color: var(--sun); white-space: nowrap; }
.stage svg { width: 100%; height: auto; max-height: 36vh; border-radius: 10px; border: 1px solid rgba(243, 238, 227, .18); background-color: var(--night); background-image: linear-gradient(rgba(243, 238, 227, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 238, 227, .055) 1px, transparent 1px); background-size: 26px 26px; }

.hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 10px 2px 0; }
.hud-m { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(243, 238, 227, .85); }
.hud-m .tl { font-size: .78rem; }
.hud-m .tl.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.45) rotate(-8deg); } }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(243, 238, 227, .14); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transform-origin: left center; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .bar i { transform: scaleX(0); }
.hud-s .bar i { background: var(--coral); }
.hud-n .bar i { background: var(--teal); }
.hud-r .bar i { background: var(--sun); }

.steps { padding: 6px 0 4vh; }
.step { min-height: 58vh; padding: 20px 0; display: flex; flex-direction: column; justify-content: flex-start; transition: opacity .35s ease; }
.js .step { opacity: .32; }
.js .step.is-active, .js .step:focus-within { opacity: 1; }
.step-k { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.step-no { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 2px 8px; transition: background-color .3s, color .3s; }
.step.is-active .step-no { background: var(--coral); color: var(--ink); }
.step h3 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: .4em; }
.step p { color: var(--muted); max-width: 31em; }
.gets { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.gets li { font-family: var(--mono); font-size: .76rem; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 11px; background: var(--card); }
.step .adds { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-family: var(--mono); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0; }
.adds .tl { font-size: .8rem; margin-left: 6px; }

@media (min-width: 860px), (min-width: 620px) and (max-height: 560px) {
  .build-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .stick { top: var(--head); height: calc(100vh - var(--head)); height: calc(100dvh - var(--head)); display: flex; align-items: center; margin: 0; padding: 0; background: none; box-shadow: none; }
  .stage { width: 100%; padding: 12px 14px 16px; box-shadow: 8px 8px 0 var(--teal); }
  .stage svg { max-height: calc(100vh - var(--head) - 170px); max-height: calc(100dvh - var(--head) - 170px); }
  .hud { gap: 18px; padding-top: 14px; }
  .hud-m { font-size: .78rem; }
  .steps { padding: 0 0 12vh; }
  .step { min-height: 78vh; justify-content: center; }
}
@media (min-width: 620px) and (max-height: 560px) {
  .build-grid { gap: 28px; }
  .stage { padding: 8px 10px 10px; }
  .stage .panel-bar { padding-bottom: 6px; }
  .stage svg { max-height: calc(100vh - var(--head) - 104px); max-height: calc(100dvh - var(--head) - 104px); }
  .hud { padding-top: 8px; }
}

/* Scene drawing classes */
.stage svg * { transform-box: fill-box; transform-origin: center; }
.sc-wall { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sc-roof { stroke-width: 8; }
.sc-dim { fill: none; stroke: rgba(243, 238, 227, .42); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-furn { fill: none; stroke: rgba(243, 238, 227, .75); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sc-base { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; }
.sc-label { font: 700 13px/1 var(--mono); letter-spacing: .12em; fill: rgba(243, 238, 227, .42); }
.sc-hint { font: 700 17px/1 var(--mono); letter-spacing: .04em; fill: rgba(243, 238, 227, .6); text-anchor: middle; }
.sc-flagtxt { font: 800 12px/1 var(--mono); fill: var(--ink); text-anchor: middle; }
.sc-dev { stroke: var(--paper); stroke-width: 2.5; stroke-linejoin: round; }
.sc-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sc-thick { stroke-width: 4.5; }
.sc-fine { stroke-width: 2.2; }
.sc-glow { fill: var(--sun); opacity: .1; }
.sc-knob { fill: rgba(243, 238, 227, .42); }
.sc-brick { fill: none; stroke: var(--ink); stroke-width: 2; }
.sc-unit { fill: var(--night); stroke: rgba(243, 238, 227, .6); stroke-width: 1.5; }
.sc-led { fill: var(--teal); }
.sc-led.alt { fill: var(--sun); }
.sc-ok circle { fill: var(--teal); stroke: var(--ink); stroke-width: 2; }
.sc-ok path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-jack { fill: var(--teal); stroke: var(--night); stroke-width: 2; }
.sc-gear { fill: none; stroke: var(--sun); stroke-width: 5; stroke-dasharray: 4 3.85; }
.sc-ring { fill: none; stroke: var(--teal); stroke-width: 3; opacity: 0; }
.f-coral { fill: var(--coral); } .f-teal { fill: var(--teal); } .f-sun { fill: var(--sun); } .f-lilac { fill: var(--lilac); }
.f-paper { fill: var(--paper); } .f-ink { fill: var(--ink); } .f-deep { fill: var(--deep); }
.k-coral { stroke: var(--coral); } .k-teal { stroke: var(--teal); } .k-sun { stroke: var(--sun); } .k-lilac { stroke: var(--lilac); }
.k-paper { stroke: var(--paper); } .k-ink { stroke: var(--ink); }

.sc-plan { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round; opacity: .8; }
.sc-live { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-flow { fill: none; stroke: var(--paper); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 30; opacity: 0; }
.sc-perim { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 11 8; }
.sc-ai-dots { fill: none; stroke: var(--lilac); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 8; }
.sc-ai-pulse { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 10 400; opacity: 0; }

/* Without JS the scene shows the finished environment. With JS, layers switch on as you scroll. */
.stage [data-to], .stage [data-only] { opacity: 0; }
.js .stage [data-at], .js .stage [data-only] { opacity: 0; transition: opacity .35s ease; }
.js .stage [data-at].on, .js .stage [data-only].on { opacity: 1; }

.js .stage [data-at] .pop { opacity: 0; transform: translateY(14px) scale(.55); transition: opacity .3s ease, transform .55s var(--spring); }
.js .stage [data-at].on .pop { opacity: 1; transform: none; }
.js .stage [data-at] .fade { opacity: 0; transition: opacity .5s ease; }
.js .stage [data-at].on .fade { opacity: 1; }
.js .stage [data-at] .draw { stroke-dasharray: 700; stroke-dashoffset: 700; opacity: 0; transition: stroke-dashoffset 1.5s ease-in-out, opacity .2s; }
.js .stage [data-at] .draw-s { stroke-dasharray: 150; stroke-dashoffset: 150; opacity: 0; transition: stroke-dashoffset .9s ease-in-out, opacity .2s; }
.js .stage [data-at].on .draw, .js .stage [data-at].on .draw-s { stroke-dashoffset: 0; opacity: 1; }
.js .stage [data-at].on .sc-flow { opacity: .9; transition: opacity .4s ease 1.3s; }
.js .stage [data-at].on .sc-ai-pulse { opacity: .95; transition: opacity .4s ease .6s; }
.js .stage [data-at].on .d1 { transition-delay: .08s; }
.js .stage [data-at].on .d2 { transition-delay: .18s; }
.js .stage [data-at].on .d3 { transition-delay: .28s; }
.js .stage [data-at].on .d4 { transition-delay: .38s; }
.js .stage [data-at].on .d5 { transition-delay: .5s; }
.js .stage [data-at].on .d6 { transition-delay: .62s; }

/* Looping motion runs only while the scene is on screen (.live is set by JS) */
.a-wave { transform-origin: 0 50% !important; }
.stage.live .on .a-march { animation: sc-march 1.3s linear infinite; }
.stage.live .on .sc-flow { animation: sc-flow .9s linear infinite; }
.stage.live .on .sc-ai-pulse { animation: sc-travel 2.6s linear infinite; }
.stage.live .on .a-pulse { animation: sc-pulse 1.6s ease-in-out infinite; }
.stage.live .on .a-pulse.late { animation-delay: .4s; }
.stage.live .on .a-blink { animation: sc-blink 1.4s steps(1) infinite; }
.stage.live .on .a-blink:nth-of-type(2n) { animation-delay: .35s; }
.stage.live .on .a-blink:nth-of-type(3n) { animation-delay: .8s; }
.stage.live .on .a-spin { animation: sc-spin 1.1s linear infinite; }
.stage.live .on .a-spin-slow { animation: sc-spin 7s linear infinite; }
.stage.live .on .a-ping { animation: sc-ping 2s ease-out infinite; }
.stage.live .on .a-wave { animation: sc-wave 2.4s ease-in-out infinite; }
.stage.live .on .a-twinkle { animation: sc-twinkle 1.8s ease-in-out infinite; }
.stage.live .on .a-twinkle.late { animation-delay: .6s; }
.stage.live .on .a-eye { animation: sc-eye 4s ease-in-out infinite; }
.stage.live .on .a-bob { animation: sc-bob 1.4s ease-in-out infinite; }
@keyframes sc-march { to { stroke-dashoffset: -19; } }
@keyframes sc-flow { to { stroke-dashoffset: -32; } }
@keyframes sc-travel { to { stroke-dashoffset: -410; } }
@keyframes sc-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes sc-blink { 0% { opacity: 1; } 60% { opacity: .2; } }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes sc-wave { 0%, 100% { transform: skewY(-4deg); } 50% { transform: skewY(4deg); } }
@keyframes sc-twinkle { 0%, 100% { transform: scale(.55); } 50% { transform: scale(1.15); } }
@keyframes sc-eye { 0%, 91%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes sc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ---------- At a glance ---------- */
.glance .tl { font-size: 2rem; margin-bottom: 16px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); transition: transform .3s var(--spring); }
.glance .card:hover .tl { transform: rotate(5deg) scale(1.06); }
.glance h3 { font-size: 1.6rem; margin-bottom: .2em; }
.glance .tag { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.glance ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.glance li { position: relative; padding-left: 24px; font-size: .98rem; line-height: 1.4; }
.glance li::before { content: ""; position: absolute; left: 0; top: .28em; width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 3px; }
.g-s li::before { background: var(--coral); }
.g-n li::before { background: var(--teal); }
.g-r li::before { background: var(--sun); }

/* ---------- AI section ---------- */
.ai-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .ai-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.triad { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.triad li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.triad .tl { font-size: 1.45rem; transform: rotate(-4deg); }
.triad strong { display: block; font-size: 1.25rem; line-height: 1.2; }
.triad p { margin: .25em 0 0; color: rgba(243, 238, 227, .78); }

.demo { background: var(--night); border: 2px solid var(--paper); border-radius: 18px; box-shadow: 8px 8px 0 var(--lilac); padding: 12px 14px 16px; }
.demo .panel-bar { padding-bottom: 10px; }
.demo-tag { margin-left: auto; border: 1px solid rgba(243, 238, 227, .4); border-radius: 99px; padding: 1px 9px; font-size: .68rem; white-space: nowrap; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.flow li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 12px; align-items: center; border: 2px solid rgba(243, 238, 227, .2); border-radius: 12px; padding: 9px 12px; transition: border-color .3s, background-color .3s, opacity .3s; }
.flow li + li::before { content: ""; position: absolute; left: 27px; top: -11px; width: 2px; height: 9px; background: rgba(243, 238, 227, .3); }
.fl-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(243, 238, 227, .1); }
.fl-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow b { display: block; font-size: .98rem; line-height: 1.25; }
.flow .sub { display: block; font-family: var(--mono); font-size: .72rem; color: rgba(243, 238, 227, .62); }
.fl-st { font-family: var(--mono); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; text-align: right; min-width: 5.2em; }
.js .flow li { opacity: .55; }
.js .flow li.run, .js .flow li.ok, .js .flow li.wait, .js .flow li.halt { opacity: 1; }
.flow li.run { border-color: var(--sun); }
.flow li.run .fl-st::after { content: "working"; color: var(--sun); }
.flow li.ok { border-color: var(--teal); background: rgba(18, 179, 162, .1); }
.flow li.ok .fl-st::after { content: "done"; color: var(--teal); }
.flow li.wait { border-color: var(--coral); background: rgba(255, 92, 57, .12); animation: gate 1.2s ease-in-out infinite; }
.flow li.wait .fl-st::after { content: "your call"; color: var(--coral); }
.flow li.halt { border-color: var(--coral); }
.flow li.halt .fl-st::after { content: "stopped"; color: var(--coral); }
@keyframes gate { 50% { box-shadow: 0 0 0 5px rgba(255, 92, 57, .25); } }
.gate-btns { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 2px; }
.mini { font-family: var(--mono); font-weight: 700; font-size: .76rem; padding: 8px 13px; border-radius: 9px; border: 2px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; }
.mini.yes { background: var(--teal); color: var(--ink); }
.mini:hover { transform: translateY(-1px); }
.demo-log { font-family: var(--mono); font-size: .72rem; line-height: 1.55; color: rgba(243, 238, 227, .82); background: rgba(243, 238, 227, .06); border-radius: 10px; padding: 10px 12px; margin-top: 12px; height: 7.6em; overflow: auto; white-space: pre-wrap; }
.demo-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 14px; }
.demo-ctl p { margin: 0; font-family: var(--mono); font-size: .72rem; color: rgba(243, 238, 227, .6); flex: 1 1 12em; }

/* Promo panel */
.promo { background: var(--teal); border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--sh); padding: clamp(26px, 5vw, 52px); display: grid; gap: 26px; align-items: center; }
@media (min-width: 820px) { .promo { grid-template-columns: 1.4fr 1fr; } }
.promo p { max-width: 36em; }
.promo svg { width: 100%; max-width: 300px; margin-inline: auto; }

/* Picks */
.notice { background: var(--sun); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); padding: 16px 20px; margin: 1.6rem 0 0; max-width: 46em; }
.notice p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 2rem 0 0; }
.chips a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .85rem; text-decoration: none; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 7px; }
.chips a:hover { background: var(--lilac); }
.chips .tl { font-size: .72rem; border-radius: 50%; }
.grp { display: flex; align-items: center; gap: 18px; margin-top: 56px; padding-top: 30px; border-top: 4px solid var(--ink); scroll-margin-top: 80px; }
.grp:first-child { margin-top: 0; }
.grp .tl { font-size: 2.1rem; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); }
.grp h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.grp p { margin: .2em 0 0; color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.cat { padding: 36px 0 8px; scroll-margin-top: 80px; }
.cat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.cat-head .tile { margin: 0; flex: none; }
.cat-head h3 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin: 0; }
.pick { display: flex; flex-direction: column; }
.pick p { flex: 1; }
.pick .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.buy, .soon { align-self: flex-start; margin-top: 18px; font-family: var(--mono); font-size: .82rem; font-weight: 700; padding: 9px 14px; border-radius: 10px; border: 2px solid var(--ink); text-decoration: none; }
.buy { background: var(--coral); box-shadow: 3px 3px 0 var(--ink); }
.buy:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.soon { border-style: dashed; color: var(--muted); background: transparent; }

.pick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.pick-links .buy { margin-top: 0; }
.more { font-family: var(--mono); font-size: .82rem; font-weight: 700; }
.badge { display: inline-block; vertical-align: middle; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: var(--teal); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px; margin-left: 6px; }
.glance + .lede { margin-top: 2.2rem; max-width: 44em; }

/* ---------- Blog ---------- */
.post-head { max-width: 46em; }
.meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 1.2rem; }
.post { max-width: 46em; }
.post h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-top: 0; }
.post h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.post p, .post li { color: #2B2E45; }
.post ul { padding-left: 1.2em; }
.post li { margin-bottom: .45em; }
.toc { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin: 1.6rem 0 0; }
.toc a { display: flex; gap: 12px; align-items: center; text-decoration: none; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink); }
.toc a:hover { background: var(--lilac); }
.toc b { font-family: var(--mono); font-size: .78rem; color: var(--muted); min-width: 2.2em; }
.toc span { flex: 1; font-weight: 700; }
.toc em { font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.review { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: var(--sh); padding: clamp(20px, 4vw, 34px); margin: 44px 0; scroll-margin-top: 90px; }
.rev-top { display: grid; gap: 20px; align-items: center; margin-bottom: 8px; }
@media (min-width: 700px) { .rev-top { grid-template-columns: 200px 1fr; gap: 28px; } }
.rev-art { background: var(--ink); border-radius: 14px; padding: 14px; width: 100%; max-width: 240px; }
.rev-art svg { width: 100%; height: auto; }
.rev-no { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.rev-for { font-family: var(--mono); font-size: .85rem; margin: .4rem 0 0; }
.pc { display: grid; gap: 14px; margin: 1.4rem 0; }
@media (min-width: 640px) { .pc { grid-template-columns: 1fr 1fr; } }
.pc div { border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; }
.pc .pro { background: rgba(18, 179, 162, .14); }
.pc .con { background: rgba(255, 92, 57, .12); }
.pc h4 { font-size: .95rem; margin: 0 0 .5em; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.pc ul { margin: 0; padding-left: 1.1em; }
.pc li { font-size: .97rem; margin-bottom: .3em; }
.verdict { background: var(--sun); border: 2px solid var(--ink); border-radius: 12px; padding: 14px 18px; margin: 1.4rem 0 0; }
.verdict p { margin: 0; color: var(--ink); }
.review .buy { display: inline-block; margin-top: 18px; }
.sumtab { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; background: var(--card); border: 2px solid var(--ink); }
.sumtab th, .sumtab td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(21, 24, 45, .2); vertical-align: top; }
.sumtab th { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); }
.tabwrap { overflow-x: auto; }
.post-card { display: grid; gap: 20px; align-items: center; text-decoration: none; }
@media (min-width: 760px) { .post-card { grid-template-columns: 260px 1fr; } }
.post-card h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.post-card p { color: var(--muted); }
.post-card .more { color: var(--ink); }

/* Prose pages */
.prose { max-width: 44em; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose li { margin-bottom: .4em; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost .big { font-family: var(--mono); font-size: clamp(5rem, 22vw, 11rem); font-weight: 700; line-height: 1; color: var(--coral); -webkit-text-stroke: 3px var(--ink); margin: 0; }
.lost h1 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); max-width: 18em; margin-inline: auto; }
.lost .lede { margin-inline: auto; }
.lost .btn-row { justify-content: center; }
.lost .logo { font-size: 1.5rem; margin-bottom: 18px; }

/* Footer */
.foot { border-top: 2px solid var(--ink); background: var(--card); padding: 36px 0 44px; font-size: .92rem; }
.foot .wrap { display: grid; gap: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--mono); font-size: .85rem; }
.foot p { margin: 0; color: var(--muted); max-width: 60em; }
.foot .disclose { color: var(--ink); font-weight: 700; }
.foot-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-weight: 800; font-size: 1.15rem; color: var(--ink) !important; }
.foot-name .logo { font-size: .9rem; }

@media (max-width: 480px) {
  .top .wrap { min-height: 56px; }
  .logo { font-size: .92rem; gap: 2px; }
  .nav a { padding: 6px 6px; font-size: .74rem; }
  .nav a[href$="#ai"] { display: none; }
  .decode { transform: none; box-shadow: 6px 6px 0 var(--coral); }
  .btn { width: 100%; text-align: center; }
  .demo .btn { width: auto; }
  .demo .dot { display: none; }
  .step p { font-size: 1rem; }
  .hud { gap: 8px; }
  .hud-m { font-size: .64rem; }
  .flow li { grid-template-columns: 30px 1fr auto; gap: 4px 9px; padding: 8px 10px; }
  .fl-ico { width: 30px; height: 30px; }
  .flow li + li::before { left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { translate: none; }
}
