/* ============================================================
   COMPASS — cartographic editorial theme
   Paper & ink with copper bearing accents
   ============================================================ */

:root {
  --paper: #F6F1E7;
  --paper-deep: #EFE7D7;
  --ink: #0E1F2F;
  --ink-soft: #2C3E4E;
  --copper: #C0622B;
  --copper-soft: #D07E4C;
  --gold: #C99B3F;
  --line: rgba(14, 31, 47, 0.16);
  --line-light: rgba(246, 241, 231, 0.18);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;

  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--copper); color: var(--paper); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; }

a { color: inherit; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.65,.3,1), transform 0.8s cubic-bezier(.2,.65,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__rose-spin { animation: none !important; }
  .hero__word { animation: none !important; opacity: 1 !important; }
}

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem var(--pad);
  transition: background 0.35s, box-shadow 0.35s, color 0.35s;
  color: var(--ink);
}
.nav.is-scrolled {
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.14em;
  text-decoration: none;
}
.nav__rose { width: 26px; height: 26px; transition: transform 0.6s cubic-bezier(.2,.65,.3,1); }
.nav__brand:hover .nav__rose { transform: rotate(180deg); }
.nav__links { display: flex; gap: 1.8rem; align-items: center; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.04em; }
.nav__links a { text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__lang {
  opacity: 1 !important;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.12em;
  border: 1.5px solid currentColor;
  padding: 0.35rem 0.7rem; border-radius: 99px;
  transition: background 0.2s, color 0.2s;
}
.nav__lang:hover { background: var(--ink); color: var(--paper) !important; }
.nav__cta {
  opacity: 1 !important;
  border: 1.5px solid var(--copper); color: var(--copper);
  padding: 0.4rem 0.95rem; border-radius: 99px; transition: background 0.2s, color 0.2s;
}
.nav__cta:hover { background: var(--copper); color: var(--paper); }
@media (max-width: 820px) { .nav__links a:not(.nav__cta):not(.nav__lang) { display: none; } }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(201, 155, 63, 0.10), transparent 60%),
    var(--paper);
}
.hero__contours {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cg fill='none' stroke='%230E1F2F' stroke-opacity='0.07' stroke-width='1.2'%3E%3Cpath d='M-50 720 C 150 640, 260 760, 460 690 S 780 600, 960 660'/%3E%3Cpath d='M-50 780 C 160 700, 280 820, 480 750 S 800 660, 960 720'/%3E%3Cpath d='M-50 840 C 170 760, 300 880, 500 810 S 820 720, 960 780'/%3E%3Cpath d='M-50 660 C 140 580, 240 700, 440 630 S 760 540, 960 600'/%3E%3Cpath d='M-50 600 C 130 530, 220 640, 420 575 S 740 490, 960 545'/%3E%3Ccircle cx='710' cy='210' r='60'/%3E%3Ccircle cx='710' cy='210' r='110'/%3E%3Ccircle cx='710' cy='210' r='165'/%3E%3Ccircle cx='710' cy='210' r='225'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px 900px;
}
.hero__rose {
  position: absolute; right: max(-6vw, -120px); top: 50%;
  width: clamp(340px, 42vw, 620px); height: auto;
  transform: translateY(-50%);
  color: var(--ink); opacity: 0.9; pointer-events: none;
}
.hero__rose-spin { transform-origin: 200px 200px; animation: rose-drift 90s linear infinite; }
@keyframes rose-drift { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero__rose { opacity: 0.18; right: -30vw; } }

.hero__inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 7rem var(--pad) 4rem; width: 100%; }
.hero__kicker {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--copper); display: flex; align-items: center; gap: 0.7rem; margin-bottom: 2rem;
}
.tick { display: inline-block; width: 34px; height: 2px; background: var(--copper); }

.hero__title {
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  max-width: 11ch;
  margin-bottom: 2.2rem;
}
.hero__word {
  display: inline-block; opacity: 0;
  animation: word-rise 0.9s cubic-bezier(.2,.65,.3,1) forwards;
  animation-delay: calc(var(--d) * 90ms + 150ms);
}
.hero__word--accent { color: var(--copper); font-style: italic; font-weight: 480; }
@keyframes word-rise { from { opacity: 0; transform: translateY(0.45em) rotate(1.2deg); } to { opacity: 1; transform: none; } }

.hero__acronym { max-width: 46rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); margin-bottom: 2.6rem; }
.hero__acronym strong { font-family: var(--font-mono); letter-spacing: 0.1em; color: var(--ink); }
.hero__acronym em { font-family: var(--font-display); }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.2rem; }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem; border-radius: 99px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,31,47,0.25); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--copper { background: var(--copper); color: #fff; }
.btn--copper:hover { background: var(--copper-soft); transform: translateY(-2px); }

.hero__coords {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--ink-soft); opacity: 0.7; display: flex; gap: 1rem; flex-wrap: wrap;
}
.hero__coords-sep { color: var(--copper); }

/* ============ STATS ============ */
.stats { background: var(--ink); color: var(--paper); padding: 4.5rem var(--pad) 3rem; }
.stats__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
}
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats__grid { grid-template-columns: 1fr; } }
.stat { border-top: 2px solid var(--copper); padding-top: 1.2rem; }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; margin-bottom: 0.6rem;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 0.9rem; line-height: 1.5; opacity: 0.75; }
.stats__source {
  max-width: var(--max); margin: 3rem auto 0;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; opacity: 0.45;
}

/* ============ SECTIONS ============ */
.section { padding: clamp(5rem, 9vw, 8.5rem) var(--pad); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper-deep); }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__num {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--copper); display: block; margin-bottom: 1.2rem;
}
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 20ch; }
.section__sub { margin-top: 1.4rem; max-width: 44rem; color: inherit; opacity: 0.78; font-size: 1.05rem; }

/* ---------- problem ---------- */
.problem__cols { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 820px) { .problem__cols { grid-template-columns: 1fr; } }
.problem__lead p {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.45; font-weight: 420;
}
.dropcap::first-letter {
  font-size: 3.2em; float: left; line-height: 0.85;
  padding-right: 0.12em; color: var(--copper); font-weight: 600;
}
.problem__body p { margin-bottom: 1.3rem; color: var(--ink-soft); }
.pullquote {
  margin-top: 2.2rem; padding: 1.8rem 2rem;
  border-left: 3px solid var(--copper);
  background: rgba(192, 98, 43, 0.06);
}
.pullquote p { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; line-height: 1.45; color: var(--ink); margin-bottom: 0.8rem; }
.pullquote cite { font-family: var(--font-mono); font-style: normal; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--copper); }

/* ---------- lenses ---------- */
.lenses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .lenses__grid { grid-template-columns: 1fr; } }
.lens {
  border: 1px solid var(--line-light); border-radius: 4px;
  padding: 2.2rem 1.9rem;
  position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.lens:hover { transform: translateY(-4px); border-color: var(--copper); }
.lens__index {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 300; font-style: italic;
  color: var(--copper); display: block; line-height: 1; margin-bottom: 1.4rem;
}
.lens h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.lens__tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.lens p:not(.lens__tag) { font-size: 0.95rem; opacity: 0.82; margin-bottom: 1.4rem; }
.lens__cite { font-family: var(--font-mono); font-size: 0.72rem; opacity: 0.5; }

/* ---------- constraints ---------- */
.constraint--binding {
  border: 2px solid var(--copper); border-radius: 6px;
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(192,98,43,0.08), transparent 70%),
    #fff;
  box-shadow: 8px 8px 0 rgba(192, 98, 43, 0.14);
}
.constraint__badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--copper); color: #fff;
  padding: 0.35rem 0.9rem; border-radius: 99px; margin-bottom: 1.4rem;
}
.constraint--binding h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.constraint--binding p { max-width: 56rem; color: var(--ink-soft); }

.constraint__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .constraint__grid { grid-template-columns: 1fr; } }
.constraint__grid .constraint {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 2rem 1.8rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.constraint__grid .constraint:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,31,47,0.10); }
.constraint__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--copper); letter-spacing: 0.15em; display: block; margin-bottom: 1rem; }
.constraint__grid h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.constraint__grid p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- pathway ---------- */
.pathway { position: relative; }
.pathway__route { width: 100%; height: 90px; display: block; margin-bottom: -30px; }
.pathway__route-line { stroke-dashoffset: 0; animation: route-flow 30s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -560; } }

.pathway__stops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
@media (max-width: 720px) { .pathway__stops { grid-template-columns: 1fr; } .pathway__route { display: none; } }
.stop {
  font-family: var(--font-body); text-align: left; cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  padding: 1.4rem 1.5rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  color: var(--ink);
}
.stop:hover { transform: translateY(-3px); border-color: var(--copper); }
.stop.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stop__marker {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--copper); margin-bottom: 0.9rem;
  background: transparent; transition: background 0.25s;
}
.stop.is-active .stop__marker { background: var(--copper); }
.stop__bearing { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; opacity: 0.55; display: block; margin-bottom: 0.25rem; }
.stop__name { font-family: var(--font-display); font-size: 1.7rem; font-weight: 560; display: block; margin-bottom: 0.3rem; }
.stop__desc { font-size: 0.83rem; opacity: 0.7; display: block; }

.stage {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  animation: stage-in 0.5s cubic-bezier(.2,.65,.3,1);
}
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px); } }
.stage[hidden] { display: none; }
.stage__col {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.7rem;
}
.stage__col--accent { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stage__col h4 {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.55rem;
}
.stage__icon { color: var(--copper); font-size: 1rem; }
.stage__col ul { list-style: none; }
.stage__col li {
  font-size: 0.92rem; padding: 0.55rem 0 0.55rem 1.2rem; position: relative;
  border-bottom: 1px dashed var(--line);
}
.stage__col--accent li { border-bottom-color: var(--line-light); }
.stage__col li:last-child { border-bottom: none; }
.stage__col li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--copper);
}

/* ---------- what works ---------- */
.works__list { display: grid; gap: 0; }
.work {
  display: grid; grid-template-columns: 120px 1fr; gap: 2rem;
  padding: 2.4rem 0; border-top: 1px solid var(--line-light);
  transition: padding-left 0.3s;
}
.work:hover { padding-left: 1rem; }
.work:last-child { border-bottom: 1px solid var(--line-light); }
@media (max-width: 640px) { .work { grid-template-columns: 1fr; gap: 0.8rem; } }
.work__num {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 3rem; color: var(--copper); line-height: 1;
}
.work h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 0.6rem; }
.work p { max-width: 46rem; opacity: 0.78; font-size: 0.98rem; }

/* ---------- recommendations ---------- */
.recs__tabs { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.recs__tab {
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  padding: 0.65rem 1.4rem; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.recs__tab:hover { border-color: var(--copper); color: var(--copper); }
.recs__tab.is-active { background: var(--copper); border-color: var(--copper); color: #fff; }
.recs__panel { list-style: none; counter-reset: rec; animation: stage-in 0.5s cubic-bezier(.2,.65,.3,1); }
.recs__panel[hidden] { display: none; }
.recs__panel li {
  counter-increment: rec;
  position: relative; padding: 1.3rem 0 1.3rem 3.6rem;
  border-bottom: 1px solid var(--line);
  max-width: 54rem; color: var(--ink-soft); font-size: 1rem;
}
.recs__panel li strong { color: var(--ink); }
.recs__panel li::before {
  content: counter(rec, decimal-leading-zero);
  position: absolute; left: 0; top: 1.15rem;
  font-family: var(--font-mono); font-size: 1rem; font-weight: 600; color: var(--copper);
}

/* ---------- evidence ---------- */
.evidence__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .evidence__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .evidence__grid { grid-template-columns: 1fr; } }
.ev { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 1.6rem; }
.ev__num { font-family: var(--font-display); font-size: 3.4rem; font-weight: 400; color: var(--copper); display: block; line-height: 1; margin-bottom: 0.7rem; }
.ev__label { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.evidence__note p { max-width: 54rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- author ---------- */
.author__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 820px) { .author__grid { grid-template-columns: 1fr; } }
.author__bio h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 0.7rem; }
.author__role { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--gold); margin-bottom: 1.6rem; line-height: 1.7; }
.author__bio p:not(.author__role) { opacity: 0.82; max-width: 46rem; }
.author__cta {
  border: 1px solid var(--line-light); border-radius: 6px;
  padding: 2.4rem 2.2rem;
  background: linear-gradient(145deg, rgba(192,98,43,0.14), rgba(192,98,43,0.03));
}
.author__cta h3 { font-size: 1.7rem; margin-bottom: 0.9rem; }
.author__cta p { opacity: 0.8; font-size: 0.95rem; margin-bottom: 1.6rem; }
.author__cta .btn { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.03em; margin: 0 0.6rem 0.6rem 0; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-light); padding: 2rem var(--pad); }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; opacity: 0.55;
}

/* ============ DIAGNOSTIC ============ */
.diag-page { min-height: 100svh; }
.diag { max-width: 780px; margin: 0 auto; padding: 8rem var(--pad) 5rem; }
.diag__head { margin-bottom: 3rem; }
.diag__head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 1rem 0 1.2rem; }
.diag__head p { color: var(--ink-soft); max-width: 40rem; }

.diag__progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.diag__progress-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--copper); white-space: nowrap; }
.diag__bar { flex: 1; height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.diag__bar-fill { height: 100%; width: 0%; background: var(--copper); border-radius: 99px; transition: width 0.4s cubic-bezier(.2,.65,.3,1); }

.diag__card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  animation: stage-in 0.45s cubic-bezier(.2,.65,.3,1);
}
.diag__block {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.9rem;
}
.diag__q { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 560; line-height: 1.25; margin-bottom: 1.8rem; }
.diag__opts { display: grid; gap: 0.8rem; }
.diag__opt {
  text-align: left; font-family: var(--font-body); font-size: 1rem; line-height: 1.5;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px;
  padding: 1.05rem 1.3rem; cursor: pointer; color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.diag__opt:hover { border-color: var(--copper); transform: translateX(4px); }
.diag__opt:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.diag__back {
  margin-top: 1.6rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--ink-soft); opacity: 0.7;
}
.diag__back:hover { opacity: 1; color: var(--copper); }
.diag__back[hidden] { display: none; }

/* result */
.diag__result[hidden] { display: none; }
.diag__result { animation: stage-in 0.5s cubic-bezier(.2,.65,.3,1); }
.result__stage {
  background: var(--ink); color: var(--paper); border-radius: 8px;
  padding: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
}
.result__stage::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border: 1.5px dashed rgba(246,241,231,0.25); border-radius: 50%;
}
.result__bearing { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gold); display: block; margin-bottom: 0.6rem; }
.result__stage h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.result__stage p { opacity: 0.85; max-width: 38rem; }
.result__constraint {
  background: #fff; border: 2px solid var(--copper); border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(192,98,43,0.14);
  padding: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem;
}
.result__constraint-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--copper); color: #fff; padding: 0.3rem 0.85rem; border-radius: 99px; margin-bottom: 1rem;
}
.result__constraint h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.7rem; }
.result__constraint p { color: var(--ink-soft); }
.result__note {
  margin-top: 1rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--gold);
  background: rgba(201,155,63,0.09); font-size: 0.92rem; color: var(--ink-soft);
}
.result__note[hidden] { display: none; }
.result__playbook { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .result__playbook { grid-template-columns: 1fr; } }
.result__col { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem 1.5rem; }
.result__col h4 {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; color: var(--copper);
}
.result__col ul { list-style: none; }
.result__col li { font-size: 0.92rem; padding: 0.5rem 0 0.5rem 1.1rem; position: relative; border-bottom: 1px dashed var(--line); }
.result__col li:last-child { border-bottom: none; }
.result__col li::before { content: ""; position: absolute; left: 0; top: 1em; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }
.result__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.result__retake {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ink-soft);
}
.result__retake:hover { color: var(--copper); }
.diag__disclaimer { margin-top: 2.5rem; font-size: 0.8rem; color: var(--ink-soft); opacity: 0.7; max-width: 40rem; }

/* pathway CTA banner */
.pathway__cta {
  margin-top: 3rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  background: var(--ink); color: var(--paper); border-radius: 8px;
  padding: 2rem clamp(1.5rem, 4vw, 2.6rem);
}
.pathway__cta h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.pathway__cta p { opacity: 0.75; font-size: 0.95rem; margin-top: 0.3rem; }

/* ============ SUMMARY PAGE ============ */
.summary { max-width: 820px; margin: 0 auto; padding: 8rem var(--pad) 5rem; }
.summary__head { margin-bottom: 2.5rem; border-bottom: 2px solid var(--ink); padding-bottom: 1.8rem; }
.summary__head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0.8rem 0 0.4rem; }
.summary__head .summary__sub { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--copper); margin-bottom: 0.8rem; }
.summary__meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.summary article h2 { font-size: 1.5rem; margin: 2.4rem 0 0.9rem; }
.summary article p { margin-bottom: 1rem; color: var(--ink-soft); }
.summary article p strong { color: var(--ink); }
.summary article ol, .summary article ul { margin: 0 0 1rem 1.3rem; color: var(--ink-soft); }
.summary article li { margin-bottom: 0.5rem; }
.summary blockquote {
  margin: 1.4rem 0; padding: 1.2rem 1.6rem; border-left: 3px solid var(--copper);
  background: rgba(192,98,43,0.06); font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
}
.summary table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 1.2rem 0; }
.summary th { background: var(--ink); color: var(--paper); text-align: left; padding: 0.7rem 0.8rem; font-weight: 600; }
.summary td { border: 1px solid var(--line); padding: 0.7rem 0.8rem; vertical-align: top; color: var(--ink-soft); }
.summary td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.summary__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.summary__source { margin-top: 2rem; font-size: 0.78rem; opacity: 0.65; font-style: italic; }
.table-scroll { overflow-x: auto; }

@media print {
  .nav, .summary__actions, .footer { display: none !important; }
  .summary { padding: 0; max-width: none; }
  body { background: #fff; font-size: 11pt; }
  .summary table { font-size: 8.5pt; }
}
