/* ==========================================================================
   Tizuvo — v16 Design System (ai-design-skills compliant)
   Geist + Geist Mono · Flat dark surfaces · Strict type/spacing/radius/motion
   ========================================================================== */

/* ---------- Self-hosted Fonts (B1 + Display Pairing) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (B1, B2, B3, B4, B7) ---------- */
:root {
  /* B4 Flat Dark Palette */
  --bg: #000000;
  --bg-warm: #131209;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --border: #272727;
  --border-strong: #313131;

  /* Text & Brand Accent */
  --text: #FFFFFF;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --gold: #CDAE80;
  --gold-2: #E6C895;
  --gold-surface: #231F16;
  --gold-border: #4A3E2A;
  --ok: #86EFAC;
  --ok-surface: #112418;
  --ok-border: #1E4D2F;
  --warn: #FDE68A;
  --warn-surface: #262010;
  --warn-border: #4D3F1A;
  --err: #FCA5A5;
  --err-surface: #261414;
  --err-border: #522424;

  /* Editorial Warm Off-White Contrast Band */
  --paper: #F4F0E6;
  --paper-ink: #0E0D0A;
  --paper-muted: #665E51;
  --paper-gold: #785A28;
  --paper-border: #DDD4C2;

  /* Fonts */
  --display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  /* B2 Spacing Tokens */
  --sp-0: 0;
  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  /* B3 Tailwind Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* B7 Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 300ms;
  --dur-layout: 500ms;
  --dur-reveal: 650ms;

  --max: 1152px;
  --header-offset: 80px;
}

/* ---------- Cross-Document View Transitions ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vtOut 240ms var(--ease) both;
}
::view-transition-new(root) {
  animation: vtIn 320ms var(--ease) both;
}
@keyframes vtOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vtIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Base & Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-900);
  color-scheme: dark;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: var(--sp-0);
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: var(--sp-0); padding: var(--sp-0); list-style: none; }
h1, h2, h3, h4, p { margin: var(--sp-0); font-style: normal; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
button, input, select, textarea { font: inherit; font-style: normal; }
a, button, summary, input, select, textarea { touch-action: manipulation; }

::selection { background-color: var(--gold-border); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- Named Text Styles (B1) ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.03em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.015em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }

.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.title-5 { font-size: 12px; line-height: 16px; font-weight: 500; }

.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }

.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.button-xsm { font-size: 12px; line-height: 16px; font-weight: 600; }

.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

/* ---------- Utilities ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: var(--sp-200);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--sp-75) var(--sp-200);
  background-color: var(--gold-2);
  color: var(--bg);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: transform var(--dur-hover) var(--ease);
}
.skip-link:focus { transform: translateY(96px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: var(--sp-0);
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--sp-200);
}
@media (min-width: 640px) { .container { padding-inline: var(--sp-400); } }

.text-link {
  color: var(--gold-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--dur-hover) var(--ease);
}
.text-link:hover { color: var(--text); }

/* ---------- Buttons (B2, B4, B7, B9) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  min-height: 44px;
  padding: var(--sp-75) var(--sp-200);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm {
  min-height: 40px;
  padding: var(--sp-75) var(--sp-100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.btn-lg {
  min-height: 48px;
  padding: var(--sp-100) var(--sp-300);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.btn-block { width: 100%; }

.btn-primary {
  background-color: var(--gold-2);
  color: var(--bg);
  border-color: var(--gold-2);
}
.btn-primary:hover {
  background-color: var(--text);
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background-color: var(--surface-3);
  border-color: var(--gold-border);
  color: var(--gold-2);
}

.btn-arrow {
  flex-shrink: 0;
  transition: transform var(--dur-hover) var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Floating Pill Header (B7) ---------- */
.site-header {
  position: fixed;
  top: var(--sp-200);
  left: var(--sp-0);
  right: var(--sp-0);
  z-index: 100;
  view-transition-name: site-header;
  display: flex;
  justify-content: center;
  padding-inline: var(--sp-200);
  pointer-events: none;
}

.header-inner {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  padding: var(--sp-75) var(--sp-100) var(--sp-75) var(--sp-200);
  border-radius: var(--r-full);
}
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-color: rgba(24, 24, 24, 0.84);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
  transition:
    background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease);
}
@media (min-width: 960px) {
  .header-inner {
    width: fit-content;
    gap: var(--sp-300);
    padding: var(--sp-75) var(--sp-75) var(--sp-75) var(--sp-200);
  }
}
.site-header.is-scrolled .header-inner::before,
body.nav-open .site-header .header-inner::before {
  background-color: rgba(24, 24, 24, 0.96);
  border-color: var(--border-strong);
}
body.nav-open .site-header .header-inner::before {
  z-index: 105;
  border-color: var(--gold-border);
}

.brand {
  position: relative;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  flex-shrink: 0;
}
.brand-logo { width: 112px; height: 28px; }
@media (min-width: 640px) { .brand-logo { width: 124px; height: 30px; } }

.header-actions {
  position: relative;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: var(--sp-75);
}
.header-cta { display: none; border-radius: var(--r-full); }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: var(--sp-0);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  cursor: pointer;
  transition:
    transform var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease);
}
.nav-toggle:active { transform: scale(0.98); }
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: var(--r-full);
  background-color: var(--text);
  transition:
    transform var(--dur-layout) var(--ease),
    background-color var(--dur-hover) var(--ease);
}
.nav-toggle[aria-expanded="true"] {
  background-color: var(--gold-surface);
  border-color: var(--gold-border);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background-color: var(--gold-2); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile Full-Height Menu (B7) */
.primary-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  height: 100dvh;
  padding: var(--sp-900) var(--sp-300) var(--sp-400);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-layout) var(--ease),
    transform var(--dur-layout) var(--ease),
    visibility 0s linear var(--dur-layout);
}
.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity var(--dur-layout) var(--ease),
    transform var(--dur-layout) var(--ease),
    visibility 0s;
}
.nav-list { display: flex; flex-direction: column; gap: var(--sp-75); }
.nav-list li { border-bottom: 1px solid var(--border); }
.nav-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease);
}
.nav-link:hover,
.nav-link:active,
.nav-link-active { color: var(--gold-2); }

/* Staggered Mobile Link Entrance (B7: 24px rise, 60ms step, capped 360ms) */
.primary-nav.is-open .nav-list li {
  animation: navIn var(--dur-layout) var(--ease) both;
}
.primary-nav.is-open .nav-list li:nth-child(2) { animation-delay: 60ms; }
.primary-nav.is-open .nav-list li:nth-child(3) { animation-delay: 120ms; }
.primary-nav.is-open .nav-list li:nth-child(4) { animation-delay: 180ms; }
.primary-nav.is-open .nav-list li:nth-child(5) { animation-delay: 240ms; }
@keyframes navIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-foot {
  display: grid;
  gap: var(--sp-100);
  justify-items: center;
}
.nav-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--gold-2);
}

@media (max-width: 959px) {
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { z-index: 110; }
}

@media (min-width: 960px) {
  .nav-toggle, .nav-mobile-foot { display: none; }
  .primary-nav {
    position: relative;
    z-index: 120;
    inset: auto;
    height: auto;
    padding: var(--sp-0);
    display: block;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .nav-list { flex-direction: row; align-items: center; gap: var(--sp-50); }
  .nav-list li { border: 0; }
  .nav-link {
    min-height: 40px;
    padding: var(--sp-75) var(--sp-100);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: var(--r-full);
  }
  .nav-link:hover {
    color: var(--text);
    background-color: var(--surface-3);
  }
  .nav-link-active {
    color: var(--text);
    background-color: var(--surface-3);
  }
}

/* ---------- Hero Section (A2, B5) ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-offset) + var(--sp-600)) var(--sp-0) var(--sp-700);
  background-color: var(--bg);
}
@media (min-width: 1024px) {
  .hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-offset) + var(--sp-500)) var(--sp-0) var(--sp-700);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-600);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: var(--sp-600);
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  margin-bottom: var(--sp-300);
  padding: var(--sp-50) var(--sp-100);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text-2);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background-color: var(--ok);
  flex-shrink: 0;
}

/* B5: Only allowed gradient — left-to-right on dark hero heading text + Fluid clamp() + Display font */
.hero-title {
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.45rem + 3.2vw, 3.85rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  background-image: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 680px;
  margin-top: var(--sp-300);
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-100);
  margin-top: var(--sp-400);
}
.hero-risk {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-100);
  max-width: 480px;
  margin-top: var(--sp-500);
  padding-top: var(--sp-300);
  border-top: 1px solid var(--border);
}
.hero-trust li {
  display: grid;
  gap: var(--sp-50);
  padding: var(--sp-100);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hero-trust strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-trust span {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

/* Interactive Connected Stack Hub (B3 Nested Radius: outer 24px - 16px pad = inner 8px) */
.hero-visual {
  display: block;
  width: 100%;
}

.stack-hub {
  padding: var(--sp-200);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
  display: grid;
  gap: var(--sp-100);
}

.stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  padding: var(--sp-100) var(--sp-200);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.stack-head-title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text);
}
.stack-cat-badge {
  padding: var(--sp-25) var(--sp-75);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--gold-2);
  background-color: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.stack-stage {
  position: relative;
  padding: var(--sp-200);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-75);
  align-items: center;
}
.stack-col {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-75);
}
.stack-lines {
  display: none;
}
.stack-core-wrap {
  display: none;
}

@media (min-width: 480px) {
  .stack-stage {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: var(--sp-100);
    min-height: 256px;
    padding: var(--sp-200);
  }
  .stack-lines {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  .stack-core-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
  }
}

.stack-path-base {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}
.stack-path-lit {
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 2;
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease);
}
.stack-path-lit.is-active {
  opacity: 1;
}

.stack-core {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background-color: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  transition:
    transform var(--dur-layout) var(--ease),
    border-color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease);
}
.stack-core.is-pulse {
  transform: scale(1.06);
  border-color: var(--gold-2);
  background-color: var(--gold-surface);
}
.stack-core img {
  width: 30px;
  height: 30px;
}

.stack-node {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  width: 100%;
  min-height: 44px;
  padding: var(--sp-75) var(--sp-100);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.stack-node:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}
.stack-node:active {
  transform: scale(0.98);
}
.stack-node.is-active {
  background-color: var(--gold-surface);
  border-color: var(--gold-2);
  color: var(--gold-2);
}
.stack-ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color var(--dur-hover) var(--ease);
}
.stack-node:hover .stack-ico { color: var(--text); }
.stack-node.is-active .stack-ico { color: var(--gold-2); }
.stack-node-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-readout {
  min-height: 68px;
  padding: var(--sp-100) var(--sp-200);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid;
  gap: var(--sp-25);
  align-content: center;
}
.stack-readout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
}
.stack-readout-tool {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--text);
}
.stack-readout-hint {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.stack-readout-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.build-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  padding: var(--sp-100) var(--sp-200);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.build-footer b { color: var(--text); font-weight: 500; }

/* ---------- Capabilities Strip ---------- */
.cap-strip {
  padding: var(--sp-300) var(--sp-0);
  background-color: var(--bg-warm);
  border-block: 1px solid var(--border);
}
.cap-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-100) var(--sp-300);
}
.cap-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text-2);
}
.cap-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background-color: var(--gold);
}

/* ---------- Audit Teaser ---------- */
.audit-teaser {
  padding: var(--sp-600) var(--sp-0);
  background-color: var(--bg);
}
.audit-teaser-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-300);
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-2xl);
  align-items: center;
}
@media (min-width: 900px) {
  .audit-teaser-box {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    padding: var(--sp-400);
    gap: var(--sp-400);
  }
}
.audit-teaser-title {
  color: var(--text);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.audit-teaser-sub {
  margin-top: var(--sp-75);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.audit-teaser-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
}
@media (min-width: 520px) {
  .audit-teaser-form { flex-direction: row; }
}

/* ---------- Warm Off-White Editorial Contrast Band + Tagline Reveal (B11) ---------- */
.tagline-section {
  padding: var(--sp-800) var(--sp-0);
  background-color: var(--paper);
  color: var(--paper-ink);
  border-block: 1px solid var(--paper-border);
}
@media (min-width: 768px) {
  .tagline-section { padding: var(--sp-900) var(--sp-0); }
}
.tagline-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  margin-bottom: var(--sp-300);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-gold);
}
.tagline-reveal {
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3.15rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--paper-ink);
}
.tagline-meta {
  margin-top: var(--sp-400);
  padding-top: var(--sp-200);
  border-top: 1px solid var(--paper-border);
  max-width: 720px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--paper-muted);
}
.js .tl-word {
  display: inline;
  color: var(--paper-muted);
  transition: color var(--dur-layout) var(--ease);
}
.js .tl-word.is-lit {
  color: var(--paper-ink);
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: var(--sp-700) var(--sp-0);
  background-color: var(--bg);
}
@media (min-width: 768px) {
  .section { padding: var(--sp-900) var(--sp-0); }
}
.section-alt {
  background-color: var(--bg-warm);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--sp-500);
}
@media (min-width: 768px) {
  .section-head { margin-bottom: var(--sp-600); }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-100);
  margin-bottom: var(--sp-200);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: var(--sp-0) var(--sp-75);
  background-color: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
}

.section-title {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.65rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.section-sub {
  max-width: 680px;
  margin-top: var(--sp-200);
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

/* ---------- Scroll Reveal (B7: 32px rise, 650ms, base curve) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js .reveal.d1 { transition-delay: 80ms; }
.js .reveal.d2 { transition-delay: 160ms; }
.js .reveal.d3 { transition-delay: 240ms; }

/* ---------- Bento Cards (B3, B4) ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-200);
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-300); }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-lg { grid-column: span 2; }
}
@media (min-width: 720px) {
  .card-wide { grid-column: 1 / -1; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition:
    border-color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    transform var(--dur-reveal) var(--ease),
    opacity var(--dur-reveal) var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-2);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-400);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--gold-2);
  background-color: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
}
.card-num {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.card-title {
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.card-lg .card-title {
  font-size: 24px;
  line-height: 32px;
}
.card-text {
  margin-top: var(--sp-100);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}
.card-lg .card-text { font-size: 16px; line-height: 24px; max-width: 56ch; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-75);
  margin-top: auto;
  padding-top: var(--sp-300);
}
.tags li {
  padding: var(--sp-50) var(--sp-100);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text-2);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.code-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  margin-top: var(--sp-300);
  padding: var(--sp-100) var(--sp-200);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cs-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background-color: var(--border-strong);
  flex-shrink: 0;
}
.code-strip code {
  margin-left: var(--sp-50);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code-strip b { color: var(--gold-2); font-weight: 500; }

.card-wide {
  flex-direction: column;
  gap: var(--sp-300);
  border-color: var(--gold-border);
}
.card-wide .card-num {
  display: block;
  margin-bottom: var(--sp-100);
  color: var(--gold-2);
}
.card-wide .card-title { font-size: 24px; line-height: 32px; }
.card-wide .card-text { font-size: 16px; line-height: 24px; max-width: 60ch; }
.card-wide .btn { align-self: flex-start; }
@media (min-width: 900px) {
  .card-wide { flex-direction: row; align-items: center; justify-content: space-between; }
  .card-wide .btn { align-self: center; }
}

/* ---------- Stats (B4: Full borders, no single-sided border) ---------- */
.stats {
  padding: var(--sp-600) var(--sp-0);
  background-color: var(--bg-warm);
  border-block: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-200);
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-300); }
}
.stat {
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.stat-num {
  display: flex;
  align-items: baseline;
  gap: var(--sp-25);
  color: var(--text);
  font-family: var(--mono);
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat-num small { font-size: 20px; line-height: 28px; color: var(--gold-2); }
.stat-label {
  margin-top: var(--sp-100);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Process Timeline (A2: 3 Clear Steps) ---------- */
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-200);
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-300); }
}
.step {
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: grid;
  align-content: start;
  gap: var(--sp-100);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--gold-2);
  background-color: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-100);
}
.step-title {
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.step-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- Standards ---------- */
.standards-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-400);
}
@media (min-width: 1024px) {
  .standards-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--sp-700);
    align-items: start;
  }
  .sticky-head { position: sticky; top: var(--sp-900); margin-bottom: var(--sp-0); }
}
.standards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-200);
}
@media (min-width: 640px) {
  .standards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-300); }
}
.standard {
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--dur-hover) var(--ease);
}
.standard:hover { border-color: var(--border-strong); }
.standard-code {
  display: inline-block;
  margin-bottom: var(--sp-200);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.standard-title {
  color: var(--text);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}
.standard-text {
  margin-top: var(--sp-75);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-400);
}
@media (min-width: 1024px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--sp-700);
    align-items: start;
  }
}
.faq-list {
  display: grid;
  gap: var(--sp-100);
}
.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding-inline: var(--sp-300);
  transition: border-color var(--dur-hover) var(--ease);
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  min-height: 64px;
  padding-block: var(--sp-200);
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-hover) var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--gold-2); }
.faq-q::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 28px;
  color: var(--gold-2);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  transition: transform var(--dur-layout) var(--ease), background-color var(--dur-hover) var(--ease);
}
.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
  background-color: var(--gold-surface);
  border-color: var(--gold-border);
}
.faq-a {
  padding: var(--sp-0) var(--sp-400) var(--sp-300) var(--sp-0);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- Contact ---------- */
.contact {
  border-top: 1px solid var(--border);
  background-color: var(--bg-warm);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-500);
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--sp-700);
    align-items: start;
  }
}

.contact-title {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.direct-card {
  margin-top: var(--sp-400);
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.mini-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.direct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  flex-wrap: wrap;
  margin-top: var(--sp-75);
}
.direct-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-2);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  word-break: break-word;
}
.direct-email:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn-copy {
  min-width: 64px;
  min-height: 40px;
  padding: var(--sp-75) var(--sp-200);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    transform var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.btn-copy:hover { border-color: var(--gold-border); color: var(--gold-2); }
.btn-copy:active { transform: scale(0.98); }

.copy-status,
.form-status {
  min-height: 20px;
  margin-top: var(--sp-100);
  font-size: 14px;
  line-height: 20px;
  color: var(--gold-2);
}
.form-status.is-error { color: var(--err); }
.form-status.is-success { color: var(--ok); }

.social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-100);
  margin-top: var(--sp-200);
  padding-top: var(--sp-200);
  border-top: 1px solid var(--border);
}
.social-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-75);
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  min-height: 44px;
  padding: var(--sp-75) var(--sp-200);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition:
    transform var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.social-pill:hover { border-color: var(--gold-border); color: var(--gold-2); }
.social-pill:active { transform: scale(0.98); }
.social-icon { flex-shrink: 0; }

/* Contact Form (Outer 24px, pad 24px/16px -> inner inputs 8px per B3) */
.contact-form {
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
}
@media (min-width: 640px) { .contact-form { padding: var(--sp-400); } }
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-0) var(--sp-200);
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.field { margin-bottom: var(--sp-200); }
.field-label {
  display: block;
  margin-bottom: var(--sp-75);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--text);
}
.field-input {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-100) var(--sp-200);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur-hover) var(--ease);
}
.field-input::placeholder { color: var(--muted); }
.field-input:hover { border-color: #52525B; }
.field-input:focus { outline: none; border-color: var(--gold-2); }
.field-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--sp-500);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-2) 50%),
    linear-gradient(135deg, var(--gold-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field-textarea { min-height: 128px; resize: vertical; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--sp-700) var(--sp-0) var(--sp-400);
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-500);
}
@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
    gap: var(--sp-700);
    align-items: start;
  }
}
.footer-brand { max-width: 36ch; }
.footer-logo { width: 132px; height: 32px; }
.footer-tagline {
  margin-top: var(--sp-200);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  margin-top: var(--sp-300);
  padding: var(--sp-50) var(--sp-100);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-400) var(--sp-300);
}
@media (min-width: 640px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer-col-title {
  margin-bottom: var(--sp-100);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.footer-col-list { display: grid; gap: var(--sp-0); }
.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  transition: color var(--dur-hover) var(--ease);
  word-break: break-word;
}
.footer-link:hover { color: var(--gold-2); }
.footer-link-strong { color: var(--text); font-weight: 500; }

.footer-word {
  width: 100%;
  height: auto;
  margin: var(--sp-600) var(--sp-0) var(--sp-300);
  opacity: 0.28;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  padding-top: var(--sp-300);
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-copy { font-size: 14px; line-height: 20px; color: var(--muted); }
.footer-top-link { font-family: var(--mono); font-size: 12px; line-height: 16px; }

/* ---------- Dedicated Audit Page (/audit) ---------- */
.audit-hero {
  padding: calc(var(--header-offset) + var(--sp-600)) var(--sp-0) var(--sp-600);
  background-color: var(--bg);
}
.audit-shell { max-width: 820px; }
.audit-title {
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  background-image: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.audit-lead {
  max-width: 680px;
  margin-top: var(--sp-300);
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
}
.audit-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-100);
  margin-top: var(--sp-400);
}
@media (min-width: 560px) {
  .audit-form { flex-direction: row; }
}
.audit-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: var(--sp-100) var(--sp-200);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur-hover) var(--ease);
}
.audit-input::placeholder { color: var(--muted); }
.audit-input:focus { outline: none; border-color: var(--gold-2); }

.audit-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-75);
  margin-top: var(--sp-200);
}
.audit-sample-label { font-size: 14px; line-height: 20px; color: var(--muted); }
.audit-chip {
  min-height: 40px;
  padding: var(--sp-75) var(--sp-100);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    transform var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.audit-chip:hover { border-color: var(--gold-border); color: var(--gold-2); }
.audit-chip:active { transform: scale(0.98); }

.audit-status {
  min-height: 24px;
  margin-top: var(--sp-200);
  font-size: 14px;
  line-height: 20px;
  color: var(--gold-2);
}
.audit-status.is-error { color: var(--err); }
.audit-status.is-success { color: var(--ok); }

.audit-results-section { padding-top: var(--sp-300); }
.audit-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-300);
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-2xl);
  margin-bottom: var(--sp-300);
}
@media (min-width: 860px) {
  .audit-summary-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    padding: var(--sp-400);
  }
}
.audit-grade-wrap { display: flex; align-items: center; gap: var(--sp-300); }
.audit-grade {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  color: var(--bg);
  background-color: var(--gold-2);
  border-radius: var(--r-md);
}
.audit-score-line {
  color: var(--text);
  font-family: var(--mono);
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
}
.audit-score-line small { font-size: 18px; line-height: 28px; color: var(--muted); }
.audit-target {
  margin-top: var(--sp-50);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  word-break: break-word;
}

.audit-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-100);
  align-items: stretch;
}
.audit-cat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-200);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
@media (min-width: 640px) {
  .audit-cat .mini-label {
    white-space: nowrap;
  }
}
.audit-cat strong {
  display: block;
  margin-top: var(--sp-75);
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.audit-pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-200);
}
@media (min-width: 960px) {
  .audit-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-300); }
}
.audit-pillar {
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.audit-pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
  padding-bottom: var(--sp-200);
  margin-bottom: var(--sp-200);
  border-bottom: 1px solid var(--border);
}
.audit-pillar-title { color: var(--text); font-size: 16px; line-height: 24px; font-weight: 600; }
.audit-pillar-score { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--gold-2); }

.audit-check-list { display: grid; gap: var(--sp-200); }
.audit-check-item { display: flex; align-items: flex-start; gap: var(--sp-100); }
.audit-badge {
  flex-shrink: 0;
  min-width: 48px;
  padding: var(--sp-25) var(--sp-75);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  border-radius: var(--r-sm);
}
.audit-badge.is-pass { color: var(--ok); background-color: var(--ok-surface); border: 1px solid var(--ok-border); }
.audit-badge.is-warn { color: var(--warn); background-color: var(--warn-surface); border: 1px solid var(--warn-border); }
.audit-badge.is-fail { color: var(--err); background-color: var(--err-surface); border: 1px solid var(--err-border); }
.audit-check-body { display: grid; gap: var(--sp-25); min-width: 0; }
.audit-check-body strong { color: var(--text); font-size: 14px; line-height: 20px; font-weight: 500; }
.audit-check-body span { color: var(--muted); font-size: 12px; line-height: 16px; word-break: break-word; }

.audit-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-400);
  margin-top: var(--sp-400);
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-2xl);
}
@media (min-width: 900px) {
  .audit-lead-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: var(--sp-400);
  }
}
.audit-lead-title {
  color: var(--text);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

/* ---------- Legal / Privacy Page (/privacy) ---------- */
.legal-hero {
  padding: calc(var(--header-offset) + var(--sp-600)) var(--sp-0) var(--sp-500);
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
}
.legal-shell { max-width: 820px; }
.legal-title {
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  background-image: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-meta {
  margin-top: var(--sp-200);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--gold-2);
}
.legal-meta strong { color: var(--text); font-weight: 500; }
.legal-intro {
  margin-top: var(--sp-300);
  max-width: 680px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 24px;
}
.legal-body { padding-top: var(--sp-600); }
.legal-body .legal-shell { display: grid; gap: var(--sp-200); }
.legal-card {
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.legal-card h2 {
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: var(--sp-100);
}
.legal-card p { color: var(--muted); font-size: 16px; line-height: 24px; }
.legal-card p + p { margin-top: var(--sp-200); }
.legal-card strong { color: var(--text); font-weight: 600; }
.legal-list {
  display: grid;
  gap: var(--sp-75);
  margin: var(--sp-200) var(--sp-0);
  padding-left: var(--sp-300);
  list-style: disc;
  color: var(--text-2);
  font-size: 16px;
  line-height: 24px;
}
.legal-list li::marker { color: var(--gold-2); }

/* ---------- Booking Page (/book) ---------- */
.book-hero {
  padding: calc(var(--header-offset) + var(--sp-600)) var(--sp-0) var(--sp-700);
  background-color: var(--bg);
}
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-500);
  align-items: start;
}
@media (min-width: 1024px) {
  .book-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: var(--sp-600);
  }
}
.book-title {
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  background-image: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.book-lead {
  margin-top: var(--sp-200);
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
}
.book-highlights {
  display: grid;
  gap: var(--sp-100);
  margin-top: var(--sp-300);
}
.book-highlights li {
  display: grid;
  gap: var(--sp-25);
  padding: var(--sp-200);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.book-highlights strong { color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; }
.book-highlights span { color: var(--muted); font-size: 14px; line-height: 20px; }

.book-panel {
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2xl);
}
@media (min-width: 640px) { .book-panel { padding: var(--sp-400); } }

.book-step + .book-step {
  margin-top: var(--sp-300);
  padding-top: var(--sp-300);
  border-top: 1px solid var(--border);
}
.book-step-head {
  display: flex;
  align-items: center;
  gap: var(--sp-100);
  margin-bottom: var(--sp-200);
  flex-wrap: wrap;
}
.book-step-num {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 28px;
  padding: var(--sp-0) var(--sp-75);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--gold-2);
  background-color: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
}
.book-step-title { color: var(--text); font-size: 16px; line-height: 24px; font-weight: 600; }
.book-step-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(80px, 1fr);
  gap: var(--sp-75);
  min-height: 76px;
  overflow-x: auto;
  padding-bottom: var(--sp-75);
  scrollbar-width: thin;
}
.date-pill {
  display: grid;
  gap: var(--sp-25);
  justify-items: center;
  min-height: 64px;
  padding: var(--sp-75);
  color: var(--text-2);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    transform var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.date-pill:hover { border-color: var(--gold-border); color: var(--text); }
.date-pill:active { transform: scale(0.98); }
.date-pill.is-selected {
  color: var(--bg);
  background-color: var(--gold-2);
  border-color: var(--gold-2);
}
.date-dow { font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; opacity: 0.85; }
.date-num { font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-75);
  min-height: 230px;
  max-height: 230px;
  align-content: start;
  overflow-y: auto;
  padding-right: var(--sp-50);
}
@media (min-width: 560px) { .slot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot-btn {
  min-height: 44px;
  padding: var(--sp-75) var(--sp-50);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-2);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    transform var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.slot-btn:hover:not(:disabled) { border-color: var(--gold-border); color: var(--gold-2); }
.slot-btn:active:not(:disabled) { transform: scale(0.98); }
.slot-btn.is-selected {
  color: var(--bg);
  font-weight: 600;
  background-color: var(--gold-2);
  border-color: var(--gold-2);
}
.slot-btn:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}
.book-empty { color: var(--muted); font-size: 14px; line-height: 20px; }

.book-confirm { text-align: left; }
.book-confirm-badge {
  display: inline-block;
  margin-bottom: var(--sp-200);
  padding: var(--sp-50) var(--sp-100);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--warn);
  background-color: var(--warn-surface);
  border: 1px solid var(--warn-border);
  border-radius: var(--r-full);
}
.book-confirm-title { color: var(--text); font-size: 24px; line-height: 32px; font-weight: 600; }
.book-confirm-text { margin-top: var(--sp-100); color: var(--muted); font-size: 16px; line-height: 24px; }
.book-confirm-meta {
  display: grid;
  gap: var(--sp-100);
  margin: var(--sp-300) var(--sp-0);
  padding: var(--sp-200);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.book-confirm-meta dt { font-family: var(--mono); font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--muted); }
.book-confirm-meta dd { margin: var(--sp-25) var(--sp-0) var(--sp-0); color: var(--text); font-size: 16px; line-height: 24px; font-weight: 500; }

/* ---------- Open Source Proof Grid (.oss-grid) ---------- */
.oss-head-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  margin-bottom: var(--sp-500);
}
.oss-head-row .section-head {
  margin-bottom: var(--sp-0);
}
@media (min-width: 960px) {
  .oss-head-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--sp-600);
  }
}
.oss-gh-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  min-height: 44px;
  padding: var(--sp-75) var(--sp-200);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--gold-2);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  white-space: nowrap;
  align-self: flex-start;
  transition:
    transform var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
@media (min-width: 960px) {
  .oss-gh-link { align-self: flex-end; }
}
.oss-gh-link:hover {
  border-color: var(--gold-border);
  background-color: var(--gold-surface);
  color: var(--text);
  transform: translateY(-1px);
}
.oss-gh-link:active { transform: scale(0.98); }

.oss-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-300);
}
@media (min-width: 960px) {
  .oss-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oss-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-200);
  min-width: 0;
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  transition:
    border-color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    transform var(--dur-reveal) var(--ease),
    opacity var(--dur-reveal) var(--ease);
}
.oss-card:hover {
  border-color: var(--gold-border);
  background-color: var(--surface-2);
}

.oss-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--sp-50) var(--sp-100);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--gold-2);
  background-color: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
}
.oss-title {
  color: var(--text);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}
.oss-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.oss-cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-75);
  min-width: 0;
  padding: var(--sp-75) var(--sp-75) var(--sp-75) var(--sp-100);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
}
.oss-cmd code {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
  scrollbar-width: none;
}
.oss-cmd code::-webkit-scrollbar { display: none; }
.oss-cmd-copy {
  flex-shrink: 0;
  min-height: 36px;
  padding: var(--sp-50) var(--sp-100);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--text);
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition:
    transform var(--dur-hover) var(--ease),
    border-color var(--dur-hover) var(--ease),
    background-color var(--dur-hover) var(--ease),
    color var(--dur-hover) var(--ease);
}
.oss-cmd-copy:hover {
  border-color: var(--gold-border);
  background-color: var(--gold-surface);
  color: var(--gold-2);
}
.oss-cmd-copy:active { transform: scale(0.98); }

.oss-proof {
  padding: var(--sp-100) var(--sp-200);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.oss-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-75) var(--sp-200);
  margin-top: auto;
  padding-top: var(--sp-200);
  border-top: 1px solid var(--border);
}
.oss-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--gold-2);
  transition: color var(--dur-hover) var(--ease);
}
.oss-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Audit Page CLI Callout Bar ---------- */
.cli-callout {
  margin-top: var(--sp-400);
  padding: var(--sp-300);
  background-color: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-2xl);
  display: grid;
  gap: var(--sp-200);
}
.cli-callout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-100);
}
.cli-callout-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.cli-callout-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-200);
}
.cli-callout-copy {
  color: var(--text-2);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- 404 Page (B10) ---------- */
.notfound-hero {
  min-height: 75svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-offset) + var(--sp-700)) var(--sp-0) var(--sp-700);
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-100);
  margin-top: var(--sp-400);
}

/* ---------- Reduced Motion (B7, B11, View Transitions) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .tl-word { color: var(--paper-ink); }
}
