/* ============================================================================
   Strata — public marketing site
   Static, self-contained. Tokens mirror apps/web/src/styles/globals.css so
   the site matches the product brand exactly. Never hard-code hex below the
   token block — always use the variables.
   ========================================================================== */

:root {
  /* Brand (mirrors app globals.css) */
  --navy: #0f2a52;
  --navy-d: #091d3a;
  --blue-dk: #0c3d82;
  --blue: #1e5cb8;
  --blue-med: #b8cef0;
  --blue-lt: #e8f0fb;

  /* Semantic */
  --green: #1a7a4a;
  --grn-lt: #e6f5ed;
  --amber: #b85c00;
  --amb-lt: #fff3e6;
  --red: #c0302a;
  --red-lt: #fdecea;

  /* Neutrals */
  --gray-1: #f2f4f7;
  --gray-2: #eaecf0;
  --gray-3: #d0d4dc;
  --gray-4: #8c94a4;

  /* Text */
  --text: #1a1f2e;
  --text-m: #3d4558;
  --text-mu: #7a8299;

  /* Surfaces */
  --surface: #ffffff;
  --bg: #f2f4f7;
  --border: #dde1ea;

  /* On-dark text */
  --ink-dark-hi: #f4f7fc;
  --ink-dark-md: #b8cef0;
  --ink-dark-lo: rgba(184, 206, 240, 0.62);

  /* Elevation */
  --shadow: 0 1px 3px rgba(15, 42, 82, 0.07);
  --shadow-m: 0 4px 16px rgba(15, 42, 82, 0.1);
  --shadow-lg: 0 8px 32px rgba(15, 42, 82, 0.14);
  --shadow-xl: 0 24px 64px rgba(9, 29, 58, 0.38);

  /* Typography */
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", monospace;

  /* Radius */
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Layout */
  --container: 1140px;
  --nav-h: 64px;
  --section-pad: clamp(96px, 11vw, 140px);
}

/* ============================================================ RESET / BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: var(--navy-d);
  background: var(--blue-med);
}

a {
  color: var(--blue);
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--surface);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ================================================================= BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--surface);
}
.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30, 92, 184, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(184, 206, 240, 0.4);
  color: var(--ink-dark-hi);
}
.btn-ghost:hover {
  background: rgba(184, 206, 240, 0.1);
  border-color: rgba(184, 206, 240, 0.65);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 17px 36px;
  font-size: 16px;
}

/* ===================================================================== NAV */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(9, 29, 58, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 206, 240, 0.12);
  transition: background 0.25s ease;
}
.site-nav.scrolled {
  background: rgba(9, 29, 58, 0.92);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink-dark-hi);
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-dark-md);
  transition: color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink-dark-hi);
}

.nav-cta {
  display: flex;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink-dark-hi);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.site-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-d);
  border-bottom: 1px solid rgba(184, 206, 240, 0.12);
  padding: 8px 24px 20px;
}
.mobile-menu a {
  color: var(--ink-dark-md);
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(184, 206, 240, 0.08);
}
.mobile-menu a:last-child {
  border-bottom: none;
}
.mobile-menu .mobile-demo {
  color: var(--ink-dark-hi);
  font-weight: 500;
}
.site-nav.open .mobile-menu {
  display: flex;
}

/* ==================================================================== HERO */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-d) 0%, var(--navy) 62%, #12325f 100%);
  color: var(--ink-dark-hi);
  padding: calc(var(--nav-h) + clamp(72px, 10vw, 128px)) 0 clamp(88px, 10vw, 128px);
  overflow: hidden;
}

/* faint grid lines */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 206, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 206, 240, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* drifting number columns */
.hero-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}
.motif-col {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--blue-med);
}
.motif-track {
  display: flex;
  flex-direction: column;
  gap: 34px;
  animation: motif-drift 90s linear infinite;
}
.mc-1 {
  left: 6%;
  opacity: 0.09;
}
.mc-2 {
  left: 30%;
  opacity: 0.055;
}
.mc-2 .motif-track {
  animation-duration: 120s;
}
.mc-3 {
  left: 68%;
  opacity: 0.05;
}
.mc-3 .motif-track {
  animation-duration: 105s;
  animation-delay: -40s;
}
.mc-4 {
  left: 90%;
  opacity: 0.085;
}
.mc-4 .motif-track {
  animation-duration: 80s;
  animation-delay: -25s;
}

@keyframes motif-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-dark-lo);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.9vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero-title em {
  color: var(--blue-med);
  font-weight: 300;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-dark-md);
  max-width: 52ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 36px;
  color: var(--ink-dark-lo);
}
.hero-proof > span {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-proof ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
}
.hero-proof li {
  position: relative;
  font-size: 12.5px;
  color: var(--ink-dark-md);
}
.hero-proof li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--blue-med);
}

/* floating brief card */
.hero-vig {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  transform: rotate(1.6deg);
  animation: hero-float 9s ease-in-out infinite;
  filter: drop-shadow(0 32px 60px rgba(4, 14, 30, 0.5));
}

@keyframes hero-float {
  0%,
  100% {
    transform: rotate(1.6deg) translateY(0);
  }
  50% {
    transform: rotate(1.6deg) translateY(-10px);
  }
}

/* ====================================================== VIGNETTES (shared) */
.vig {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.plat-vis .vig:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 42, 82, 0.18);
}

.vig-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--gray-1);
  border-bottom: 1px solid var(--border);
}
.chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-3);
}
.chrome-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mu);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 12px;
}

.vig-body {
  padding: 18px 20px 20px;
}

/* --- Morning Brief -------------------------------------------------------- */
.brief-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 20px;
  background: var(--navy);
  color: var(--ink-dark-hi);
}
.brief-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
}
.brief-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dark-md);
}

.brief-sec {
  padding: 4px 0 12px;
}
.brief-sec + .brief-sec {
  border-top: 1px solid var(--gray-2);
  padding-top: 12px;
}
.brief-sec p {
  font-size: 12.5px;
  color: var(--text-m);
  margin: 0 0 8px;
  padding-left: 16px;
}
.brief-sec p:last-child {
  margin-bottom: 2px;
}

.brief-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.label-red {
  color: var(--red);
}
.label-blue {
  color: var(--blue);
}

.sev {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.sev-red {
  background: var(--red);
}
.sev-amber {
  background: var(--amber);
}
.sev-blue {
  background: var(--blue);
}

.brief-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-2);
  padding-top: 12px;
}
.sev-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-m);
}
.brief-foot-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mu);
}
.brief-sources {
  flex-wrap: wrap;
  gap: 6px;
}
.brief-sources .brief-foot-note {
  margin-left: 0;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- source / provenance chips -------------------------------------------- */
.src-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.src-lease {
  background: var(--blue-lt);
  color: var(--blue-dk);
}
.src-actuals {
  background: var(--grn-lt);
  color: var(--green);
}
.src-market {
  background: var(--gray-1);
  color: var(--text-m);
  border: 1px solid var(--gray-2);
}

/* --- Statement compare ----------------------------------------------------- */
.stmt-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mu);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.stmt-tr {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 0.62fr;
  gap: 10px;
  align-items: baseline;
  padding: 6px 8px;
  border-radius: 4px;
}
.stmt-tr span:first-child {
  font-size: 12.5px;
  color: var(--text-m);
}
.stmt-tr span:not(:first-child) {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: right;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stmt-header span {
  font-family: var(--font-mono);
  font-size: 10px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mu) !important;
}

.stmt-total {
  border-top: 1px solid var(--gray-3);
  margin-top: 2px;
  padding-top: 8px;
}
.stmt-total span {
  font-weight: 500;
}
.stmt-total span:first-child {
  color: var(--text);
  font-weight: 600;
}

.stmt-flag {
  background: var(--red-lt);
}

.d-pos {
  color: var(--green) !important;
}
.d-neg {
  color: var(--red) !important;
}

/* --- Valuation console ------------------------------------------------------ */
.val-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.val-asset {
  font-weight: 600;
  font-size: 13.5px;
}
.val-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  background: var(--grn-lt);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.val-value {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.val-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  margin: 4px 0 16px;
}

.val-assump {
  border-top: 1px solid var(--gray-2);
  padding-top: 10px;
  margin-bottom: 16px;
}
.val-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 4.5px 0;
  font-size: 12px;
  color: var(--text-m);
}
.val-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  text-align: right;
  min-width: 72px;
}

.val-bridge {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 84px;
  border-top: 1px solid var(--gray-2);
  padding-top: 12px;
}
.bridge-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  height: 100%;
}
.bridge-bar i {
  display: block;
  width: 100%;
  max-width: 54px;
  background: var(--blue-med);
  border-radius: 3px 3px 0 0;
}
.bridge-exit i {
  background: var(--blue);
}
.bridge-bar span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-mu);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Portfolio dashboard ----------------------------------------------------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mu);
}
.kpi-value {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 21px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.spark {
  width: 100%;
  height: 72px;
  margin-bottom: 14px;
}
.spark-fill {
  fill: var(--blue-lt);
}
.spark-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.mini-table {
  border-top: 1px solid var(--gray-2);
}
.mini-tr {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--gray-2);
  font-size: 12px;
  color: var(--text-m);
  align-items: baseline;
}
.mini-tr:last-child {
  border-bottom: none;
}
.mt-type {
  font-size: 11px;
  color: var(--text-mu);
}
.mt-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  text-align: right;
}

/* --- Connections feed --------------------------------------------------------- */
.feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--gray-2);
}
.feed-row:first-child {
  padding-top: 4px;
}
.feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--grn-lt);
  flex: none;
}
.feed-name {
  font-weight: 500;
  font-size: 13px;
}
.feed-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mu);
  text-align: right;
}
.feed-note {
  font-size: 12px;
  color: var(--text-mu);
  font-style: italic;
  padding: 12px 4px 0;
}

/* --- Report / export card ------------------------------------------------------ */
.vig-report .vig-body {
  background: var(--gray-1);
  padding: 26px 34px;
}
.report-doc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-m);
}
.report-doc::after {
  content: "";
  position: absolute;
  inset: 8px -6px -6px 8px;
  background: var(--surface);
  border: 1px solid var(--gray-2);
  border-radius: 4px;
  z-index: -1;
}
.report-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy);
  color: var(--ink-dark-hi);
  padding: 10px 18px;
  border-radius: 3px 3px 0 0;
}
.report-mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
}
.report-q {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dark-md);
}
.report-body {
  padding: 18px;
}
.report-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 2px;
}
.report-sub {
  font-size: 12px;
  color: var(--text-m);
}
.report-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mu);
  margin: 6px 0 16px;
}
.report-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 62px;
  border-bottom: 1px solid var(--gray-2);
  padding-bottom: 0;
  margin-bottom: 14px;
}
.report-bars i {
  flex: 1;
  background: var(--blue-med);
  border-radius: 2px 2px 0 0;
}
.report-bars i:last-child {
  background: var(--blue);
}
.report-lines i {
  display: block;
  height: 7px;
  border-radius: 3px;
  background: var(--gray-2);
  margin-bottom: 7px;
  width: 100%;
}
.report-foot {
  border-top: 1px solid var(--gray-2);
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-mu);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ================================================================== THESIS */
.thesis {
  background: var(--surface);
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

.thesis-item {
  border-top: 2px solid var(--navy);
  padding-top: 26px;
}
.thesis-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.1em;
}
.thesis-item h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 12px 0 12px;
  color: var(--navy);
}
.thesis-item p {
  font-size: 15.5px;
  color: var(--text-m);
}

/* ===================================================================== WHY */
.why {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.why::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid var(--blue-lt);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(232, 240, 251, 0.34),
    0 0 0 144px rgba(232, 240, 251, 0.18);
  pointer-events: none;
}
.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}
.why-copy {
  max-width: 680px;
}
.why-title {
  max-width: 18ch;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
  font-weight: 300;
  line-height: 1.11;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.why-copy > p:last-child {
  max-width: 59ch;
  font-size: 17px;
  color: var(--text-m);
}
.decision-flow {
  padding: 10px 0;
}
.flow-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}
.flow-step-active {
  border-color: rgba(30, 92, 184, 0.42);
  box-shadow: 0 12px 36px rgba(15, 42, 82, 0.1);
}
.flow-index {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
}
.flow-step strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--navy);
}
.flow-step small {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-mu);
}
.flow-line {
  width: 1px;
  height: 24px;
  margin-left: 45px;
  background: linear-gradient(var(--blue-med), var(--blue));
}
.why-principles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--border);
}
.principle {
  padding: 30px 34px 0 0;
}
.principle + .principle {
  padding-left: 34px;
  border-left: 1px solid var(--border);
}
.principle span {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.principle p {
  max-width: 34ch;
  font-size: 14.5px;
  color: var(--text-m);
}

/* ================================================================ SECTIONS */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(56px, 7vw, 88px);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 14px;
}
.kicker-dark {
  color: var(--blue-med);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-m);
  max-width: 58ch;
}

/* ================================================================ PLATFORM */
.platform {
  background: var(--bg);
  padding: var(--section-pad) 0;
}

.plat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
}
.plat-row + .plat-row {
  border-top: 1px solid var(--border);
}

.plat-row-flip .plat-copy {
  order: 2;
}
.plat-row-flip .plat-vis {
  order: 1;
}

.plat-copy .kicker {
  margin-bottom: 10px;
}
.plat-copy h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}
.plat-copy p {
  font-size: 16px;
  color: var(--text-m);
  margin-bottom: 14px;
  max-width: 50ch;
}
.plat-copy p:last-child {
  margin-bottom: 0;
}

.plat-vis .vig {
  max-width: 520px;
  margin: 0 auto;
}

/* ================================================================ SECURITY */
.security {
  background: var(--navy-d);
  color: var(--ink-dark-hi);
  padding: var(--section-pad) 0;
}

.section-head-dark .section-title {
  color: var(--ink-dark-hi);
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.sec-tile {
  background: rgba(184, 206, 240, 0.05);
  border: 1px solid rgba(184, 206, 240, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.sec-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 206, 240, 0.32);
  background: rgba(184, 206, 240, 0.08);
}

.sec-icon {
  width: 26px;
  height: 26px;
  color: var(--blue-med);
  margin-bottom: 18px;
}

.sec-tile h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.sec-tile p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dark-md);
}

.maker-checker {
  max-width: 760px;
  border-left: 2px solid var(--blue);
  padding-left: clamp(20px, 3vw, 32px);
}
.maker-checker h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.maker-checker p {
  font-size: 16px;
  color: var(--ink-dark-md);
  max-width: 66ch;
}

/* =================================================================== ABOUT */
.about {
  background: var(--surface);
  padding: var(--section-pad) 0;
}

.about-inner {
  max-width: 760px;
}
.about-inner .section-title {
  margin-bottom: 26px;
}
.about-body {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-m);
  margin-bottom: 20px;
}
.about-body:last-child {
  margin-bottom: 0;
}

/* ================================================================= CONTACT */
.contact {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-d) 100%);
  color: var(--ink-dark-hi);
  padding: var(--section-pad) 0;
  text-align: center;
}

.contact-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0 auto 18px;
}

.contact-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-dark-md);
  margin-bottom: 40px;
}

.contact-mail-line {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-dark-lo);
}
.contact-mail {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink-dark-md);
  border-bottom: 1px solid rgba(184, 206, 240, 0.35);
  padding-bottom: 1px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.contact-mail:hover {
  color: var(--ink-dark-hi);
  border-color: var(--ink-dark-md);
}

/* ================================================================== FOOTER */
.site-footer {
  background: var(--navy-d);
  border-top: 1px solid rgba(184, 206, 240, 0.1);
  padding: 40px 0;
  color: var(--ink-dark-lo);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-footer {
  font-size: 19px;
}
.footer-tag {
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-dark-md);
}
.footer-links a:hover {
  color: var(--ink-dark-hi);
}

.footer-legal {
  flex-basis: 100%;
  font-size: 12px;
  margin-top: 4px;
}

/* ============================================================== REVEAL ANIM */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.rv.in {
  opacity: 1;
  transform: none;
}
.rv-d1 {
  transition-delay: 0.12s;
}
.rv-d2 {
  transition-delay: 0.24s;
}
.rv-d3 {
  transition-delay: 0.36s;
}

/* ========================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .motif-track,
  .hero-vig {
    animation: none;
  }
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .vig,
  .sec-tile {
    transition: none;
  }
}

/* =============================================================== RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-vig {
    justify-self: start;
    transform: none;
    animation: none;
    width: min(460px, 100%);
    margin-top: 8px;
    filter: drop-shadow(0 20px 40px rgba(4, 14, 30, 0.4));
  }
  .mc-3,
  .mc-4 {
    display: none;
  }

  .thesis-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .decision-flow {
    max-width: 560px;
  }

  .plat-row,
  .plat-row-flip {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .plat-row-flip .plat-copy {
    order: 1;
  }
  .plat-row-flip .plat-vis {
    order: 2;
  }
  .plat-vis .vig {
    margin: 0;
  }

  .sec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .footer-links {
    margin-left: 0;
  }

  .why-principles {
    grid-template-columns: 1fr;
  }
  .principle,
  .principle + .principle {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .sec-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    display: block;
  }
  .hero-proof > span {
    display: block;
    margin-bottom: 10px;
  }
  .hero-proof ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
  }
  .hero-proof li::after {
    display: none;
  }

  .why-title {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }
  .flow-step {
    grid-template-columns: 34px 1fr;
    padding: 17px 16px;
  }
  .flow-line {
    margin-left: 33px;
  }

  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .kpi {
    padding: 8px 8px;
  }
  .kpi-value {
    font-size: 16px;
  }

  .stmt-tr {
    grid-template-columns: 1.4fr 1fr 1fr 0.6fr;
    gap: 6px;
    padding: 6px 4px;
  }
  .stmt-tr span:first-child {
    font-size: 11px;
  }
  .stmt-tr span:not(:first-child) {
    font-size: 10px;
  }

  .val-value {
    font-size: 34px;
  }

  .vig-body {
    padding: 14px 14px 16px;
  }
  .vig-report .vig-body {
    padding: 18px 20px;
  }

  .feed-status {
    font-size: 9.5px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
