/* ==========================================================================
   VETURON OFFICIAL DESIGN SYSTEM — "VELVET DUSK & TILED PRECISION"
   Inspired by the calm studio atmosphere of HumanLayer (Poimandres) and the
   0px tiled architectural craft & Bayer pixel-field art of Omarchy.
   ========================================================================== */

:root,
[data-theme="graphite"] {
  color-scheme: dark;
  --bg-deep: #0D0E11;
  --bg: #121418;
  --bg-alt: #0F1115;
  --surface: #181B20;
  --surface-2: #1F232A;
  --surface-hover: #262B34;
  --border: #272C35;
  --border-strong: #3E4553;
  --ink: #F2F3F6;
  --ink-soft: #DCDFE6;
  --body: #A7ADBA;
  --mute: #737987;
  --accent: #E5A95C;
  --accent-strong: #F2C485;
  --accent-soft: rgba(229, 169, 92, 0.11);
  --accent-border: rgba(229, 169, 92, 0.44);
  --accent-ink: #111215;
  --core: #5DE4C7;
  --core-soft: rgba(93, 228, 199, 0.11);
  --core-border: rgba(93, 228, 199, 0.35);
  --warn: #E5A95C;
  --danger: #EB6F92;
  --hdr-bg: rgba(18, 20, 24, 0.9);
  --shadow-elev: 0 22px 54px -20px rgba(0, 0, 0, 0.72);

  /* Bayer Pixel Field Ramp */
  --field-bg: #0E1014;
  --field-dim: #241E17;
  --field-mid: #3D3020;
  --field-lit: #694F2E;
  --field-crest: #A87C44;
  --theme-label: "Graphite";
}

[data-theme="dusk"] {
  color-scheme: dark;
  --bg-deep: #11141D;
  --bg: #161A24;
  --bg-alt: #131720;
  --surface: #1C212E;
  --surface-2: #222838;
  --surface-hover: #272E40;
  --border: #283044;
  --border-strong: #3B4662;
  --ink: #ECF0FA;
  --ink-soft: #D3DCF0;
  --body: #A4B0CA;
  --mute: #6E7A96;
  --accent: #8CC8FF;
  --accent-strong: #B4DCFF;
  --accent-soft: rgba(140, 200, 255, 0.11);
  --accent-border: rgba(140, 200, 255, 0.42);
  --accent-ink: #0E131D;
  --core: #5DE4C7;
  --core-soft: rgba(93, 228, 199, 0.11);
  --core-border: rgba(93, 228, 199, 0.36);
  --warn: #F6C177;
  --danger: #EB6F92;
  --hdr-bg: rgba(22, 26, 36, 0.88);
  --shadow-elev: 0 22px 54px -20px rgba(5, 8, 15, 0.65);

  --field-bg: #121620;
  --field-dim: #1A2233;
  --field-mid: #24334D;
  --field-lit: #355078;
  --field-crest: #5B87C2;
  --theme-label: "Dusk";
}

[data-theme="lumon"] {
  color-scheme: dark;
  --bg-deep: #0D161C;
  --bg: #121E26;
  --bg-alt: #0F1920;
  --surface: #172631;
  --surface-2: #1D2F3D;
  --surface-hover: #233848;
  --border: #253B4C;
  --border-strong: #39586F;
  --ink: #EFF9FC;
  --ink-soft: #D6EAF2;
  --body: #A7C2D2;
  --mute: #7190A3;
  --accent: #8BC9EB;
  --accent-strong: #B8E1F7;
  --accent-soft: rgba(139, 201, 235, 0.12);
  --accent-border: rgba(139, 201, 235, 0.44);
  --accent-ink: #0C151B;
  --core: #7CE7C1;
  --core-soft: rgba(124, 231, 193, 0.11);
  --core-border: rgba(124, 231, 193, 0.36);
  --warn: #F4C983;
  --danger: #F0829B;
  --hdr-bg: rgba(18, 30, 38, 0.88);
  --shadow-elev: 0 22px 54px -20px rgba(4, 10, 14, 0.7);

  --field-bg: #0E181F;
  --field-dim: #172B38;
  --field-mid: #244457;
  --field-lit: #396A85;
  --field-crest: #69A8CA;
  --theme-label: "Lumon";
}

[data-theme="daylight"] {
  color-scheme: light;
  --bg-deep: #E8E6DF;
  --bg: #F4F3EE;
  --bg-alt: #ECEAE2;
  --surface: #FAF9F5;
  --surface-2: #EAE8DF;
  --surface-hover: #E2DFD4;
  --border: #D5D2C6;
  --border-strong: #B3AFA0;
  --ink: #11151E;
  --ink-soft: #1E2534;
  --body: #424A5C;
  --mute: #6C7486;
  --accent: #1856D6;
  --accent-strong: #1040A8;
  --accent-soft: rgba(24, 86, 214, 0.08);
  --accent-border: rgba(24, 86, 214, 0.38);
  --accent-ink: #FFFFFF;
  --core: #0D8A78;
  --core-soft: rgba(13, 138, 120, 0.09);
  --core-border: rgba(13, 138, 120, 0.35);
  --warn: #B45309;
  --danger: #BE123C;
  --hdr-bg: rgba(244, 243, 238, 0.9);
  --shadow-elev: 0 18px 40px -20px rgba(17, 21, 30, 0.14);

  --field-bg: #EFECE4;
  --field-dim: #DFDDD3;
  --field-mid: #C9D2E2;
  --field-lit: #9BB2DA;
  --field-crest: #5C85CC;
  --theme-label: "Daylight";
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1, "ss01" 1;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 180ms ease, color 180ms ease;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[id] { scroll-margin-top: 84px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  width: auto; height: auto; clip: auto; padding: 10px 16px;
  background: var(--accent); color: var(--accent-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 600; text-decoration: none;
}

/* Typography Helpers */
.serif {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}
.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Architectural Container with Subtle Side Rails on Large Viewports */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 36px; }
}
@media (min-width: 1280px) {
  main > section > .container {
    position: relative;
  }
}

/* Architectural Blueprint Side Guide Rails (Subtle Studio Framing) */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  opacity: 0.45;
  pointer-events: none;
  z-index: 40;
  display: none;
}
@media (min-width: 1320px) {
  body::before { display: block; left: calc(50% - 620px); }
  body::after  { display: block; right: calc(50% - 620px); }
}

:focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
}

/* Keyboard Keycap Badge (HumanLayer craft) */
kbd, .kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  color: var(--mute);
  border-radius: 1px;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

/* Sovereign Split-Blade V Mark + Subtle Keystone Heartbeat */
.veturon-mark {
  display: block;
  flex-shrink: 0;
  color: var(--ink);
}
.veturon-mark .v-wing {
  fill: currentColor;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.veturon-mark .v-core {
  fill: var(--core);
  animation: core-breathe 3.8s ease-in-out infinite;
}
.brand-link:hover .veturon-mark .v-wing-left {
  transform: translateY(-0.7px);
}
.brand-link:hover .veturon-mark .v-wing-right {
  transform: translateY(0.7px);
}
.brand-link:hover .veturon-mark .v-core {
  fill: var(--accent);
}
@keyframes core-breathe {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; filter: brightness(1.16); }
}

/* 1. TELEMETRY TOP RIBBON */
.top-ribbon {
  background: var(--bg-deep);
  color: var(--mute);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}
.top-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding-top: 5px;
  padding-bottom: 5px;
  gap: 12px;
  flex-wrap: wrap;
}
.ribbon-left, .ribbon-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.ribbon-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--core);
}
.ribbon-dot { color: var(--border-strong); }
@media (max-width: 640px) {
  .hide-xs { display: none !important; }
}

/* 2. SILOED IN-LANE HEADER + SPLIT BRAND LOCKUP */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hdr-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-wordmark {
  font-family: "Geist", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.brand-sep {
  color: var(--border-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  user-select: none;
}
.lane-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.lane-home-badge:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.lane-dot {
  width: 6px;
  height: 6px;
  background: var(--core);
  flex-shrink: 0;
}
.lane-cap {
  padding: 1px 5px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
}

/* Zero-cookie contextual Return-to-Lane pill on "/" */
.return-lane-wrap {
  display: none;
  align-items: center;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
  flex-shrink: 0;
}
.return-lane-wrap.is-visible { display: inline-flex; }
@media (max-width: 760px) {
  .return-lane-wrap.is-visible { display: none; }
}
.return-lane-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--core);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease;
}
.return-lane-pill:hover {
  background: rgba(93, 228, 199, 0.16);
}
.return-lane-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 32px;
  border: 0;
  border-left: 1px solid var(--core-border);
  background: transparent;
  color: var(--core);
  font-size: 14px;
  cursor: pointer;
  opacity: 0.75;
}
.return-lane-dismiss:hover {
  opacity: 1;
  background: rgba(93, 228, 199, 0.16);
}
.ribbon-return-pill {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
  color: var(--core);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .ribbon-return-pill.is-visible { display: inline-flex; }
}

/* Header Navigation Links */
.storefront-tabs {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
}
@media (min-width: 1080px) {
  .storefront-tabs { display: flex; }
}
.storefront-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  padding: 0 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}
@media (min-width: 1260px) {
  .storefront-tab { padding: 0 12px; font-size: 12px; }
}
@media (max-width: 1220px) {
  .hide-md { display: none !important; }
}
.storefront-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.storefront-tab.is-active {
  color: var(--ink);
}
.storefront-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Tactile Theme Switcher Button (Omarchy T shortcut) */
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--body);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}
.theme-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.theme-swatch {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 3px 0 0 var(--core);
  margin-right: 3px;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1080px) {
  .mobile-menu-btn { display: none; }
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 14px 20px 18px;
}
.mobile-drawer.is-open { display: block; }
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav-list li + li {
  border-top: 1px solid var(--border);
}
.mobile-nav-list a,
.mobile-nav-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.mobile-nav-list a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.mobile-nav-list a:hover,
.mobile-nav-list button:hover {
  background: var(--surface-2);
}
.mobile-nav-divider {
  border-top: 1px solid var(--border-strong) !important;
}
.mobile-nav-list a.mobile-corp-link {
  font-size: 11.5px;
  color: var(--mute);
}
.mobile-return-banner {
  display: none;
  margin-bottom: 10px;
}
.mobile-return-banner.is-visible { display: block; }
.mobile-return-banner a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
  color: var(--core);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.show-xxs { display: none; }
@media (max-width: 600px) {
  .nav-bar { gap: 6px; height: 58px; }
  .brand-cluster { gap: 6px; }
  .brand-link { gap: 7px; }
  .brand-link svg { width: 22px; height: 22px; }
  .brand-wordmark { font-size: 13.5px; letter-spacing: 0.14em; }
  .brand-sep { font-size: 14px; }
  .lane-home-badge { padding: 0 7px; height: 24px; font-size: 10px; letter-spacing: 0.04em; gap: 5px; }
  .lane-cap { display: none; }
  .theme-btn { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { padding: 0 10px; height: 32px; font-size: 11px; }
  .nav-actions .btn-primary kbd { display: none; }
  .mobile-menu-btn { width: 32px; height: 32px; }
  .hide-xxs { display: none !important; }
  .show-xxs { display: inline !important; }
}

/* BUTTONS — HumanLayer Sharp Monospace Command Aesthetic */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn-ghost {
  height: 34px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}
.btn-primary {
  height: 34px;
  padding: 0 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover kbd {
  background: rgba(0, 0, 0, 0.18);
  border-color: transparent;
  color: var(--accent-ink);
}
.btn-ok {
  background: var(--core) !important;
  border-color: var(--core) !important;
  color: #091512 !important;
}
.btn-lg {
  height: 42px;
  padding: 0 18px;
  font-size: 12.5px;
}

/* EYEBROWS, PILLS & SECTION HEADERS */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--body);
}
@media (max-width: 520px) {
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.07em;
    padding: 4px 8px;
  }
}
.rwb-pip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.rwb-pip span:first-child {
  width: 6px;
  height: 6px;
  background: var(--core);
}
.rwb-pip span:last-child {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.rwb-top-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--core) 0%, var(--core) 28%, var(--accent) 28%, var(--accent) 100%);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-kicker::before {
  content: "//";
  color: var(--mute);
  font-weight: 400;
}
.section-title {
  margin-top: 10px;
  font-family: "Geist", sans-serif;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--ink);
}
.section-lead {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
  max-width: 680px;
}

/* ==========================================================================
   3. LIVING BAYER PIXEL FIELD HERO + TUI WORKSPACE ARTIFACT
   ========================================================================== */
.hero,
.sparks-hero {
  position: relative;
  overflow: hidden;
  background: var(--field-bg);
  border-bottom: 1px solid var(--border);
}
.hero {
  padding: 52px 0 64px;
}
@media (min-width: 1024px) {
  .hero { padding: 68px 0 76px; }
}
.sparks-hero {
  padding: 46px 0 50px;
}

.pixel-field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 72% 46%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.16) 100%);
          mask-image: radial-gradient(ellipse 95% 90% at 72% 46%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.16) 100%);
}
.sparks-hero .pixel-field-canvas {
  opacity: 0.52;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 24%, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 65%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 75% at 50% 24%, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.28) 65%, transparent 100%);
}
.hero > .container,
.sparks-hero > .container,
.sparks-hero > #whiteboard {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 48px; }
}

.hero-title {
  margin-top: 18px;
  font-family: "Geist", sans-serif;
  font-size: clamp(34px, 4.1vw, 50px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-border);
  padding-bottom: 1px;
}
.hero-lead {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  max-width: 580px;
}
.hero-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Tiled 3-Column Spec Strip Under Hero Copy */
.trust-ledger {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  background: rgba(22, 26, 36, 0.55);
}
[data-theme="daylight"] .trust-ledger {
  background: rgba(250, 249, 245, 0.82);
}
@media (min-width: 640px) {
  .trust-ledger { grid-template-columns: repeat(3, 1fr); }
}
.trust-ledger > div {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.trust-ledger > div:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .trust-ledger > div {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .trust-ledger > div:last-child { border-right: 0; }
}
.ledger-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.ledger-val {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

/* TUI / IDE WORKPACKAGE ARTIFACT PANE (HumanLayer × Omarchy Window) */
.dossier-wrap { position: relative; }
.dossier-backsheet { display: none; }
.dossier {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elev);
  overflow: hidden;
}
.dossier-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.tui-chrome-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.tui-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 4px;
}
.tui-dots span {
  width: 7px;
  height: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
}
.tui-dots span:nth-child(1) { background: rgba(235, 111, 146, 0.55); border-color: rgba(235, 111, 146, 0.7); }
.tui-dots span:nth-child(2) { background: rgba(246, 193, 119, 0.55); border-color: rgba(246, 193, 119, 0.7); }
.tui-dots span:nth-child(3) { background: rgba(93, 228, 199, 0.65); border-color: rgba(93, 228, 199, 0.8); }

.dossier-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stamp-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
  color: var(--core);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.stamp-dot {
  width: 6px;
  height: 6px;
  background: var(--core);
  display: inline-block;
}

.dossier-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 580px) {
  .dossier-tabs { grid-template-columns: repeat(4, 1fr); }
}
.d-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 130ms ease, background-color 130ms ease;
}
@media (min-width: 580px) {
  .d-tab { border-bottom: 0; }
  .d-tab:last-child { border-right: 0; }
}
.d-tab:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.d-tab.is-active {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
}
.d-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.d-tab .tab-key {
  font-size: 9.5px;
  padding: 1px 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  color: var(--mute);
}
.d-tab.is-active .tab-key {
  border-color: var(--accent-border);
  color: var(--accent);
}

.dossier-body { padding: 20px 20px 18px; }
.dossier-ref {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dossier-title {
  margin-top: 6px;
  font-family: "Geist", sans-serif;
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.26;
  color: var(--ink);
}
.dossier-desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--body);
}

/* Live Deterministic Execution Trace Inside Dossier */
.wp-trace {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: var(--body);
  overflow-x: auto;
}
.wp-trace-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.trace-ms {
  color: var(--core);
  font-weight: 600;
  flex-shrink: 0;
}
.trace-cmd {
  color: var(--ink-soft);
}
.trace-ok {
  margin-left: auto;
  color: var(--accent);
  font-size: 10px;
}

.spec-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  background: var(--surface);
}
@media (min-width: 540px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
.spec-cell {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 540px) {
  .spec-cell:nth-child(1) { border-right: 1px solid var(--border); }
  .spec-cell:nth-child(3) { border-right: 1px solid var(--border); border-bottom: 0; }
  .spec-cell:nth-child(4) { border-bottom: 0; }
}
.spec-cell:last-child { border-bottom: 0; }
.spec-k {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.spec-v {
  margin-top: 3px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.spec-sub {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--mute);
}

.dossier-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
}
.dossier-foot-note { color: var(--mute); }
.dossier-foot-link {
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.dossier-foot-link:hover { color: var(--ink); }

/* ==========================================================================
   4. TILED BANDS, HAIRLINE MATRICES & ARCHITECT DRAWER
   ========================================================================== */
.band-sand {
  position: relative;
  padding: 60px 0 66px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.band-paper {
  position: relative;
  padding: 60px 0 68px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Hairline Tiled Grids (Zero Rounded Gaps — Collapsed 1px Borders) */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 820px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.sheet-card,
.sheet-card-strong {
  position: relative;
  background: var(--surface);
  padding: 26px 24px;
  transition: background-color 150ms ease;
}
.sheet-card:hover,
.sheet-card-strong:hover {
  background: var(--surface-2);
}
.sheet-card-strong::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.pillar-idx {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sheet-card h3,
.sheet-card-strong h3 {
  margin-top: 12px;
  font-family: "Geist", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}
.sheet-card p,
.sheet-card-strong p {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--body);
}

.cap-num {
  margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* PROGRESSIVE DISCLOSURE ARCHITECT SBOM DRAWER */
.architect-drawer {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.architect-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  background: var(--bg-deep);
  cursor: pointer;
  list-style: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 140ms ease;
}
.architect-summary::-webkit-details-marker { display: none; }
.architect-summary:hover { background: var(--surface-2); }
.architect-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border-top: 1px solid var(--border);
  background: var(--border);
  font-size: 13px;
}
@media (min-width: 768px) {
  .architect-body { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .architect-body { grid-template-columns: repeat(4, 1fr); }
}
.arch-item {
  padding: 18px 20px;
  background: var(--surface);
  color: var(--body);
  line-height: 1.56;
}
.arch-item strong {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--core);
  margin-bottom: 6px;
}

/* HUMANLAYER-STYLE VERTICAL CHECKPOINT PHASE RAIL (LRAF CAPTURE) */
.capture-split {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.capture-split > * {
  min-width: 0;
}
@media (min-width: 960px) {
  .capture-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; }
}
.phase-rail {
  display: flex;
  flex-direction: column;
}
.phase-step {
  display: flex;
  align-items: stretch;
  gap: 18px;
}
.phase-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.phase-node {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.phase-step.is-featured .phase-node {
  border-color: var(--core);
  background: var(--core-soft);
  color: var(--core);
}
.phase-line {
  width: 1px;
  flex: 1;
  min-height: 28px;
  background: var(--border-strong);
}
.phase-content {
  flex: 1;
  padding-bottom: 26px;
}
.phase-step:last-child .phase-content { padding-bottom: 0; }
.phase-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.phase-content h3 {
  margin-top: 4px;
  font-family: "Geist", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.phase-content p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* Right-side TUI Stakeholder Manifest Card */
.manifest-panel {
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.manifest-hdr {
  padding: 11px 18px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
}
.manifest-list {
  list-style: none;
}
.manifest-list li {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  font-size: 13px;
}
.manifest-list li:last-child { border-bottom: 0; }
.manifest-role {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.manifest-val {
  color: var(--body);
  line-height: 1.48;
}

/* CLOSING CALLOUT SHEET */
.closing-sheet {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.closing-inner {
  padding: 36px 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .closing-inner { padding: 44px 48px; }
}

/* ==========================================================================
   5. SPARKS STOREFRONTS (/FMP, /NYMP, /SMB) — TILED COMMAND WALL
   ========================================================================== */
.center-head {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.prompt-shell {
  margin: 26px auto 0;
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  padding: 8px;
  box-shadow: var(--shadow-elev);
  transition: border-color 150ms ease;
}
@media (min-width: 640px) {
  .prompt-shell {
    flex-direction: row;
    align-items: center;
    padding: 6px 6px 6px 16px;
  }
}
.prompt-shell:focus-within,
.prompt-shell.is-pulsed {
  border-color: var(--accent);
}
.prompt-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 9px 4px;
  outline: none;
}
.prompt-input::placeholder { color: var(--mute); }

.prompt-helpers {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--mute);
}
.helper-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}
.helper-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
}

/* Tiled Marquee Wall */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.marquee-row {
  display: flex;
  width: max-content;
  gap: 8px;
  margin-bottom: 8px;
  will-change: transform;
}
.marquee-left-slow  { animation: scroll-left 128s linear infinite; }
.marquee-right-slow { animation: scroll-right 140s linear infinite; }
.marquee-left-med   { animation: scroll-left 114s linear infinite; }
.marquee-right-med  { animation: scroll-right 132s linear infinite; }
.marquee-left-fast  { animation: scroll-left 120s linear infinite; }
.marquee-wrap:hover .marquee-row { animation-play-state: paused; }
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.idea-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 7px 13px;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}
.idea-chip:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--ink);
}
.chip-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  flex-shrink: 0;
}
.chip-dot-easter {
  width: 6px;
  height: 6px;
  background: var(--warn);
  flex-shrink: 0;
}

.search-bar-box {
  max-width: 760px;
  margin: 22px auto 0;
}
.search-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  padding: 8px;
}
@media (min-width: 640px) {
  .search-row { flex-direction: row; align-items: center; }
}
.search-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--ink);
}
.search-input::placeholder { color: var(--mute); }
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.idea-grid {
  margin-top: 10px;
  display: none;
  max-height: 440px;
  overflow-y: auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  grid-template-columns: 1fr;
}
.idea-grid.is-open { display: grid; }
@media (min-width: 640px) {
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .idea-grid { grid-template-columns: repeat(3, 1fr); }
}
.grid-spark-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: var(--surface);
  font-family: "Geist", sans-serif;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.grid-spark-btn:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.spec-strip {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 13px 20px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.spec-strip span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--core);
  margin-right: 7px;
  vertical-align: middle;
}

/* ==========================================================================
   6. FOOTER & ZERO-LOGIN INQUIRY MODAL
   ========================================================================== */
.site-footer {
  padding: 34px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  color: var(--mute);
  font-size: 12.5px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 920px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  list-style: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
}
.footer-links a {
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--accent); }

/* ZERO-LOGIN DIRECT INQUIRY MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.is-open { display: flex; }
.modal-sheet {
  width: 100%;
  max-width: 540px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elev);
  overflow: hidden;
}
.modal-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 15px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}
.modal-body { padding: 20px 22px 22px; }
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: "Geist", sans-serif;
  font-size: 13.5px;
  color: var(--ink);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--mute); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-deep);
}
.field-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 560px) {
  .field-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.modal-send-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.modal-webmail-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--mute);
}
.webmail-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.webmail-link {
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  font-size: 11px;
}
.webmail-link:hover { text-decoration: underline; }

/* FRED EASTER EGG MODAL */
.fred-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(8, 10, 16, 0.78);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fred-backdrop.is-open { display: flex; }
.fred-sheet {
  width: 100%;
  max-width: 640px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-elev);
}
.fred-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}
.fred-hud {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  font-size: 11.5px;
}
.fred-stage {
  position: relative;
  margin-top: 10px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.fred-gameover {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 29, 0.93);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
[data-theme="daylight"] .fred-gameover {
  background: rgba(244, 243, 238, 0.94);
}

/* ==========================================================================
   7. STAIRCASE PACKAGES, PARTNER PRICING, ROI CALCULATOR & FAQ ACCORDIONS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 860px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.proof-4 {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 560px) {
  .proof-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.proof-tile {
  padding: 12px 14px;
  background: rgba(22, 26, 36, 0.72);
}
[data-theme="daylight"] .proof-tile {
  background: rgba(250, 249, 245, 0.9);
}
.proof-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--core);
}
.proof-desc {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.42;
  color: var(--body);
}

/* 2-Door Self-Sorting Selector */
.door-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 860px) {
  .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.door-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  text-align: left;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.door-card:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}
.door-card.is-selected {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 0 2px 0 var(--accent);
}
.door-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.door-tag {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.door-badge {
  padding: 2px 8px;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--core);
}
.door-title {
  margin-top: 12px;
  font-family: "Geist", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.28;
}
.door-list {
  margin-top: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.52;
}
.door-list li {
  position: relative;
  padding-left: 15px;
}
.door-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}
.door-foot {
  margin-top: 20px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}

/* Staircase & Summit Package Cards */
.stair-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 920px) {
  .stair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stair-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  transition: border-color 150ms ease, background-color 150ms ease, opacity 180ms ease;
}
.stair-card:hover {
  border-color: var(--border-strong);
}
.stair-card.is-path-match {
  border-color: var(--accent);
  box-shadow: inset 0 2px 0 var(--accent);
}
.stair-card.is-path-dim {
  opacity: 0.62;
}
.stair-card.is-summit {
  border-color: var(--border-strong);
  background: var(--bg-deep);
}
.stair-card.is-summit.is-path-match {
  border-color: var(--core);
  box-shadow: inset 0 2.5px 0 var(--core);
}
.stair-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.stair-step {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.stair-fit {
  padding: 2px 7px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--mute);
}
.path-match-pill {
  display: none;
  padding: 2px 7px;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--core);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stair-card.is-path-match .path-match-pill {
  display: inline-flex;
}
.stair-title {
  margin-top: 10px;
  font-family: "Geist", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.28;
}
.price-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
}
.stair-card.is-summit .price-box {
  background: var(--surface);
}
.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.price-main {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price-strike {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--mute);
  text-decoration: line-through;
}
.price-save {
  padding: 2px 6px;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--core);
}
.price-mrr {
  margin-top: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--body);
}
.price-mrr strong {
  color: var(--accent);
}
.tier-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.tier-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.tier-name {
  font-weight: 600;
  color: var(--ink-soft);
}
.tier-vals {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ink);
}

.stair-hook {
  margin-top: 13px;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--body);
}
.check-list {
  margin-top: 13px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.52;
  color: var(--body);
}
.check-list li {
  position: relative;
  padding-left: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--core);
}
.check-list strong {
  color: var(--ink);
  font-weight: 600;
}
.stair-cta-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Interactive ROI & Overhead Calculator */
.calc-shell {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
@media (min-width: 940px) {
  .calc-shell { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.calc-left {
  padding: 26px 24px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 940px) {
  .calc-left { border-bottom: 0; border-right: 1px solid var(--border); }
}
.calc-right {
  padding: 26px 24px;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-group + .calc-group {
  margin-top: 20px;
}
.calc-lbl {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.calc-val-out {
  color: var(--accent);
  font-size: 13px;
}
.pill-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (min-width: 520px) {
  .pill-group.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.pill-opt {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  color: var(--body);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 130ms ease;
}
.pill-opt:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.pill-opt.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.range-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.calc-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 12px;
}
.calc-box {
  padding: 13px 14px;
  background: var(--surface);
}
.calc-box-k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mute);
}
.calc-box-v {
  margin-top: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.calc-saving-banner {
  margin-top: 14px;
  padding: 15px 16px;
  background: var(--core-soft);
  border: 1px solid var(--core-border);
}
.calc-saving-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 26px;
  font-weight: 600;
  color: var(--core);
  line-height: 1.15;
}

/* FAQ Accordions */
.faq-list {
  margin-top: 26px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none;
  font-family: "Geist", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 140ms ease;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary:hover { background: var(--surface-2); }
.faq-icon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 20px 16px;
  font-size: 13.8px;
  line-height: 1.62;
  color: var(--body);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-left-slow, .marquee-right-slow, .marquee-left-med, .marquee-right-med, .marquee-left-fast,
  .veturon-mark .v-core {
    animation: none !important;
  }
  .marquee-wrap { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  html { scroll-behavior: auto; }
}
