/* ============================================================
   Munra Website -- Editorial / Scientific aesthetic
   ============================================================ */

/* Self-hosted latin subsets (assets/fonts/OFL.txt). Google-hosted fonts would
   send every visitor's IP to Google and block a strict font-src CSP. All four
   files are variable; the weight ranges cover what the pages use. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/newsreader-v26.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(assets/fonts/newsreader-italic-v26.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(assets/fonts/geist-v5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(assets/fonts/geist-mono-v6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Light-only paper identity: opt out of UA auto-dark inversion. */
  color-scheme: light;

  /* Warm paper palette (shared w/ deck) */
  --bg: #f4f0e7;
  --bg-alt: #ebe7dc;
  --bg-paper: #faf7ee;
  --bg-deep: #1a1916;
  --bg-deeper: #14130f;

  --ink: #1a1916;
  --ink-soft: #4a473f;
  --ink-mute: #6a6759;
  --ink-faint: #c5c0b1;

  --rule: #d6d0c0;
  --rule-strong: #a8a294;
  --rule-deep: #2e2c26;

  /* Accent -- teal (matches product) */
  --accent: #2f7f7a;
  --accent-deep: #1f5b57;
  /* Small accent text on the deep (#1a1916) surfaces: AA where --accent is not.
     --accent stays for rules, dots, borders and large numerals; small accent
     text on light surfaces uses --accent-deep. */
  --accent-on-deep: #6fb8b1;
--accent-soft: #e4efee;
  --accent-glow: rgba(47, 127, 122, 0.16);

  /* Dark inversion */
  --dark-ink: #f0ece1;
  --dark-ink-soft: #b0aa9b;
  --dark-ink-mute: #8d8875;

  /* Type */
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', monospace;

  /* Layout */
  --pad-x: clamp(28px, 6vw, 120px);
  --nav-h: 64px;
  --section-y: clamp(88px, 10vw, 156px);
  --max-w: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
html, body { background: var(--bg); color: var(--ink); }

body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
em { font-style: italic; }
img { display: block; max-width: 100%; }

/* Subtle paper texture via tiny gradient noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(47,127,122,0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(47,127,122,0.04), transparent 60%);
}


/* ============================================================
   NAV -- fixed, frosted, scroll progress
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 var(--pad-x);
  background: rgba(244, 240, 231, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(244, 240, 231, 0.92);
}

.nav-mark { display: inline-flex; align-items: baseline; }
.nav-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-wordmark i {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: clip;
  overflow-clip-margin: 8px;
}
.nav-links a {
  display: inline-flex;
  align-items: baseline;
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(26, 25, 22, 0.05);
  border-color: rgba(26, 25, 22, 0.08);
}
.nav-links a.is-active {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: rgba(47, 127, 122, 0.28);
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--bg-paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset;
}
.nav-status-text { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }
/* Section targets take programmatic focus after an in-page jump (site.js),
   so the next Tab starts there. A section is not a control: no ring, even
   when Chrome counts a keyboard-triggered jump as focus-visible. */
.section[tabindex="-1"]:focus { outline: none; }

/* Public-page header action and compact menu. Scoped to these classes and to
   .nav.is-open so the deck, which has neither, keeps its header. */
.nav-cta {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  white-space: nowrap;
}
.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  background: var(--bg-paper);
  color: var(--ink);
  font: 500 14px/1 var(--sans);
  cursor: pointer;
}
.nav-menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}
.nav-menu-icon { position: relative; }
.nav-menu-icon::before,
.nav-menu-icon::after { content: ""; position: absolute; left: 0; }
.nav-menu-icon::before { top: -5px; }
.nav-menu-icon::after { top: 5px; }
.nav.is-open .nav-menu-icon { background: transparent; }
.nav.is-open .nav-menu-icon::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-menu-icon::after { top: 0; transform: rotate(-45deg); }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.dot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: pulse 2.2s ease-out infinite;
}
.dot-live { background: #e34c3a; }
.dot-live::before { background: #e34c3a; }

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.45; }
  70%  { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.nav-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .08s linear;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) var(--pad-x) 96px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 64px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 60%, var(--bg) 100%),
    radial-gradient(900px 600px at 88% 20%, var(--accent-soft), transparent 70%);
  z-index: -1;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.hero-meta-l { display: inline-flex; align-items: center; gap: 12px; }
.hero-meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.hero-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}

.hero-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 18vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: var(--ink);
  display: inline-block;
}
.wm-letters { display: inline-flex; }
.wm-letters > span {
  display: inline-block;
  transform: translateY(40px);
  opacity: 0;
  animation: wmIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.wm-letters > span:nth-child(1) { animation-delay: .05s; }
.wm-letters > span:nth-child(2) { animation-delay: .12s; }
.wm-letters > span:nth-child(3) { animation-delay: .19s; }
.wm-letters > span:nth-child(4) { animation-delay: .26s; }
.wm-letters > span:nth-child(5) { animation-delay: .33s; }
.wm-dot {
  font-style: normal;
  color: var(--accent);
  opacity: 0;
  animation: wmIn .6s cubic-bezier(.2,.7,.2,1) .55s forwards;
  display: inline-block;
}
@keyframes wmIn {
  to { transform: translateY(0); opacity: 1; }
}

.hero-right { padding-bottom: 24px; }
.hero-tag {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 24px;
}
.hero-sub {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 480px;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--bg-paper); border-color: var(--ink); }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.hero-foot-l { display: flex; gap: 56px; }
.hero-author {
  display: flex; flex-direction: column; gap: 2px;
}
.hero-author-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.hero-author-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--ink-mute) 0%, transparent 100%);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; }
  50%      { transform: scaleY(1);   transform-origin: top; }
}


/* ============================================================
   TICKER
   ============================================================ */

.ticker {
  border-block: 1px solid var(--rule);
  background: var(--bg-paper);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tick 48s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticker-track > span { padding-right: 4px; }
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
body[data-motion="off"] .ticker-track { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}


/* ============================================================
   SECTION SHELL
   ============================================================ */

.section {
  padding: var(--section-y) var(--pad-x);
  position: relative;
}
.section.is-paper { background: var(--bg-paper); border-block: 1px solid var(--rule); }
.section.is-deep  { background: var(--bg-deep); color: var(--dark-ink); }
.section.is-deep .ink-mute { color: var(--dark-ink-mute); }

.section-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 48px;
  max-width: var(--max-w);
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--accent);
  min-width: 32px;
}
.section-num:empty {
  display: none;
}
.section-label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-head-deep .section-label { color: var(--dark-ink-soft); }
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--rule-strong), var(--rule) 24%, transparent);
  align-self: center;
}
.section.is-deep .section-rule {
  background: linear-gradient(90deg, #514d43, var(--rule-deep) 28%, transparent);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 1100px;
}
.section-title-deep { color: var(--dark-ink); }
.ink-mute { color: var(--ink-mute); }
.section.is-deep .ink-mute { color: var(--dark-ink-mute); }
.section-deck {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 760px;
  text-wrap: pretty;
}
.section-deck-deep { color: var(--dark-ink-soft); }


/* Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal-ready .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(22px);
}


/* ============================================================
   sec i -- Essay
   ============================================================ */

.essay-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 100px;
  align-items: start;
  max-width: var(--max-w);
}
.essay-lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 56px;
}
.essay-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.essay-body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.essay-body em { color: var(--ink); }

.essay-side {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding: 32px;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  gap: 18px;
}
.side-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.side-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.side-text strong { font-style: normal; font-weight: 500; color: var(--ink); }
.side-people {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 10px;
}
.side-person { display: flex; flex-direction: column; gap: 2px; }
.side-person-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.side-person-role { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink-mute); }


/* ============================================================
   Pull quote
   ============================================================ */

.pq {
  text-align: center;
  padding-top: calc(var(--section-y) * 0.9);
  padding-bottom: calc(var(--section-y) * 0.9);
}
.pq-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}
.pq-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(120px, 16vw, 240px);
  line-height: 0.7;
  color: var(--accent);
  display: block;
  margin-bottom: -32px;
  opacity: 0.55;
}
.pq-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 1500px;
  margin: 0 auto;
}
.pq-em { color: var(--accent); font-style: italic; }
.pq-attr {
  margin-top: 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
}
.pq-attr-rule {
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--ink-mute);
  vertical-align: middle;
  margin-right: 14px;
}


/* ============================================================
   sec ii -- Evidence model -- horizontal flow
   ============================================================ */

.model-intro { max-width: var(--max-w); margin-bottom: 72px; }

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  list-style: none;
  max-width: var(--max-w);
  margin-bottom: 64px;
}
.flow-step {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 28px 26px 24px;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.flow-step:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  box-shadow: 0 24px 40px -28px rgba(26, 25, 22, 0.25);
}
.flow-step.is-final { background: var(--ink); color: var(--dark-ink); border-color: var(--ink); }
.flow-step.is-final:hover { box-shadow: 0 24px 40px -28px rgba(0,0,0,0.55); }

.flow-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
}
.flow-step.is-final .flow-num { color: var(--accent-on-deep); }

.flow-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 2.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.flow-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  align-self: end;
}
.flow-step.is-final .flow-desc { color: var(--dark-ink-soft); }

.flow-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  margin-top: 4px;
}
.flow-step.is-final .flow-tag { color: var(--dark-ink-mute); border-color: var(--rule-deep); }

.flow-arrow {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink-mute);
  align-self: center;
  text-align: center;
}

.model-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  max-width: var(--max-w);
}
.model-foot-body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 760px;
}
.model-foot-body em { color: var(--ink); }
.model-foot-aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
  line-height: 1.45;
  padding-left: 32px;
  border-left: 1px solid var(--rule);
}
.model-foot-aside a { color: var(--accent-deep); border-bottom: 1px solid currentColor; padding-bottom: 1px; }


/* ============================================================
   sec iii -- Product / dashboard
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  max-width: var(--max-w);
}

.product-copy .section-title { color: var(--dark-ink); }
.product-copy .section-deck { color: var(--dark-ink-soft); }

.product-list {
  margin-top: 40px;
  border-top: 1px solid var(--rule-deep);
}
.product-list-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-deep);
  align-items: baseline;
}
.product-list-row dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-deep);
}
.product-list-row dd {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark-ink);
}

.product-frame {
  background: #0f0e0c;
  border: 1px solid #37332c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 48px 72px -36px rgba(0,0,0,0.68),
    0 18px 28px -24px rgba(47,127,122,0.45),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  position: relative;
}
.product-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset;
}
.frame-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: linear-gradient(180deg, #25221e 0%, #1b1916 100%);
  border-bottom: 1px solid #302c27;
}
.frame-dots { display: inline-flex; gap: 8px; }
.frame-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3a3733;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.frame-dots span:nth-child(1) { background: #e34c3a; }
.frame-dots span:nth-child(2) { background: #e2b53a; }
.frame-dots span:nth-child(3) { background: #2f7f7a; }
.frame-url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark-ink-soft);
  letter-spacing: 0.02em;
  padding: 6px 14px;
  background: #0f0e0c;
  border-radius: 100px;
  border: 1px solid #343029;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  min-width: 0;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frame-url-lock { color: var(--accent); font-size: 8px; }
.frame-live {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #e34c3a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(227, 76, 58, 0.4);
  border-radius: 100px;
}
.product-frame picture { display: block; }
.product-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.frame-cap {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dark-ink-mute);
  letter-spacing: 0.04em;
  border-top: 1px solid #302c27;
  background: #1b1916;
}


/* ============================================================
   sec iv -- Layers
   ============================================================ */

.layers-intro { max-width: var(--max-w); margin-bottom: 56px; }

.layers-list {
  max-width: var(--max-w);
  display: grid;
  gap: 0;
}
.layer-row {
  display: grid;
  grid-template-columns: 220px 320px 1fr auto;
  gap: 56px;
  align-items: baseline;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: padding .25s ease;
}
.layer-row:last-child { border-bottom: 1px solid var(--rule); }
.layer-row:hover { padding-left: 16px; }
.layer-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width .25s ease;
}
.layer-row:hover::before { width: 3px; }

.layer-col-num { display: flex; flex-direction: column; gap: 8px; }
.layer-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
}
.layer-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.layer-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.layer-sub {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
}

.layer-desc {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}
.layer-desc em { color: var(--ink); }

.layer-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 100px;
  white-space: nowrap;
  background: var(--accent-soft);
  align-self: center;
}


/* ============================================================
   sec v -- Hardware
   ============================================================ */

.hw-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max-w);
}

.hw-notes {
  list-style: none;
  margin-top: 48px;
  display: grid;
  gap: 28px;
}
.hw-notes li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.hw-note-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-deep);
}
.hw-notes li p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.hw-notes li p em { color: var(--ink); }

.hw-diagram {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 48px;
  position: relative;
}
.hw-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(48px, 1fr) auto;
  grid-template-rows: 1fr 1fr;
  gap: 0 16px;
  min-height: 360px;
  align-items: center;
}
.hw-source {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  z-index: 2;
}
.hw-source-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--bg-paper);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.hw-source-a .hw-source-icon { border-color: var(--accent); color: var(--accent); }

.hw-source-text { display: flex; flex-direction: column; gap: 2px; }
.hw-source-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hw-source-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.hw-source-a .hw-source-tag { color: var(--accent-deep); }
.hw-source-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}

.hw-source-a { grid-column: 1; grid-row: 1; }
.hw-source-b { grid-column: 1; grid-row: 2; }
.hw-sink { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

.hw-sink {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-paper);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  z-index: 2;
}
.hw-sink-icon { display: grid; place-items: center; color: var(--ink); }
.hw-sink-text { display: flex; flex-direction: column; gap: 2px; }
.hw-sink-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.hw-sink-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-deep);
  letter-spacing: 0.06em;
}

/* The connectors fill the column between the labels and the sink, so they
   start after the text and end at the sink's edge (rows split 25% / 75%). */
.hw-lines {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hw-cap {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}


/* ============================================================
   sec vi -- Regulation
   ============================================================ */

.reg-intro { max-width: var(--max-w); margin-bottom: 64px; }

.reg-track {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-w);
  position: relative;
}
.reg-track::before {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule-strong) 0 6px, transparent 6px 12px);
}
.reg-stop {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 36px 28px;
  background: var(--bg-paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  position: relative;
}
.reg-stop::before {
  content: "";
  position: absolute;
  top: -10px; left: 28px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
}
.reg-stop.is-now::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
}
.reg-stop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.reg-when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.reg-stop.is-now .reg-when { color: var(--accent-deep); }
.reg-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-mute);
  background: var(--bg);
}
.reg-stop.is-now .reg-pill {
  color: var(--bg-paper);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.reg-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.reg-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.reg-desc em { color: var(--ink); font-style: italic; }
.reg-foot {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.45;
}


/* ============================================================
   sec vii -- Status
   ============================================================ */

.status-intro { max-width: var(--max-w); margin-bottom: 56px; }

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
}
.status-col {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
}
.status-col-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.status-col-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
}
.status-col-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.015em;
}
.status-col-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.status-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.status-list li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}
.status-list li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 13px;
}
.status-list-done li::before { content: "\2713"; color: var(--accent); font-weight: 600; }
.status-list-now li::before  { content: "\2192"; color: var(--ink-mute); }
.status-list-soon li::before { content: "\00B7"; color: var(--ink-mute); font-size: 22px; line-height: 0.8; }


/* ============================================================
   sec viii -- Dialog (questions)
   ============================================================ */

.dialog-intro { max-width: var(--max-w); margin-bottom: 48px; }

.qa-list {
  list-style: none;
  max-width: var(--max-w);
  display: grid;
  gap: 4px;
}
.qa {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: padding-left .25s ease;
}
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa:hover { padding-left: 12px; }
.qa-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 48px;
  line-height: 0.9;
  color: var(--accent);
}
.qa-q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}
.qa-aside {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 760px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  padding: var(--section-y) var(--pad-x) 48px;
  background: var(--bg-deep);
  color: var(--dark-ink);
  border-top: 1px solid var(--rule-deep);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule-deep);
}
.foot-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 16vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: var(--dark-ink);
}
.foot-wordmark i { color: var(--accent); font-style: normal; }
.foot-tag {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--dark-ink);
  text-wrap: balance;
  padding-bottom: 24px;
}
.foot-tag .ink-soft { color: var(--dark-ink-soft); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.25fr;
  gap: 64px;
  padding: 56px 0;
}
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-ink-mute);
  margin-bottom: 6px;
}
.foot-person { display: grid; gap: 2px; margin-bottom: 8px; }
.foot-person-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-ink);
}
.foot-person-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--dark-ink-mute);
  margin-bottom: 4px;
}
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark-ink);
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
  width: fit-content;
}
.foot-link:hover {
  color: #6fb1ad;
  border-color: currentColor;
  transform: translateY(-1px);
}
.foot-link:active { transform: translateY(0); }
.foot-domain {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: #6fb1ad;
  letter-spacing: -0.01em;
}
.foot-domain:hover { color: #6fb1ad; border-color: #6fb1ad; }
.foot-resource-stack {
  display: grid;
  gap: 20px;
}
.foot-resource {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-deep);
}
.foot-resource:first-child {
  padding-top: 0;
  border-top: 0;
}
.foot-resource + .foot-resource {
  padding-top: 18px;
}
.foot-resource-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-ink-mute);
}

.foot-rule { height: 1px; background: var(--rule-deep); }

.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dark-ink-mute);
}
.foot-bottom-r { display: inline-flex; align-items: center; gap: 10px; }


/* ============================================================
   Vardminnet
   ============================================================ */

.vm-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max-w);
  margin-bottom: 56px;
}
.vm-body {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 560px;
}

.vm-grid.has-views { grid-template-columns: 1fr 1.4fr; }
.vm-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: center;
}
.vm-view {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.vm-view.is-patient {
  background: var(--bg-paper);
  border-color: var(--accent);
}
.vm-view-tag {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.vm-view-line {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.vm-view-line b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.vm-view.is-patient .vm-view-line {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.vm-views-cap {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
@media (max-width: 640px) {
  .vm-views { grid-template-columns: 1fr; }
}

.vm-signal {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  gap: 22px;
  align-content: start;
}
.vm-signal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.vm-signal-n {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.vm-signal-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.vm-signal-list {
  list-style: none;
  display: grid;
  gap: 16px;
}
.vm-signal-list li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}
.vm-signal-list li::before {
  content: "\00B7";
  position: absolute;
  left: 0;
  top: -0.05em;
  font-size: 22px;
  line-height: 0.8;
  color: var(--accent);
}
.vm-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
  max-width: 880px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}


/* ============================================================
   Teamet
   ============================================================ */

.team-intro { max-width: var(--max-w); margin-bottom: 56px; }
.team-lede { max-width: 900px; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: var(--max-w);
}
.team-person {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.team-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.team-role {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}
.team-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 28px;
  border-left: 2px solid var(--accent);
  max-width: 520px;
}
.team-close {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  max-width: var(--max-w);
}


/* ============================================================
   Marknad
   ============================================================ */

.marknad-intro { max-width: var(--max-w); margin-bottom: 56px; }

.phase-list {
  list-style: none;
  max-width: var(--max-w);
  display: grid;
  gap: 0;
  margin-bottom: 48px;
}
.phase-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  position: relative;
  transition: padding-left .25s ease;
}
.phase-row:last-child { border-bottom: 1px solid var(--rule); }
.phase-row:hover { padding-left: 12px; }
.phase-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 0.9;
  color: var(--accent);
}
.phase-body p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 760px;
}
.phase-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--accent-soft);
  white-space: nowrap;
  align-self: center;
}
.marknad-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
  max-width: 900px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}


/* ============================================================
   Ekonomi
   ============================================================ */

.ekonomi-intro { max-width: var(--max-w); margin-bottom: 40px; }
.ekonomi-lede {
  max-width: 980px;
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.econ-list {
  max-width: var(--max-w);
  border-top: 1px solid var(--rule);
  margin-bottom: 28px;
}
.econ-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.econ-row dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.econ-row dd {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.econ-foot {
  max-width: 760px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
}


/* ============================================================
   Vad vi soker
   ============================================================ */

.ask-intro { max-width: var(--max-w); margin-bottom: 40px; }
.ask-lede {
  max-width: 980px;
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.ask-list {
  list-style: none;
  max-width: var(--max-w);
  display: grid;
  gap: 4px;
}
.ask-close {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
  max-width: var(--max-w);
}


/* ============================================================
   Pilot + Vanliga fragor (public page)
   ============================================================ */

.pilot-cta { margin-top: 28px; }

/* 404.html */
.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 8px;
}

.faq-intro { max-width: var(--max-w); margin-bottom: 48px; }
.faq-list {
  max-width: 980px;
  border-top: 1px solid var(--rule);
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  min-height: 44px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--accent-deep);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item p {
  max-width: 760px;
  padding-bottom: 28px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============================================================
   THEMES (tweaks)
   ============================================================ */

body[data-accent="amber"] { --accent: #b87333; --accent-deep: #8a5621; --accent-soft: #f3e8d8; --accent-glow: rgba(184, 115, 51, 0.18); }
body[data-accent="ink"]   { --accent: #1a1916; --accent-deep: #000;     --accent-soft: #e3e0d6; --accent-glow: rgba(26, 25, 22, 0.10); }
body[data-accent="rust"]  { --accent: #b14a3a; --accent-deep: #7a2d20; --accent-soft: #f1e2dd; --accent-glow: rgba(177, 74, 58, 0.18); }
/* default = teal (set in :root) */

body[data-theme="bone"]   { --bg: #ece8de; --bg-alt: #e3deca; --bg-paper: #f4f0e2; }
body[data-theme="cool"]   { --bg: #eeeee8; --bg-alt: #e3e3dc; --bg-paper: #f7f7f1; --rule: #d2d1c4; }
body[data-theme="paper"]  { /* default */ }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* The full 13-section index is intrinsically ~1061px wide and does not shrink
   (white-space:nowrap); it only fits one row above ~1680px. Rather than drop the
   whole index on a laptop, narrow to 8 primary jump-targets (the .nav-aux links
   fall away) so the nav stays useful at 1201-1680. nowrap + white-space:nowrap +
   overflow:clip on .nav-links still guarantee a single clean row that can never
   wrap a 2nd row over the content beneath the fixed bar (and clip gracefully if a
   webfont fails to load; overflow-clip-margin keeps the 8px clip box clear of the
   6px focus outline). Below 1200 even the 8 get tight, so the index drops entirely
   for the wordmark + status header; the page reflows to one column at 1100. */
@media (max-width: 1680px) {
  .nav-links a.nav-aux { display: none; }
}

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-menu-toggle { display: inline-flex; }
  .nav.is-open { background: var(--bg); border-bottom-color: var(--rule); }
  .nav.is-open .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    justify-content: stretch;
    padding: 12px var(--pad-x) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -32px rgba(26, 25, 22, 0.4);
    overflow: visible;
  }
  .nav.is-open .nav-links a {
    min-height: 44px;
    align-items: center;
    padding: 10px 14px;
    font-size: 16px;
  }
}
@media (max-width: 1100px) {
  .hero-body { grid-template-columns: 1fr; gap: 56px; }
  .essay-grid { grid-template-columns: 1fr; gap: 56px; }
  .essay-side { position: static; }
  .essay-cols { grid-template-columns: 1fr; gap: 22px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; }
  .model-foot { grid-template-columns: 1fr; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; gap: 48px; }
  .layer-row { grid-template-columns: auto 1fr; gap: 24px; }
  .layer-pill { grid-column: 1 / -1; justify-self: start; }
  /* minmax(0,1fr), not 1fr (= minmax(auto,1fr)): the diagram's min-content
     width would otherwise widen the column past a phone viewport. */
  .hw-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
.reg-track { grid-template-columns: 1fr; }
  .reg-track::before { display: none; }
  .status-grid { grid-template-columns: 1fr; }
  .vm-grid,
  .vm-grid.has-views { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .phase-row { grid-template-columns: auto 1fr; }
  .phase-tag { grid-column: 1 / -1; justify-self: start; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .nav-wordmark { font-size: 22px; }
  .nav-status-text { display: none; }
  .hero-meta { font-size: 10px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-scroll { flex-direction: row; }
  .hero-scroll-line { width: 36px; height: 1px; background: linear-gradient(90deg, var(--ink-mute), transparent); }
  .qa { grid-template-columns: 1fr; gap: 8px; }
  .layer-row { grid-template-columns: 1fr; }
  .phase-row { grid-template-columns: 1fr; gap: 8px; }
  .econ-row { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; }
  .product-list-row { grid-template-columns: 1fr; gap: 6px; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hw-diagram { padding: 24px; }
  .hw-stage { grid-template-columns: 1fr; grid-template-rows: none; gap: 20px; min-height: 0; }
  .hw-sink { grid-column: 1; grid-row: 3; justify-self: start; }
  .hw-lines { display: none; }
  /* Stacked diagram: one vertical connector from the sources down to the
     Munra box, behind the icons, in place of the hidden curves. */
  .hw-stage::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 32px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(var(--accent), var(--ink));
  }
  .hw-sink { position: relative; }
  .nav { gap: 12px; }
  .nav-right { gap: 8px; }
  .nav-cta { padding: 10px 14px; }
  .nav-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* ============================================================
   THE EVIDENCE TAKE
   ============================================================ */

.evidence-take {
  position: relative;
  isolation: isolate;
}

/* The tall scroll runway exists only when the JS engine drives motion. Without
   JS (or in static mode) the section collapses so the crawlable data-sw-seo
   mirror is not pushed down by an empty block. The runway scales with the beat
   count evidence-take.js sets in --et-beats (5 beats = 560vh). */
.evidence-take.et-motion {
  height: calc(var(--et-beats, 5) * 112vh);
  min-height: calc(var(--et-beats, 5) * 640px);
}

.et-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 30px) var(--pad-x) 132px;
  background: var(--bg);
}

.et-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 82% 20%, var(--accent-soft), transparent 54%);
  opacity: 0.72;
  pointer-events: none;
}

.et-chrome {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.et-chrome p,
.et-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.et-count {
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.et-chapters {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
}

.et-chapter {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(440px, 1.35fr);
  align-items: center;
  gap: clamp(44px, 6vw, 100px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.et-chapter:first-child {
  opacity: 1;
}

.et-chapter.is-active {
  pointer-events: auto;
}

/* evidence-take.js shows exactly one chapter (opacity 0 or 1); the
   transition turns the switch into a short crossfade. */
.et-motion .et-chapter {
  transition: opacity 0.28s ease;
}

.et-cta {
  margin-top: 28px;
}

/* The mirror CTA has keyboard focus: outline the visible button instead. */
.et-cta.is-focus-proxy {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.et-sub {
  max-width: 520px;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-wrap: pretty;
}

.et-copy {
  max-width: 650px;
}

.et-eyebrow,
.et-figure-label,
.et-source-meta {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.et-eyebrow {
  margin-bottom: 20px;
}

.et-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}

.et-body {
  max-width: 560px;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.et-visual {
  position: relative;
  width: 100%;
  min-height: clamp(330px, 51vh, 560px);
  overflow: hidden;
  padding: clamp(24px, 3vw, 48px);
  background: var(--bg-paper);
  border-block: 1px solid var(--rule);
  box-shadow: 0 34px 72px -62px var(--ink);
}

.et-figure-label {
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.et-signal {
  display: grid;
  grid-template-rows: auto 1fr 1fr auto;
  gap: 18px;
}

.et-channel {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  border-bottom: 1px solid var(--rule);
}

.et-channel span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.et-channel-a span {
  color: var(--accent-deep);
}

.et-channel svg {
  width: 100%;
  height: 64px;
}

.et-channel path {
  fill: none;
  stroke: var(--ink-mute);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.et-channel-a path {
  stroke: var(--accent);
}

.et-signal-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}

.et-sources {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.et-source-list {
  list-style: none;
  display: grid;
  gap: 16px;
  align-content: center;
}

.et-source-list li {
  display: grid;
  grid-template-columns: 142px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--rule);
}

.et-source-list li p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.3;
  color: var(--ink);
}

.et-grounded-line {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
}

.et-projection {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
}

.et-projection-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  align-self: center;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.et-projection-flow li {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 220px;
  padding: 24px 20px;
  background: var(--bg-paper);
}

.et-projection-flow li:last-child {
  background: var(--ink);
  color: var(--bg-paper);
}

.et-projection-flow span,
.et-projection-flow small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--accent);
}

.et-projection-flow strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 400;
}

.et-projection-flow small {
  color: var(--ink-mute);
}

.et-projection-flow li:last-child small {
  color: var(--bg-paper);
}

.et-product {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 24px;
  background: var(--ink);
}

.et-product .et-figure-label {
  color: var(--bg-paper);
  border-color: var(--rule-deep);
}

.et-product-capture {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--rule-deep);
  background: var(--ink);
}

/* Absolute, so the capture takes its height from the figure (the grid row)
   and crops the shot instead of growing to the image's full height. */
.et-product-shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 145%;
  /* Skip the app header so the highlighted rows sit high in the crop. */
  transform: translateY(-10%);
}

.et-product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.et-product-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.et-product-mask {
  fill: var(--ink);
  opacity: 0;
}

.et-product-focus {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

.et-source-drawer {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  opacity: 0;
  will-change: transform, opacity;
}

.et-source-drawer li {
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-paper);
  border-left: 3px solid var(--accent);
}

.et-source-drawer span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  color: var(--accent-deep);
}

.et-source-drawer p {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}

.et-layers {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.et-layer-list {
  list-style: none;
  display: grid;
  align-content: center;
}

.et-layer-list li {
  display: grid;
  grid-template-columns: 160px 180px 1fr;
  align-items: baseline;
  gap: 24px;
  padding: clamp(20px, 2.6vh, 30px) 0;
  border-bottom: 1px solid var(--rule);
}

.et-layer-list span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}

.et-layer-list strong {
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 400;
}

.et-layer-list p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
}

.et-line-layer {
  position: absolute;
  z-index: 2;
  inset-inline: var(--pad-x);
  bottom: 22px;
  height: 98px;
}

.et-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 62px;
  overflow: visible;
}

.et-line path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.et-line-base {
  stroke: var(--rule);
  stroke-width: 1;
}

.et-line-progress {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* evidence-take.js puts each node (left, top) on the curve. The li is a
   zero-size anchor: the dot centres on it and the label hangs below, with the
   end labels aligned inward so they never run off the stage. */
.et-line-labels {
  position: absolute;
  inset: 0;
  list-style: none;
}

.et-line-labels li {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
}

.et-line-labels li span {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  background: var(--bg);
  transition: background-color 0.2s, border-color 0.2s;
}

.et-line-labels li b {
  position: absolute;
  top: 14px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--ink-mute);
  transition: color 0.2s;
}

.et-line-labels li:first-child b {
  left: -5px;
  transform: none;
}

.et-line-labels li:last-child b {
  left: auto;
  right: -5px;
  transform: none;
}

.et-line-labels li.is-lit span {
  background: var(--accent);
  border-color: var(--accent);
}

.et-line-labels li.is-current b {
  color: var(--accent-deep);
}

.evidence-seo {
  padding: calc(var(--nav-h) + 72px) var(--pad-x) var(--section-y);
  background: var(--bg);
}

.evidence-seo-mark {
  margin-bottom: 56px;
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
}

.evidence-seo-mark::first-letter {
  color: var(--ink);
}

.evidence-seo h1,
.evidence-seo h2 {
  max-width: 1050px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.evidence-seo h1 {
  font-size: clamp(48px, 7vw, 108px);
}

.evidence-seo h2 {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  font-size: clamp(30px, 4vw, 56px);
}

.evidence-seo p:not(.evidence-seo-mark) {
  max-width: 720px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.evidence-seo .btn {
  margin-top: 56px;
}

/* Once evidence-take.js has built the hero from it, the mirror stays in the
   accessibility tree but leaves the layout (visually-hidden clip pattern on
   each child, so its CTA can still surface when it takes keyboard focus). */
.evidence-seo.is-mirror {
  height: 0;
  padding: 0;
}

.evidence-seo.is-mirror > * {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* A data-et-cta link is pinned in place (still clipped), so focusing it never
   makes the browser scroll to the mirror; evidence-take.js scrolls the hero to
   the CTA's beat and outlines the visible button. */
.evidence-seo.is-mirror > [data-et-cta] {
  position: fixed;
  top: 0;
  left: 0;
}

.evidence-seo.is-mirror > .btn:not([data-et-cta]):focus {
  left: var(--pad-x);
  bottom: 24px;
  position: fixed;
  z-index: 60;
  width: auto;
  height: auto;
  margin: 0;
  padding: 14px 22px;
  overflow: visible;
  clip-path: none;
}

.evidence-take.et-static {
  height: auto;
  min-height: 0;
}

.et-static .et-stage {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  display: block;
  padding-bottom: 0;
}

.et-static .et-chrome {
  margin-bottom: 32px;
}

.et-static .et-line-layer {
  display: none;
}

.et-static .et-chapters {
  display: grid;
}

.et-static .et-chapter {
  position: relative;
  inset: auto;
  min-height: 0;
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid var(--rule);
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  will-change: auto;
}

.et-static .et-source-drawer {
  opacity: 1 !important;
  transform: none !important;
}

.et-static .et-product-mask {
  opacity: 0.42 !important;
}

.et-static .et-product-capture {
  aspect-ratio: 16 / 7;
}

.et-static .et-product-focus {
  opacity: 1 !important;
}

@media (max-width: 960px) {
  .et-stage {
    padding-bottom: 116px;
  }

  .et-chapter {
    grid-template-columns: minmax(230px, 0.75fr) minmax(360px, 1.25fr);
    gap: 36px;
  }

  .et-headline {
    font-size: clamp(34px, 5vw, 52px);
  }

  .et-visual {
    min-height: clamp(320px, 48vh, 500px);
  }

  .et-layer-list li {
    grid-template-columns: 120px 1fr;
  }

  .et-layer-list p {
    grid-column: 2;
  }

  .et-projection-flow {
    grid-template-columns: 1fr 1fr;
  }

  .et-projection-flow li {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  .evidence-take.et-motion {
    height: calc(var(--et-beats, 5) * 124vh);
    min-height: calc(var(--et-beats, 5) * 720px);
  }

  /* The scrub offsets chapters by at most 24px here; clip what still drifts
     so hero text never slides under the chrome. */
  .et-chapters {
    overflow: hidden;
  }

  .et-stage {
    min-height: 560px;
    padding: calc(var(--nav-h) + 18px) var(--pad-x) 94px;
  }

  .et-chrome {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding-bottom: 12px;
  }

  .et-chrome p {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .et-chapter,
  .et-static .et-chapter {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 18px;
  }

  .et-eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .et-headline {
    font-size: clamp(29px, 9vw, 42px);
    line-height: 1;
  }

  .et-body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.45;
  }

  .et-visual {
    min-height: 0;
    height: 100%;
    padding: 16px;
  }

  .et-figure-label {
    padding-bottom: 9px;
    font-size: 8px;
  }

  .et-signal {
    gap: 8px;
  }

  .et-channel {
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding-block: 6px;
  }

  .et-channel span {
    font-size: 9px;
  }

  .et-channel svg {
    height: 34px;
  }

  .et-signal-note {
    font-size: 13px;
  }

  .et-sources {
    gap: 10px;
  }

  .et-source-list {
    gap: 7px;
  }

  .et-source-list li {
    grid-template-columns: 92px 1fr;
    gap: 8px;
    padding: 8px 9px;
  }

  .et-source-meta {
    font-size: 8px;
  }

  .et-source-list li p {
    font-size: 13px;
  }

  .et-grounded-line {
    padding-top: 8px;
    font-size: 11px;
  }

  .et-projection {
    gap: 10px;
  }

  .et-projection-flow {
    grid-template-columns: 1fr 1fr;
  }

  .et-projection-flow li {
    min-height: 0;
    gap: 5px;
    padding: 10px;
  }

  .et-projection-flow strong {
    font-size: 17px;
  }

  .et-product {
    gap: 10px;
    padding: 12px;
  }

  .et-source-drawer {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .et-source-drawer li {
    padding: 6px 9px;
  }

  .et-source-drawer span {
    font-size: 8px;
  }

  .et-source-drawer p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.3;
  }

  .et-layer-list li {
    grid-template-columns: 78px 1fr;
    gap: 8px;
    padding: 10px 0;
  }

  .et-layer-list span {
    font-size: 8px;
  }

  .et-layer-list strong {
    font-size: 20px;
  }

  .et-layer-list p {
    font-size: 11px;
  }

  .et-line-layer {
    bottom: 8px;
    height: 76px;
  }

  .et-line {
    height: 44px;
  }

  .et-line-labels li span {
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
  }

  .et-line-labels li b {
    top: 10px;
    letter-spacing: 0.02em;
  }

  .et-line-layer.is-crowded .et-line-labels li:not(.is-current) b {
    visibility: hidden;
  }

  .et-static .et-chapter {
    grid-template-rows: auto auto;
    padding: 56px 0;
  }

  .et-static .et-visual {
    min-height: 330px;
  }

  .evidence-seo {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .evidence-seo-mark {
    margin-bottom: 40px;
  }

  .evidence-seo h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .evidence-seo h2 {
    margin-top: 56px;
  }
}

/* Public page (data-et-compact): small or short screens get the static,
   stacked hero, since the sticky stage clips there (320x568, landscape
   phones, 1280x700 laptops). evidence-take.js uses the same media query. The deck has no
   data-et-compact and keeps its scrub. */
@media (max-width: 720px), (max-height: 760px) {
  [data-et-compact].et-static .et-visual {
    height: auto;
    min-height: 0;
  }

  /* The chrome rule already opens the hero; skip the first chapter's rule and
     top gap so the headline lands on the first screen. */
  [data-et-compact].et-static .et-chapter:first-child {
    padding-top: 8px;
    border-top: 0;
  }
}

/* The public hero's first beat carries an extra audience line, so the
   headline also scales with viewport height to fit short laptop screens
   (1280x700) above the static breakpoint. */
@media (min-width: 961px) {
  [data-et-compact] .et-headline {
    font-size: clamp(40px, min(4.8vw, 7.2vh), 76px);
  }
}

@media (max-width: 720px) {
  [data-et-compact].et-static .et-chapter {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .et-sub {
    margin-top: 10px;
    font-size: 13px;
  }
}
