/* ============================================================
   ACROZEN — acrozenitservices.com
   World: COSMOQ-pinned dark instrument aesthetic
   Ground #06070A · Panel #0C0F16 · Blue #0175FF · Amber #FFAC0A
   Type: Geist / Geist Mono
   ============================================================ */

:root {
  --ground: #06070a;
  --ground-deep: #030407;
  --panel: #0c0f16;
  --panel-raised: #10141d;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-soft: rgba(255, 255, 255, 0.06);
  --ink: #f2f5fa;
  --ink-dim: #9ba9c4;
  --ink-faint: #7e8caa;
  --blue: #0175ff;
  --blue-bright: #3d97ff;
  --blue-dim: rgba(1, 117, 255, 0.14);
  --amber: #ffac0a;
  --amber-warm: #ffcd7d;
  --amber-dim: rgba(255, 172, 10, 0.14);
  --ok: #35d07f;
  --font-display: "Geist", "Geist Placeholder", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: clamp(58px, 44px + 1.8vw, 72px);

  /* Fluid type scale — bounded between 320px and 1440px viewports. */
  --text-xs: clamp(0.72rem, 0.69rem + 0.15vw, 0.8rem);
  --text-sm: clamp(0.82rem, 0.79rem + 0.18vw, 0.92rem);
  --text-base: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --text-lg: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.55rem, 1.3rem + 1.15vw, 2.35rem);
  --text-3xl: clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --text-4xl: clamp(2.6rem, 1.85rem + 3.6vw, 5.8rem);

  /* Fluid spacing scale. */
  --space-1: clamp(0.25rem, 0.22rem + 0.15vw, 0.4rem);
  --space-2: clamp(0.5rem, 0.44rem + 0.3vw, 0.75rem);
  --space-3: clamp(0.75rem, 0.66rem + 0.45vw, 1.1rem);
  --space-4: clamp(1rem, 0.88rem + 0.6vw, 1.5rem);
  --space-5: clamp(1.5rem, 1.3rem + 1rem, 2.25rem);
  --space-6: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --space-7: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);
  --space-8: clamp(4rem, 3rem + 5vw, 7rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--ground);
  scrollbar-color: #2a3450 var(--ground);
  scrollbar-width: thin;
}
/* The cinematic wheel handler (js/cinematic-scroll.js) already eases scroll
   position per frame; native smooth scrolling on top of it double-smooths
   and makes anchors feel laggy. It runs only while the .cinematic class is
   on <html>, so keyboard/anchor users without JS keep native smooth. */
html.cinematic { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #232d47; border-radius: 5px; border: 2px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: #33405f; }

::selection { background: rgba(1, 117, 255, 0.4); color: #fff; }

body {
  font-family: var(--font-display);
  background: var(--ground);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--blue-bright);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

img, canvas { display: block; max-width: 100%; }

.wrap {
  width: min(1200px, calc(100% - clamp(28px, 6vw, 72px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Typography ---------- */

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
.title-thin {
  font-weight: 300;
  color: var(--ink-dim);
}
.section-lede {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: var(--text-base);
  font-weight: 300;
}
.accent-word { color: var(--amber); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.25s;
  will-change: transform;
}
.btn-icon { width: 15px; height: 15px; flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #0570d8, #0053b8);
  color: #fff;
  box-shadow: 0 6px 24px rgba(1, 117, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(1, 117, 255, 0.5), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #1a2233;
  color: var(--ink-faint);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:disabled { color: var(--ink-faint); border-color: var(--hairline-soft); cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 8px; }

.spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 0 max(24px, 3vw);
  padding-left: max(24px, 3vw, env(safe-area-inset-left));
  padding-right: max(24px, 3vw, env(safe-area-inset-right));
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
@media (min-width: 721px) {
  .nav { gap: 32px; justify-content: flex-start; }
}
.nav.scrolled {
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline-soft);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
}
.wordmark-glyph { width: 26px; height: 26px; color: var(--blue-bright); }
.nav-links {
  display: none;
  gap: 28px;
  margin-left: auto;
}
@media (min-width: 721px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

@media (min-width: 721px) {
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Hero ---------- */

.hero { height: 220vh; position: relative; }
@media (min-width: 901px) { .hero { height: 260vh; } }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  /* CSS-painted first frame — visible before the WebGL scene boots, and the
     permanent fallback if WebGL is unavailable */
  background:
    radial-gradient(ellipse 80% 60% at 62% 38%, #10244d 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(255, 172, 10, 0.07) 0%, transparent 60%),
    var(--ground);
}

/* real-time three.js hero canvas; cross-fades in over the CSS frame above */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.hero-canvas.ready { opacity: 1; }
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.5) 0%, rgba(6, 7, 10, 0.08) 32%, rgba(6, 7, 10, 0.72) 100%);
}
@media (min-width: 901px) {
  /* left scrim keeps the anchored copy block readable over the 3D core */
  .hero-veil {
    background:
      linear-gradient(90deg, rgba(6, 7, 10, 0.74) 0%, rgba(6, 7, 10, 0.44) 36%, rgba(6, 7, 10, 0.04) 64%),
      linear-gradient(180deg, rgba(6, 7, 10, 0.42) 0%, rgba(6, 7, 10, 0.04) 30%, rgba(6, 7, 10, 0.6) 100%);
  }
}
@media (max-width: 900px) {
  /* a phone stacks the copy across the full width over the glass shell, so the
     scene needs its own scrim band or the body copy loses contrast */
  .hero-veil {
    background:
      linear-gradient(180deg,
        rgba(6, 7, 10, 0.88) 0%,
        rgba(6, 7, 10, 0.68) 28%,
        rgba(6, 7, 10, 0.74) 62%,
        rgba(6, 7, 10, 0.34) 82%,
        rgba(6, 7, 10, 0.72) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { transition: none; }
}
.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 26vh;
  background: linear-gradient(180deg, transparent, var(--ground));
  pointer-events: none;
}
/* Asymmetric, left-anchored composition: copy owns the left column, the 3D
   core is framed into the right third (camera aim in hero-scene.js), fact
   chips stack bottom-right on wide screens. */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  justify-items: start;
  text-align: left;
  gap: clamp(26px, 4vh, 40px);
  padding: calc(var(--nav-h) + 5vh) max(20px, 4vw) 14vh;
  pointer-events: none;
  will-change: opacity, transform;
}
@media (min-width: 901px) {
  .hero-content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: stretch;
    padding-top: var(--nav-h);
  }
  .hero-copy { grid-column: 1 / 8; align-self: center; }
  .hero-chips {
    grid-column: 9 / 13;
    align-self: end;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    margin-bottom: 9vh;
  }
}
.hero-content a, .hero-content button { pointer-events: auto; }
.hero-copy { max-width: min(660px, 92vw); }
.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.hero-sub {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--ink-dim);
  font-size: var(--text-lg);
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
}
.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: 0;
}
.hero-chips li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  background: rgba(12, 15, 22, 0.72);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue);
}
.chip-dot-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-hint span {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--blue), var(--amber));
  animation: hint-drop 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(90px, 12vh, 150px) 0; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }

.glow-rule {
  width: 3px;
  height: 64px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--amber) 100%);
  box-shadow: 0 2px 24px rgba(1, 117, 255, 0.55);
  margin-bottom: 34px;
}
.glow-rule-amber {
  background: linear-gradient(180deg, var(--amber) 0%, var(--blue) 100%);
  box-shadow: 0 2px 24px rgba(255, 172, 10, 0.5);
}

/* ---------- MAE instrument ---------- */

.mae-instrument {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(1, 117, 255, 0.08), transparent 60%),
    var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.instrument-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--panel-raised);
}
.instrument-dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3450; }
.instrument-dot:first-child { background: var(--blue); box-shadow: 0 0 8px rgba(1,117,255,.7); }
.instrument-dot:nth-child(2) { background: var(--amber); box-shadow: 0 0 8px rgba(255,172,10,.6); }
.instrument-label {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.mae-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.mae-left {
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--hairline-soft);
}
.mae-right {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
@media (min-width: 981px) {
  .mae-grid { grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr); }
  .mae-left { border-right: 1px solid var(--hairline-soft); border-bottom: 0; }
}

/* form */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 9px;
}
.field input[type="text"], .field select, .pai-row input {
  width: 100%;
  font-family: var(--font-display);
  /* 16px floor — iOS Safari zooms the viewport on focus below this */
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground-deep);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239BA9C4' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}
.field input:focus, .field select:focus, .pai-row input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1, 117, 255, 0.22);
}
.field input::placeholder, .pai-row input::placeholder { color: var(--ink-faint); }
.field-help { margin-top: 8px; font-size: 0.78rem; color: var(--ink-faint); }
.field-error { margin-top: 8px; font-size: 0.8rem; color: #ff7a6e; display: none; }
.field.has-error input { border-color: #ff7a6e; }
.field.has-error .field-error { display: block; }

.mae-buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* stage list */
.stage-list {
  list-style: none;
  margin-top: 30px;
  margin-bottom: 6px;
  border-top: 1px solid var(--hairline-soft);
}
.stage-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 8px 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--hairline-soft);
  cursor: pointer;
  background: transparent;
  transition: background-color 0.25s;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.stage-row:hover { background: rgba(255, 255, 255, 0.03); }
.stage-row:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.stage-idx { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
.stage-name { font-weight: 600; font-size: 0.94rem; letter-spacing: -0.01em; }
.stage-name small { display: block; font-weight: 400; font-size: 0.74rem; color: var(--ink-faint); }
.stage-state {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.stage-row[data-state="queued"] .stage-state { color: var(--ink-dim); border-color: rgba(155,169,196,.4); }
.stage-row[data-state="running"] { background: rgba(1, 117, 255, 0.05); }
.stage-row[data-state="running"] .stage-state {
  color: var(--blue-bright);
  border-color: rgba(1, 117, 255, 0.5);
  background: var(--blue-dim);
  animation: pulse-state 1.4s ease-in-out infinite;
}
.stage-row[data-state="running"] .stage-idx { color: var(--blue-bright); }
.stage-row[data-state="done"] .stage-state {
  color: var(--ok);
  border-color: rgba(53, 208, 127, 0.4);
  background: rgba(53, 208, 127, 0.08);
}
.stage-row[data-state="done"] .stage-idx { color: var(--ok); }
.stage-row.focused { background: rgba(255, 172, 10, 0.05); }
.stage-row.focused .stage-idx { color: var(--amber); }
@keyframes pulse-state {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-row[data-state="running"] .stage-state { animation: none; }
}

/* canvas + artefact */
.canvas-frame {
  position: relative;
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  overflow: hidden;
  background: #05060b;
}
.canvas-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5,6,11,0.94) 12%, rgba(5,6,11,0));
}
#mae-canvas { width: 100%; height: 300px; cursor: grab; display: block; }
#mae-canvas:active { cursor: grabbing; }
.canvas-note {
  position: absolute;
  left: 12px; bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  pointer-events: none;
  max-width: calc(100% - 24px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
@media (min-width: 601px) { #mae-canvas { height: 400px; } }

/* ---------- artefact panel ---------- */
.mae-artifact {
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  background: var(--ground-deep);
  overflow: hidden;
  min-height: 180px;
}
.artifact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--hairline-soft);
  background:
    radial-gradient(600px 160px at 10% 0%, rgba(1, 117, 255, 0.1), transparent 70%),
    var(--panel-raised);
}
.artifact-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 6px;
}
.artifact-title {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.artifact-sub { margin-top: 6px; font-size: 0.84rem; color: var(--ink-dim); }
.artifact-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 172, 10, 0.35);
  background: rgba(255, 172, 10, 0.07);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
.artifact-body { padding: 18px; }

.artifact-empty { padding: 22px 18px; }
.artifact-empty-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.artifact-empty-sub { font-size: 0.86rem; color: var(--ink-dim); max-width: 60ch; line-height: 1.65; }

.art-blocks { display: grid; gap: 20px; }
.art-block-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.art-list { list-style: none; display: grid; gap: 12px; }
.art-item {
  border-left: 2px solid rgba(1, 117, 255, 0.4);
  padding-left: 12px;
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-item-label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.art-item-body { font-size: 0.84rem; color: var(--ink-dim); line-height: 1.6; margin-top: 3px; }

.art-ask {
  border: 1px dashed rgba(255, 172, 10, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(255, 172, 10, 0.035);
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-dashlist { list-style: none; display: grid; gap: 8px; }
.art-dashlist li {
  position: relative;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--ink-dim);
  line-height: 1.6;
}
.art-dashlist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 9px;
  width: 8px; height: 2px;
  background: var(--amber);
}

.art-positioning {
  border-left: 2px solid var(--amber);
  padding-left: 14px;
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.art-positioning-line {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}
.art-offer { display: grid; gap: 12px; }
@media (min-width: 560px) { .art-offer { grid-template-columns: 1fr 1fr; } }
.art-offer-item {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--panel);
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-offer-item strong { font-size: 0.92rem; font-weight: 600; }

.art-waves { display: grid; gap: 12px; }
.art-wave {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 13px 15px;
  background: var(--panel);
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-wave-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}
.art-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.art-wave-window {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue-bright);
  margin: 5px 0 6px;
}
.art-wave-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.art-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 3px 8px;
}
.art-tag-strong { color: var(--amber); border-color: rgba(255, 172, 10, 0.4); }

.art-variants { display: grid; gap: 12px; }
.art-variant {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--panel);
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-variant-headline {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 9px 0 7px;
  line-height: 1.3;
}
.art-variant-body { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.65; }
.art-variant-cta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink);
}
.art-variant-cta span { color: var(--ink-faint); margin-right: 8px; letter-spacing: 0.1em; }
.art-check {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ok);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 12px;
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

.art-table-wrap { overflow-x: auto; }
.art-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.art-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 0 12px 9px 0;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.art-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.82rem;
  color: var(--ink-dim);
  vertical-align: top;
  animation: art-in 0.4s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-cell-strong { color: var(--ink); font-weight: 600; }
.art-muted { color: var(--ink-faint); }
.art-mono { font-family: var(--font-mono); font-size: 0.74rem; white-space: nowrap; }
.art-mono-sm { font-size: 0.68rem; color: var(--ink-faint); }

.art-kpis { display: grid; gap: 10px; }
@media (min-width: 520px) { .art-kpis { grid-template-columns: repeat(4, 1fr); } }
.art-kpi {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 13px 14px;
  background: var(--panel);
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-kpi-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.art-kpi-value {
  display: block;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 7px 0 4px;
}
.art-kpi-note { display: block; font-size: 0.72rem; color: var(--ink-faint); line-height: 1.45; }

.art-chart {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 14px 16px 16px;
  background: var(--panel);
  animation: art-in 0.45s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.art-chart-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.art-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 108px;
}
.art-bars i {
  flex: 1;
  min-width: 3px;
  background: linear-gradient(180deg, var(--blue-bright), rgba(1, 117, 255, 0.25));
  border-radius: 2px 2px 0 0;
  animation: bar-in 0.5s var(--ease-out) both;
}
.art-bars i:nth-child(4n) { background: linear-gradient(180deg, var(--amber), rgba(255, 172, 10, 0.22)); }
@keyframes bar-in {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
.art-bars i { transform-origin: bottom; }

@keyframes art-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art-item, .art-ask, .art-positioning, .art-offer-item, .art-wave,
  .art-variant, .art-check, .art-table td, .art-kpi, .art-chart { animation: none; }
  .art-bars i { animation: none; }
}

/* ---------- agent log ---------- */
.mae-log {
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  background: #05060a;
  overflow: hidden;
}
.mae-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--panel-raised);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mae-status { color: var(--ink-dim); }
.mae-status[data-s="running"] { color: var(--blue-bright); }
.mae-status[data-s="done"] { color: var(--ok); }
.mae-log-body {
  padding: 12px 16px;
  height: 132px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  scrollbar-width: thin;
}
.log-line { color: var(--ink-dim); word-break: break-word; }
.log-line b { color: var(--ink); font-weight: 500; }
.log-dim { color: var(--ink-faint); }
.log-ok { color: var(--ok); }

/* ---------- PAI ---------- */

.section-pai { background: linear-gradient(180deg, var(--ground) 0%, #070912 50%, var(--ground) 100%); }
.pai-panel {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.pai-form { padding: clamp(24px, 3.4vw, 40px); border-bottom: 1px solid var(--hairline-soft); }
.pai-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.pai-row { display: flex; flex-direction: column; gap: 12px; }
.pai-row input { flex: 1; min-width: 0; font-size: 1.0625rem; padding: 15px 18px; }
.pai-row .btn { justify-content: center; }
@media (min-width: 561px) { .pai-row { flex-direction: row; } }
.pai-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pai-quick button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  background: var(--ground-deep);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.pai-quick button:hover { color: var(--amber-warm); border-color: rgba(255, 172, 10, 0.5); background: var(--amber-dim); }

.pai-result { padding: clamp(24px, 3.4vw, 40px); }
.pai-empty-title { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.02em; }
.pai-empty-sub { margin-top: 10px; color: var(--ink-dim); font-weight: 300; max-width: 60ch; }

.pai-found-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pai-found-head h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.025em; }
.pai-found-head .pai-status-live {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid rgba(53, 208, 127, 0.4);
  background: rgba(53, 208, 127, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
}
.pai-tagline { margin-top: 10px; color: var(--ink-dim); font-weight: 300; max-width: 66ch; }

.pai-figure { margin: 30px 0 0; }
.pai-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--hairline-soft);
}
.pai-figure figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 68ch;
}

.process-list { list-style: none; margin-top: 30px; border-top: 1px solid var(--hairline-soft); }
.process-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--hairline-soft);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), background-color 0.25s;
}
.process-row.in { opacity: 1; transform: none; }
.process-row:hover { background: rgba(255, 255, 255, 0.025); }
.process-idx {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  padding-top: 3px;
}
.process-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; }
.process-desc { grid-column: 2; color: var(--ink-dim); font-size: 0.9rem; font-weight: 300; margin-top: 4px; max-width: 72ch; }
.process-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.process-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border: 1px solid var(--hairline-soft);
  background: var(--ground-deep);
  padding: 3px 9px;
  border-radius: 4px;
}
.pai-footnote { margin-top: 24px; font-size: 0.82rem; color: var(--ink-faint); }

.pai-coming {
  border: 1px dashed rgba(255, 172, 10, 0.4);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255, 172, 10, 0.05), transparent);
}
.pai-coming h3 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }
.pai-coming h3 em { font-style: normal; color: var(--amber); }
.pai-coming p { margin-top: 12px; color: var(--ink-dim); font-weight: 300; max-width: 62ch; }
.pai-coming .btn { margin-top: 22px; }

/* ---------- Roadmap ---------- */

.marquee {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  margin-top: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 24px; }
  .marquee { overflow: visible; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  background: var(--panel);
  border-radius: 999px;
  padding: 10px 20px;
  white-space: nowrap;
}
.marquee-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.75;
}
.roadmap-note {
  margin-top: 44px;
  color: var(--ink-dim);
  font-weight: 300;
}
.roadmap-note a { color: var(--amber-warm); text-decoration-color: rgba(255, 205, 125, 0.4); text-underline-offset: 4px; }
.roadmap-note a:hover { color: var(--amber); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--hairline-soft);
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(1, 117, 255, 0.07), transparent 60%),
    radial-gradient(700px 380px at 85% 10%, rgba(255, 172, 10, 0.05), transparent 60%),
    var(--ground-deep);
  padding: clamp(70px, 9vw, 110px) 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--hairline-soft);
}
@media (min-width: 821px) {
  .footer-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 60px; }
}
.footer-title { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.footer-sub { margin: 16px 0 28px; color: var(--ink-dim); font-weight: 300; max-width: 46ch; }
.footer-nav { display: flex; gap: clamp(40px, 6vw, 90px); justify-content: flex-start; flex-wrap: wrap; }
@media (min-width: 821px) {
  .footer-nav { justify-content: flex-end; }
}
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 6px;
}
.footer-col a { color: var(--ink-dim); text-decoration: none; font-size: 0.92rem; transition: color 0.25s; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 30px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--ink-faint); max-width: 70ch; }
.wordmark-footer { font-size: 0.9rem; color: var(--ink-dim); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; opacity: 1; }
}

/* ============================================================
   MENU OVERLAY
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media (min-width: 721px) { .nav-end { margin-left: 0; } }

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 15px;
  min-height: 40px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.nav-menu-btn:hover { color: var(--ink); border-color: rgba(61, 151, 255, 0.5); }
.nav-menu-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.nav-menu-bars { display: grid; gap: 4px; width: 15px; }
.nav-menu-bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out);
}
.nav-menu-btn[aria-expanded="true"] .nav-menu-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] .nav-menu-bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.menu-overlay[hidden] { display: none; }
.menu-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(3, 4, 7, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: fade-in 0.3s var(--ease-out);
}
.menu-overlay-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(420px, 88vw);
  padding: calc(var(--nav-h) + 12px) clamp(24px, 5vw, 48px) 48px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0a0d15 0%, var(--ground) 100%);
  border-right: 1px solid var(--hairline);
  box-shadow: 40px 0 90px rgba(0, 0, 0, 0.6);
  animation: panel-in 0.42s var(--ease-out);
}
.menu-overlay-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hairline-soft);
}
.menu-overlay-eyebrow-2 { margin-top: 34px; }
.menu-overlay-list { list-style: none; display: grid; gap: 4px; }
.menu-overlay-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: color 0.25s, padding-left 0.3s var(--ease-out);
}
.menu-overlay-list a:hover { color: var(--blue-bright); padding-left: 8px; }
.menu-overlay-professions { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.menu-overlay-professions li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 12px;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes panel-in {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   EYEBROW — small italic serif, as used on the reference sites
   ============================================================ */

.eyebrow-italic {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.05rem);
  color: var(--amber);
  margin-bottom: 14px;
}
.eyebrow-italic::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  opacity: 0.7;
}

/* ============================================================
   HOW IT WORKS — manual vs agent dioramas
   ============================================================ */

.section-how { background: linear-gradient(180deg, var(--ground) 0%, #070912 55%, var(--ground) 100%); }
.how-grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 861px) { .how-grid { grid-template-columns: 1fr 1fr; } }

.how-card {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.how-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ground-deep);
}
.how-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.how-card:hover .how-card-media img { transform: scale(1.035); }
.how-card-after .how-card-media { box-shadow: inset 0 0 60px rgba(1, 117, 255, 0.16); }
.how-card figcaption { padding: clamp(20px, 2.6vw, 30px); }
.how-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.how-list { list-style: none; display: grid; gap: 10px; }
.how-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--ink-dim);
  line-height: 1.55;
}
.how-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 9px; height: 9px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
}
.how-card-after .how-list li::before {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(1, 117, 255, 0.6);
}

/* ============================================================
   BENTO — what you get
   ============================================================ */

.section-outputs { background: var(--ground); }
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bento-tile {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--panel);
  padding: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.45s var(--ease-out);
}
.bento-tile:hover { border-color: rgba(61, 151, 255, 0.42); transform: translateY(-3px); }
.bento-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.bento-tile h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.bento-tile p { font-size: 0.88rem; color: var(--ink-dim); line-height: 1.62; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; display: flex; flex-direction: column; }
@media (max-width: 999px) { .bento-tall { grid-row: auto; } }
@media (max-width: 639px) { .bento-wide { grid-column: span 1; } }

/* explicit placement at desktop so no cell is left empty */
@media (min-width: 1000px) {
  .bento-tile:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .bento-tile:nth-child(2) { grid-column: 1; grid-row: 2 / 4; }
  .bento-tile:nth-child(3) { grid-column: 3; grid-row: 1; }
  .bento-tile:nth-child(4) { grid-column: 4; grid-row: 1; }
  .bento-tile:nth-child(5) { grid-column: 2 / 5; grid-row: 2 / 4; }
}

.bento-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bento-strip span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
}
.bento-waves {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: space-between;
}
.bento-waves li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 11px;
}
.bento-waves li span:nth-child(2) { color: var(--ink-dim); }
.bento-waves b { color: var(--ink); font-weight: 600; }

.bento-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 92px;
  margin-top: 26px;
}
.bento-bars i {
  flex: 1;
  height: var(--h, 40%);
  background: linear-gradient(180deg, var(--blue-bright), rgba(1, 117, 255, 0.18));
  border-radius: 4px 4px 0 0;
}
.bento-accent {
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(255, 172, 10, 0.12), transparent 65%),
    var(--panel);
  display: grid;
  gap: 18px;
}
.bento-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  margin-top: 4px;
}

/* ============================================================
   SUBSCRIBE — mailto hand-off, no fake newsletter
   ============================================================ */

.subscribe {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}
.subscribe input {
  flex: 1 1 220px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground-deep);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.subscribe input::placeholder { color: var(--ink-faint); }
.subscribe input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1, 117, 255, 0.22);
}
.subscribe-note { margin-top: 12px; font-size: 0.78rem; color: var(--ink-faint); max-width: 46ch; }
