/* ==========================================================================
   Cadlisp – design system
   Palette: #ED254E crimson · #F9DC5C yellow · #C2EABD mint · #011936 navy · #465362 slate
   ========================================================================== */

:root {
  --crimson: #ED254E;
  --crimson-600: #D91E45;   /* button bg: 5:1 with white text */
  --crimson-700: #BF163A;
  --yellow: #F9DC5C;
  --mint: #C2EABD;
  --navy: #011936;
  --slate: #465362;

  --bg: #011936;
  --bg-2: #03203f;
  --surface: #072747;
  --surface-2: #0b3052;
  --surface-3: #113a60;
  --line: rgba(194, 234, 189, .10);
  --line-2: rgba(194, 234, 189, .20);
  --grid: rgba(194, 234, 189, .055);

  --text: #EEF3F7;
  --text-2: #B9C5D0;
  --text-3: #8D9CAB;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --header-h: 64px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 140ms;
  --t: 240ms;
  --t-slow: 640ms;

  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -24px rgba(0, 0, 0, .6);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--yellow);

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: rgba(249, 220, 92, .5); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--yellow); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--yellow); color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd { font-family: var(--font-mono); font-size: .9em; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; transition: top var(--t) var(--ease-out); }
.skip:focus { top: 12px; }

/* blueprint grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(194,234,189,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194,234,189,.025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.section-head p { color: var(--text-2); font-size: 1.0625rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--yellow); box-shadow: 0 0 0 3px rgba(249,220,92,.18); }

.muted { color: var(--text-3); }

/* ---------- buttons & chips ---------- */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bg-btn); color: var(--text);
  font: 700 .98rem/1 var(--font-body); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast), transform var(--t-fast) var(--ease-out), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { --bg-btn: var(--crimson-600); color: #fff; box-shadow: 0 10px 30px -12px rgba(237, 37, 78, .7); }
.btn-primary:hover { --bg-btn: var(--crimson-700); box-shadow: 0 14px 36px -12px rgba(237, 37, 78, .85); }
.btn-yellow { --bg-btn: var(--yellow); color: var(--navy); }
.btn-yellow:hover { --bg-btn: #fbe582; }
.btn-ghost { --bg-btn: transparent; border-color: var(--line-2); }
.btn-ghost:hover { --bg-btn: rgba(194, 234, 189, .06); border-color: var(--mint); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 6px;
  font: 600 .78rem/1 var(--font-mono); letter-spacing: .04em;
  background: rgba(249, 220, 92, .1); color: var(--yellow); border: 1px solid rgba(249, 220, 92, .25);
  white-space: nowrap;
}
.chip::before { content: ">"; opacity: .6; }
.chip-plain::before { content: none; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 700 .72rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.badge-free { background: var(--mint); color: var(--navy); }
.badge-kind { background: rgba(255,255,255,.06); color: var(--text-2); border: 1px solid var(--line); }
.tag-new { font-style: normal; font: 700 .65rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 4px; background: var(--crimson); color: #fff; vertical-align: middle; margin-left: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(1, 25, 54, .72);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(1, 25, 54, .9); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem/1 var(--font-head); letter-spacing: -.03em; }
.logo svg { width: 30px; height: 30px; }
.logo .tld { color: var(--text-3); font-weight: 500; }
.logo:hover .logo-cross { transform: rotate(90deg); }
.logo-cross { transform-origin: 16px 16px; transition: transform var(--t-slow) var(--ease-out); }

.nav { margin-left: auto; display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 500; transition: color var(--t-fast), background-color var(--t-fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(194, 234, 189, .07); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 .8rem/1 var(--font-mono); letter-spacing: .06em; text-decoration: none; color: var(--text);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.lang-switch svg { width: 16px; height: 16px; }
.lang-switch:hover { border-color: var(--mint); background: rgba(194,234,189,.06); }
.header-cta { display: none; min-height: 40px; padding: 0 18px; font-size: .9rem; }
.menu-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: background-color var(--t-fast); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t) var(--ease-out); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgba(1, 25, 54, .97); backdrop-filter: blur(12px);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out), visibility 0s linear var(--t);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-nav a.m-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.5rem/1 var(--font-head); }
.mobile-nav a.m-link span { font: 500 .8rem/1 var(--font-mono); color: var(--text-3); }
.mobile-nav .btn { margin-top: 24px; }
body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav { display: block; }
  .header-actions { margin-left: 0; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
.hero-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-copy { display: grid; gap: var(--s-5); align-content: start; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .hl { position: relative; display: inline-block; color: var(--yellow); max-width: 100%; }
.hero h1 .hl::after { /* CAD selection box */
  content: ""; position: absolute; inset: -.04em -.12em -.02em; border: 1.5px dashed rgba(249, 220, 92, .55); border-radius: 4px; pointer-events: none;
  animation: march 18s linear infinite;
}
.hero h1 .grip { position: absolute; width: 9px; height: 9px; background: var(--crimson); border: 1.5px solid var(--navy); }
.hero h1 .grip.g1 { left: -.12em; top: -.04em; transform: translate(-50%, -50%); }
.hero h1 .grip.g2 { right: -.12em; bottom: -.02em; transform: translate(50%, 50%); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes march { to { border-color: rgba(249, 220, 92, .55); } }

/* AutoCAD-like command line */
.cmdline { border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(3, 32, 63, .8); overflow: hidden; box-shadow: var(--shadow); max-width: 560px; }
.cmd-history { padding: 10px 14px 0; min-height: 48px; font: 400 .82rem/1.55 var(--font-mono); color: var(--text-3); }
.cmd-history p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.cmd-history .ok { color: var(--mint); }
.cmd-history .err { color: #ff8aa2; }
.cmd-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; }
.cmd-row label { font: 600 .82rem/1 var(--font-mono); color: var(--yellow); white-space: nowrap; }
.cmd-row input {
  flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; outline: none;
  font: 500 16px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; caret-color: var(--yellow);
}
.cmd-row input::placeholder { text-transform: none; color: var(--text-3); letter-spacing: 0; }
.cmd-row button { height: 40px; min-width: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; transition: background-color var(--t-fast); }
.cmd-row button:hover { background: var(--surface-3); }
.cmd-row button svg { width: 18px; height: 18px; }
.cmd-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 12px; font-size: .8rem; color: var(--text-3); }
.cmd-suggest button { border: 0; padding: 0; background: none; }
.cmd-suggest .chip { cursor: pointer; transition: background-color var(--t-fast), transform var(--t-fast); min-height: 32px; }
.cmd-suggest .chip:hover { background: rgba(249, 220, 92, .2); }

/* 3D viewport */
.viewport {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(237, 37, 78, .14), transparent 60%),
    radial-gradient(90% 70% at 10% 100%, rgba(194, 234, 189, .10), transparent 60%),
    linear-gradient(180deg, #05264a, #021a38);
  width: 100%;
  height: clamp(400px, 112vw, 560px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  isolation: isolate;
}
.viewport canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; outline: none; }
.viewport.is-orbit canvas { touch-action: none; }
.viewport.is-hover canvas { cursor: pointer; }
.vp-label { position: absolute; left: 14px; top: 12px; z-index: 2; font: 500 .74rem/1 var(--font-mono); color: var(--text-2); pointer-events: none; }
.vp-label b { color: var(--mint); font-weight: 500; }
.vp-ucs { position: absolute; left: 16px; bottom: 64px; z-index: 2; width: 44px; height: 44px; pointer-events: none; opacity: .8; }
.vp-status {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px; background: linear-gradient(0deg, rgba(1, 25, 54, .92), rgba(1, 25, 54, .55));
  border-top: 1px solid var(--line);
}
.vp-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font: 600 .78rem/1 var(--font-body);
  transition: background-color var(--t-fast), border-color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.vp-btn svg { width: 15px; height: 15px; }
.vp-btn:hover { background: rgba(255, 255, 255, .09); }
.vp-btn[aria-pressed="true"] { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.vp-floors { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font: 600 .78rem/1 var(--font-body); }
.vp-floors output { font-family: var(--font-mono); color: var(--yellow); min-width: 1.2em; text-align: center; }
.vp-floors input[type=range] { width: 92px; accent-color: var(--crimson); height: 24px; }
.vp-coords { margin-left: auto; font: 500 .72rem/1 var(--font-mono); color: var(--text-3); display: none; }
.vp-takeoff {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  min-width: 170px; padding: 12px 14px; border-radius: var(--r);
  background: rgba(1, 25, 54, .78); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  font-size: .78rem; pointer-events: none;
}
.vp-takeoff h3 { font: 600 .7rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mint); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.vp-takeoff h3::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: pulse 1.6s var(--ease-in-out) infinite; }
.vp-takeoff dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 14px; }
.vp-takeoff dt { color: var(--text-3); }
.vp-takeoff dd { margin: 0; text-align: right; font: 600 .8rem/1.4 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .3; } }
.vp-tip {
  position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none;
  min-width: 180px; max-width: 240px; padding: 10px 12px; border-radius: 10px;
  background: var(--navy); border: 1px solid var(--yellow); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
  font: 500 .76rem/1.5 var(--font-mono); color: var(--text);
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.96); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.vp-tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.vp-tip strong { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--yellow); margin-bottom: 2px; }
.vp-card {
  position: absolute; z-index: 5; left: 12px; right: 12px; bottom: 70px;
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r);
  background: rgba(1, 25, 54, .94); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  transform: translateY(12px); opacity: 0; visibility: hidden;
  transition: transform var(--t) var(--ease-out), opacity var(--t), visibility 0s linear var(--t);
}
.vp-card.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.vp-card img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.vp-card .meta { flex: 1; min-width: 0; font-size: .82rem; }
.vp-card .meta strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.vp-card .meta span { color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: .74rem; }
.vp-card .btn { min-height: 40px; padding: 0 16px; font-size: .85rem; }
.vp-card-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; flex: none; }
.vp-card-close svg { width: 14px; height: 14px; }
.vp-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--text-3); font: 500 .85rem/1.5 var(--font-mono); z-index: 1; }
.vp-fallback svg { width: min(78%, 420px); height: auto; margin-inline: auto; opacity: .9; }
.viewport.is-ready .vp-fallback { opacity: 0; visibility: hidden; transition: opacity var(--t-slow), visibility 0s linear var(--t-slow); }
.vp-hint { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 2; font: 500 .72rem/1 var(--font-mono); color: var(--text-3); white-space: nowrap; pointer-events: none; display: none; }

@media (min-width: 600px) {
  .vp-coords { display: block; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .viewport { height: min(680px, calc(100svh - var(--header-h) - 80px)); min-height: 540px; }
  .vp-hint { display: block; }
  .vp-card { left: auto; right: 12px; width: 360px; }
}

/* crosshair cursor in hero (fine pointers only) */
.crosshair { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity var(--t); }
.crosshair.is-on { opacity: 1; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: rgba(194, 234, 189, .35); }
.crosshair::before { width: 120px; height: 1px; left: -60px; top: 0; }
.crosshair::after { width: 1px; height: 120px; left: 0; top: -60px; }
.crosshair i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border: 1px solid var(--mint); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(3, 32, 63, .6); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 28px; padding: 18px 14px; font: 600 clamp(.95rem, 1.8vw, 1.15rem)/1 var(--font-mono); color: var(--text-2); letter-spacing: .08em; white-space: nowrap; }
.marquee li::after { content: ""; width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--crimson); margin-left: 14px; }
.marquee li:nth-child(3n+2) { color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- product bento ---------- */
.bento { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.pcard {
  --accent: var(--crimson);
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  transition: border-color var(--t), transform var(--t) var(--ease-out), box-shadow var(--t);
  transform-style: preserve-3d;
}
.pcard[data-accent="mint"] { --accent: var(--mint); }
.pcard[data-accent="yellow"] { --accent: var(--yellow); }
.pcard[data-accent="slate"] { --accent: #8fa3b8; }
.pcard:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 35%, transparent); }
.pcard::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); opacity: 0; transition: opacity var(--t); }
.pcard:hover::before { opacity: 1; }
.pcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #021a38; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-media .badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; z-index: 2; }
.pcard-body { position: relative; z-index: 2; display: grid; gap: 12px; padding: 20px; flex: 1; align-content: start; }
.pcard h3 { font-size: 1.45rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.pcard h3 small { font: 500 .78rem/1 var(--font-mono); color: var(--text-3); letter-spacing: .02em; }
.pcard p { color: var(--text-2); font-size: .97rem; }
.pcard .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-actions { position: relative; z-index: 3; display: flex; gap: 8px; padding: 0 20px 20px; margin-top: auto; }
.pcard-actions .btn { min-height: 44px; flex: 1; font-size: .9rem; padding: 0 16px; }

@media (min-width: 680px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard.is-featured { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pcard { grid-column: span 4; }
  .pcard.is-featured { grid-column: span 8; grid-row: span 2; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
  .pcard.is-featured .pcard-media { aspect-ratio: auto; min-height: 340px; }
  .pcard.is-featured .pcard-actions { padding-top: 4px; }
  .pcard.is-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; }
  .pcard.is-wide .pcard-media { grid-row: span 2; aspect-ratio: auto; min-height: 260px; }
  .pcard.is-wide .pcard-body { padding: 28px 28px 12px; }
  .pcard.is-wide .pcard-actions { padding: 0 28px 28px; max-width: 420px; }
  .pcard.is-featured h3 { font-size: 2rem; }
  .pcard.is-wide { grid-column: span 12; }
}

/* ---------- install steps ---------- */
.steps { display: grid; gap: var(--s-4); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(7, 39, 71, .55); display: grid; gap: 10px; }
.step .num { font: 700 .8rem/1 var(--font-mono); color: var(--navy); background: var(--yellow); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--text-2); font-size: .97rem; }
.step code { color: var(--yellow); }
.term { margin-top: 6px; border-radius: 10px; background: #00122a; border: 1px solid var(--line); padding: 10px 12px; font: 500 .78rem/1.6 var(--font-mono); color: var(--text-2); overflow: hidden; }
.term .p { color: var(--yellow); }
.term .o { color: var(--mint); }
.term .caret { display: inline-block; width: 7px; height: 1em; vertical-align: -2px; background: var(--yellow); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.steps-foot { margin-top: var(--s-5); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -17px; width: 18px; height: 1px; background: var(--line-2); }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: rgba(3, 32, 63, .6); }
.stat { padding: clamp(20px, 3vw, 32px); display: grid; gap: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat b { font: 700 clamp(2.2rem, 5vw, 3.4rem)/1 var(--font-head); letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat:nth-child(1) b { color: var(--yellow); }
.stat:nth-child(2) b { color: var(--crimson); }
.stat:nth-child(3) b { color: var(--mint); }
.stat span { color: var(--text-2); font-size: .92rem; }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}

/* ---------- custom LISP CTA ---------- */
.custom {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(237, 37, 78, .22), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  display: grid; gap: var(--s-5);
}
.custom::after { /* dimension line decoration */
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px dashed rgba(249, 220, 92, .3); pointer-events: none;
}
.custom h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 18ch; }
.custom p { color: var(--text-2); max-width: 46ch; }
.custom ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.custom li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.custom li svg { width: 20px; height: 20px; color: var(--mint); flex: none; }
@media (min-width: 860px) { .custom { grid-template-columns: 1.3fr 1fr; align-items: center; } }

/* ---------- blog strip (compact) ---------- */
.blog-strip-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: var(--s-5); }
.blog-strip-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--yellow); white-space: nowrap; min-height: 44px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }
.post-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--slate) transparent; list-style: none; margin: 0; padding-left: 0; }
.post-row > li { scroll-snap-align: start; }
@media (min-width: 860px) { .post-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.post-mini {
  position: relative; height: 100%; display: grid; gap: 10px; align-content: start;
  padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(7, 39, 71, .5);
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.post-mini:hover { border-color: var(--line-2); background: rgba(11, 48, 82, .7); }
.post-mini .meta { display: flex; gap: 10px; font: 500 .74rem/1 var(--font-mono); color: var(--text-3); }
.post-mini h3 { font-size: 1.08rem; line-height: 1.3; }
.post-mini h3 a { text-decoration: none; }
.post-mini h3 a::after { content: ""; position: absolute; inset: 0; }
.post-mini p { color: var(--text-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: rgba(7, 39, 71, .45); transition: border-color var(--t-fast), background-color var(--t-fast); }
.faq details[open] { border-color: var(--line-2); background: rgba(11, 48, 82, .55); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font: 600 1.05rem/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--yellow); transition: transform var(--t) var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 18, 42, .7); padding-top: var(--s-8); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; gap: var(--s-4); max-width: 380px; }
.footer-brand p { color: var(--text-2); font-size: .94rem; }
.site-footer h2 { font: 600 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-3); font-size: .85rem; }
.footer-bottom a { color: var(--text-2); }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ---------- page header / breadcrumb ---------- */
.page-hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(20px, 3vw, 32px); }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font: 500 .8rem/1.4 var(--font-mono); color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--yellow); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-hero .lead { color: var(--text-2); font-size: 1.1rem; margin-top: 14px; max-width: 60ch; }

/* ---------- product detail ---------- */
.pd-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #021a38; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: zoom-in; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; list-style: none; margin: 0; padding-left: 0; }
.thumbs button { width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #021a38; opacity: .7; transition: opacity var(--t-fast), border-color var(--t-fast); }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"], .thumbs button:hover { opacity: 1; border-color: var(--yellow); }
.pd-info { display: grid; gap: 18px; }
.pd-info .badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-info h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.pd-info h1 small { display: block; margin-top: 8px; font: 500 1rem/1.3 var(--font-mono); color: var(--text-3); letter-spacing: 0; }
.pd-info .tagline { font-size: 1.15rem; color: var(--text); font-weight: 500; }
.pd-info .short { color: var(--text-2); }
.pd-download { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: rgba(7, 39, 71, .65); }
.pd-download small { color: var(--text-3); font-size: .8rem; }
.pd-download small a { color: var(--text-2); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .92rem; }
.specs dt, .specs dd { padding: 10px 14px; border-bottom: 1px solid var(--line); margin: 0; }
.specs dt { color: var(--text-3); font: 500 .78rem/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; background: rgba(255, 255, 255, .02); }
.specs dd { color: var(--text); }
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: 0; }
.specs .chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 960px) {
  .pd-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .gallery { position: sticky; top: calc(var(--header-h) + 24px); }
}

.pd-body { display: grid; gap: clamp(32px, 5vw, 48px); margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 1024px) { .pd-body { grid-template-columns: minmax(0, 1fr) 320px; } }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(7, 39, 71, .55); display: grid; gap: 14px; align-self: start; }
.aside-card h2 { font-size: 1.1rem; }
.aside-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: .93rem; }
.aside-card code { color: var(--yellow); }

/* mobile sticky download */
.sticky-dl {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(1, 25, 54, .95); border-top: 1px solid var(--line-2); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform var(--t) var(--ease-out);
}
.sticky-dl.is-on { transform: none; }
.sticky-dl .meta { flex: 1; min-width: 0; }
.sticky-dl strong { display: block; font-family: var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-dl span { font: 500 .74rem/1 var(--font-mono); color: var(--mint); }
.sticky-dl .btn { min-height: 46px; }
@media (min-width: 960px) { .sticky-dl { display: none; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 10, 25, .92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity var(--t), visibility 0s linear var(--t); }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--r); }
.lightbox-close { position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- prose (descriptions, blog, legal) ---------- */
.prose { max-width: 72ch; color: var(--text-2); font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2em; padding-top: .2em; }
.prose h3 { color: var(--text); font-size: 1.2rem; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--yellow); }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose ul li::marker { color: var(--crimson); }
.prose ol li::marker { color: var(--yellow); font-family: var(--font-mono); font-weight: 600; }
.prose ul ul { margin-top: .45em; }
.prose code { background: rgba(249, 220, 92, .1); color: var(--yellow); padding: .12em .4em; border-radius: 5px; font-size: .88em; }
.prose pre { background: #00122a; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: var(--text-2); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--crimson); color: var(--text); font-style: italic; }
.prose img, .prose figure img { border-radius: var(--r); border: 1px solid var(--line); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--text-3); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.prose .legal-note { padding: 14px 16px; border-radius: var(--r); border: 1px dashed var(--line-2); font-size: .92rem; color: var(--text-3); }
.prose .legal-note strong { color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { color: var(--text); background: rgba(255, 255, 255, .03); }
.prose > :first-child { margin-top: 0; }

/* ---------- blog index & article ---------- */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-5); }
.tag-filter button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: .88rem; color: var(--text-2); transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.tag-filter button:hover { color: var(--text); border-color: var(--mint); }
.tag-filter button[aria-pressed="true"] { background: var(--mint); color: var(--navy); border-color: var(--mint); }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-item { position: relative; display: grid; gap: 8px; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: background-color var(--t-fast); }
.post-item:hover { background: rgba(194, 234, 189, .03); }
.post-item .meta { display: flex; flex-wrap: wrap; gap: 12px; font: 500 .76rem/1.4 var(--font-mono); color: var(--text-3); }
.post-item .meta .t { color: var(--mint); }
.post-item h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.25; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a::after { content: ""; position: absolute; inset: 0; }
.post-item h2 a:hover { color: var(--yellow); }
.post-item p { color: var(--text-2); max-width: 70ch; }
@media (min-width: 860px) {
  .post-item { grid-template-columns: 150px minmax(0, 1fr); column-gap: 32px; }
  .post-item .meta { grid-row: span 2; flex-direction: column; gap: 6px; padding-top: 6px; }
}

.article-head { display: grid; gap: 14px; max-width: 820px; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font: 500 .8rem/1.4 var(--font-mono); color: var(--text-3); }
.article-head .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.article-layout { display: grid; gap: 40px; margin-top: clamp(28px, 5vw, 48px); }
@media (min-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr) 260px; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: none; }
@media (min-width: 1080px) { .toc { display: grid; gap: 10px; } }
.toc h2 { font: 600 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mint); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); display: grid; }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: color var(--t-fast), border-color var(--t-fast); }
.toc a:hover, .toc a.is-active { color: var(--text); border-left-color: var(--yellow); }
.article-foot { display: grid; gap: 20px; margin-top: 48px; max-width: 72ch; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.pager { display: grid; gap: 10px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color var(--t-fast); }
.pager a:hover { border-color: var(--line-2); }
.pager span { font: 500 .74rem/1 var(--font-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.pager .next { text-align: right; }
.cta-band { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(237, 37, 78, .16), rgba(7, 39, 71, .6)); display: grid; gap: 14px; }
.cta-band h2 { font-size: 1.4rem; }
.cta-band p { color: var(--text-2); }

/* ---------- toast & consent ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--mint); color: var(--navy); font-weight: 700; font-size: .9rem; transition: transform var(--t) var(--ease-out), opacity var(--t); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  max-width: 520px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  display: grid; gap: 12px; font-size: .9rem; color: var(--text-2);
}
.consent .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.consent .btn { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.consent a { color: var(--text); font-size: .85rem; margin-left: auto; }
@media (min-width: 640px) { .consent { left: 24px; bottom: 24px; } }

/* ---------- 404 ---------- */
.nf { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: clamp(64px, 12vw, 140px); }
.nf .code { font: 700 clamp(5rem, 18vw, 10rem)/1 var(--font-head); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--mint); }
.nf .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* command-line "ping" on the target card */
.pcard.is-pinged, .step.is-pinged { animation: ping 1.4s var(--ease-out); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(249, 220, 92, .7); border-color: var(--yellow); } 100% { box-shadow: 0 0 0 18px rgba(249, 220, 92, 0); } }

@media (max-width: 599px) {
  .vp-label { display: none; }
  .vp-takeoff { right: 8px; top: 8px; min-width: 0; padding: 8px 10px; font-size: .7rem; }
  .vp-takeoff h3 { font-size: .62rem; margin-bottom: 6px; }
  .vp-takeoff dd { font-size: .72rem; }
  .vp-takeoff dl { gap: 2px 10px; }
}

/* ---------- email chooser (mailto fallback) ---------- */
.mail-pop { position: fixed; inset: 0; z-index: 96; display: grid; place-items: end center; padding: 12px; background: rgba(0, 10, 25, .6); backdrop-filter: blur(4px); }
.mail-pop[hidden] { display: none !important; }
.mail-pop-card {
  position: relative; width: min(100%, 420px); padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  display: grid; gap: 6px; animation: popIn var(--t) var(--ease-out);
}
.mail-pop-title { font: 600 1.15rem/1.3 var(--font-head); padding-right: 40px; }
.mail-pop-addr { font: 500 .95rem/1.4 var(--font-mono); color: var(--yellow); margin-bottom: 12px; word-break: break-all; }
.mail-pop-actions { display: grid; gap: 8px; }
.mail-pop-actions .btn { width: 100%; }
.mail-pop-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; }
.mail-pop-close svg { width: 16px; height: 16px; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 640px) { .mail-pop { place-items: center; } }
