:root {
  --paper: #f4f0e7;
  --paper-deep: #e9e2d4;
  --paper-light: #fbf8f0;
  --ink: #17233a;
  --ink-soft: #465064;
  --muted: #5c605f;
  --rule: #b8b19f;
  --rule-soft: #d8d1c2;
  --brick: #a43c2c;
  --brick-dark: #813126;
  --brick-soft: #efe0d9;
  --atlas-green: #2f685b;
  --atlas-green-soft: #dfeae4;
  --selection-blue: #49677f;
  --selection-blue-soft: #e3e9ed;
  --white: #fffdf8;
  --surface-editorial-primary: #f4f0e7;
  --surface-editorial-alternative: #e9e3d8;
  --surface-visualization: #24344d;
  --surface-action: #a43c2c;
  --content: 1180px;
  --results-wide: 1280px;
  --reading: 68ch;
}

html {
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--brick-soft);
  color: var(--ink);
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

p {
  font-size: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button-primary,
.button-secondary,
.header-cta {
  min-height: 44px;
  border-radius: 5px;
  font-weight: 500;
  letter-spacing: 0;
}

button,
.button-primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

button:hover,
.button-primary:hover {
  border-color: var(--brick);
  background: var(--brick);
  color: #fff;
  box-shadow: none;
  transform: none;
}

button:active,
.button-primary:active {
  background: var(--brick-dark);
  transform: none;
}

button.secondary,
.button-secondary {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

button.secondary:hover,
.button-secondary:hover {
  border-color: var(--brick);
  background: var(--brick-soft);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(164, 60, 44, 0.35);
  outline-offset: 3px;
}

.container {
  width: min(100% - 40px, var(--content));
  max-width: var(--content);
  margin-inline: auto;
  padding: 0;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow,
.section-index,
.map-caption,
.axis-number {
  margin: 0;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 240, 231, 0.96);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 10px 0;
}

.brand {
  flex: 0 0 auto;
}

.brand {
  color: var(--ink);
  font: 500 1.25rem Newsreader, Georgia, serif;
  text-decoration: none;
}

.brand span {
  color: var(--brick);
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-secondary,
.nav-toggle {
  display: none;
}

.nav a {
  position: relative;
  opacity: 1;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover {
  text-decoration: none;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  font-weight: 500;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 0.88rem;
}

.nav-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
}

.nav-toggle > span[aria-hidden="true"],
.nav-toggle > span[aria-hidden="true"]::before,
.nav-toggle > span[aria-hidden="true"]::after {
  position: absolute;
  left: 9px;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle > span[aria-hidden="true"] { top: 18px; }
.nav-toggle > span[aria-hidden="true"]::before { top: -6px; left: 0; }
.nav-toggle > span[aria-hidden="true"]::after { top: 6px; left: 0; }
.menu-open .nav-toggle > span[aria-hidden="true"] { background: transparent; }
.menu-open .nav-toggle > span[aria-hidden="true"]::before { top: 0; transform: rotate(45deg); }
.menu-open .nav-toggle > span[aria-hidden="true"]::after { top: 0; transform: rotate(-45deg); }

.header-cta:hover {
  border-color: var(--brick);
  background: var(--brick);
}

/* Homepage */
.home-main {
  overflow: hidden;
  background: var(--surface-editorial-primary);
}

.home-hero {
  background: var(--surface-editorial-primary);
  border-bottom: 1px solid var(--rule);
}

.home-main .surface-editorial-primary {
  background: var(--surface-editorial-primary);
}

.home-main .surface-editorial-alternative {
  background: var(--surface-editorial-alternative);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.55fr);
  min-height: 590px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 74px 72px 74px 0;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 18px 0 24px;
}

.hero-copy .hero-intro {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 16px;
  text-decoration: none;
}

.hero-note {
  max-width: 26ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-facts {
  display: flex;
  align-items: center;
  border-left: 1px solid var(--rule);
  padding: 56px 0 56px 52px;
}

.hero-facts > div {
  width: 100%;
}

.hero-facts dl {
  margin: 20px 0 0;
  border-top: 2px solid var(--ink);
}

.hero-fact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
}

.hero-fact dt {
  color: var(--brick);
  font-family: "Newsreader", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.hero-fact dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.facts-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-map::before,
.mini-map::after {
  content: "";
  position: absolute;
  z-index: 1;
  background: var(--ink);
}

.mini-map::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.mini-map::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.map-origin {
  position: absolute;
  z-index: 4;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border: 3px solid var(--paper-light);
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 0 0 1px var(--brick);
}

.editorial-section {
  padding: 104px 0;
  border-bottom: 1px solid var(--rule);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 56px;
}

.section-heading {
  max-width: 16ch;
  margin-bottom: 28px;
}

.editorial-lede {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.28;
}

.editorial-copy {
  max-width: var(--reading);
  color: var(--ink-soft);
}

.editorial-copy p + p {
  margin-top: 18px;
}

.editorial-copy-spaced {
  margin-top: 28px;
}

.section-heading-group {
  margin-bottom: 48px;
}

.axis-list {
  border-top: 2px solid var(--ink);
}

.axis-row {
  display: grid;
  grid-template-columns: 52px minmax(180px, 0.55fr) minmax(300px, 0.9fr) minmax(260px, 1.1fr);
  gap: 20px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}

.axis-row h3 {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
}

.axis-row p {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
}

.axis-poles {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.axis-poles::before {
  content: "";
  position: absolute;
  right: 5px;
  left: 5px;
  top: 50%;
  height: 1px;
  background: var(--rule);
}

.axis-poles span {
  position: relative;
  z-index: 1;
  max-width: 46%;
  padding: 3px 8px;
  background: var(--paper);
  line-height: 1.25;
}

.axis-poles span:first-child {
  padding-left: 0;
}

.axis-poles span:last-child {
  padding-right: 0;
  text-align: right;
}

.axis-description {
  line-height: 1.5;
}

.product-proof {
  padding-block: 86px;
  border-top: 1px solid var(--rule);
  border-bottom-color: var(--rule);
  background: var(--surface-visualization);
  color: var(--paper-light);
}

.product-proof .section-heading {
  font-size: clamp(2.05rem, 4vw, 3.85rem);
}

.product-proof h2,
.product-proof h3 {
  color: var(--paper-light);
}

.product-proof .section-index,
.product-proof .eyebrow {
  color: #e9a294;
}

.product-proof .editorial-copy,
.product-proof .proof-intro {
  color: #d8d5cc;
}

.proof-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.proof-intro {
  max-width: 58ch;
  margin: 0;
}

.maps-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.map-preview h3 {
  margin-bottom: 14px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
}

.mini-map {
  position: relative;
  aspect-ratio: 1.35;
  border: 1px solid #7d8490;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 25% 25%;
}

.mini-map::before,
.mini-map::after {
  background: #e8e2d7;
}

.mini-map .map-origin {
  top: 42%;
  left: 58%;
  color: var(--brick);
  border-color: var(--surface-visualization);
  animation: map-point-a 10s ease-in-out infinite alternate;
  will-change: top, left;
}

.mini-map.second .map-origin {
  top: 62%;
  left: 36%;
  color: #79ad9e;
  background: #79ad9e;
  box-shadow: 0 0 0 1px #79ad9e;
  animation-name: map-point-b;
}

.mini-map .map-origin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: map-point-pulse 2.4s ease-out infinite;
}

.mini-axis-label {
  position: absolute;
  z-index: 3;
  max-width: 145px;
  padding: 3px 5px;
  background: var(--surface-visualization);
  color: #d8d5cc;
  font-size: 0.72rem;
  line-height: 1.25;
}

.mini-axis-label.x-start {
  top: calc(50% + 8px);
  left: 7px;
}

.mini-axis-label.x-end {
  top: calc(50% + 8px);
  right: 7px;
  text-align: right;
}

.mini-axis-label.y-start {
  top: 7px;
  left: calc(50% + 8px);
}

.mini-axis-label.y-end {
  bottom: 7px;
  left: calc(50% + 8px);
}

@keyframes map-point-a {
  0% { top: 42%; left: 58%; }
  34% { top: 22%; left: 74%; }
  68% { top: 68%; left: 29%; }
  100% { top: 35%; left: 18%; }
}

@keyframes map-point-b {
  0% { top: 62%; left: 36%; }
  31% { top: 72%; left: 68%; }
  66% { top: 25%; left: 61%; }
  100% { top: 38%; left: 22%; }
}

@keyframes map-point-pulse {
  0% { opacity: 0.7; transform: scale(0.65); }
  75%, 100% { opacity: 0; transform: scale(1.35); }
}

.proof-foot {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #596171;
}

.proof-foot p {
  max-width: 65ch;
  margin: 0;
  color: #d8d5cc;
}

.product-proof .button-secondary {
  border-color: var(--paper-light);
  color: var(--paper-light);
}

.product-proof .button-secondary:hover {
  border-color: #e9a294;
  background: rgba(164, 60, 44, 0.2);
  color: var(--paper-light);
}

.people-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 64px;
  align-items: center;
}

.people-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-disabled,
.button-disabled:hover {
  border-color: #8b8c87;
  background: #e2e0d9;
  color: #555957;
  cursor: not-allowed;
}

.portrait-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.portrait-item {
  padding: 16px;
  border-right: 1px solid var(--rule);
}

.portrait-item:last-child {
  border-right: 0;
}

.portrait-item img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
}

.portrait-item p {
  margin: 12px 0 0;
  font-size: 0.78rem;
}

.method-list {
  border-top: 2px solid var(--ink);
}

.method-step {
  display: grid;
  grid-template-columns: 80px minmax(180px, 0.55fr) minmax(260px, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.method-step strong {
  font-weight: 500;
}

.method-step p {
  margin: 0;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-section .editorial-grid {
  grid-template-columns: minmax(300px, 0.5fr) minmax(0, 1fr);
  gap: 80px;
}

.faq-section .section-heading {
  max-width: 9ch;
  font-size: clamp(2.8rem, 4.6vw, 4rem);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--brick);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: var(--reading);
  margin: 0;
  padding: 0 0 24px;
  color: var(--ink-soft);
}

.final-cta {
  padding: 90px 0;
  background: var(--surface-action);
  color: #fffaf2;
}

.final-cta h2 {
  max-width: 13ch;
  color: #fffaf2;
}

.final-cta .eyebrow {
  color: #fff0e8;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.final-cta .button-primary {
  border-color: #fffaf2;
  background: #fffaf2;
  color: var(--brick-dark);
}

.final-cta .button-primary:hover {
  background: var(--ink);
  color: var(--paper-light);
}

/* Test */
.test-section {
  min-height: calc(100vh - 140px);
  padding: 70px 0 92px;
  background: var(--paper);
}

.test-container {
  max-width: 1040px;
}

.test-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.28fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}

.test-page-intro .eyebrow {
  grid-column: 1 / -1;
}

.test-page-intro h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.test-page-intro > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.quiz-shell.card {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.quiz-intro-card,
.quiz-optional-card {
  padding: 34px;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--brick);
  border-radius: 4px;
  background: var(--paper-light);
  box-shadow: none;
}

.quiz-intro-card::before,
.quiz-optional-card::before {
  display: none;
}

.quiz-intro-badge,
.quiz-optional-badge,
.progress {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.quiz-intro-card h3,
.quiz-optional-card h3,
.quiz-header h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.08;
}

.quiz-intro-lead,
.quiz-optional-lead,
.quiz-header .muted {
  max-width: 70ch;
  color: var(--ink-soft);
  font-size: 1rem;
}

.quiz-intro-footer {
  align-items: center;
  margin-top: 24px;
}

.quiz-intro-footer .muted {
  max-width: 54ch;
}

#quiz-start-btn,
#quiz-page .nav-buttons button,
#quiz-optional-landing .nav-buttons button {
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

#quiz-start-btn:hover,
#quiz-page .nav-buttons button:not(.secondary):hover,
#quiz-optional-landing .nav-buttons button:not(.secondary):hover {
  border-color: var(--brick);
  background: var(--brick);
  box-shadow: none;
  transform: none;
}

#quiz-page .nav-buttons button.secondary,
#quiz-optional-landing .nav-buttons button.secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

#quiz-page .nav-buttons button.secondary:hover,
#quiz-optional-landing .nav-buttons button.secondary:hover {
  border-color: var(--brick);
  background: var(--brick-soft);
  transform: none;
}

.quiz-flow {
  margin-bottom: 28px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.quiz-progress-top {
  margin-bottom: 10px;
}

.quiz-progress-counter {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.quiz-progress-bar {
  height: 6px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--rule-soft);
  box-shadow: none;
}

.quiz-progress-bar-fill {
  border-radius: 0;
  background: var(--brick);
  box-shadow: none;
  transition: width 220ms ease;
}

.quiz-header {
  margin-bottom: 22px;
}

.questionnaire-stack {
  gap: 12px;
}

.question {
  padding: 22px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  background: var(--paper-light);
  box-shadow: none;
}

.question-text {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.options {
  gap: 8px;
}

.option-ui {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.option-item:hover .option-ui {
  border-color: var(--atlas-green);
  background: var(--atlas-green-soft);
  box-shadow: none;
  transform: none;
}

.option-check {
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink-soft);
  background: transparent;
}

.option-check::after {
  width: 8px;
  height: 8px;
}

.option-label-text {
  color: var(--ink);
  font-size: 0.9rem;
}

.option-input:checked + .option-ui {
  border-color: var(--selection-blue);
  background: var(--selection-blue-soft);
  box-shadow: inset 4px 0 0 var(--selection-blue);
}

.option-input:checked + .option-ui .option-check {
  border-color: var(--selection-blue);
  background: var(--white);
}

.option-input:checked + .option-ui .option-check::after {
  background: var(--selection-blue);
}

.option-input:focus-visible + .option-ui {
  outline-color: rgba(73, 103, 127, 0.38);
}

.nav-buttons {
  margin-top: 22px;
}

.results-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.3fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

/* La cartographie, ses filtres et l'analyse détaillée partagent cette
   enveloppe, sans élargir les autres contenus du questionnaire. */
.results-stage,
.analysis-block {
  position: relative;
  left: 50%;
  width: min(var(--results-wide), calc(100vw - 40px));
  transform: translateX(-50%);
}

.results-intro .eyebrow {
  grid-column: 1 / -1;
}

.results-intro h2 {
  margin: 0;
}

.results-charts-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.axis-help-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: 500 0.88rem/1.2 "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer;
}

.axis-help-trigger:hover { background: rgba(23, 35, 58, 0.07); }
.axis-help-trigger:focus-visible,
.axis-help-close:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }

html.axis-help-open { overflow: hidden; }
.axis-help-dialog {
  width: min(720px, calc(100% - 40px));
  max-width: none;
  max-height: min(86vh, 820px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  animation: axis-help-in 160ms ease-out;
}
.axis-help-dialog::backdrop { background: rgba(10, 18, 31, 0.68); }
.axis-help-panel { display: flex; max-height: inherit; flex-direction: column; }
.axis-help-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.axis-help-header h2 { margin: 0; color: var(--ink); font: 500 clamp(1.8rem, 4vw, 2.5rem)/1.05 "Newsreader", Georgia, serif; }
.axis-help-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 400 1.7rem/1 sans-serif;
  cursor: pointer;
}
.axis-help-close:hover { border-color: var(--brick); color: var(--brick); }
.axis-help-content { overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 28px; }
.axis-help-content section { padding-top: 20px; border-top: 1px solid var(--rule); }
.axis-help-content section:first-child { border-top: 0; }
.axis-help-content h3 { margin: 0 0 8px; color: var(--brick); font: 500 1.25rem/1.25 "Newsreader", Georgia, serif; }
.axis-help-content p { max-width: 68ch; margin: 0 0 12px; color: var(--ink); font: 400 1rem/1.55 "IBM Plex Sans", system-ui, sans-serif; }
@keyframes axis-help-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 520px) {
  .results-charts-actions { justify-content: flex-start; }
  .results-charts-actions .axis-help-trigger { width: 100%; }
  .axis-help-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .axis-help-header { padding: 18px 16px 14px; }
  .axis-help-content { padding: 4px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .axis-help-dialog { animation: none; }
}

.results-intro > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.triptych-card {
  margin: 0 0 34px;
  padding: 22px 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.triptych-title {
  margin-bottom: 10px;
  color: var(--brick);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.triptych-words-line {
  justify-content: flex-start;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.triptych-word {
  text-shadow: none;
}

.triptych-sep {
  color: var(--brick);
  font-weight: 400;
}

.triptych-meta,
.triptych-note {
  text-align: left;
  color: var(--muted);
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 0;
}

.results-stage .result-map {
  min-width: 0;
}

.result-map h3 {
  margin-bottom: 10px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

canvas {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #faf8f2;
  box-shadow: none;
}

.results-stage canvas {
  aspect-ratio: 1;
  height: auto;
}

@media (max-width: 1100px) {
  .results-stage .results-grid {
    grid-template-columns: minmax(0, 660px);
    justify-content: center;
    row-gap: 30px;
  }
}

.people-controls {
  margin-top: 34px;
  padding: 22px 0;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.9rem;
  gap: 14px;
}

.people-controls-title {
  color: var(--ink);
  font-size: 1rem;
}

.people-controls-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.people-controls label {
  min-height: 36px;
  color: var(--ink-soft);
}

.people-controls input[type="checkbox"] {
  accent-color: var(--brick);
}

.analysis-block {
  margin-top: 34px;
  padding-top: 0;
  border-top: 2px solid var(--ink);
}

.analysis-toggle {
  min-height: 54px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.analysis-toggle:hover {
  background: transparent;
  color: var(--brick);
}

.analysis-content {
  margin-top: 24px;
  font-size: 0.95rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 46px;
}

.analysis-grid + .analysis-grid {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.analysis-section {
  min-width: 0;
}

.analysis-content h4 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.analysis-content p {
  color: var(--ink-soft);
}

.analysis-content hr {
  border-color: var(--rule);
  margin: 24px 0;
}

.analysis-section > p,
.analysis-section > .analysis-person,
.analysis-section > .analysis-list {
  max-width: var(--reading);
}

.analysis-person {
  gap: 14px;
  margin: 12px 0 20px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  border-radius: 0;
  background: transparent;
}

.analysis-person img {
  border-radius: 2px;
}

.analysis-appearance {
  margin-top: 14px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .analysis-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .analysis-section + .analysis-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
  }
}

.share-block {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.share-feedback {
  margin-top: 6px;
}

.share-row {
  gap: 10px;
}

.share-row input {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-light);
  color: var(--ink);
}

.info-bubble {
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(23, 35, 58, 0.14);
}

.quiz-restart {
  margin-top: 18px;
}

.info-bubble-body {
  color: var(--ink-soft);
}

.info-bubble-close {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.info-bubble-close:hover {
  background: transparent;
  color: var(--brick);
}

/* Footer */
.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-understand,
.footer-links nav {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-understand strong,
.footer-links nav strong {
  color: inherit;
}

.footer-links {
  text-align: right;
}

.footer-links p {
  margin-top: 0;
}

@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns:minmax(0, 1fr) auto auto;
    gap: 12px;
    padding-block: 10px;
  }

  .brand {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 20px max(16px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    white-space: normal;
  }

  .menu-open .nav { display: block; }
  .nav-toggle { display: block; }
  .nav-group { align-items: stretch; flex-direction: column; gap: 0; }
  .nav-group a { padding: 10px 0; }
  .nav-secondary { display: flex; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); }
  .nav-group-title { margin-bottom: 4px; color: var(--ink); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
  .nav a::after { bottom: 5px; right: auto; width: 42px; }
  .nav-open { overflow: hidden; }

  .footer-understand,
  .footer-links nav {
    flex-direction: column;
    gap: 6px;
  }

  .hero-layout,
  .people-layout,
  .proof-head,
  .test-page-intro,
  .results-intro {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 68px 0 54px;
  }

  .hero-facts {
    padding: 36px 0 54px;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .editorial-grid,
  .faq-section .editorial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading {
    max-width: 18ch;
  }

  .axis-row {
    grid-template-columns: 48px minmax(170px, 0.55fr) minmax(260px, 1fr);
  }

  .axis-description {
    grid-column: 2 / -1;
  }

  .method-step {
    grid-template-columns: 58px minmax(160px, 0.6fr) minmax(200px, 1fr);
  }

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

  .portrait-item:nth-child(2) {
    border-right: 0;
  }

  .portrait-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--rule);
  }

  .test-page-intro .eyebrow,
  .results-intro .eyebrow {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--content));
  }

  .shell {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 62px;
    gap: 16px;
  }

  .header-cta {
    padding-inline: 11px;
    font-size: .8rem;
  }

  .footer-links { text-align: left; }

  .editorial-section {
    padding: 72px 0;
  }

  .product-proof {
    padding-block: 72px;
  }

  .hero-layout {
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .proof-foot,
  .final-cta-grid,
  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions,
  .proof-foot {
    display: flex;
  }

  .people-actions {
    flex-direction: column;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .hero-note {
    max-width: 42ch;
  }

  .axis-row,
  .method-step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .axis-poles,
  .axis-description,
  .method-step > p {
    grid-column: 2;
  }

  .axis-poles {
    margin-top: 4px;
  }

  .maps-preview,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .final-cta-grid {
    display: flex;
  }

  .test-section {
    padding: 48px 0 70px;
  }

  .test-page-intro {
    gap: 18px;
    margin-bottom: 28px;
  }

  .quiz-intro-card,
  .quiz-optional-card {
    padding: 24px 18px;
    border-radius: 3px;
  }

  .question {
    padding: 18px 14px;
  }

  .option-ui {
    padding: 12px;
  }

  .nav-buttons {
    flex-direction: column-reverse;
  }

  .nav-buttons > * {
    width: 100%;
  }

  .triptych-words-line {
    gap: 6px;
  }

  .people-controls-list {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 540px) {
  html {
    scroll-padding-top: 150px;
  }

  .shell {
    width: calc(100% - 24px);
  }

  .nav {
    gap: 8px 16px;
  }
}

@media (max-width: 440px) {
  .header-primary {
    gap: 10px;
  }

  .portrait-index {
    grid-template-columns: 1fr 1fr;
  }

  .share-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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