/* ============================================================
   1. CUSTOM PROPERTIES (design tokens)
   ============================================================ */
:root {
  --ink:        #0A0A0B;
  --ink-2:      #1A1A1D;
  --ink-3:      #2A2A2E;
  --paper:      #FFFFFF;
  --paper-2:    #F4F4F2;
  --paper-3:    #E8E8E4;
  --bone:       #FAFAF8;
  --line:       rgba(10,10,11,0.14);
  --line-soft:  rgba(10,10,11,0.08);
  --line-dark:  rgba(244,239,230,0.14);
  --muted:      rgba(10,10,11,0.58);
  --muted-dark: rgba(244,239,230,0.62);

  --blue:       #0655FF;
  --blue-2:     #0444CC;
  --blue-tint:  #DCE5FF;
  --blue-deep:  #03257A;
  --signal:     #B5FF3C;
  --rust:       #C2410C;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --container: 1320px;
  --gutter: 32px;
  --section-y: clamp(76px, 9vw, 120px);

  --font-sans:  "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "IBM Plex Serif", "Times New Roman", serif;

  --t1: cubic-bezier(.2,.7,.2,1);
  --t2: cubic-bezier(.7,0,.3,1);
}

/* ============================================================
   2. BASE / RESET
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--ink); color: var(--paper); }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--r); z-index: 9999;
}
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.band-ink :focus-visible, .band-blue :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   3. LAYOUT — wrap, sections, bands
   ============================================================ */
.wrap { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 1060px; }
main { display: block; }
.section { padding: var(--section-y) 0; position: relative; }

.band-paper { background: var(--paper); color: var(--ink); }
.band-bone  { background: var(--bone);  color: var(--ink); }
.band-ink   { background: var(--ink);   color: var(--bone); }
.band-ink a { color: var(--bone); }

.lede {
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.45;
  max-width: 760px;
  margin: 0 0 8px;
  text-wrap: pretty;
  color: var(--ink);
}
.band-ink .lede { color: var(--bone); }
.section-head { margin-bottom: 48px; }
.section-head .lede { margin-top: 18px; }

/* decorative brand square (geometric primitive, not a label) */
.mark-sq {
  width: 12px; height: 12px; background: var(--blue);
  display: inline-block; margin-bottom: 22px;
}
.band-ink .mark-sq { background: var(--signal); }

/* ============================================================
   4. TYPOGRAPHY — display + section + card headings
   ============================================================ */
.h-display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h-display em { font-style: italic; font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }
.h-display .accent { color: var(--blue); font-style: italic; font-family: var(--font-serif); font-weight: 400; }

.h-section {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h-section em { font-style: italic; font-family: var(--font-serif); font-weight: 400; }
.band-ink .h-section { color: var(--bone); }

.h-card {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-card em { font-style: italic; font-family: var(--font-serif); font-weight: 400; }

.eyebrow-num {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--muted);
}
.band-ink .eyebrow-num { color: var(--muted-dark); }

p { margin: 0 0 18px; }
.prose p { font-size: clamp(16px, 1.05vw, 17.5px); line-height: 1.62; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { font-weight: 600; }
.band-ink .prose p { color: rgba(244,239,230,0.82); }
.band-ink .prose strong { color: var(--bone); }

.text-link {
  color: var(--blue);
  border-bottom: 1px solid rgba(6,85,255,0.4);
  padding-bottom: 1px;
  transition: border-color .15s var(--t1), color .15s var(--t1);
}
.text-link:hover { border-color: var(--blue); }

/* ============================================================
   5. COMPONENTS
   ============================================================ */
/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  min-height: 48px;
  transition: transform .2s var(--t1), background .2s var(--t1), color .2s var(--t1), border-color .2s var(--t1);
}
.btn .arr { transition: transform .25s var(--t1); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.band-ink .btn-ghost { color: var(--bone); border-color: var(--line-dark); }
.band-ink .btn-ghost:hover { border-color: var(--bone); }

/* --- pills / chips --- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.03em;
  border: 1px solid var(--line);
  background: var(--bone);
  color: var(--ink);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.band-ink .pill { border-color: var(--line-dark); background: rgba(255,255,255,0.04); color: var(--bone); }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--t1), background .25s var(--t1);
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 14px 28px -24px rgba(10,10,11,0.5); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14.5px; color: var(--ink); padding: 9px 13px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s var(--t1);
}
.nav-link:hover { background: rgba(10,10,11,0.06); }
.nav-link[aria-current="page"] { color: var(--blue); font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-status { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.nav-status .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #16A34A;
  box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 2.4s infinite;
}
.nav .btn { height: 44px; min-height: 44px; padding: 0 18px; }
.nav-burger {
  display: none; width: 46px; height: 46px; border-radius: 8px; border: 1px solid var(--line);
  align-items: center; justify-content: center;
}

/* --- mobile drawer --- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,10,11,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--t1), visibility .3s var(--t1);
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(380px, 86vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .34s var(--t1);
  display: flex; flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-close { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; }
.drawer-links { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 22px; }
.drawer-links a {
  font-size: 18px; padding: 14px 12px; border-radius: 8px; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-links a[aria-current="page"] { color: var(--blue); }
.drawer .btn { width: 100%; justify-content: center; }
.drawer-meta { margin-top: auto; padding-top: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* --- cards --- */
.card {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.band-ink .card { background: var(--ink-2); border-color: var(--ink-3); color: var(--bone); }

/* --- comparison tables (shared, responsive) --- */
.table-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}
.cmp {
  font-size: 15px;
}
.cmp caption { text-align: left; }
.cmp thead th {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  vertical-align: bottom;
  padding: 18px 20px;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
.cmp tbody th {
  text-align: left; font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 18px 20px; vertical-align: top; color: var(--ink);
  width: 22%;
}
.cmp tbody td {
  padding: 18px 20px; vertical-align: top; color: var(--muted);
  line-height: 1.45;
  border-left: 1px solid var(--line-soft);
}
.cmp tbody tr + tr th, .cmp tbody tr + tr td { border-top: 1px solid var(--line); }
.cmp .col-spec {
  background: rgba(6,85,255,0.05);
  color: var(--ink);
  font-weight: 600;
  border-left: 2px solid var(--blue);
}
.cmp thead .col-spec { background: rgba(6,85,255,0.10); color: var(--blue); }
.cmp tbody tr:hover td:not(.col-spec) { background: rgba(10,10,11,0.015); }

/* ============================================================
   6. SECTION-SPECIFIC PATTERNS
   ============================================================ */
/* --- hero --- */
.hero { padding: clamp(48px, 6vw, 84px) 0 0; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 28px; }
.hero-sub {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-sub b { font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* mini decision compass (hero right, decorative preview of §3) */
.compass {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(rgba(6,85,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,85,255,0.05) 1px, transparent 1px),
    var(--bone);
  background-size: 28px 28px, 28px 28px, auto;
  padding: 22px 22px 20px;
  position: relative;
}
.compass-cap {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 16px;
}
.compass-cap .sig { color: var(--blue); }
.compass-axes { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: 1fr 18px; gap: 8px; }
.compass-y {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.compass-x {
  grid-column: 2;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; justify-content: space-between;
  padding-top: 6px; border-top: 1px solid var(--line);
}
.compass-quads {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  aspect-ratio: 1 / 0.92;
}
.compass-quad {
  background: var(--bone); padding: 13px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  min-height: 78px;
}
.compass-quad .qm { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.compass-quad .qd { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); opacity: 0.5; }
.compass-quad:nth-child(1) { background: #fff; }
.compass-quad:nth-child(1) .qd { opacity: 1; }

/* --- trust strip (proof metrics) --- */
.trust-strip {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-items {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 22px;
}
.trust-item {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em;
  color: var(--ink);
}
.trust-item .num {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.trust-item .num .plus { color: var(--blue); }
.trust-item .lbl { color: var(--muted); }
.trust-sep { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--blue); flex-shrink: 0; }

/* --- build vs buy prose grid --- */
.bvb-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.bvb-grid .lede { margin-bottom: 0; }
.bvb-prose .prose p { margin-bottom: 20px; }
.bvb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 44px; }
@media (max-width: 760px) { .bvb-cols { grid-template-columns: 1fr; gap: 20px; } }
.bvb-table-wrap { margin-top: 52px; }

/* --- decision matrix (signature) --- */
.matrix-band { position: relative; overflow: hidden; }
.matrix-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,85,255,0.12), transparent 42%),
    radial-gradient(80% 60% at 100% 0%, rgba(6,85,255,0.14), transparent 55%);
}
.matrix-band .wrap { position: relative; z-index: 1; }
.matrix-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-top: 8px;
}
.matrix {
  position: relative;
  border: 1px solid var(--ink-3);
  border-radius: var(--r-lg);
  background: #050506;
  padding: clamp(20px, 3vw, 40px);
}
.matrix-axislabel {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark); display: flex; align-items: center; gap: 8px;
}
.matrix-axis-y {
  position: absolute; left: clamp(-2px, 0.5vw, 6px); top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
}
.matrix-plot-wrap { padding-left: 26px; }
.matrix-plot {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(6,85,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,85,255,0.10) 1px, transparent 1px),
    #050506;
  background-size: 12.5% 12.5%, 12.5% 12.5%, auto;
}
.matrix-quadwrap { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.quad {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  text-align: left;
  padding: clamp(13px, 1.6vw, 22px);
  border: 0;
  background: transparent;
  color: var(--bone);
  transition: background .25s var(--t1);
}
.quad:nth-child(1) { border-right: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); } /* TL */
.quad:nth-child(2) { border-bottom: 1px solid var(--ink-3); } /* TR */
.quad:nth-child(3) { border-right: 1px solid var(--ink-3); } /* BL */
.quad:hover { background: rgba(6,85,255,0.10); }
.quad.active { background: rgba(6,85,255,0.16); }
.quad-pos { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-dark); }
.quad.active .quad-pos { color: var(--signal); }
.quad-model { font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; color: var(--bone); }
.quad-sit { font-size: 12.5px; line-height: 1.42; color: var(--muted-dark); }
.quad-arrow { font-family: var(--font-mono); font-size: 11px; color: var(--signal); opacity: 0; transition: opacity .2s var(--t1); }
.quad.active .quad-arrow, .quad:hover .quad-arrow { opacity: 1; }

/* crosshair + plot dot */
.cross-h, .cross-v { position: absolute; z-index: 2; background: rgba(6,85,255,0.55); pointer-events: none; transition: left .4s var(--t1), top .4s var(--t1), opacity .3s var(--t1); }
.cross-h { left: 0; right: 0; top: 50%; height: 1px; }
.cross-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.plot-dot {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--signal);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(181,255,60,0.18), 0 0 16px rgba(181,255,60,0.5);
  transition: left .4s var(--t1), top .4s var(--t1), opacity .3s var(--t1);
  pointer-events: none;
  opacity: 0;
}
.matrix.placed .plot-dot { opacity: 1; }
.matrix.placed .cross-h, .matrix.placed .cross-v { background: rgba(181,255,60,0.4); }

.matrix-edge {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-dark); margin-top: 12px; padding-left: 26px;
}
.matrix-ymarks { position: absolute; left: 24px; top: clamp(20px,3vw,40px); bottom: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.matrix-ymarks span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dark); writing-mode: vertical-rl; transform: rotate(180deg); }

/* readout */
.matrix-readout {
  margin-top: 18px;
  border: 1px solid var(--ink-3);
  border-radius: var(--r);
  background: rgba(255,255,255,0.03);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  min-height: 56px;
}
.matrix-readout .ro-coord { color: var(--muted-dark); }
.matrix-readout .ro-coord b { color: var(--bone); font-weight: 600; }
.matrix-readout .ro-arrow { color: var(--signal); }
.matrix-readout .ro-model { color: var(--signal); font-weight: 600; }
.matrix-readout.idle .ro-model { color: var(--muted-dark); }

.matrix-side .lede { margin-bottom: 22px; }
.matrix-help {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--muted-dark); margin-top: 18px; display: flex; align-items: center; gap: 8px;
}
.matrix-help .k {
  border: 1px solid var(--line-dark); border-radius: 4px; padding: 2px 7px; color: var(--bone);
}

/* matrix data table (also the accessible equivalent) */
.matrix-data { margin-top: clamp(40px, 5vw, 64px); }
.matrix-data .cmp thead th { background: var(--ink-2); color: var(--muted-dark); border-bottom-color: var(--ink-3); }
.matrix-data .table-frame { border-color: var(--ink-3); background: var(--ink); }
.matrix-data .cmp tbody th { color: var(--bone); }
.matrix-data .cmp tbody td { color: var(--muted-dark); border-left-color: var(--ink-3); }
.matrix-data .cmp tbody tr + tr th, .matrix-data .cmp tbody tr + tr td { border-top-color: var(--ink-3); }
.matrix-data .cmp .col-spec { background: rgba(6,85,255,0.16); color: #fff; border-left-color: var(--blue); }
.matrix-data .cmp tbody tr:hover td:not(.col-spec) { background: rgba(255,255,255,0.02); }

/* --- four models --- */
.models-list { display: flex; flex-direction: column; gap: 22px; }
.model {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone);
  padding: clamp(26px, 3vw, 40px);
  align-items: start;
}
.model:hover { background: #fff; }
.model-head .idx {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.model-head .idx::before { content: ""; width: 9px; height: 9px; background: var(--blue); }
.model-head h3 {
  font-family: var(--font-sans); font-weight: 500; font-size: clamp(24px, 2.3vw, 33px);
  letter-spacing: -0.025em; line-height: 1.04; margin: 0 0 18px;
}
.model-head .prose p { color: var(--muted); }
.spec { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 2px 0 0; }
.spec-row dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }

/* --- five-phase backbone --- */
.phase-table .table-frame { background: var(--paper); }
.phase {
  display: grid;
  grid-template-columns: 64px 1fr 150px 1fr;
  gap: clamp(16px, 2vw, 32px);
  padding: 26px 24px;
  align-items: start;
}
.phase + .phase { border-top: 1px solid var(--line); }
.phase:hover { background: var(--bone); }
.phase-n {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 40px; line-height: 0.9; color: var(--blue); letter-spacing: -0.02em;
}
.phase-what h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.2; }
.phase-what p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.phase-dur, .phase-deliv { font-size: 14px; line-height: 1.5; }
.phase-meta-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.phase-dur .v { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.phase-deliv .v { color: var(--ink); }
.phase-closing { margin-top: 40px; max-width: 880px; }
.phase-closing .prose p { font-size: clamp(16px, 1.1vw, 18px); }

/* --- evaluate checklist --- */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bone);
  padding: 26px 26px 26px 26px; position: relative;
}
.check:hover { background: #fff; }
.check-n { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.check-n .tick {
  width: 20px; height: 20px; border-radius: 5px; background: var(--blue); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.check-n .tick svg { width: 12px; height: 12px; }
.check h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.28; margin: 0 0 10px; }
.check p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* --- why differentiators --- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-3); border: 1px solid var(--ink-3); border-radius: var(--r-lg); overflow: hidden; }
.why-item { background: var(--ink); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 14px; transition: background .2s var(--t1); }
.why-item:hover { background: var(--ink-2); }
.why-item .idx { font-family: var(--font-mono); font-size: 12px; color: var(--signal); letter-spacing: 0.06em; }
.why-item h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.16; margin: 0; color: var(--bone); }
.why-item p { font-size: 15px; line-height: 1.6; color: var(--muted-dark); margin: 0; }
.why-item p strong { color: var(--bone); font-weight: 600; }

/* --- faq --- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: grid; grid-template-columns: 44px 1fr 34px; gap: 14px;
  align-items: start; padding: 24px 0; text-align: left;
}
.faq-q .qi { font-family: var(--font-mono); font-size: 12px; color: var(--blue); padding-top: 4px; letter-spacing: 0.04em; }
.faq-q .qt { font-size: clamp(17px, 1.2vw, 19px); font-weight: 500; letter-spacing: -0.012em; line-height: 1.34; }
.faq-q .ic { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); justify-self: end; align-self: start; transition: background .2s var(--t1), border-color .2s var(--t1); }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink); transition: transform .3s var(--t1); }
.faq-q .ic::before { width: 11px; height: 1.6px; transform: translate(-50%,-50%); }
.faq-q .ic::after { width: 1.6px; height: 11px; transform: translate(-50%,-50%); }
.faq-item[aria-expanded="true"] .faq-q .ic { background: var(--ink); border-color: var(--ink); }
.faq-item[aria-expanded="true"] .faq-q .ic::before, .faq-item[aria-expanded="true"] .faq-q .ic::after { background: var(--bone); }
.faq-item[aria-expanded="true"] .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--t1); }
.faq-a > div { overflow: hidden; }
.faq-item[aria-expanded="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a .inner { padding: 0 34px 28px 58px; font-size: 15.5px; line-height: 1.62; color: var(--muted); max-width: 760px; }

/* --- related pages --- */
.related-list { border-top: 1px solid var(--line); }
.related-row {
  display: grid; grid-template-columns: 0.9fr 1.6fr 120px; gap: 24px;
  align-items: center; padding: 26px 12px; border-bottom: 1px solid var(--line);
  position: relative; transition: background .2s var(--t1); border-radius: 8px;
}
.related-row:hover { background: #fff; }
.related-row .rname { font-size: clamp(18px, 1.4vw, 22px); font-weight: 500; letter-spacing: -0.018em; }
.related-row .rwhy { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.related-row .rgo { justify-self: end; font-family: var(--font-mono); font-size: 12px; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.related-row:hover .rgo { color: var(--blue); }
.related-row .rgo .arr { transition: transform .2s var(--t1); }
.related-row:hover .rgo .arr { transform: translateX(3px); }
.related-row::after { content: ""; position: absolute; inset: 0; }
.related-row a.rname-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* --- final cta (blue atmospheric) --- */
.final-cta {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 90% at 92% 4%, rgba(122,160,255,0.34), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(2,28,118,0.5), transparent 62%),
    linear-gradient(122deg, #0858FF 0%, #0A45DC 52%, #0334B8 100%);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 28% 40%, black, transparent 82%);
  -webkit-mask-image: radial-gradient(circle at 28% 40%, black, transparent 82%);
}
.final-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(8px 8px at 12% 26%, rgba(255,255,255,0.5), transparent 70%),
    radial-gradient(7px 7px at 84% 72%, rgba(181,255,60,0.75), transparent 70%);
}
.final-cta .wrap { position: relative; z-index: 1; }
.final-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.final-cta h2 {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 24px; color: #fff; text-wrap: balance;
}
.final-cta h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: rgba(255,255,255,0.82); }
.final-cta .final-sub { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: rgba(255,255,255,0.86); max-width: 620px; margin: 0 0 30px; }
.final-cta .btn-primary { background: #fff; color: var(--blue); }
.final-cta .btn-primary:hover { background: var(--ink); color: #fff; }
.final-contact {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.22);
  font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,0.85);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px;
}
.final-contact a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 1px; }
.final-contact a:hover { border-color: #fff; }
.final-contact .sep { color: rgba(255,255,255,0.5); }

/* founder card on blue */
.founder-card {
  background: var(--bone); color: var(--ink);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(2,20,90,0.6), 0 8px 24px rgba(2,20,90,0.3);
  border: 1px solid rgba(255,255,255,0.4);
}
.founder-photo {
  aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden;
  background: var(--paper-3); margin-bottom: 18px; position: relative;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.founder-photo .cap {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em;
  background: rgba(250,250,248,0.92); border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 4px; color: var(--ink);
}
.founder-card .fname { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.founder-card .fcred {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted);
}
.founder-card .fcred .gd { width: 7px; height: 7px; border-radius: 50%; background: #76B900; }

/* --- footer --- */
.footer { background: var(--ink); color: var(--bone); padding: clamp(64px, 7vw, 88px) 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand-logo { height: 52px; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 20px; }
.footer-brand .desc { color: var(--muted-dark); font-size: 14px; line-height: 1.62; margin: 0; max-width: 360px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--bone); font-size: 14px; transition: color .15s var(--t1); }
.footer-col a:hover { color: #7AA0FF; }
.footer-bot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-top: 26px; font-family: var(--font-mono); font-size: 11px; color: var(--muted-dark); letter-spacing: 0.03em;
}
.footer-bot > :first-child { justify-self: start; }
.footer-bot > :nth-child(2) { justify-self: center; }
.footer-bot > :last-child { justify-self: end; }
.footer-bot .legal { display: flex; gap: 22px; }
.footer-bot a:hover { color: var(--bone); }
.footer-social { display: inline-flex; gap: 18px; }

/* --- sticky cta + back to top --- */
.sticky-cta {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 90px);
  z-index: 70; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 18px; background: var(--ink); color: var(--bone);
  border-radius: 999px; font-size: 14px;
  box-shadow: 0 18px 40px -10px rgba(10,10,11,0.45);
  transition: transform .35s var(--t1), opacity .25s var(--t1);
  opacity: 0; pointer-events: none;
}
.sticky-cta.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sticky-cta .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(181,255,60,.6); animation: pulse-sig 2.4s infinite; }
.sticky-cta .label { white-space: nowrap; }
.sticky-cta .cta-btn { background: var(--blue); color: #fff; padding: 9px 15px; border-radius: 999px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.sticky-cta .cta-btn:hover { background: var(--blue-2); }
.btt {
  position: fixed; bottom: 20px; right: 20px; width: 46px; height: 46px;
  background: var(--ink); color: var(--bone); border-radius: 50%;
  display: grid; place-items: center; z-index: 70;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s var(--t1), transform .3s var(--t1);
  box-shadow: 0 8px 24px rgba(10,10,11,0.25);
}
.btt.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.btt:hover { background: var(--ink-2); }

/* ============================================================
   7. MOTION
   ============================================================ */
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.5);} 70%{box-shadow:0 0 0 8px rgba(22,163,74,0);} 100%{box-shadow:0 0 0 0 rgba(22,163,74,0);} }
@keyframes pulse-sig { 0%{box-shadow:0 0 0 0 rgba(181,255,60,.5);} 70%{box-shadow:0 0 0 8px rgba(181,255,60,0);} 100%{box-shadow:0 0 0 0 rgba(181,255,60,0);} }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--t1), transform .7s var(--t1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .compass { max-width: 440px; }
  .matrix-layout { grid-template-columns: 1fr; }
  .matrix-side { order: -1; }
  .bvb-grid { grid-template-columns: 1fr; gap: 24px; }
  .final-grid { grid-template-columns: 1fr; }
  .founder-card { max-width: 420px; }
}
@media (max-width: 920px) {
  .nav-links, .nav-status { display: none; }
  .nav-burger { display: inline-flex; }
  .model { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .related-row { grid-template-columns: 1fr; gap: 8px; padding: 22px 12px; }
  .related-row .rgo { justify-self: start; }
}

/* responsive table reflow — stack each dimension into a labeled block */
@media (max-width: 860px) {
  .phase { grid-template-columns: 48px 1fr; row-gap: 12px; }
  .phase-dur, .phase-deliv { grid-column: 2; }
  .phase-n { font-size: 32px; }

  .cmp.reflow caption { display: block; }
  .cmp.reflow thead { display: none; }
  .cmp.reflow, .cmp.reflow tbody, .cmp.reflow tr, .cmp.reflow th, .cmp.reflow td { display: block; width: auto; }
  .cmp.reflow tbody tr { padding: 6px 0 10px; border-top: 1px solid var(--line); }
  .cmp.reflow tbody tr:first-child { border-top: 0; }
  .cmp.reflow tbody th { padding: 16px 18px 6px; width: auto; font-size: 16px; }
  .cmp.reflow tbody td {
    border-left: 0; border-top: 0;
    padding: 8px 18px;
    display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: baseline;
    color: var(--ink);
  }
  .cmp.reflow tbody td::before {
    content: attr(data-col);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase;
    color: var(--muted); line-height: 1.4;
  }
  .cmp.reflow tbody td.col-spec { border-left: 0; border-top: 0; background: rgba(6,85,255,0.06); }
  .matrix-data .cmp.reflow tbody td { color: var(--bone); }
  .matrix-data .cmp.reflow tbody td::before { color: var(--muted-dark); }
  .matrix-data .cmp.reflow tbody td.col-spec { background: rgba(6,85,255,0.18); }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bot { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .footer-bot > :first-child, .footer-bot > :nth-child(2), .footer-bot > :last-child { justify-self: start; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .sticky-cta .label { display: none; }
  .trust-item .num { font-size: 22px; }
  .quad-sit { display: none; }
}