/* ==========================================================================
   Dvantora — main stylesheet
   Design system: editorial serif headlines, restrained palette, generous
   whitespace, dark product surfaces for interface visualizations.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Light surfaces */
  --paper: #f5f4ef;
  --paper-raise: #ffffff;
  --line: #e2dfd6;
  --line-strong: #cfccc2;

  /* Ink */
  --ink: #16181d;
  --ink-2: #43474f;
  --ink-3: #71767f;

  /* Accent — deep signal green */
  --accent: #0e6b4e;
  --accent-strong: #0a5740;
  --accent-tint: #e5efe9;

  /* Dark surfaces (product UI + dark sections) */
  --night: #0c0f14;
  --night-2: #12161d;
  --night-3: #1a1f28;
  --night-line: #262d38;
  --night-line-soft: #1e242e;
  --night-text: #edeef0;
  --night-muted: #8d95a2;
  --night-faint: #5c6470;

  /* Signal colors (data semantics only) */
  --signal-green: #3cc48e;
  --signal-amber: #dfa63f;
  --signal-blue: #6aa5e8;

  /* Type */
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(5.5rem, 11vw, 9.5rem);

  /* Radii + shadows */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-soft: 0 1px 2px rgba(22, 24, 29, 0.04), 0 12px 32px rgba(22, 24, 29, 0.06);
  --shadow-deep: 0 1px 2px rgba(8, 10, 14, 0.3), 0 24px 64px -16px rgba(8, 10, 14, 0.45);

  --header-h: 4.5rem;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

.dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--signal-green);
}

::selection {
  background: var(--accent);
  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;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-narrow), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.dark .eyebrow {
  color: var(--signal-green);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-top: 1.1rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.dark .section-title em {
  color: var(--signal-green);
}

.lede {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 46em;
  text-wrap: pretty;
}

.dark .lede {
  color: var(--night-muted);
}

.section {
  padding-block: var(--section-pad);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .lede {
  margin-inline: auto;
}

.band {
  background: var(--paper-raise);
  border-block: 1px solid var(--line);
}

.dark {
  background: var(--night);
  color: var(--night-text);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.65rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: #000;
  border-color: #000;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.dark .btn-primary,
.site-footer .btn-primary {
  background: var(--night-text);
  border-color: var(--night-text);
  color: var(--night);
}

.dark .btn-primary:hover {
  background: #fff;
  border-color: #fff;
}

.dark .btn-ghost {
  border-color: var(--night-line);
  color: var(--night-text);
}

.dark .btn-ghost:hover {
  border-color: var(--night-muted);
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  flex: none;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  line-height: 1;
  transform: translateY(-1px);
}

/* Vertical navigation rail (desktop). Sits on a subtle frosted surface —
   the same treatment as the sticky header — so it stays readable over both
   paper and night sections. Content reserves --rail-space on the right. */
.side-rail {
  position: fixed;
  top: 50%;
  right: clamp(1.25rem, 2.5vw, 3rem);
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  text-align: right;
  padding: 1.5rem 1.7rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}

.side-rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.side-rail a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease;
}

.side-rail a:hover {
  color: var(--ink);
}

.side-rail a.is-active {
  color: var(--accent);
}

.rail-divider {
  width: 2.25rem;
  height: 1px;
  background: var(--line-strong);
  margin: 1.2rem 0 1.2rem auto;
}

.rail-cta {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.rail-cta:hover {
  color: var(--accent-strong);
}

@media (min-width: 1150px) {
  :root {
    --rail-space: 215px;
  }

  .side-rail {
    display: block;
  }

  .nav-toggle {
    display: none !important;
  }

  /* Reserve the rail column inside every full-bleed band so content and
     the rail never overlap, while backgrounds still reach the viewport edge. */
  .site-header,
  .hero,
  .section,
  .final-cta,
  .site-footer,
  .page-hero,
  .error-hero {
    padding-right: var(--rail-space);
  }
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
}

.nav-toggle-box {
  position: relative;
  width: 1.35rem;
  height: 0.9rem;
}

.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.nav-toggle-box::before {
  top: 0;
}

.nav-toggle-box::after {
  bottom: 0;
}

.nav-open .nav-toggle-box::before {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.nav-open .nav-toggle-box::after {
  bottom: calc(50% - 1px);
  transform: rotate(-45deg);
}

/* Mobile menu panel */
.mobile-nav {
  display: none;
}

@media (max-width: 1149.98px) {
  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2.5rem;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    overflow-y: auto;
  }

  .nav-open .mobile-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .site-header {
    background: var(--paper);
  }

  .mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
  }

  .mobile-nav-list a {
    display: block;
    padding: 1rem 0.25rem;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1.15;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav-cta {
    margin-top: 2rem;
    display: grid;
    gap: 0.85rem;
  }

  .mobile-nav-cta .btn {
    width: 100%;
    padding-block: 1.05rem;
  }

  .mobile-nav-legal {
    margin-top: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--ink-3);
  }

  .mobile-nav-legal a {
    color: inherit;
    text-decoration: none;
    padding: 0.5rem 0.15rem;
  }

  .mobile-nav-legal a:hover {
    color: var(--ink);
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(4rem, 9vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
}

.hero-inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-raise);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin-top: 1.75rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  margin: 1.75rem auto 0;
  max-width: 40em;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.hero-visual {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

/* --------------------------------------------------------------------------
   7. Product frame (browser-style wrapper for interface visualizations)
   Replace the contents of .frame-body with a real screenshot later:
   <img src="/assets/img/…" alt="…"> — the wrapper needs no other change.
   -------------------------------------------------------------------------- */
.product-frame {
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  background: var(--night-2);
  border-bottom: 1px solid var(--night-line-soft);
}

.frame-dots {
  display: flex;
  gap: 0.42rem;
  flex: none;
}

.frame-dots i {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--night-3);
  border: 1px solid var(--night-line);
}

.frame-url {
  flex: 1;
  max-width: 22rem;
  margin-inline: auto;
  padding: 0.32rem 0.9rem;
  border-radius: 6px;
  background: var(--night);
  border: 1px solid var(--night-line-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--night-faint);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-muted);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.frame-body {
  color: var(--night-text);
}

.demo-note {
  margin-top: 1.1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.dark .demo-note {
  color: var(--night-faint);
}

/* --------------------------------------------------------------------------
   8. Dashboard mockup (hero)
   -------------------------------------------------------------------------- */
.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
  text-align: left;
}

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.35rem 1.1rem;
  background: var(--night-2);
  border-right: 1px solid var(--night-line-soft);
}

.dash-side-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--night-text);
}

.dash-side-brand .brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
}

.dash-nav {
  display: grid;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.dash-nav span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.52rem 0.7rem;
  border-radius: 7px;
  color: var(--night-muted);
}

.dash-nav span svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.8;
}

.dash-nav .active {
  background: var(--night-3);
  color: var(--night-text);
}

.dash-side-foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--night-faint);
}

.dash-main {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
}

.dash-market {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dash-market small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--night-line);
  color: var(--night-muted);
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-green);
}

.dash-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.dash-card {
  background: var(--night-2);
  border: 1px solid var(--night-line-soft);
  border-radius: var(--r-md);
  padding: 1.15rem 1.2rem;
  min-width: 0;
}

.dash-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-muted);
}

/* Score ring */
.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
}

.score-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring .ring-track {
  fill: none;
  stroke: var(--night-3);
  stroke-width: 8;
}

.score-ring .ring-fill {
  fill: none;
  stroke: var(--signal-green);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.is-visible .score-ring .ring-fill,
.no-observer .score-ring .ring-fill {
  stroke-dashoffset: 44.1;
}

.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.score-num strong {
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.score-num span {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.score-verdict {
  font-size: 0.86rem;
  color: var(--signal-green);
  font-weight: 500;
}

/* Signal meters */
.signal-list {
  display: grid;
  gap: 0.95rem;
  align-content: center;
}

.signal-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.86rem;
}

.signal-row .name {
  color: var(--night-muted);
}

.signal-row .meter {
  height: 6px;
  border-radius: 999px;
  background: var(--night-3);
  overflow: hidden;
}

.signal-row .meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--signal-green);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.signal-row .meter .amber {
  background: var(--signal-amber);
}

.signal-row .meter .blue {
  background: var(--signal-blue);
}

.is-visible .signal-row .meter i,
.no-observer .signal-row .meter i {
  width: var(--w, 60%);
}

.signal-row .value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--night-text);
  white-space: nowrap;
}

.dash-bottom {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.15rem;
}

/* Sparkline / chart card */
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.chart-delta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--signal-green);
  white-space: nowrap;
}

.chart-svg {
  width: 100%;
  height: auto;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--night-faint);
}

/* AI summary card */
.ai-card p {
  margin-top: 0.7rem;
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--night-muted);
}

.ai-card p strong {
  color: var(--night-text);
  font-weight: 500;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.95rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(60, 196, 142, 0.08);
  border: 1px solid rgba(60, 196, 142, 0.25);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--signal-green);
}

/* --------------------------------------------------------------------------
   9. Problem section
   -------------------------------------------------------------------------- */
.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.problem-copy .section-head {
  margin-bottom: 1.75rem;
}

.problem-copy p + p {
  margin-top: 1.1rem;
}

.problem-copy p {
  color: var(--ink-2);
  text-wrap: pretty;
}

.problem-visual {
  display: grid;
  gap: 0;
  justify-items: center;
}

.chaos-board {
  width: 100%;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--paper-raise);
  padding: 1.6rem 1.5rem 1.8rem;
}

.chaos-board-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
}

.chaos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.05);
}

.chip small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-3);
}

.chaos-chips .chip:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.chaos-chips .chip:nth-child(even) {
  transform: rotate(1deg) translateY(2px);
}

.chaos-chips .chip:nth-child(3n) {
  transform: rotate(1.8deg) translateY(-1px);
}

.converge-arrow {
  padding: 0.9rem 0;
  color: var(--ink-3);
}

.order-board {
  width: 100%;
  background: var(--night);
  color: var(--night-text);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep);
  padding: 1.6rem 1.5rem 1.7rem;
}

.order-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.order-board-title .name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.order-rows {
  display: grid;
  gap: 0.05rem;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.25rem;
  border-bottom: 1px solid var(--night-line-soft);
  font-size: 0.88rem;
  color: var(--night-muted);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--signal-green);
}

.order-row .tail {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--night-faint);
}

.order-foot {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--night-line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--night-muted);
}

.order-foot .score-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--signal-green);
  border: 1px solid rgba(60, 196, 142, 0.3);
  background: rgba(60, 196, 142, 0.07);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Showcase — "One market. One view."
   -------------------------------------------------------------------------- */
.showcase-frame .frame-body {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
}

.showcase-left {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.showcase-market {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.showcase-market h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.showcase-market .sub {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.showcase-score {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.showcase-score .score-ring {
  width: 120px;
  height: 120px;
  flex: none;
}

.showcase-score .score-num strong {
  font-size: 1.9rem;
}

.showcase-score-text .headline {
  font-weight: 600;
  font-size: 1.02rem;
}

.showcase-score-text p {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--night-muted);
}

.why-panel {
  background: var(--night-2);
  border: 1px solid var(--night-line-soft);
  border-radius: var(--r-md);
  padding: 1.35rem 1.4rem 1.45rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.why-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--night-line-soft);
}

.why-head h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  display: grid;
}

.why-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--night-line-soft);
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--night-muted);
}

.why-list li:last-child {
  border-bottom: 0;
}

.why-list li strong {
  color: var(--night-text);
  font-weight: 500;
}

.why-list .n {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--signal-green);
  padding-top: 0.22rem;
}

.action-strip {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-sm);
  background: rgba(60, 196, 142, 0.07);
  border: 1px solid rgba(60, 196, 142, 0.25);
  font-size: 0.86rem;
}

.action-strip .k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-green);
  white-space: nowrap;
}

.action-strip .v {
  color: var(--night-text);
}

/* --------------------------------------------------------------------------
   11. Timeline (dark section)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 6.05rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--night-line), var(--night-line) 82%, transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 2.9rem;
  padding: 1.05rem 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5.83rem;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--night-faint);
  border: 1px solid var(--night-line);
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--night-muted);
  text-align: right;
  padding-top: 0.28rem;
}

.timeline-body h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.timeline-body p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--night-muted);
  text-wrap: pretty;
}

.timeline-item.highlight::before {
  background: var(--signal-green);
  border-color: var(--signal-green);
  box-shadow: 0 0 0 5px rgba(60, 196, 142, 0.15);
}

.timeline-item.highlight .timeline-time {
  color: var(--signal-green);
}

.timeline-report {
  margin-top: 0.9rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  font-size: 0.85rem;
}

.timeline-report svg {
  width: 17px;
  height: 17px;
  color: var(--signal-green);
  flex: none;
}

.timeline-report .score-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--signal-green);
}

.timeline-note {
  margin-top: 2.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--night-muted);
}

/* --------------------------------------------------------------------------
   12. Pipeline — "From signals to decision"
   -------------------------------------------------------------------------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pipe-step {
  position: relative;
  padding: 0 1.25rem 1.5rem 0;
  margin-right: 1.25rem;
}

.pipe-step:last-child {
  margin-right: 0;
  padding-right: 0;
}

.pipe-step::before {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.pipe-step:last-child::before {
  right: auto;
  width: 100%;
}

.pipe-step::after {
  content: "";
  position: absolute;
  top: 1.77rem;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.pipe-step.accent::after {
  background: var(--accent);
  border-color: var(--accent);
}

.pipe-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.pipe-step h3 {
  margin-top: 3.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.pipe-step p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

@media (max-width: 1080px) {
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .pipeline {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .pipe-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.4rem;
    padding: 0 0 2.1rem;
    margin-right: 0;
  }

  .pipe-step::before {
    top: 0.35rem;
    bottom: -0.35rem;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .pipe-step:last-child::before {
    display: none;
  }

  .pipe-step::after {
    position: static;
    grid-row: 1 / span 3;
    margin-top: 0.15rem;
  }

  .pipe-num,
  .pipe-step h3,
  .pipe-step p {
    grid-column: 2;
  }

  .pipe-step h3 {
    margin-top: 0.35rem;
  }
}

/* --------------------------------------------------------------------------
   13. Data & sources
   -------------------------------------------------------------------------- */
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.1rem;
}

.source-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem 1.55rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.source-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.source-card svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.source-card h3 {
  margin-top: 1.1rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.source-card p {
  margin-top: 0.5rem;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

.source-note {
  margin-top: 2.25rem;
  padding: 1.1rem 1.35rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 62em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   14. Report mockup (second product visualization)
   -------------------------------------------------------------------------- */
.report {
  padding: clamp(1.3rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: left;
}

.report-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--night-line-soft);
}

.report-title h3 {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.report-title small {
  display: block;
  margin-top: 0.28rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.report-score {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.report-score .big {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.report-score .big span {
  font-size: 1rem;
  color: var(--night-muted);
  font-weight: 400;
}

.report-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.05rem;
}

.tile {
  background: var(--night-2);
  border: 1px solid var(--night-line-soft);
  border-radius: var(--r-md);
  padding: 1.05rem 1.1rem;
  min-width: 0;
}

.tile .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.tile .v {
  margin-top: 0.55rem;
  font-size: 1.12rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tile .v .ind {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.ind.green { background: var(--signal-green); }
.ind.amber { background: var(--signal-amber); }
.ind.blue { background: var(--signal-blue); }

.tile .s {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--night-muted);
  line-height: 1.5;
}

.report-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.05rem;
}

.biz-rows {
  display: grid;
  margin-top: 0.4rem;
}

.biz-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--night-line-soft);
  font-size: 0.85rem;
}

.biz-row:last-child {
  border-bottom: 0;
}

.biz-row .nm {
  color: var(--night-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-row .meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--night-muted);
  white-space: nowrap;
}

.biz-row .ads {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  color: var(--night-muted);
  white-space: nowrap;
}

.biz-row .ads.on {
  color: var(--signal-green);
  border-color: rgba(60, 196, 142, 0.3);
  background: rgba(60, 196, 142, 0.06);
}

.report-reco {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(60, 196, 142, 0.06);
  border: 1px solid rgba(60, 196, 142, 0.22);
}

.report-reco svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--signal-green);
  margin-top: 0.15rem;
}

.report-reco .k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-green);
}

.report-reco p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--night-muted);
}

.report-reco p strong {
  color: var(--night-text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   15. Audience cards
   -------------------------------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.audience-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.audience-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.audience-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.audience-card h3 {
  margin-top: 1.3rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.005em;
}

.audience-card p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   16. Outcome (dark) + final CTA
   -------------------------------------------------------------------------- */
.outcome {
  text-align: center;
}

.outcome .section-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
}

.outcome .lede {
  margin-inline: auto;
  max-width: 40em;
}

.outcome-ctas {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.outcome-signals {
  margin: 3.75rem auto 0;
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.outcome-signals span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--night-muted);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
}

.final-cta {
  text-align: center;
  padding-block: clamp(6rem, 13vw, 11rem);
}

.final-cta .section-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  max-width: 15em;
  margin-inline: auto;
}

.final-cta .lede {
  margin-inline: auto;
  max-width: 36em;
}

.final-cta .btn {
  margin-top: 2.5rem;
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

.final-cta .micro {
  margin-top: 1.15rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--night-muted);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--night-line-soft);
}

.footer-brand .brand {
  color: var(--night-text);
}

.footer-brand p {
  margin-top: 1.1rem;
  max-width: 30em;
  font-size: 0.92rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-faint);
}

.footer-col ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.94rem;
  color: var(--night-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--night-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: var(--night-muted);
}

.footer-bottom .fineprint {
  max-width: 46em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   18. Subpages (about / contact / legal)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-hero .section-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.prose h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 2.6rem 0 0.9rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}

.prose ul {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--accent-strong);
}

.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 2rem;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2.25rem 0;
}

.principle {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem;
}

.principle .n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.principle h3 {
  margin-top: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.principle p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-3);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-card {
  background: var(--night);
  color: var(--night-text);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-deep);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.contact-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
}

.contact-card > p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--night-muted);
}

.contact-email {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.contact-email .mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--night-text);
  color: var(--night);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.contact-email .mailto:hover {
  background: #fff;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  color: var(--night-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--night-muted);
  color: var(--night-text);
}

.copy-status {
  margin-top: 0.9rem;
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--signal-green);
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--night-line-soft);
  display: grid;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--night-muted);
}

.contact-list li {
  display: flex;
  gap: 0.7rem;
}

.contact-list svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--signal-green);
  margin-top: 0.2rem;
}

.contact-aside h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.6rem;
}

.contact-aside p {
  margin-top: 0.8rem;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.7;
}

.contact-aside .faq {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}

.contact-aside .faq h3 {
  font-size: 1rem;
  font-weight: 600;
}

.contact-aside .faq p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-3);
}

/* 404 */
.error-hero {
  min-height: calc(100svh - var(--header-h) - 1px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 5rem;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.error-hero h1 {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14em;
}

.error-hero p {
  margin-top: 1.3rem;
  max-width: 34em;
  color: var(--ink-2);
}

.error-hero .btn {
  margin-top: 2.2rem;
}

/* --------------------------------------------------------------------------
   19. Reveal animation
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0s);
  }

  .reveal.is-visible,
  .no-observer .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .score-ring .ring-fill {
    stroke-dashoffset: 44.1 !important;
    transition: none !important;
  }

  .signal-row .meter i {
    width: var(--w, 60%) !important;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .report-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .problem-layout {
    grid-template-columns: 1fr;
  }

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

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

  .dash-bottom {
    grid-template-columns: 1fr;
  }

  .score-card {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 1.4rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .dash {
    grid-template-columns: 1fr;
  }

  .dash-side {
    display: none;
  }

  .report-mid {
    grid-template-columns: 1fr;
  }

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .signal-row {
    grid-template-columns: 1fr auto;
  }

  .signal-row .meter {
    grid-column: 1 / -1;
    order: 3;
  }

  .report-tiles {
    grid-template-columns: 1fr;
  }

  .biz-row {
    grid-template-columns: 1fr auto;
    row-gap: 0.15rem;
  }

  .biz-row .nm {
    grid-column: 1 / -1;
  }

  .timeline-report {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .timeline-report .score-chip {
    grid-column: 2;
    justify-self: start;
  }

  .timeline::before {
    left: 4.35rem;
  }

  .timeline-item {
    grid-template-columns: 3.4rem 1fr;
    gap: 1.9rem;
  }

  .timeline-item::before {
    left: 4.13rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-ctas .btn,
  .outcome-ctas .btn {
    width: 100%;
  }

  .score-card {
    flex-direction: column;
    text-align: center;
  }
}
