/* Three linked points stand for a source, a claim, and a research question. */
.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  position: relative;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 9px rgba(131, 229, 197, .13));
}

.mark-orbit {
  stroke-dasharray: 2 6;
  transform-origin: 24px 24px;
  animation: orbit-revolve 14s linear infinite;
}

.mark-link {
  opacity: .72;
}

.mark-trace {
  stroke-dasharray: 7 55;
  animation: trace-evidence 5.5s linear infinite;
}

.mark-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-glow 5.5s ease-in-out infinite;
}

.mark-node-b { animation-delay: 1.1s; }
.mark-node-c { animation-delay: 2.2s; }

.brand .brand-wordmark {
  display: inline-block;
  position: relative;
  color: #f2f5f6;
  animation: wordmark-ink 4.6s ease-in-out infinite;
}

.brand .brand-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #83e5c5, #f0d398);
  box-shadow: 0 0 9px rgba(131, 229, 197, .5);
  transform: scaleX(0);
  transform-origin: left;
  animation: wordmark-scan 4.6s ease-in-out infinite;
}

.hero {
  column-gap: min(6vw, 80px);
}

.hero h1 {
  perspective: 900px;
  font-size: clamp(48px, 6.3vw, 84px);
  line-height: 1.12;
}

.hero-title-trigger {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.hero-title-trigger:focus-visible {
  outline: 2px solid #83e5c5;
  outline-offset: 8px;
  border-radius: 4px;
}

.hero h1 .title-line {
  display: block;
}

.hero h1 .title-line:first-child {
  transform-origin: bottom left;
  animation: claim-breathe 10s ease-in-out infinite;
}

.hero h1 .title-line:nth-child(2) {
  width: max-content;
  max-width: 100%;
  animation: receipt-breathe 10s ease-in-out infinite;
}

.hero h1 .title-rule {
  display: block;
  width: 80%;
  height: 3px;
  margin: .2em auto 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #83e5c5 0%, #f0d398 70%, transparent 100%);
  box-shadow: 0 0 19px rgba(131, 229, 197, .34);
  transform-origin: left;
  animation: receipt-rule-loop 8s ease-in-out infinite;
}

.hero h1 .title-accent {
  background: linear-gradient(105deg, #83e5c5 30%, #ddfff0 47%, #f0d398 54%, #83e5c5 71%);
  background-size: 260% 100%;
  background-position: 100% 0;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-sheen 7s ease-in-out 1.7s infinite;
}

.hero-title-trigger.is-unraveling .title-line:first-child {
  animation: unravel-claim 1.1s cubic-bezier(.19, 1, .22, 1) .12s both;
}

.hero-title-trigger.is-unraveling .title-line:nth-child(2) {
  animation: unravel-receipt 1.45s cubic-bezier(.19, 1, .22, 1) .34s both;
}

.hero-title-trigger.is-unraveling .title-rule {
  animation: unravel-rule 1s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes orbit-revolve {
  to { transform: rotate(360deg); }
}

@keyframes trace-evidence {
  to { stroke-dashoffset: -62; }
}

@keyframes node-glow {
  0%, 25%, 100% { opacity: .8; transform: scale(1); }
  13% { opacity: 1; transform: scale(1.34); }
}

@keyframes claim-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.015em); }
}

@keyframes receipt-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-.02em); }
}

@keyframes receipt-rule-loop {
  0%, 7%, 100% { opacity: 0; transform: scaleX(0); }
  18%, 80% { opacity: 1; transform: scaleX(1); }
  94% { opacity: 0; transform: scaleX(0); }
}

@keyframes unravel-claim {
  from { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(.35em) rotateX(-12deg); }
  to { opacity: 1; clip-path: inset(0 0 0); transform: translateY(0) rotateX(0); }
}

@keyframes unravel-receipt {
  from { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(.28em); }
  to { opacity: 1; clip-path: inset(0 0 0); transform: translateY(0); }
}

@keyframes unravel-rule {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes title-sheen {
  0%, 66%, 100% { background-position: 100% 0; }
  85% { background-position: 0 0; }
}

@keyframes wordmark-ink {
  0%, 12%, 100% { color: #f2f5f6; text-shadow: none; }
  30%, 58% { color: #83e5c5; text-shadow: 0 0 11px rgba(131, 229, 197, .5); }
  76% { color: #f0d398; text-shadow: 0 0 8px rgba(240, 211, 152, .35); }
}

@keyframes wordmark-scan {
  0%, 8% { opacity: 0; transform: scaleX(0); }
  18% { opacity: 1; }
  55% { opacity: 1; transform: scaleX(1); }
  80%, 100% { opacity: 0; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mark-orbit,
  .mark-trace,
  .mark-node,
  .brand .brand-wordmark,
  .brand .brand-wordmark::after,
  .hero h1 .title-line,
  .hero h1 .title-rule,
  .hero h1 .title-accent {
    animation: none;
  }

  .brand .brand-wordmark::after {
    display: none;
  }

  .hero h1 .title-line {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  .hero h1 .title-rule {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .brand .brand-wordmark {
    animation: none;
    color: CanvasText;
    text-shadow: none;
  }

  .brand .brand-wordmark::after {
    display: none;
  }

  .hero h1 .title-accent {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 420px) {
  .header-actions {
    display: none;
  }
  .hero h1 { font-size: clamp(38px, 12vw, 50px); }
  .hero-title-trigger, .hero h1 .title-line:nth-child(2) {
    width: 100%;
    min-width: 0;
  }
}

/* Editorial research desk: a consistent visual language across every page. */
:root {
  --bg: #0b141b;
  --panel: #111e27;
  --panel-soft: #172831;
  --line: #38535a;
  --mint: #a5dfc8;
  --gold: #e6c58f;
  --soft: #d8e3e2;
  --muted: #b8c9cc;
  background: var(--bg);
}

body {
  background: linear-gradient(120deg, #0b141b, #101e27 57%, #0b151f);
  color: #f1f2eb;
}

::selection { background: #a5dfc8; color: #102229; }
a { text-underline-offset: .2em; }

.site-header {
  background: rgba(11, 20, 27, .94);
  border-color: #46615f;
  backdrop-filter: blur(15px);
}
.header-inner { min-height: 86px; }
.brand strong {
  color: #e9ede8;
  font-size: 12px;
  letter-spacing: .14em;
}
.brand small { color: #aabdbf; letter-spacing: .015em; }
.brand-mark { width: 42px; height: 42px; }
.top-nav { align-items: center; }
.top-nav a {
  position: relative;
  color: #c0cdcc;
  transition: color .2s ease;
}
.top-nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 100%;
  bottom: -12px;
  background: var(--mint);
  transition: right .25s ease;
}
.top-nav a:hover::after, .top-nav a.active::after,
.top-nav a:focus-visible::after { right: 0; }
.header-actions { color: #d5e3d9; letter-spacing: .075em; }
.mobile-nav-toggle { border-color: #60817d; }

main { max-width: 1460px; }
.section-kicker, .eyebrow, .how-number, .example-label {
  color: var(--mint);
  font-size: 11px;
  letter-spacing: .17em;
  font-weight: 800;
}
.section-kicker::before, .eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 9px;
  background: currentColor;
  vertical-align: .28em;
}

.hero {
  align-items: center;
  min-height: min(740px, 80vh);
  gap: clamp(36px, 7vw, 110px);
  padding: 92px 0 75px;
}
.hero-copy { max-width: 850px; }
.hero h1, .page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.055em;
}
.hero h1 {
  font-size: clamp(58px, 6.3vw, 91px);
  line-height: 1.04;
  margin: 27px 0 34px;
}
.hero h1 .title-line:nth-child(2) { padding-bottom: .08em; }
.hero-lede {
  max-width: 53ch;
  color: #d1dddb;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
}
.hero-actions { margin-top: 33px; }
.button-primary, .button-quiet {
  border-radius: 3px;
  padding: 13px 19px;
  font-weight: 750;
}
.button-primary { background: #a5dfc8; color: #11262a; }
.button-quiet { color: #e0e8e3; border-color: #607976; }
.button-primary:hover, .button-quiet:hover { transform: none; }

.hero-card {
  position: relative;
  min-height: 335px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #d0cfbd;
  border-radius: 3px;
  color: #17262b;
  background: #e9e6d8;
  box-shadow: 15px 15px 0 rgba(72, 107, 105, .22);
}
.hero-card::before {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 3px;
  height: 68px;
  background: #a7cabc;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .status-chip, .hero-card .mono,
.hero-card .hero-card-bottom, .hero-card .arrow { color: #385b5a; }
.hero-card .status-chip { letter-spacing: .11em; }
.hero-card-title {
  color: #172b2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.5vw, 38px);
  line-height: 1.18;
}
.hero-card-title strong { color: #266659; }
.hero-card-bottom { border-top-color: #a8b9ae; }

.page-hero {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0 48px;
  border-color: #506764;
}
.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(43px, 5.5vw, 76px);
  line-height: 1.06;
}
.page-hero p { max-width: 64ch; color: #cfdddd; }
.page-actions { align-items: center; }

.scope-banner, .page-note {
  border: 0;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  background: #202b2d;
  color: #e2e7dc;
}
.scope-banner { padding: 16px 19px; }
.scope-banner p, .page-note { color: #dce5df; }
.scope-banner strong, .page-note strong { color: #f2d6a6; }

.atlas-feature, .atlas-next, .method-deep, .demo-path, .comparison-section {
  border: 1px solid #526d69;
  border-radius: 3px;
  background: #142630;
}
.atlas-feature, .demo-path, .comparison-section {
  position: relative;
}
.atlas-feature::after, .demo-path::after, .comparison-section::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  top: -1px;
  right: -1px;
  border-top: 3px solid var(--mint);
  border-right: 3px solid var(--mint);
  pointer-events: none;
}
.atlas-feature h2, .atlas-next h2, .method-deep h2,
.reader-guide h2, .atlas-intro h2, .comparison-head h2,
.how-heading h2, .agent-heading h2, .page-toolbar h2,
.dossier-heading h2, .demo-path h2, .section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.16;
}
.atlas-feature p, .demo-path p, .comparison-head > p,
.how-heading > p { color: #d2dfdc; }

.page-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid #4b6663;
  border-left: 1px solid #4b6663;
}
.page-link-card {
  min-height: 210px;
  padding: 24px;
  border: 0;
  border-right: 1px solid #4b6663;
  border-bottom: 1px solid #4b6663;
  border-radius: 0;
  background: transparent;
}
.page-link-card:hover, .page-link-card:focus-visible {
  transform: none;
  background: #193038;
}
.page-link-card strong {
  margin-top: 30px;
  color: #f2f1e8;
  font: 500 25px/1.25 Georgia, serif;
}
.page-link-card p { color: #d1dddc; }
.page-link-card span:last-child { color: var(--mint); }
.demo-path-links a {
  border-radius: 0;
  background: #0f2029;
  border-color: #58746d;
  color: #f1f2eb;
  font-size: 15px;
}
.demo-path-links span { font: 700 12px ui-monospace, monospace; }

.panel, .source-card, .atlas-question, .dossier-claim,
.dossier-side, .reader-guide-grid article, .how-card,
.agent-console, .agent-result, .comparison-card,
.disagreement-view, .agent-example, .page-empty {
  border-radius: 3px;
}
.source-card, .atlas-question, .dossier-claim,
.reader-guide-grid article, .how-card, .agent-example {
  background: #142630;
  border-color: #4b6765;
}
.source-card:hover, .atlas-question:hover,
.atlas-question[aria-pressed="true"] {
  transform: none;
  background: #1a353a;
}
.source-title, .atlas-question strong {
  color: #f2f1e9;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.source-title { font-size: 22px; }
.atlas-question strong { font-size: 23px; }
.atlas-card-meta, .source-date, .dossier-source span { color: #c2d0cd; }
.source-url, .dossier-source a, .agent-sources a { overflow-wrap: anywhere; }
.search-box { border-bottom-color: #819a8d; }
.search-box input { color: #f4f5ee; }
.dossier-side { background: #20383a; }
.agent-console { background: #19332f; }
.agent-result { background: #0d2328; }
.site-footer { border-color: #46615f; color: #c4d3d0; }

@media (max-width: 1100px) {
  .top-nav.is-open {
    border-radius: 3px;
    border-color: #617d72;
    background: #10242a;
  }
  .top-nav a::after { bottom: 2px; }
}
@media (max-width: 900px) {
  .page-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 0; }
}
@media (max-width: 760px) {
  .hero { padding: 64px 0 50px; gap: 45px; }
  .hero h1 { font-size: clamp(46px, 11vw, 72px); }
  .hero-card { min-height: 250px; box-shadow: 8px 8px 0 rgba(72,107,105,.22); }
  .page-hero h1 { font-size: clamp(42px, 10vw, 62px); }
}
@media (max-width: 520px) {
  .header-inner { min-height: 73px; }
  .brand strong { font-size: 11px; letter-spacing: .065em; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 54px); }
  .hero h1 .title-line:nth-child(2) { width: 100%; }
  .page-links { grid-template-columns: minmax(0, 1fr); }
  .page-link-card { min-height: 0; padding: 22px 17px; }
  .page-link-card strong { margin-top: 16px; }
  .hero-card::before { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .top-nav a::after { transition: none; }
}

/* Curated research path: published dossier previews and a short reading workflow. */
.featured-research { margin-top: 58px; }
.featured-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.featured-heading > div { min-width: 0; }
.featured-heading h2 { max-width: 16ch; font-size: clamp(32px, 3.5vw, 49px); }
.featured-heading p { max-width: 64ch; }
.featured-all {
  flex: none;
  color: var(--mint);
  font-size: 15px;
  font-weight: 750;
  text-decoration-thickness: 1px;
}
.featured-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 300px;
  padding: clamp(19px, 2.3vw, 29px);
  border: 1px solid #5d7971;
  background: #0e2028;
  color: #f3f1e9;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.featured-card:hover, .featured-card:focus-visible {
  border-color: var(--mint);
  background: #193038;
  transform: translateY(-3px);
}
.featured-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.featured-card-top, .featured-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 750 11px/1.5 ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint);
}
.featured-arrow { font-size: 21px; line-height: 1; }
.featured-card-title {
  display: block;
  margin-top: 33px;
  font: 500 clamp(24px, 2.1vw, 31px)/1.17 Georgia, serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.featured-card-summary {
  display: -webkit-box;
  margin-top: 16px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: #d1dedb;
  font-size: 15px;
  line-height: 1.55;
}
.featured-card-footer {
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
  color: #c4d4d0;
  font-size: 10px;
  letter-spacing: .015em;
}
.featured-review { display: block; margin-top: 6px; color: #e6c58f; font-size: 12px; }
.featured-state { grid-column: 1 / -1; padding: 24px; border: 1px solid #5d7971; }
.featured-state a { display: inline-block; margin-left: 8px; color: var(--mint); }
.atlas-dossier { scroll-margin-top: 105px; }
.atlas-toolbar .atlas-coverage {
  max-width: 70ch;
  margin-top: 10px;
  color: #d6e2dc;
  font-size: 14px;
  line-height: 1.55;
}
.featured-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid #526d69;
}
.featured-process > div { min-width: 0; }
.featured-process span { display: block; color: var(--mint); font: 750 11px ui-monospace, monospace; letter-spacing: .09em; }
.featured-process strong { display: block; margin-top: 11px; font: 500 21px Georgia, serif; }
.featured-process p { margin: 7px 0 0; font-size: 14px; line-height: 1.5; }

@media (max-width: 900px) {
  .featured-cards { grid-template-columns: minmax(0, 1fr); }
  .featured-card { min-height: 230px; }
  .featured-card-title { margin-top: 18px; }
}
@media (max-width: 620px) {
  .featured-heading { align-items: start; flex-direction: column; gap: 7px; }
  .featured-all { flex: auto; }
  .featured-process { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .featured-process > div { border-left: 2px solid #5d7971; padding-left: 16px; }
  .featured-card { padding: 21px 18px; }
  .featured-state a { display: block; margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-card { transition: none; }
  .featured-card:hover, .featured-card:focus-visible { transform: none; }
}

/* A research journal with a distinct accent and a visible reading path. */
body[data-page="home"] { --page-accent: #a5dfc8; --page-haze: rgba(94, 183, 151, .14); }
body[data-page="atlas"] { --page-accent: #8de0c7; --page-haze: rgba(83, 194, 159, .18); --folio: "00"; }
body[data-page="research"] { --page-accent: #97d8ef; --page-haze: rgba(88, 162, 204, .18); --folio: "01"; }
body[data-page="compare"] { --page-accent: #f1b59f; --page-haze: rgba(217, 131, 103, .17); --folio: "02"; }
body[data-page="sources"] { --page-accent: #e7cf98; --page-haze: rgba(216, 168, 94, .15); --folio: "03"; }
body[data-page="agent"] { --page-accent: #c9b5f0; --page-haze: rgba(155, 128, 213, .16); --folio: "04"; }
body[data-page="method"] { --page-accent: #b2dfba; --page-haze: rgba(119, 184, 136, .15); --folio: "05"; }

html { scrollbar-color: #6b9188 #0b151d; scrollbar-width: thin; }
body {
  background: radial-gradient(ellipse 65vw 46vw at 85% -9%, var(--page-haze, rgba(94,183,151,.14)), transparent 75%),
    linear-gradient(120deg, #0b141b, #101e27 57%, #0b151f);
}
body .top-nav a.active { color: var(--page-accent); }
body .top-nav a.active::after { background: var(--page-accent); }
body .page-hero .section-kicker { color: var(--page-accent); }

.reading-progress {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--page-accent), #f0d398);
  box-shadow: 0 0 13px var(--page-accent);
  pointer-events: none;
}
.return-top {
  position: fixed;
  z-index: 90;
  right: clamp(15px, 2vw, 28px);
  bottom: clamp(15px, 2vw, 28px);
  padding: 11px 14px;
  border: 1px solid var(--page-accent);
  border-radius: 3px;
  background: #13262c;
  box-shadow: 0 9px 30px rgba(0, 0, 0, .35);
  color: #f3f2e9;
  font: 800 11px ui-monospace, monospace;
  letter-spacing: .11em;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.return-top[hidden] { display: none; }
.return-top:hover, .return-top:focus-visible { background: #27443f; transform: translateY(-3px); }
.return-top:focus-visible { outline: 2px solid var(--page-accent); outline-offset: 3px; }

.page-hero {
  isolation: isolate;
  min-height: 455px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 83% 50%, var(--page-haze), transparent 31%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(168,213,193,.025) 80px 81px);
}
.page-hero::before {
  content: var(--folio, "");
  position: absolute;
  z-index: -1;
  top: 3%;
  right: 4%;
  width: min(33vw, 390px);
  height: 90%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--page-accent) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 38px color-mix(in srgb, var(--page-accent) 3%, transparent),
    inset 0 0 0 34px color-mix(in srgb, var(--page-accent) 4%, transparent);
  color: color-mix(in srgb, var(--page-accent) 28%, transparent);
  font: 400 clamp(92px, 14vw, 205px)/1 Georgia, serif;
  letter-spacing: -.09em;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--page-accent), rgba(230,197,143,.75) 32%, transparent 75%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { max-width: 13ch; text-wrap: balance; }
.page-hero h1::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin: 24px 0 0;
  background: var(--page-accent);
}
.page-hero p { max-width: 57ch; }
.page-hero .button-primary {
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: #11262a;
}
.page-hero .button-quiet:hover,
.page-hero .button-quiet:focus-visible { border-color: var(--page-accent); }

.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 3%;
  top: 4%;
  width: min(43vw, 510px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 27px, rgba(165,223,200,.11) 28px 29px, transparent 30px 55px),
    radial-gradient(circle, rgba(165,223,200,.12), transparent 63%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
  pointer-events: none;
}
.hero-card { transform: rotate(1.2deg); transition: transform .35s ease, box-shadow .35s ease; }
.hero-card:hover { transform: rotate(0) translateY(-5px); box-shadow: 20px 20px 0 rgba(72,107,105,.25); }

.scope-banner { border-left-color: var(--page-accent); background: linear-gradient(90deg, color-mix(in srgb, var(--page-accent) 12%, #17282b), #202b2d 68%); }
.scope-banner strong, .scope-banner-icon { color: var(--page-accent); }
.scope-banner-icon { border-color: var(--page-accent); }
.page-note { border-left-color: var(--page-accent); }

.atlas-feature, .atlas-next, .demo-path, .comparison-section, .method-deep, .reader-guide {
  background-image: linear-gradient(140deg, color-mix(in srgb, var(--page-accent) 8%, #142630), #142630 56%);
  border-color: color-mix(in srgb, var(--page-accent) 42%, #3c5654);
}
.atlas-feature::after, .demo-path::after, .comparison-section::after { border-color: var(--page-accent); }
.featured-research { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--page-accent) 28%, transparent); }
.featured-card:hover, .featured-card:focus-visible { border-color: var(--page-accent); }

.source-card, .atlas-question, .page-link-card, .how-card, .featured-card, .reader-guide-grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.source-card::before, .atlas-question::before, .page-link-card::before,
.how-card::before, .reader-guide-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--page-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
  pointer-events: none;
}
.source-card:hover::before, .source-card:focus-within::before,
.atlas-question:hover::before, .atlas-question:focus-visible::before,
.atlas-question[aria-pressed="true"]::before,
.page-link-card:hover::before, .page-link-card:focus-visible::before,
.how-card:hover::before, .reader-guide-grid article:hover::before { transform: scaleY(1); }
.source-card:hover, .atlas-question:hover, .page-link-card:hover, .how-card:hover {
  border-color: var(--page-accent);
  box-shadow: 0 15px 35px rgba(0,0,0,.13);
}
.source-card, .how-card, .reader-guide-grid article { transition: border-color .24s ease, background .24s ease, transform .24s ease; }
.source-card:hover, .how-card:hover, .reader-guide-grid article:hover { transform: translateY(-3px); background-color: #1b3237; }
.atlas-question[aria-pressed="true"] { border-color: var(--page-accent); background: #1b383a; }
.atlas-card-action, .source-card-bottom, .page-link-card span:last-child { color: var(--page-accent); }

.atlas-group { padding-top: 11px; }
.atlas-group-heading { border-bottom-color: var(--page-accent); }
.atlas-group-heading h3::before { content: "◆"; margin-right: 10px; color: var(--page-accent); font-size: .55em; vertical-align: .18em; }
.dossier-side, .question-panel { box-shadow: inset 3px 0 0 var(--page-accent); }
.evidence-row { border-left: 2px solid color-mix(in srgb, var(--page-accent) 65%, transparent); }
.timeline-marker { box-shadow: 0 0 0 4px color-mix(in srgb, var(--page-accent) 14%, transparent); }
.comparison-card, .agent-console { box-shadow: 0 18px 46px rgba(0,0,0,.16); }
body[data-page="compare"] .disagreement-view.conflicts { background: #302724; border-color: #d99a83; }
body[data-page="agent"] .agent-console { background: linear-gradient(140deg, #27253d, #141e2e 68%); border-color: #77648d; }

@media (min-width: 901px) {
  .atlas-toolbar, body[data-page="sources"] .page-toolbar {
    position: sticky;
    top: 86px;
    z-index: 10;
    padding: 17px 20px;
    margin-inline: -20px;
    border: 1px solid color-mix(in srgb, var(--page-accent) 32%, #355157);
    background: rgba(15, 31, 39, .94);
    box-shadow: 0 15px 30px rgba(0,0,0,.16);
    backdrop-filter: blur(14px);
  }
}
body.has-section-motion .reveal-section { opacity: .75; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
body.has-section-motion .reveal-section.is-in-view { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .page-hero { min-height: 0; padding-block: 57px 43px; }
  .page-hero::before { right: -6%; top: 6%; width: 48vw; height: 66%; opacity: .58; }
  .page-hero h1 { max-width: 100%; }
  .hero::before { width: 70vw; right: -8%; opacity: .35; }
  .hero-card { transform: none; }
  .return-top { padding: 10px 12px; }
}
@media (max-width: 420px) {
  .page-hero::before { width: 55vw; right: -12%; top: 0; height: 50%; opacity: .38; }
  .page-hero h1 { position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card, .source-card, .how-card, .reader-guide-grid article, .return-top { transition: none; }
  .hero-card:hover, .source-card:hover, .how-card:hover, .reader-guide-grid article:hover, .return-top:hover { transform: none; }
  body.has-section-motion .reveal-section { opacity: 1; transform: none; transition: none; }
}
@media (forced-colors: active) {
  .reading-progress { background: Highlight; box-shadow: none; }
  .page-hero::before, .hero::before { display: none; }
}

/* Keep the reading notes inside their panel as the viewport narrows. */
.reader-guide { padding: clamp(22px, 3vw, 38px); }
.reader-guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}
.reader-guide-grid article { min-width: 0; padding: clamp(18px, 2vw, 26px); }
.reader-guide h2, .reader-guide-grid h3, .reader-guide-grid p,
.reader-guide > a { max-width: 100%; overflow-wrap: anywhere; }
.reader-guide-grid p { line-height: 1.7; }
.reader-guide > a { display: inline-block; }
