.comparison-page {
  background: var(--epic-white);
}

.comparison-shell {
  padding: 48px 24px;
  border-bottom: 1px solid var(--line);
}

.comparison-hero {
  position: relative;
  min-height: 440px;
  padding: 72px 24px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.comparison-hero > *:not(.map-grid) {
  position: relative;
  z-index: 1;
}

.comparison-hero h1 {
  max-width: 950px;
  margin-top: 18px;
  font-size: clamp(52px, 15vw, 105px);
  line-height: .94;
  font-weight: 550;
  letter-spacing: -4px;
}

.comparison-hero > p:not(.section-index) {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.comparison-hero h1 + p {
  margin-top: 38px;
}

.comparison-hero > p + p {
  margin-top: 5px;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  justify-content: center;
  background: #fff;
}

.people > .section-index {
  grid-column: 1 / -1;
  justify-self: center;
  margin-bottom: 5px;
}

.people figure {
  margin: 0;
  max-width: 92px;
  justify-self: center;
}

.large-face {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--epic-panel);
}

.large-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(.96) brightness(1.02);
}

.people figcaption {
  margin-top: 10px;
  text-align: center;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.people figure > p {
  width: 180px;
  max-width: 42vw;
  margin: 10px 50% 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
}

.visible-symptoms {
  text-align: center;
  background: var(--epic-panel);
}

.visible-symptoms h2,
.common-error h2,
.epic-entry h2 {
  margin-top: 15px;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -1.5px;
}

.visible-symptoms ul {
  max-width: 630px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cbd4d8;
}

.visible-symptoms li {
  padding: 17px 8px;
  border-bottom: 1px solid #cbd4d8;
  font-size: 18px;
}

.center-heading {
  text-align: center;
}

.person-label {
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--blue);
  text-transform: uppercase;
}

.common-error {
  text-align: center;
  background: var(--ink);
}

.common-error .section-index {
  color: #8eabeb;
}

.common-error h2 {
  color: #fff;
  margin-top: 18px;
  font-size: clamp(40px, 10vw, 68px);
}

.common-error > p:not(.section-index) {
  max-width: 620px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, .74);
  font-size: 17px;
  line-height: 1.5;
}

.intervention-comparison {
  display: grid;
  gap: 32px;
  background: #fff;
}

.person-interventions > h2 {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 32px;
  font-weight: 500;
}

.person-interventions article {
  margin-top: 16px;
  padding: 18px;
  border-left: 3px solid var(--green);
  background: var(--epic-white);
}

.person-interventions .worsens {
  border-left-color: var(--orange);
}

.person-interventions article h3 {
  margin-top: 13px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
}

.person-interventions article > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.epic-entry {
  text-align: center;
  background: #fff;
}

.reading-key {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 5px;
}

.epic-entry-statement {
  margin-top: 42px;
  font-size: clamp(25px, 6vw, 40px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.epic-entry-statement strong {
  color: var(--blue);
  font-weight: 500;
}

.reading-key span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: clamp(9px, 2.5vw, 17px);
}

.reading-key i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent);
}

.reading-key b {
  color: #9aa7ad;
  font-size: 14px;
}

.energy-key { color: var(--blue); }
.pattern-key { color: var(--green); }
.intervention-key { color: var(--orange); }
.behavior-key { color: var(--purple); }

.archetype-cta {
  text-align: center;
  background: var(--epic-panel);
}

.archetype-cta > p {
  font-size: clamp(29px, 8vw, 50px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.archetype-cta a {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 35px;
  padding: 14px 18px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
}

.archetype-cta a span {
  color: var(--green);
  font-size: 19px;
}

.comparison-footer {
  min-height: 72px;
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (min-width: 760px) {
  .comparison-shell {
    padding: 72px 7vw;
  }

  .comparison-hero {
    min-height: 520px;
    padding: 82px 7vw 70px;
  }

  .people {
    padding-left: max(24vw, 120px);
    padding-right: max(24vw, 120px);
    gap: 5vw;
  }

  .people figure {
    max-width: 118px;
  }

  .large-face {
    aspect-ratio: 1;
  }

  .intervention-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .comparison-shell,
  .comparison-hero {
    padding-left: max(calc((100vw - 1180px) / 2), 40px);
    padding-right: max(calc((100vw - 1180px) / 2), 40px);
  }

  .people {
    padding-left: max(calc((100vw - 560px) / 2), 100px);
    padding-right: max(calc((100vw - 560px) / 2), 100px);
  }
}
