/* =================================================
   PROMPT_GOBLIN — v2
   Terminal / dashboard layout · dark + lime
   ================================================= */

:root {
  /* dark + lime brand (default) */
  --bg:   #0A0B0A;
  --panel:#0E0F0D;
  --fg:   #E9E7DC;
  --ink:  #E9E7DC;
  --bone: #E9E7DC;
  /* muted/faint raised to clear WCAG AA 4.5:1 for SMALL text on --bg. The
     2026-06-01 bump (0.66/0.60) got close but still failed axe for the tiniest
     classes (.tk, .scan-id, .cursor-label, .hero-kicker @10px). Raised again
     2026-06-02 so even 10px text clears 4.5:1. (0.5/0.28 -> 0.66/0.60 -> 0.80/0.74) */
  --muted: rgba(233, 231, 220, 0.80);
  --faint: rgba(233, 231, 220, 0.74);
  --line:  rgba(233, 231, 220, 0.16);
  --line-2: rgba(233, 231, 220, 0.30);

  --lime:   #A3E635;
  --lime-dk:#6E9E1E;
  --accent: #A3E635;
  --glow:   rgba(163,230,53,.38);
  --fire:   #E33B14;
  --fire-2: #F7A41D;
  --ice:    #4FC3F7;
  --ice-2:  #B8E8FF;
  --bolt:   #FFD60A;
  --lightning: #FFD60A;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --pixel: "Press Start 2P", "VT323", ui-monospace, monospace;
  --pixel-soft: "VT323", ui-monospace, monospace;
  --pixel-tiny: "Silkscreen", ui-monospace, monospace;
  --serif: var(--pixel);

  --pad: 32px;
  --hud-h: 42px;
  --gap: 1px;             /* hairline grid gap */
  --display-mult: 1;
  --maxw: 1480px;
}

/* Display size scaling — Press Start 2P is chunky */
body[data-display="sm"] { --display-mult: 0.78; }
body[data-display="md"] { --display-mult: 1; }
body[data-display="lg"] { --display-mult: 1.22; }

/* ---- palettes ---- */
body[data-palette="bone"] {           /* white / light */
  --bg: #F4F2EC; --panel: #FBFAF6;
  --fg: #0A0B0A; --ink:#0A0B0A; --bone:#0A0B0A;
  --muted: rgba(10,11,10,0.52); --faint: rgba(10,11,10,0.3);
  --line: rgba(10,11,10,0.16); --line-2: rgba(10,11,10,0.32);
  --lime: #4d7c0f; --lime-dk:#3f6212; --accent:#4d7c0f;
  --glow: rgba(77,124,15,.22);
}
body[data-palette="noir"] {
  --bg:#000; --panel:#080808; --fg:#fff; --ink:#fff; --bone:#fff;
  --lime:#fff; --lime-dk:#bbb; --accent:#fff;
  --glow: rgba(255,255,255,.30);
  --muted: rgba(255,255,255,0.5); --faint: rgba(255,255,255,0.28);
  --line: rgba(255,255,255,0.16); --line-2: rgba(255,255,255,0.32);
}
body[data-palette="rust"] {
  --bg:#120D0A; --panel:#16100C;
  --lime:#E8804A; --lime-dk:#B83A14; --accent:#E8804A;
  --glow: rgba(232,128,74,.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "calt","ss01";
}
html { overflow-x: clip; }
body { overflow-x: clip; cursor: none; }
body[data-cursor="off"] { cursor: auto; }
body[data-cursor="off"] .cursor, body[data-cursor="off"] .cursor-label { display: none; }
/* No custom cursor on touch / coarse-pointer devices — restore the native one */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-label { display: none !important; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--bg); }

.mono { font-family: var(--mono); }
.tiny { font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }

/* ============================================
   Grain
   ============================================ */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
body[data-grain="off"] .grain { display: none; }

/* ============================================
   Cursor — pixel block
   ============================================ */
.cursor {
  position: fixed; top:0; left:0; width: 10px; height: 16px;
  background: #fff; pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  animation: blink 1.06s steps(2,end) infinite;
  transition: width .2s, height .2s, opacity .2s;
}
body[data-palette="bone"] .cursor { background: #2a2a2a; }
@keyframes blink { 50% { opacity: 0; } }
.cursor.is-hover { width: 30px; height: 30px; animation: none; opacity: .8; }
.cursor-label {
  position: fixed; top:0; left:0; z-index:10001; pointer-events:none;
  font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bg); background: var(--lime); padding: 2px 5px;
  transform: translate(-50%, calc(-50% + 26px)); opacity: 0; transition: opacity .2s;
}
.cursor-label.is-hover { opacity: 1; }

/* ============================================
   Shell / frame
   ============================================ */
.os {
  max-width: var(--maxw);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}
@media (min-width: 1481px) { .os { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* top + bottom status bars */
.hud {
  position: fixed; left: 0; right: 0; height: var(--hud-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); z-index: 200; background: var(--bg);
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em;
}
.hud-top { top: 0; border-bottom: 1px solid var(--line); }
.hud-bot { bottom: 0; border-top: 1px solid var(--line); }
.hud-left { display:flex; gap:16px; align-items:center; }
.hud-right { display:flex; gap:16px; align-items:center; justify-content:flex-end; }
.hud-center { display:flex; gap:14px; align-items:center; }
.hud .dot { width:8px; height:8px; background: var(--lime); display:inline-block; vertical-align:middle; animation: pulse 1.2s steps(2,end) infinite; }
@keyframes pulse { 50% { opacity:.25; } }
.hud-divider { width:1px; height:12px; background: var(--line-2); }
.logo { display:inline-flex; align-items:center; gap:9px; font-family: var(--pixel-tiny); font-size: 11px; letter-spacing:.06em; text-transform: uppercase; }
.logo-mark { width: 24px; height: 18px; display:inline-flex; color: var(--lime); }
.logo-mark .goblin-head { fill: var(--lime); }
.hud-menu { display:flex; gap: 20px; }
.hud-menu a { font-family: var(--pixel-tiny); font-size: 10px; letter-spacing:.06em; text-transform: uppercase; padding: 3px 0; border-bottom: 1px solid transparent; color: var(--muted); }
.hud-menu a:hover { border-bottom-color: var(--lime); color: var(--fg); }

/* theme toggle */
.theme-tog {
  display:inline-flex; align-items:center; gap:7px;
  font-family: var(--pixel-tiny); font-size: 10px; letter-spacing:.06em; text-transform: uppercase;
  border: 1px solid var(--line-2); padding: 5px 9px; color: var(--fg);
  transition: background .2s, color .2s, border-color .2s;
}
.theme-tog:hover { border-color: var(--lime); }
.theme-tog .sw { width:8px; height:8px; background: var(--lime); display:inline-block; }
.theme-tog .lbl { min-width: 30px; text-align:left; }

main { padding-top: var(--hud-h); padding-bottom: var(--hud-h); }

/* ============================================
   Panel system
   ============================================ */
.panel { border-top: 1px solid var(--line); position: relative; }
.panel:first-child { border-top: 0; }
.panel-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 9px var(--pad);
  border-bottom: 1px solid var(--line);
  font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}
.panel-bar .id { color: var(--lime); }
.panel-bar .grow { flex: 1; }
.panel-bar .tk { color: var(--faint); }
.panel-body { padding: var(--pad); }

/* hairline grid via gap-on-color */
.grid-lines { display: grid; gap: var(--gap); background: var(--line); border: 1px solid var(--line); }
.grid-lines > * { background: var(--bg); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
body[data-motion="low"] .reveal { transition-duration: .3s; transform: translateY(5px); }
body[data-motion="high"] .reveal { transition-duration: 1.1s; transform: translateY(34px); }
.line-mask { overflow: hidden; display: block; }
.line-mask > span { display:inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d,0s); }
.in .line-mask > span { transform: translateY(0); }

/* ============================================
   HERO — terminal window
   ============================================ */
.hero { border-top: 0; }
.win-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.win-bar .dots { display:inline-flex; gap:6px; }
.win-bar .dots i { width:9px; height:9px; border-radius:50%; background: var(--line-2); display:inline-block; }
.win-bar .dots i:first-child { background: var(--lime); }
.win-bar .grow { flex:1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}
.hero-grid > * { min-width: 0; }
.hero-main {
  padding: clamp(44px, 6vw, 96px) var(--pad) clamp(48px,6vw,88px);
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
}
.hero-kicker { font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display:flex; gap:10px; align-items:center; }
.hero-kicker .b { width: 22px; height:1px; background: var(--lime); display:inline-block; }
.hero-title {
  font-family: var(--pixel);
  font-size: calc(clamp(30px, 5.4vw, 76px) * var(--display-mult));
  line-height: 1.12; letter-spacing: -0.01em; text-transform: none;
}
.hero-title .g { color: var(--lime); }
.hero-sub {
  font-family: var(--mono); font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.5; color: var(--fg); max-width: 30ch;
}
.hero-sub .cur { display:inline-block; width:.55em; height:1.05em; background: var(--lime); vertical-align:-.12em; margin-left:.1em; animation: blink 1.06s steps(2,end) infinite; }
.hero-note { font-family: var(--mono); font-size: 13px; color: var(--muted); max-width: 42ch; }
.hero-note b { color: var(--lime); font-weight: 500; }
.hero-cta { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn {
  font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-2); padding: 13px 18px; display:inline-flex; gap:10px; align-items:center;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .arr { color: var(--lime); }
.btn:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.btn:hover .arr { color: var(--bg); }
.btn.ghost:hover { background: transparent; color: var(--fg); border-color: var(--lime); }

/* hero right — goblin terminal */
.hero-side {
  border-left: 1px solid var(--line);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  padding: 32px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(163,230,53,0.03) 3px 4px);
}
.hero-side .ascii-noise {
  position:absolute; inset:0; pointer-events:none;
  font-family: var(--mono); font-size: 11px; line-height: 1.45; color: var(--faint);
  opacity: .5; white-space: pre; overflow: hidden; padding: 14px;
}
.hero-side .ascii-tr { position:absolute; top:14px; right:16px; text-align:right; }
.hero-side .ascii-bl { position:absolute; bottom:14px; left:16px; }
.goblin-art { position: relative; z-index: 2; width: min(78%, 360px); }
.goblin-art .goblin-head { width:100%; height:auto; fill: var(--lime); filter: drop-shadow(0 0 16px var(--glow)) drop-shadow(0 0 36px var(--glow)); transition: opacity .12s steps(2,end), filter .4s; }
.goblin-art.blink .goblin-head { opacity: .5; }
.goblin-cap { position:absolute; bottom: 18px; left:50%; transform: translateX(-50%); z-index:3; font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); }
.goblin-cap .bk { color: var(--lime); animation: blink 1.06s steps(2,end) infinite; }

/* ============================================
   SPELLBOOK
   ============================================ */
.spellbook-sec { padding: var(--pad); }
.spellbook {
  border: 1px solid var(--lime);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--glow), 0 0 22px var(--glow), inset 0 0 30px rgba(163,230,53,0.04);
}
.sb-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 22px;
}
.sb-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pixel-tiny); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg);
}
.sb-bolt { display: inline-flex; filter: drop-shadow(0 0 5px var(--glow)); }
.sb-count { font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sb-card {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 18px;
  background: rgba(0,0,0,0.28);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
body[data-palette="bone"] .sb-card { background: rgba(0,0,0,0.05); }
.sb-card:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: 0 0 16px var(--glow); }
.sb-ico {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 4px;
  background: rgba(0,0,0,0.4);
}
body[data-palette="bone"] .sb-ico { background: #14140f; }
.sb-meta .nm { font-family: var(--pixel-tiny); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); line-height: 1.2; }
.sb-meta .lv { font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-top: 6px; }
.sb-meta .sb-sub { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 9px; }
.sb-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
}
.sb-foot .path { color: var(--muted); }
.sb-foot .pct { color: var(--lime); font-family: var(--pixel-tiny); font-size: 11px; letter-spacing: .06em; }
@media (max-width: 760px) { .sb-cards { grid-template-columns: 1fr; } }

/* ============================================
   SPELLBOOK end
   ============================================ */
.stats { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px var(--pad); display:flex; flex-direction: column; gap: 11px; }
.stat .v { font-family: var(--pixel); font-size: calc(22px * var(--display-mult)); color: var(--fg); line-height: 1; }
.stat .v em { color: var(--lime); font-style: normal; }
.stat .k { font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.07em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ============================================
   MARQUEE
   ============================================ */
.marquee { overflow: hidden; white-space: nowrap; padding: 14px 0; }
.marquee-track { display:inline-flex; gap: 30px; animation: scroll-x 40s linear infinite; font-family: var(--pixel-soft); font-size: clamp(26px, 3.4vw, 46px); }
body[data-motion="low"] .marquee-track { animation-duration: 84s; }
body[data-motion="high"] .marquee-track { animation-duration: 22s; }
.marquee-track > span { display:inline-flex; gap: 30px; align-items:center; }
.marquee-track .sep { color: var(--lime); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================
   INDEX / NOW (two-col)
   ============================================ */
.index-grid { grid-template-columns: 0.85fr 1.15fr; }
.idx-left { padding: var(--pad); }
.idx-left .h { font-family: var(--pixel); font-size: calc(15px * var(--display-mult)); text-transform: uppercase; margin-bottom: 26px; line-height: 1.4; }
.now-row { display:grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.now-row:first-of-type { border-top: 0; }
.now-row .k { color: var(--muted); font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.06em; text-transform: uppercase; padding-top: 3px; }
.now-row .val em { color: var(--lime); font-style: normal; }
.idx-right { padding: clamp(28px,4vw,56px) var(--pad); border-left: 1px solid var(--line); display:flex; flex-direction:column; justify-content:center; }
.idx-right .statement {
  font-family: var(--pixel); font-size: calc(clamp(20px, 2.4vw, 34px) * var(--display-mult));
  line-height: 1.5; text-transform: none;
}
.idx-right .statement em { color: var(--lime); font-style: normal; }
.idx-right .body { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 56ch; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.idx-right .body em { color: var(--fg); font-style: normal; }
@media (max-width: 900px) { .index-grid { grid-template-columns: 1fr; } .idx-right { border-left: 0; border-top: 1px solid var(--line); } }

/* ============================================
   WORK — modular bordered grid
   ============================================ */
.work-grid { grid-template-columns: 1fr 1fr 1fr; }
.wcard { padding: 0; display:flex; flex-direction: column; }
.wcard.span-2 { grid-column: span 2; }
.wcard.span-3 { grid-column: span 3; }
.wcard-head { display:flex; align-items:baseline; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.wcard-head .num { font-family: var(--pixel-tiny); font-size: 9px; color: var(--lime); letter-spacing:.06em; }
.wcard-head .nm { font-family: var(--pixel-tiny); font-size: 10px; letter-spacing:.06em; text-transform: uppercase; }
.wcard-head .tag { margin-left:auto; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.wterm { padding: 16px; font-family: var(--mono); font-size: 12px; flex:1; display:flex; flex-direction: column; gap: 7px; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(233,231,220,0.02) 3px 4px); }
.wterm .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wterm .pfx { color: var(--lime); }
.wterm .mu { color: var(--muted); }
.wterm .ok { color: var(--lime); }
.wterm .warn { color: var(--fire); }
.wterm em { font-style: normal; color: var(--bg); background: var(--lime); padding: 0 5px; }
.wterm .res { margin-top: auto; background: var(--lime); color: var(--bg); padding: 7px 11px; font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.05em; text-transform: uppercase; }
.wcard-foot { display:flex; align-items:baseline; gap:10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.wcard-foot .ttl { font-family: var(--pixel); font-size: calc(11px * var(--display-mult)); text-transform: uppercase; line-height: 1.4; }
.wcard-foot .ttl em { color: var(--lime); font-style: normal; }
.wcard-foot .sub { margin-left:auto; font-family: var(--mono); font-size: 11px; color: var(--muted); text-align:right; }
.wcard { transition: background .2s; }
.wcard:hover { background: var(--panel); }
.wcard:hover .wcard-head { background: rgba(163,230,53,0.05); }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } .wcard.span-2,.wcard.span-3 { grid-column: span 1; } }
/* Bug fix: drop the grid item's default min-width:auto so the 1fr track shrinks
   to the container. The terminal lines (.ln) are nowrap+ellipsis for desktop
   columnar alignment, but on a phone that silently truncated substantive proof
   lines ("…not a promise", "…2 content") — verified in-browser at 375px. Wrap
   them instead so the full dogfood story shows; overflow-wrap breaks long URLs. */
@media (max-width: 700px) {
  .wcard { min-width: 0; }
  .wterm .ln { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
}

/* ============================================
   SERVICES / CAPABILITIES
   ============================================ */
.svc-row {
  display:grid; grid-template-columns: 56px 1.1fr 1.4fr 50px; gap: 20px;
  padding: 28px var(--pad); border-top: 1px solid var(--line); cursor: pointer; align-items:start;
  transition: background .2s, padding .25s;
}
.svc-row:first-of-type { border-top: 0; }
.svc-row:hover { background: var(--panel); padding-left: calc(var(--pad) + 8px); }
.svc-row .num { font-family: var(--pixel-tiny); font-size: 10px; color: var(--lime); padding-top: 10px; }
.svc-row .ttl { font-family: var(--pixel); font-size: calc(clamp(18px,2.2vw,30px) * var(--display-mult)); line-height: 1.3; text-transform: none; }
.svc-row .ttl em { color: var(--lime); font-style: normal; }
.svc-row .lead { font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--muted); }
.svc-row .desc { max-height: 0; overflow:hidden; opacity:0; transition: max-height .5s cubic-bezier(.2,.7,.2,1), opacity .4s, margin-top .3s; }
.svc-row.open .desc { max-height: 200px; opacity: 1; margin-top: 12px; }
.svc-row .desc ul { list-style: none; display:flex; flex-wrap: wrap; gap: 6px 8px; }
.svc-row .desc li { font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.05em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 5px 8px; color: var(--fg); }
.svc-row .desc li::before { content: "▸ "; color: var(--lime); }
.svc-row .tog { font-family: var(--pixel); font-size: 20px; text-align:right; color: var(--muted); padding-top: 6px; transition: transform .3s, color .3s; }
.svc-row.open .tog { transform: rotate(45deg); color: var(--lime); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 36px 1fr 40px; }
  /* .num → col1/row1, .ttl → col2/row1, .tog → col3/row1 are placed by source
     order naturally. The class-less wrapper (3rd grid item under the old 4-col
     layout) auto-placed into the 40px col — force it to span full width on row 2. */
  .svc-row > div:not([class]) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  /* Dead declarations removed: .lead/.desc are NOT grid items (inside wrapper) */
}

/* ============================================
   QUOTES
   ============================================ */
.quotes { grid-template-columns: repeat(4, 1fr); }
.quote { padding: 30px var(--pad); display:flex; flex-direction: column; gap: 18px; min-height: 180px; }
.quote .q { font-family: var(--pixel-soft); font-size: 22px; line-height: 1.15; color: var(--fg); }
.quote .q::before { content: "“"; color: var(--lime); }
.quote .q::after { content: "”"; color: var(--lime); }
.quote .src { margin-top: auto; font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.06em; text-transform: uppercase; color: var(--muted); }
.quote .stars { color: var(--lime); letter-spacing: 2px; font-size: 11px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }

/* ============================================
   SCROLLS / JOURNAL
   ============================================ */
.scrolls { grid-template-columns: 1fr 1fr 1fr; }
.scard { padding: 32px var(--pad); display:flex; flex-direction: column; gap: 20px; min-height: 270px; transition: background .2s; }
.scard:hover { background: var(--panel); }
.scard .meta { display:flex; justify-content: space-between; font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.06em; text-transform: uppercase; color: var(--muted); }
.scard .meta .num { color: var(--lime); }
.scard h3 { font-family: var(--pixel); font-weight: 400; font-size: calc(12px * var(--display-mult)); line-height: 1.6; text-transform: uppercase; margin-top: auto; }
.scard h3 em { color: var(--lime); font-style: normal; }
.scard .read { font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.06em; text-transform: uppercase; display:flex; gap: 8px; align-items:center; }
.scard .read::after { content:"→"; transition: transform .25s; }
.scard:hover .read::after { transform: translateX(4px); }
/* WCAG 1.4.3 fix: blanket opacity:0.55 multiplied --muted's effective alpha to
   ~0.44, compositing to ~4.3:1 on --bg (AA small-text requires 4.5:1). Fix:
   remove the ancestor opacity; signal "inactive" via muted headline color and
   dashed border instead. All text nodes now pass at full token ratios (≥10:1). */
.scard-soon { opacity: 1; cursor: default; border-style: dashed; border-color: var(--line-2); }
.scard-soon h3 { color: var(--muted); }
.scard-soon:hover { background: transparent; }
.scard-soon .read::after { display: none; }
@media (max-width: 900px) { .scrolls { grid-template-columns: 1fr; } }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { grid-template-columns: 1.3fr 1fr; }
.contact-main { padding: clamp(40px,6vw,88px) var(--pad); display:flex; flex-direction: column; gap: 30px; }
.contact-main .big {
  font-family: var(--pixel); font-size: calc(clamp(40px, 8vw, 120px) * var(--display-mult));
  line-height: 1; text-transform: uppercase;
}
.contact-main .big em { color: var(--lime); font-style: normal; }
.contact-main .big .arr { display:inline-block; transition: transform .3s; }
.contact-main .big a:hover .arr { transform: translate(.12em,-.12em); }
.contact-main .avail { font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 48ch; }
.contact-main .avail em { color: var(--lime); font-style: normal; }
.contact-side { border-left: 1px solid var(--line); display:flex; flex-direction: column; }
.cside-row { padding: 24px var(--pad); border-top: 1px solid var(--line); display:flex; flex-direction:column; gap: 7px; }
.cside-row:first-child { border-top: 0; }
.cside-row .k { font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.06em; text-transform: uppercase; color: var(--muted); }
.cside-row .v { font-family: var(--mono); font-size: 14px; }
.cside-row .v a:hover { color: var(--lime); }
.cside-row .v.big { font-family: var(--pixel-soft); font-size: 22px; }
.soon-link { color: var(--muted); cursor: default; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-side { border-left: 0; border-top: 1px solid var(--line); } }

.colophon { display:flex; justify-content: space-between; padding: 14px var(--pad); border-top: 1px solid var(--line); font-family: var(--pixel-tiny); font-size: 9px; letter-spacing:.05em; text-transform: uppercase; color: var(--muted); }

/* density */
body[data-density="airy"] { --pad: 52px; }
body[data-density="tight"] { --pad: 16px; }

/* ============================================
   LOADER
   ============================================ */
.loader { position: fixed; inset:0; background: var(--bg); z-index: 9000; display:flex; align-items:flex-end; justify-content: space-between; padding: var(--pad); font-family: var(--pixel-tiny); font-size: 10px; letter-spacing:.06em; text-transform: uppercase; transition: opacity .55s ease, visibility 0s .55s; }
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader .count { font-family: var(--pixel); font-size: clamp(40px, 7vw, 88px); line-height: 1.1; color: var(--fg); }
.loader .count em { color: var(--lime); font-style: normal; }
.loader .right { text-align:right; display:flex; flex-direction: column; gap: 4px; }
.loader .right b { color: var(--lime); font-weight: 400; }

/* ============================================
   LIVE SCAN  — goblin@visibility-mesh terminal
   (v2: awwwards-level CRT/HUD treatment · dark + lime)
   ============================================ */
.scan-grid { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 900px) { .scan-grid { grid-template-columns: 1fr; } }

/* ---- Terminal column ---- */
.scan-term { display: flex; flex-direction: column; min-width: 0; }

/* win-bar: second and third dots get distinct muted colors (not grey blobs) */
.scan-term .win-bar .dots i:nth-child(2) { background: rgba(247,164,29,.55); }
.scan-term .win-bar .dots i:nth-child(3) { background: rgba(227,59,20,.4); }

/* progress bar: taller, brighter, with animated leading-edge shimmer */
.scan-progress {
  height: 3px;
  background: rgba(163,230,53,0.08);
  position: relative; overflow: hidden;
}
.scan-progress > i {
  position: absolute; inset: 0 auto 0 0;
  background: var(--lime);
  box-shadow: 0 0 12px var(--glow), 0 0 4px var(--lime);
  transition: width .45s ease;
}
/* shimmer pulse on the fill edge while scanning */
@keyframes scanShimmer {
  0%   { opacity: 1; }
  50%  { opacity: .65; }
  100% { opacity: 1; }
}

/* body: deeper CRT scanline — denser, slightly more contrast */
.scan-body {
  flex: 1; padding: 20px var(--pad) 24px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--muted); min-height: 380px; max-height: 480px; overflow: hidden;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(163,230,53,0.025) 2px,
      rgba(163,230,53,0.025) 3px
    );
  /* subtle inner vignette so lines feel contained */
  box-shadow: inset 0 0 40px rgba(0,0,0,0.45);
}

/* animate each new line in from slightly below */
.scan-ln {
  white-space: pre-wrap; word-break: break-word;
  animation: scanIn .2s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes scanIn {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}

/* glyph / token colors */
.scan-ln .pfx  { color: var(--lime); margin-right: 2px; }
.scan-ln .key  { color: var(--fg); }
.scan-ln .mu   { color: var(--muted); }
.scan-ln .warn { color: var(--fire-2); }
.scan-ln .err  { color: var(--fire); font-weight: 500; }
.scan-ln .ok   { color: var(--lime); }
.scan-ln .sev  { color: var(--faint); margin-right: 4px; }
.scan-ln .sep  { color: var(--faint); }

/* phase lines: key + dotted leader + value in a loose tabular layout */
.scan-ln .ph-dots {
  color: var(--faint);
  /* stretch the dots to align values without a fixed grid (pre-wrap handles overflow) */
  letter-spacing: .12em;
}
.scan-ln .pv     { color: var(--lime); }
.scan-ln .pv-ok  { color: var(--lime); }
.scan-ln .pv-warn { color: var(--fire-2); }
.scan-ln .pv-bad  { color: var(--fire); }

/* scanning indicator: label animates in lime */
.scan-running .mu { color: var(--lime); }

/* blinking cursor */
.scan-cur {
  display: inline-block; width: 8px; height: 14px;
  background: var(--lime); vertical-align: -2px;
  animation: blink 1.06s steps(2,end) infinite;
}

/* SAMPLE badge */
.scan-sample-tag {
  display: inline-block; margin-top: 6px;
  font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); padding: 3px 8px;
}

/* ---- Side column ---- */
.scan-side {
  border-left: 1px solid var(--line); padding: var(--pad);
  display: flex; flex-direction: column; gap: 22px;
}
@media (max-width: 900px) { .scan-side { border-left: 0; border-top: 1px solid var(--line); } }

/* status row: always pinned near bottom via margin-top: auto on last row */
.scan-status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto;
}
.scan-status-row .k {
  font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.scan-pill {
  font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line-2);
}
/* status-pill bands */
.scan-pill.cursed   { color: var(--fire); border-color: rgba(227,59,20,.5); }
.scan-pill.fixable  { color: var(--bg); background: var(--lime); border-color: var(--lime); }
.scan-pill.ok       { color: var(--bg); background: var(--lime); border-color: var(--lime); box-shadow: 0 0 10px var(--glow); }
.scan-pill.warn     { color: var(--fire-2); border-color: rgba(245,158,11,.5); }
.scan-pill.bad      { color: var(--fire); border-color: rgba(227,59,20,.5); }
.scan-pill.scanning {
  color: var(--lime); border-color: rgba(163,230,53,.4);
  animation: scanShimmer 1.4s ease-in-out infinite;
}

.scan-id {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  letter-spacing: .06em; text-transform: uppercase;
}

/* legacy spellbar — kept in case still present in DOM, non-visible by default */
.scan-spells { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.spellbar-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; }
.spellbar-top .nm { color: var(--muted); }
.spellbar-top .v  { color: var(--lime); }
.spellbar-bar { height: 4px; background: rgba(163,230,53,0.10); margin-top: 5px; position: relative; overflow: hidden; }
.spellbar-bar > i { position: absolute; inset: 0 auto 0 0; background: var(--lime); box-shadow: 0 0 8px var(--glow); }
.scan-note { margin-top: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.scan-note b { color: var(--lime); font-weight: 500; }

/* ---- Scan form (idle / scanning states) ---- */
.scan-form { display: flex; flex-direction: column; gap: 10px; }
.scan-form input {
  font-family: var(--mono); font-size: 14px; color: var(--fg);
  background: rgba(0,0,0,.28); border: 1px solid var(--line-2);
  padding: 11px 12px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
body[data-palette="bone"] .scan-form input { background: rgba(0,0,0,.04); }
.scan-form input::placeholder { color: var(--faint); }
.scan-form input:focus {
  border-color: var(--lime); background: rgba(163,230,53,.05);
  box-shadow: 0 0 0 1px rgba(163,230,53,.18);
}
/* disabled state during scan — dim without losing readability */
.scan-form input:disabled,
.scan-form .btn:disabled {
  opacity: .45; cursor: default;
}
.scan-form .btn { justify-content: center; }
.scan-disclaimer {
  font-family: var(--mono); font-size: 11px; line-height: 1.55; color: var(--muted);
}
.scan-checks { list-style: none; margin-top: 2px; display: flex; flex-direction: column; gap: 6px; }
.scan-checks li {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding-left: 15px; position: relative;
}
.scan-checks li::before { content: "›"; position: absolute; left: 0; color: var(--lime); }

/* ---- Error card ---- */
.scan-err-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid rgba(227,59,20,.5); padding: 18px;
  background: rgba(227,59,20,.05);
}
.scan-err-msg { font-family: var(--mono); font-size: 14px; color: var(--fg); }
.scan-err-msg b { color: var(--fire); font-weight: 600; }
.scan-err-why { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }
.scan-err-card .btn { justify-content: center; margin-top: 4px; }

/* ============================================================
   RESULTS CARD — the conversion moment. Make it sing.
   ============================================================ */
.scan-result { display: flex; flex-direction: column; gap: 20px; }

/* score block: big pixel number + band ring */
.sr-top { display: flex; align-items: center; gap: 18px; }

.sr-score {
  position: relative;
  display: flex; align-items: baseline; gap: 3px;
  font-family: var(--pixel); line-height: 1;
  /* generous padding creates a "scorecard" tile */
  padding: 16px 20px 14px;
  border: 1px solid var(--line-2);
  /* subtle inset on all bands so the tile has depth */
  background: rgba(0,0,0,.35);
  flex: 0 0 auto;
  transition: box-shadow .35s ease;
}
body[data-palette="bone"] .sr-score { background: rgba(0,0,0,.06); }

/* band-ok: lime ring + diffuse glow */
.sr-score.band-ok {
  color: var(--lime);
  border-color: var(--lime);
  box-shadow:
    0 0 0 1px rgba(163,230,53,.5),
    0 0 24px rgba(163,230,53,.28),
    inset 0 0 12px rgba(163,230,53,.07);
}
/* band-warn: amber ring */
.sr-score.band-warn {
  color: var(--fire-2);
  border-color: rgba(247,164,29,.6);
  box-shadow:
    0 0 0 1px rgba(247,164,29,.3),
    0 0 18px rgba(247,164,29,.18),
    inset 0 0 10px rgba(247,164,29,.05);
}
/* band-bad: fire ring */
.sr-score.band-bad {
  color: var(--fire);
  border-color: rgba(227,59,20,.6);
  box-shadow:
    0 0 0 1px rgba(227,59,20,.3),
    0 0 18px rgba(227,59,20,.18),
    inset 0 0 10px rgba(227,59,20,.05);
}

/* numeric score: chunky pixel type */
.sr-num { font-size: 48px; font-weight: 400; }
/* denominator /100 — small, faint, sits on the baseline */
.sr-den { font-size: 13px; color: var(--faint); align-self: flex-end; padding-bottom: 3px; }

/* headline meta: domain + finding counts */
.sr-top-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sr-k {
  font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  /* clamp long domains */
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sr-sub {
  font-family: var(--mono); font-size: 12.5px; color: var(--fg); line-height: 1.3;
}

/* structured-data block */
.sr-block { display: flex; flex-direction: column; gap: 9px; }

/* chip row */
.sr-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sr-chip {
  font-family: var(--mono); font-size: 11px; padding: 3px 9px;
  border: 1px solid var(--line-2); color: var(--muted);
}
.sr-chip.ok {
  color: var(--lime); border-color: rgba(163,230,53,.45);
  /* subtle bg on dark so ok chips read as "present" */
  background: rgba(163,230,53,.06);
}
/* bone: transparent bg so the pre-existing lime contrast isn't made worse
   by tinting the surface (4d7c0f on plain F4F2EC vs a tinted surface) */
body[data-palette="bone"] .sr-chip.ok { background: transparent; }
/* missing chips: dashed border, recessed — clearly absent */
.sr-chip.miss {
  color: var(--faint); border-style: dashed; opacity: .75;
}

/* disclaimer — honest, below the chips */
.sr-disc {
  font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; margin: 0;
}

/* CTA block */
.sr-cta { display: flex; flex-direction: column; gap: 10px; }
.sr-ok-t {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--lime);
}
/* On bone palette: lime #4d7c0f on #F4F2EC passes AA (≈7.8:1) — no override needed */
.sr-cta .btn { justify-content: center; }
/* primary CTA gets the same filled-lime treatment as the hero CTA */
.sr-cta .btn:not(.ghost) {
  background: var(--lime); color: var(--bg); border-color: var(--lime);
  box-shadow: 0 0 18px rgba(163,230,53,.22);
}
.sr-cta .btn:not(.ghost):hover {
  background: transparent; color: var(--fg); border-color: var(--lime);
  box-shadow: none;
}
body[data-palette="bone"] .sr-cta .btn:not(.ghost) {
  color: var(--bg);
}

/* "scan another" ghost link */
.sr-again {
  align-self: flex-start;
  font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); padding: 4px 0;
  transition: color .15s;
}
.sr-again:hover { color: var(--lime); }

/* visualized stepper — live phase progress beside the terminal animation */
.scan-live { display: flex; flex-direction: column; gap: 14px; }
.scan-stepper { list-style: none; display: flex; flex-direction: column; }
.scan-stepper .sx { position: relative; display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; }
.scan-stepper .sx::before { content: ""; position: absolute; left: 9px; top: 22px; height: calc(100% - 4px); width: 1px; background: var(--line-2); }
.scan-stepper .sx:last-child::before { display: none; }
.sx-dot { width: 19px; height: 19px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-size: 10px; line-height: 1; color: var(--faint); background: var(--bg); z-index: 1; transition: border-color .2s, background .2s, color .2s; }
.sx.active .sx-dot { border-color: var(--lime); color: var(--lime); animation: sxPulse 1.1s ease-in-out infinite; }
.sx.done .sx-dot { border-color: var(--lime); background: var(--lime); color: var(--bg); }
.sx-label { font-family: var(--mono); font-size: 12.5px; color: var(--faint); transition: color .2s; }
.sx.active .sx-label { color: var(--fg); }
.sx.done .sx-label { color: var(--muted); }
.sx-val { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
@keyframes sxPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(163,230,53,.12); } 50% { box-shadow: 0 0 0 5px rgba(163,230,53,.04); } }

/* ---- Mobile adjustments ---- */
@media (max-width: 900px) {
  /* on mobile the result card is full-width — give the score tile room */
  .sr-num { font-size: 42px; }
}
@media (max-width: 500px) {
  /* prevent score tile from swallowing half the viewport */
  .sr-score { padding: 12px 14px 10px; }
  .sr-num { font-size: 36px; }
}

/* ============================================
   VISIBILITY MESH  — agentic LangGraph graph
   (ported from the handoff agent graph, re-skinned dark + lime)
   ============================================ */
.mesh-grid { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 980px) { .mesh-grid { grid-template-columns: 1fr; } }

.mesh-stage { position: relative; padding: 24px var(--pad) 20px; min-height: 580px; overflow: hidden; }
.mesh-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(233,231,220,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233,231,220,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.mesh-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--pixel-tiny); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.mesh-head .mh-l { color: var(--muted); }
.mesh-head .mh-r { color: var(--lime); }
.mesh-svg { position: relative; width: 100%; height: 470px; }
.mesh-svg > svg { position: absolute; inset: 0; }
.mnode {
  position: absolute; min-width: 150px; max-width: 188px;
  background: var(--panel); border: 1px solid var(--line-2);
  padding: 9px 11px; font-family: var(--mono); font-size: 11px;
  transition: border-color .2s, box-shadow .2s; z-index: 2;
}
.mnode .pin { position: absolute; top: -4px; left: -4px; width: 7px; height: 7px; background: var(--line-2); }
.mnode .t { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 9px; }
.mnode .v { color: var(--fg); font-size: 12.5px; margin-top: 2px; white-space: nowrap; }
.mnode.on { border-color: var(--lime); box-shadow: 0 0 0 1px var(--glow), 0 0 18px var(--glow); }
.mnode.on .pin { background: var(--lime); }
.mnode.on .t { color: var(--lime); }
.mesh-legend { position: relative; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mesh-legend i { width: 10px; height: 10px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.mesh-legend .lg-on { background: var(--lime); }
.mesh-legend .lg-idle { background: var(--line-2); }
.mesh-legend .lg-gate { background: var(--fg); }

.mesh-steps { list-style: none; padding: var(--pad); display: flex; flex-direction: column; gap: 14px; }
.mesh-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.mesh-steps li:hover { background: var(--panel); border-color: var(--line-2); }
.mesh-steps .sn { font-family: var(--pixel-tiny); font-size: 10px; color: var(--lime); padding-top: 2px; }
.mesh-steps .st { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: -.01em; color: var(--fg); }
.mesh-steps .sd { font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--muted); margin-top: 6px; }
/* The absolutely-positioned graph nodes assume a wide canvas and get clipped
   off the right edge on phones. Below ~700px, flatten the canvas into a
   readable vertical timeline (nodes flow top-to-bottom in pipeline order) and
   drop the connector SVG, which no longer maps to the stacked positions. */
@media (max-width: 700px) {
  .mesh-stage { min-height: 0; }
  .mesh-svg { position: static; height: auto; display: flex; flex-direction: column; gap: 10px; }
  .mesh-svg > svg { display: none; }
  .mnode { position: static; min-width: 0; max-width: none; width: 100%; }
  .mnode .v { white-space: normal; overflow-wrap: anywhere; }
}

/* ============================================
   SUMMON FORM  — lead intake on the Contact panel
   ============================================ */
.summon-form { margin-top: 6px; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .sf-grid { grid-template-columns: 1fr; } }
.sf-field { display: flex; flex-direction: column; gap: 6px; }
.sf-lbl { font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sf-field input {
  font-family: var(--mono); font-size: 14px; color: var(--fg);
  background: rgba(0,0,0,.25); border: 1px solid var(--line-2); padding: 12px; outline: none;
  transition: border-color .15s, background .15s;
}
body[data-palette="bone"] .sf-field input { background: rgba(0,0,0,.04); }
.sf-field input::placeholder { color: var(--faint); }
.sf-field input:focus { border-color: var(--lime); background: rgba(163,230,53,.05); }
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sf-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.summon-form .btn[disabled] { opacity: .6; cursor: default; }
.sf-err { font-family: var(--mono); font-size: 12px; color: var(--fire); }
.sf-ok { margin-top: 12px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--lime); padding: 18px; background: rgba(163,230,53,.05); box-shadow: 0 0 22px var(--glow); max-width: 560px; }
.sf-ok-mark { font-family: var(--pixel); color: var(--bg); background: var(--lime); width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; }
.sf-ok-t { font-family: var(--pixel-tiny); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.sf-ok-d { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* scan-form rules consolidated in LIVE SCAN block above */

/* ============================================
   PRICING  — Scout / Warband / Warlord
   ============================================ */
.pricing-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.ptier { padding: 42px var(--pad) 38px; display: flex; flex-direction: column; position: relative; transition: background .2s; }
.ptier:hover { background: var(--panel); }
.ptier.featured { background: rgba(163,230,53,0.06); box-shadow: inset 0 0 0 1px var(--lime); }
.ptag { position: absolute; top: 0; right: var(--pad); transform: translateY(-50%); background: var(--lime); color: var(--bg); font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; }
.pname { font-family: var(--pixel-tiny); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.pwho { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 5px; }
.pprice { font-family: var(--pixel); font-size: calc(34px * var(--display-mult)); color: var(--fg); margin-top: 22px; line-height: 1; }
.pprice small { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: 7px; letter-spacing: 0; }
.pdesc { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; min-height: 3.1em; }
.pfeat { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 26px 0 30px; }
.pfeat li { font-family: var(--mono); font-size: 12.5px; color: var(--fg); display: grid; grid-template-columns: 16px 1fr; gap: 6px; line-height: 1.4; }
.pfeat li .c { color: var(--lime); }
.ptier .btn { margin-top: auto; }
.ptier.featured .btn { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.ptier.featured .btn:hover { background: transparent; color: var(--fg); }
.ptier.featured .btn .arr { color: var(--bg); }
.ptier.featured .btn:hover .arr { color: var(--lime); }
.penterprise { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 26px var(--pad); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.penterprise .btn { flex: 0 0 auto; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  :root { --pad: 18px; }
  .hud-menu { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); min-height: 60vh; }
}

/* Mobile HUD: the full right rail (theme + status dot + clock) plus the
   "AI SEO / Chicago" tag overflow narrow viewports and push a horizontal
   scrollbar. Trim each bar to its essentials — logo + theme toggle up top,
   sector readout + "top" link below — and tighten the spacing. */
@media (max-width: 600px) {
  /* WCAG 2.5.8: lift footer link touch targets to ≥24px */
  .cside-row .v a { display: inline-block; padding: 3px 0; }

  .hud { gap: 8px; }
  .hud-top .hud-left .hud-divider,
  .hud-top .hud-left .muted { display: none; }
  .hud-top .hud-right { gap: 10px; }
  .hud-top .hud-right > span,
  .hud-top .hud-right .hud-divider { display: none; }
  .hud-bot .hud-left,
  .hud-bot .hud-right .muted,
  .hud-bot .hud-right .hud-divider { display: none; }
}

/* =================================================
   HOW-IT-WORKS section — layout + engine diagram
   Token map: --panel-2→var(--panel) · --bg-2→var(--panel) · --radius→3px
   --bad→var(--fire) · --dim→var(--faint) · --good→var(--lime)
   --lime-ink→var(--bg) · --e-inout→cubic-bezier(.4,0,.2,1) · --t-med→.2s
   --f-mono→var(--mono) · --f-label→var(--pixel-tiny)
   ================================================= */

/* section layout */
.how-grid {
  display: grid;
  gap: var(--pad);
  padding: var(--pad);
  background: var(--bg);
}
@media (min-width: 900px) {
  .how-grid { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 48px; }
}

.how-intro .kicker {
  display: block;
  font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px;
}
.how-intro .h-sec {
  font-family: var(--pixel); font-size: calc(16px * var(--display-mult));
  line-height: 1.35; color: var(--ink); margin-bottom: 4px;
}
.how-intro .mono-note {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
}
.how-p { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 16px; }
.how-punch { font-family: var(--mono); font-size: 14px; color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.how-tech { font-family: var(--mono); font-size: 12px; color: var(--faint); line-height: 1.55; }
.how-close {
  padding: 20px var(--pad) calc(var(--pad) + 6px);
  font-family: var(--mono); font-size: 12.5px; color: var(--faint); line-height: 1.65;
  border-top: 1px solid var(--line);
}

/* engine-panel-bar: overrides .panel-bar for the inner engine panel's bar
   (uses extracted-CSS lhs/lights pattern instead of the site's id/tk pattern) */
.engine-panel-bar {
  font-family: var(--pixel-tiny); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
  margin: -20px -18px 18px;
  border-radius: 3px 3px 0 0;
  padding: 10px 14px;
}
.engine-panel-bar .lhs { display: flex; align-items: center; gap: 8px; }
.engine-panel-bar .lights { display: flex; gap: 5px; }
.engine-panel-bar .lights i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2); display: block;
}
.engine-panel-bar .lights i.on { background: var(--lime); }
.sample-tag {
  font-family: var(--pixel-tiny); font-size: 8.5px; letter-spacing: .1em;
  color: var(--bg); background: var(--faint); padding: 2px 6px;
  border-radius: 2px; text-transform: uppercase;
}

/* engine wrapper */
.engine { padding: 26px 22px 22px; }
.engine-stage-wrap { position: relative; }
.stages {
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
@media (min-width: 760px) { .stages { flex-direction: row; align-items: stretch; gap: 0; } }

.stage {
  flex: 1; border: 1px solid var(--line-2); border-radius: 3px;
  background: var(--panel); padding: 16px 14px; position: relative; min-height: 116px;
  transition: border-color .2s, box-shadow .2s;
}
.stage.active {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 0 22px color-mix(in srgb, var(--lime) 22%, transparent);
}
.stage.gate.fail {
  border-color: var(--fire);
  box-shadow: 0 0 0 1px var(--fire), 0 0 22px color-mix(in srgb, var(--fire) 28%, transparent);
}
.stage-num  { font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .12em; color: var(--faint); }
.stage-name { font-family: var(--mono); font-weight: 700; font-size: 14px; margin-top: 4px; }
.stage-desc { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.stage-badge {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 2px;
  border: 1px solid var(--line-2); color: var(--faint);
}
.stage-badge.pass  { color: var(--lime); border-color: var(--lime); }
.stage-badge.failb { color: var(--fire); border-color: var(--fire); }
.stage-badge .lock { width: 11px; height: 11px; }

/* connectors */
.conn { display: flex; align-items: center; justify-content: center; color: var(--faint); flex: none; padding: 2px; }
.conn svg { width: 22px; height: 22px; }
@media (max-width: 759px) { .conn .h { display: none; } }
@media (min-width: 760px)  { .conn { width: 40px; } .conn .v { display: none; } }

/* travelling fix-packet */
.packet {
  position: absolute; z-index: 5; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  background: var(--lime); color: var(--bg); font-weight: 700;
  padding: 4px 8px; border-radius: 2px; pointer-events: none;
  box-shadow: 0 0 16px color-mix(in srgb, var(--lime) 50%, transparent);
  transition: transform .85s cubic-bezier(.4,0,.2,1), background .3s;
  white-space: nowrap;
}
.packet.fail { background: var(--fire); color: #fff; box-shadow: 0 0 16px color-mix(in srgb, var(--fire) 50%, transparent); }
.packet .pk-dot { width: 7px; height: 7px; background: currentColor; border-radius: 1px; }

.engine-readout {
  margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; min-height: 22px;
}
.engine-readout .rd-tick { color: var(--lime); }
.engine-readout .rd-tick.bad { color: var(--fire); }
.engine-legend {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px;
  font-family: var(--pixel-tiny); font-size: 9px; letter-spacing: .1em;
  color: var(--faint); text-transform: uppercase;
}
.engine-legend i { width: 9px; height: 9px; display: inline-block; margin-right: 6px; vertical-align: middle; border-radius: 1px; }
.lg-active { background: var(--lime); }
.lg-fail   { background: var(--fire); }
.lg-human  { background: var(--ink); border: 1px solid var(--line-2); }

/* reduced-motion static hint */
.engine-rm-note { display: none; }
@media (prefers-reduced-motion: reduce) {
  .packet { transition: none !important; }
  .engine-rm-note {
    display: block; margin-top: 10px;
    font-family: var(--mono); font-size: 12px; color: var(--faint);
  }
}
}
