:root {
  color-scheme: dark;
  --navy-950: #061225;
  --navy-900: #0a1933;
  --navy-800: #122648;
  --blue-500: #8da6cf;
  --paper: #f6f1e9;
  --paper-muted: #cfdae9;
  --gold: #ead3ac;
  --gold-deep: #c8a879;
  --line: rgba(228, 237, 249, 0.17);
  --line-strong: rgba(236, 215, 180, 0.38);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --content: min(88vw, 1320px);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--navy-950);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--navy-950);
  background: var(--paper);
  border-radius: 4px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 270px 1fr 180px;
  align-items: center;
  width: 100%;
  height: 104px;
  padding: 0 max(4vw, 28px);
  border-bottom: 1px solid transparent;
  transition: height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  height: 76px;
  background: rgba(5, 16, 34, 0.82);
  border-color: var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  width: max-content;
}

.brand-mark {
  width: 54px;
  height: 54px;
  overflow: visible;
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
}

.brand-copy {
  display: grid;
  gap: 5px;
  font-family: var(--serif);
}

.brand-copy > span {
  font-size: 22px;
  letter-spacing: 0.16em;
}

.brand-copy small {
  color: rgba(246, 241, 233, 0.72);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 54px);
}

.primary-nav a {
  position: relative;
  padding: 13px 2px;
  color: rgba(246, 241, 233, 0.78);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  position: absolute;
  right: 20%;
  bottom: 5px;
  left: 20%;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--paper);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  justify-self: end;
  min-height: 47px;
  padding: 0 20px;
  color: rgba(246, 241, 233, 0.88);
  background: rgba(14, 32, 61, 0.2);
  border: 1px solid rgba(240, 232, 219, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.account-button:hover {
  color: var(--navy-950);
  background: var(--paper);
  border-color: var(--paper);
}

.account-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background: #152846 url("assets/hero-cosmos.png") center center / cover no-repeat;
  background-image: image-set(
    url("assets/hero-cosmos.webp") type("image/webp"),
    url("assets/hero-cosmos.png") type("image/png")
  );
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 22, 48, 0.7) 0%, rgba(12, 30, 59, 0.2) 47%, rgba(9, 25, 51, 0.14) 100%),
    linear-gradient(180deg, rgba(3, 13, 31, 0.3) 0%, transparent 55%, rgba(5, 16, 34, 0.44) 100%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 24%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(4, 15, 33, 0.72));
}

.hero-content {
  align-self: center;
  width: var(--content);
  margin: 40px auto 120px;
}

.hero-content > * {
  max-width: 530px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 17px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 6vw, 92px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-shadow: 0 8px 34px rgba(6, 16, 34, 0.22);
}

.hero-subtitle {
  margin: 22px 0 25px;
  color: rgba(250, 244, 237, 0.82);
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 26px);
  letter-spacing: 0.17em;
}

.short-rule {
  display: block;
  width: 38px;
  height: 1px;
  margin-bottom: 28px;
  background: var(--gold);
}

.hero-features {
  display: grid;
  gap: 21px;
  margin-bottom: 31px;
}

.hero-features article {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
}

.hero-features h2,
.hero-features p {
  margin: 0;
}

.hero-features h2 {
  margin-bottom: 5px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.hero-features p {
  color: rgba(226, 233, 244, 0.69);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.line-icon {
  display: block;
  width: 42px;
  height: 42px;
  color: var(--gold);
  overflow: visible;
}

.line-icon path,
.line-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.08;
  vector-effect: non-scaling-stroke;
}

.line-icon .icon-ring {
  opacity: 0.8;
}

.line-icon .compass-orbit {
  opacity: 0.32;
}

.line-icon .compass-ticks {
  opacity: 0.88;
}

.line-icon .icon-fill {
  fill: currentColor;
  fill-opacity: 0.14;
}

.mind-icon > path:not(.brain-detail) {
  stroke-width: 1.18;
}

.mind-icon .brain-detail {
  opacity: 0.78;
  stroke-width: 0.95;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 58px;
  padding: 0 32px;
  color: #263044;
  background: linear-gradient(105deg, #f5eadb, #e5c397);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(48, 35, 22, 0.16);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-cta:hover {
  box-shadow: 0 20px 45px rgba(30, 22, 14, 0.28);
  transform: translateY(-2px);
}

.primary-cta span {
  font-family: var(--sans);
  transition: transform 0.25s ease;
}

.primary-cta:hover span {
  transform: translateX(4px);
}

.hero-mantra {
  position: absolute;
  top: 25%;
  right: 5.8%;
  display: grid;
  justify-items: center;
  gap: 18px;
  color: rgba(238, 220, 191, 0.72);
  font-family: var(--serif);
  text-align: center;
}

.hero-mantra p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.hero-mantra > span {
  width: 28px;
  height: 1px;
  margin: 3px 0;
  background: rgba(238, 220, 191, 0.72);
}

.hero-mantra small {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.25em;
  line-height: 2.1;
}

.hero-stats {
  position: absolute;
  right: 10%;
  bottom: 0;
  left: 10%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 100px;
  background: rgba(13, 29, 56, 0.2);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(5px);
}

.hero-stats article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  border-right: 1px solid var(--line);
}

.hero-stats article:last-child {
  border-right: 0;
}

.hero-stats svg {
  width: 37px;
  min-width: 37px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
}

.hero-stats div {
  display: grid;
  gap: 5px;
}

.hero-stats strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hero-stats span {
  color: rgba(235, 240, 248, 0.67);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.section {
  position: relative;
  padding: 120px max(6vw, 24px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 70px;
  text-align: center;
}

.section-heading h2,
.journey-copy h2,
.closing-section h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: 0.07em;
}

.section-heading > p:last-child,
.journey-lead,
.closing-section > p:not(.section-kicker) {
  margin: 0;
  color: rgba(214, 224, 238, 0.68);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.07em;
  line-height: 1.9;
}

.tests-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(108, 138, 185, 0.16), transparent 30%),
    linear-gradient(180deg, #07152d, #0b1b37 62%, #07162f);
}

.tests-section::before {
  position: absolute;
  top: 80px;
  left: -160px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(230, 211, 181, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(230, 211, 181, 0.025), 0 0 0 150px rgba(230, 211, 181, 0.018);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: var(--content);
  margin: 0 auto;
}

.test-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 510px;
  padding: 38px 34px 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(34, 57, 93, 0.64), rgba(10, 26, 53, 0.82));
  border: 1px solid rgba(212, 224, 241, 0.13);
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(2, 10, 25, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.test-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-7px);
}

.test-card--featured {
  background:
    radial-gradient(circle at 90% 0%, rgba(232, 204, 162, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(50, 73, 108, 0.85), rgba(14, 32, 61, 0.96));
  border-color: rgba(232, 211, 176, 0.34);
}

.test-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  content: "";
  border: 1px solid rgba(229, 207, 172, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(229, 207, 172, 0.025);
}

.test-number {
  margin-bottom: 45px;
  color: rgba(234, 211, 172, 0.55);
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 300;
}

.test-status {
  position: absolute;
  top: 32px;
  right: 32px;
  padding: 7px 12px;
  color: #2b3545;
  background: var(--gold);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.test-status--quiet {
  color: rgba(228, 235, 245, 0.68);
  background: rgba(213, 224, 240, 0.08);
  border: 1px solid var(--line);
}

.test-status--complete {
  color: #173226;
  background: #cce2cf;
}

.test-roman {
  margin: 0 0 10px;
  color: rgba(211, 224, 240, 0.55);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.test-card h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.test-question {
  min-height: 48px;
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
}

.test-description {
  margin: 0 0 30px;
  color: rgba(213, 223, 237, 0.63);
  font-size: 13px;
  line-height: 1.9;
}

.test-meta {
  display: flex;
  gap: 22px;
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 22px;
  color: rgba(220, 228, 239, 0.6);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.card-progress {
  width: 100%;
  height: 3px;
  margin: -8px 0 18px;
  overflow: hidden;
  background: rgba(230, 237, 247, 0.09);
  border-radius: 999px;
}

.card-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.card-action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  color: #253047;
  background: var(--gold);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.card-action:hover {
  background: #f5e6cf;
}

.card-action--quiet {
  color: rgba(236, 241, 248, 0.75);
  background: rgba(230, 237, 247, 0.07);
  border: 1px solid var(--line);
}

.card-action--quiet:hover {
  color: var(--paper);
  background: rgba(230, 237, 247, 0.12);
}

.test-history {
  position: relative;
  z-index: 1;
  margin: -4px 0 12px;
  color: rgba(228, 217, 191, 0.72);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.card-retake {
  position: relative;
  z-index: 1;
  min-height: 40px;
  margin-top: 8px;
  color: rgba(225, 234, 245, 0.72);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.card-retake:hover {
  color: var(--paper);
  border-color: var(--line-strong);
}

.journey-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(8, 25, 51, 0.25), rgba(21, 43, 78, 0.28)),
    #091832;
}

.journey-visual {
  position: relative;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  justify-self: end;
}

.journey-core,
.orbit,
.journey-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.journey-dot.is-complete {
  color: #173226;
  background: #dce8d9;
  border-color: #eaf4e6;
  box-shadow: 0 0 34px rgba(212, 231, 209, 0.22);
}

.journey-core {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 52%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 55%, rgba(244, 223, 191, 0.24), transparent 45%),
    rgba(20, 43, 77, 0.8);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 80px rgba(111, 144, 192, 0.23), inset 0 0 70px rgba(118, 149, 193, 0.12);
}

.journey-core::before {
  position: absolute;
  inset: 10%;
  content: "";
  border: 1px solid rgba(235, 217, 188, 0.18);
  border-radius: 50%;
}

.journey-core span {
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
}

.journey-core strong {
  font-family: var(--serif);
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 400;
  letter-spacing: 0.15em;
}

.journey-core small {
  margin-top: 10px;
  color: rgba(222, 230, 242, 0.5);
  font-size: 8px;
  letter-spacing: 0.3em;
}

.orbit {
  border: 1px solid rgba(234, 211, 172, 0.19);
}

.orbit--one {
  width: 76%;
  aspect-ratio: 1;
}

.orbit--two {
  width: 100%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: rotate 60s linear infinite;
}

.journey-dot {
  display: grid;
  place-items: center;
  width: 73px;
  aspect-ratio: 1;
  color: var(--gold);
  background: #10264a;
  border: 1px solid rgba(234, 211, 172, 0.32);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.dot--one {
  top: 13%;
  left: 50%;
}

.dot--two {
  top: 72%;
  left: 14%;
}

.dot--three {
  top: 72%;
  left: 86%;
}

@keyframes rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.journey-copy {
  max-width: 540px;
}

.journey-lead {
  margin-bottom: 42px;
}

.journey-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-list li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.journey-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.journey-list > li > span {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 14px;
}

.journey-list strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.journey-list p {
  margin: 7px 0 0;
  color: rgba(210, 222, 238, 0.57);
  font-size: 12px;
  line-height: 1.7;
}

.report-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(129, 154, 195, 0.14), transparent 35%),
    linear-gradient(180deg, #06142c, #0b1c39);
}

.report-layout {
  width: var(--content);
  margin: 0 auto;
}

.map-card {
  min-height: 520px;
  padding: clamp(28px, 4vw, 54px);
  background:
    linear-gradient(140deg, rgba(234, 211, 172, 0.08), transparent 48%),
    rgba(17, 39, 73, 0.65);
  border: 1px solid rgba(232, 214, 186, 0.27);
  box-shadow: 0 30px 80px rgba(1, 8, 21, 0.26);
}

.map-empty {
  display: grid;
  min-height: 410px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.map-empty[hidden],
.map-result[hidden] {
  display: none;
}

.map-lock {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 25px;
  color: var(--gold);
  background: rgba(234, 211, 172, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 55px rgba(234, 211, 172, 0.1);
  font-size: 23px;
  place-items: center;
}

.map-empty h3 {
  margin: 0 0 17px;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.map-empty > p:not(.section-kicker) {
  max-width: 560px;
  margin: 0;
  color: rgba(216, 226, 240, 0.62);
  font-size: 13px;
  line-height: 1.9;
}

.map-test-state {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0;
}

.map-test-state span {
  padding: 9px 13px;
  color: rgba(219, 229, 241, 0.54);
  background: rgba(221, 231, 243, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.map-test-state span.is-complete {
  color: #d8ead7;
  border-color: rgba(196, 224, 194, 0.34);
}

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

.map-real-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 18px;
}

.map-real-signals span {
  padding: 10px 13px;
  color: rgba(222, 231, 241, 0.67);
  background: rgba(220, 231, 244, 0.05);
  border: 1px solid var(--line);
  font-size: 10px;
}

.map-real-signals strong {
  color: var(--gold);
  font-weight: 500;
}

.map-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 46px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.map-card__top span {
  color: rgba(223, 231, 242, 0.52);
  font-size: 9px;
  letter-spacing: 0.24em;
}

.map-card__top h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.map-card__top .map-code {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.axis-list {
  display: grid;
  gap: 25px;
}

.axis-list > div {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  align-items: center;
  gap: 15px;
  color: rgba(225, 233, 243, 0.68);
  font-family: var(--serif);
  font-size: 12px;
}

.axis-list em {
  font-style: normal;
  text-align: right;
}

.axis-list i {
  position: relative;
  height: 1px;
  background: rgba(227, 235, 246, 0.24);
}

.axis-list i::before {
  position: absolute;
  top: -3px;
  left: var(--score);
  width: 7px;
  height: 7px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(234, 211, 172, 0.11);
  transform: translateX(-50%);
}

.map-card blockquote {
  margin: 45px 0 18px;
  padding-left: 22px;
  color: rgba(245, 239, 230, 0.84);
  border-left: 1px solid var(--gold-deep);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.map-card > small {
  color: rgba(216, 225, 238, 0.43);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.map-report-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 32px 0 22px;
  padding: 24px;
  background: rgba(232, 213, 181, 0.055);
  border: 1px solid var(--line-strong);
}

.map-report-entry strong,
.map-report-entry small {
  display: block;
}

.map-report-entry strong {
  margin-bottom: 7px;
  color: rgba(245, 239, 230, 0.9);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.map-report-entry small {
  max-width: 580px;
  color: rgba(216, 226, 239, 0.5);
  line-height: 1.75;
}

.map-report-entry .primary-cta {
  flex: 0 0 auto;
}

.closing-section {
  position: relative;
  display: grid;
  min-height: 580px;
  padding: 110px 24px;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(9, 24, 49, 0.86), rgba(5, 16, 34, 0.94)),
    url("assets/hero-cosmos.png") center 72% / cover no-repeat;
  background-image:
    linear-gradient(rgba(9, 24, 49, 0.86), rgba(5, 16, 34, 0.94)),
    image-set(
      url("assets/hero-cosmos.webp") type("image/webp"),
      url("assets/hero-cosmos.png") type("image/png")
    );
  text-align: center;
}

.closing-glow {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 280px;
  height: 280px;
  background: rgba(222, 200, 170, 0.15);
  border-radius: 50%;
  filter: blur(70px);
  transform: translateX(-50%);
}

.closing-section > *:not(.closing-glow) {
  position: relative;
  z-index: 1;
}

.closing-section > p:not(.section-kicker) {
  max-width: 740px;
  margin-bottom: 36px;
}

.primary-cta--light {
  min-width: 250px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
  padding: 45px max(6vw, 24px);
  color: rgba(221, 229, 239, 0.54);
  background: #040e20;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.brand--footer .brand-mark {
  width: 40px;
  height: 40px;
}

.brand--footer .brand-copy > span {
  font-size: 16px;
}

.site-footer p {
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.site-footer div {
  display: flex;
  gap: 25px;
}

.site-footer button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

dialog {
  color: var(--paper);
}

dialog::backdrop {
  background: rgba(1, 7, 17, 0.8);
  backdrop-filter: blur(10px);
}

.assessment-dialog,
.report-dialog,
.login-dialog {
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  background: transparent;
  border: 0;
}

.assessment-dialog {
  width: min(94vw, 960px);
}

.report-dialog {
  width: min(96vw, 1120px);
}

.report-dialog__shell {
  padding: clamp(32px, 5vw, 70px);
}

.dialog-shell {
  position: relative;
  max-height: 92svh;
  padding: clamp(28px, 4vw, 52px);
  overflow: auto;
  background:
    radial-gradient(circle at 85% 8%, rgba(172, 148, 119, 0.13), transparent 28%),
    linear-gradient(145deg, #10284c, #081a35);
  border: 1px solid rgba(233, 214, 184, 0.33);
  box-shadow: 0 35px 100px rgba(0, 5, 15, 0.55);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(233, 240, 248, 0.65);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  place-items: center;
}

.assessment-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-right: 38px;
}

.assessment-header span {
  color: var(--gold-deep);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.assessment-header h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 33px);
  font-weight: 400;
}

.assessment-header > p {
  margin: 0;
  color: rgba(221, 229, 240, 0.55);
}

.assessment-header > p strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.progress-track {
  height: 2px;
  margin: 27px 0 43px;
  overflow: hidden;
  background: rgba(223, 232, 245, 0.13);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.35s ease;
}

.assessment-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  margin: -24px 0 26px;
}

.assessment-toolbar button {
  padding: 7px 0;
  color: rgba(225, 233, 243, 0.7);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 11px;
}

.assessment-toolbar button[hidden] {
  visibility: hidden;
}

.assessment-toolbar span {
  color: rgba(214, 225, 239, 0.42);
  font-size: 10px;
}

.question-label {
  margin: 0 0 10px;
  color: rgba(220, 229, 241, 0.46);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.question-panel > h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.question-context {
  margin: 16px 0 28px;
  color: rgba(219, 229, 241, 0.69);
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-line;
}

.choice-poles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice-poles article {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  min-height: 118px;
  padding: 22px;
  background: rgba(220, 229, 242, 0.045);
  border: 1px solid var(--line);
}

.choice-poles article > span {
  display: grid;
  width: 29px;
  height: 29px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  place-items: center;
}

.choice-poles p {
  margin: 0;
  color: rgba(236, 240, 246, 0.77);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
}

.scale-fieldset {
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}

.scale-fieldset legend {
  width: 100%;
  margin-bottom: 17px;
  color: rgba(222, 230, 241, 0.65);
  font-size: 11px;
  text-align: center;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: rgba(222, 231, 242, 0.45);
  font-size: 10px;
}

.scale-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.scale-options--7 {
  grid-template-columns: repeat(7, 1fr);
}

.scale-option {
  min-height: 50px;
  color: var(--gold);
  background: rgba(233, 214, 184, 0.04);
  border: 1px solid rgba(233, 214, 184, 0.28);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scale-option:hover {
  color: #1a2941;
  background: var(--gold);
  transform: translateY(-2px);
}

.scale-option.is-selected {
  color: #1a2941;
  background: var(--gold);
  border-color: var(--gold);
}

.single-choice-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.single-choice-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 58px;
  padding: 13px 18px;
  color: rgba(235, 240, 247, 0.78);
  background: rgba(220, 230, 243, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.single-choice-option:hover,
.single-choice-option.is-selected {
  background: rgba(234, 211, 172, 0.1);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.single-choice-option > span {
  display: grid;
  width: 30px;
  height: 30px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--serif);
  place-items: center;
}

.single-choice-option strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.text-answer {
  width: 100%;
  min-height: 170px;
  margin-top: 25px;
  padding: 18px;
  resize: vertical;
  color: var(--paper);
  background: rgba(224, 233, 245, 0.045);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.8;
}

.text-counter {
  display: block;
  margin: 8px 0 18px;
  color: rgba(216, 226, 239, 0.4);
  text-align: right;
}

.text-answer-next {
  display: flex;
  margin-left: auto;
}

.assessment-result {
  padding: 10px 2% 0;
  text-align: center;
}

.assessment-result[hidden] {
  display: none;
}

.assessment-result > h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.2vw, 39px);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.assessment-result .result-code {
  display: inline-grid;
  min-width: 105px;
  min-height: 105px;
  margin: 6px 0 22px;
  padding: 15px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 55px rgba(232, 211, 177, 0.1);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.1em;
  place-items: center;
}

.assessment-result .result-code--wide {
  min-width: 145px;
  border-radius: 70px;
}

.result-lead {
  max-width: 650px;
  margin: 0 auto 35px;
  color: rgba(222, 231, 241, 0.7);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.9;
}

.result-axis-list {
  display: grid;
  gap: 20px;
  max-width: 690px;
  margin: 0 auto 32px;
}

.result-axis-list > div {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 15px;
  color: rgba(224, 232, 242, 0.66);
  font-family: var(--serif);
  font-size: 11px;
}

.result-axis-list em {
  font-style: normal;
  text-align: right;
}

.result-axis-list i {
  position: relative;
  height: 2px;
  background: rgba(227, 235, 246, 0.18);
}

.result-axis-list i b {
  position: absolute;
  top: 50%;
  left: var(--score);
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(234, 211, 172, 0.1);
  transform: translate(-50%, -50%);
}

.result-axis-list small {
  grid-column: 2;
  color: rgba(215, 225, 238, 0.43);
  text-align: center;
}

.drive-result-list {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: left;
}

.drive-result-list > div > span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(227, 234, 243, 0.72);
  font-size: 11px;
}

.drive-result-list em {
  color: var(--gold);
  font-style: normal;
}

.drive-result-list i {
  display: block;
  height: 3px;
  margin: 8px 0;
  overflow: hidden;
  background: rgba(225, 234, 245, 0.1);
  border-radius: 999px;
}

.drive-result-list i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7f9bc7, var(--gold));
}

.drive-result-list small {
  color: rgba(214, 224, 238, 0.42);
  line-height: 1.5;
}

.derived-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
}

.derived-summary span {
  padding: 9px 12px;
  color: rgba(219, 228, 240, 0.56);
  background: rgba(221, 231, 243, 0.045);
  border: 1px solid var(--line);
  font-size: 10px;
}

.derived-summary strong {
  color: var(--gold);
  font-weight: 500;
}

.result-note {
  display: block;
  color: rgba(214, 224, 237, 0.4);
  font-size: 10px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.result-secondary,
.result-reset {
  min-height: 50px;
  padding: 0 20px;
  background: rgba(225, 234, 245, 0.05);
  border: 1px solid var(--line);
  cursor: pointer;
}

.result-secondary:hover {
  border-color: var(--line-strong);
}

.result-reset {
  color: rgba(218, 227, 239, 0.46);
  background: transparent;
  border-color: transparent;
}

.report-hero {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.report-hero > h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(29px, 4vw, 43px);
  font-weight: 400;
  letter-spacing: 0.07em;
}

.report-method {
  margin: -12px auto 0;
  color: rgba(215, 225, 238, 0.45);
  font-size: 11px;
  line-height: 1.8;
}

.report-body,
.full-report-body {
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.report-chapter {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.report-chapter:last-of-type {
  border-bottom: 1px solid var(--line);
}

.report-chapter > header {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: start;
  gap: 18px;
  margin-bottom: 23px;
}

.report-chapter > header > span {
  padding-top: 5px;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 12px;
}

.report-chapter > header small {
  display: block;
  min-height: 13px;
  margin-bottom: 5px;
  color: rgba(216, 226, 239, 0.38);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-chapter h4 {
  margin: 0;
  color: rgba(247, 241, 232, 0.93);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.report-chapter__body {
  padding-left: 64px;
  color: rgba(221, 230, 241, 0.7);
  font-size: 13px;
  line-height: 1.95;
}

.report-chapter__body > p {
  margin: 0 0 17px;
}

.report-chapter__body > p:last-child {
  margin-bottom: 0;
}

.report-chapter__body blockquote {
  margin: 22px 0 0;
  padding: 14px 0 14px 20px;
  color: rgba(246, 239, 228, 0.85);
  border-left: 1px solid var(--gold-deep);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
}

.report-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  position: relative;
  padding-left: 21px;
}

.report-list li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--gold-deep);
  border-radius: 50%;
}

.report-list strong,
.report-chapter__body strong {
  color: rgba(244, 237, 227, 0.89);
  font-weight: 500;
}

.report-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}

.report-evidence-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.report-evidence-grid section {
  min-width: 0;
  padding: 21px;
  background: rgba(224, 233, 245, 0.035);
  border: 1px solid var(--line);
}

.report-evidence-grid section > span {
  color: var(--gold-deep);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.report-evidence-grid h5,
.preference-callout h5 {
  margin: 9px 0 10px;
  color: rgba(245, 239, 230, 0.9);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.report-evidence-grid p {
  margin: 0;
  color: rgba(218, 228, 240, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.report-evidence-grid section > small {
  display: block;
  margin-top: 14px;
  padding-top: 11px;
  color: rgba(215, 225, 238, 0.38);
  border-top: 1px solid rgba(219, 229, 241, 0.09);
  font-size: 9px;
  line-height: 1.7;
}

.preference-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(219, 229, 241, 0.1);
}

.preference-callout span {
  color: var(--gold-deep);
  font-size: 10px;
  order: 2;
}

.preference-callout h5 {
  margin: 0;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-strip span {
  padding: 15px 11px;
  background: #0d2343;
  color: rgba(215, 225, 238, 0.48);
  font-size: 9px;
  text-align: center;
}

.metric-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.mode-score {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.mode-score strong {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}

.mode-score span {
  color: rgba(218, 228, 240, 0.45);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.full-report-cover {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 0 50px;
  text-align: center;
}

.full-report-cover h2 {
  margin: 16px 0;
  color: rgba(248, 242, 232, 0.94);
  font-family: var(--serif);
  font-size: clamp(31px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.full-report-cover > p:not(.section-kicker) {
  margin: 0;
  color: rgba(217, 227, 239, 0.55);
}

.full-report-codes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.full-report-codes > span {
  padding: 20px 12px;
  color: var(--gold);
  background: rgba(225, 234, 245, 0.035);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
}

.full-report-codes small {
  display: block;
  margin-top: 8px;
  color: rgba(216, 226, 239, 0.4);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.full-report-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin: 0 auto 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.full-report-toc span {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  color: rgba(218, 228, 240, 0.58);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.full-report-toc b {
  color: var(--gold-deep);
  font-weight: 400;
}

.summary-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 23px;
}

.summary-triad section {
  padding: 19px;
  background: rgba(224, 233, 245, 0.035);
  border: 1px solid var(--line);
}

.summary-triad span,
.summary-triad strong,
.summary-triad small {
  display: block;
}

.summary-triad span {
  color: var(--gold-deep);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.summary-triad strong {
  margin: 9px 0;
  color: rgba(245, 239, 230, 0.9);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}

.summary-triad small {
  color: rgba(215, 225, 238, 0.43);
  font-size: 9px;
  line-height: 1.7;
}

.report-disclaimer {
  margin-top: 38px;
  padding: 22px;
  color: rgba(215, 225, 238, 0.5);
  background: rgba(229, 211, 180, 0.045);
  border: 1px solid var(--line-strong);
  font-size: 10px;
  line-height: 1.8;
}

.report-disclaimer strong {
  display: block;
  margin-bottom: 6px;
  color: rgba(244, 237, 227, 0.84);
  font-size: 12px;
  font-weight: 500;
}

.report-disclaimer p {
  margin: 0;
}

.map-result > small,
.report-body > .result-note {
  display: block;
  color: rgba(214, 224, 237, 0.4);
  font-size: 10px;
  line-height: 1.8;
}

.mini-result {
  padding: 30px 5% 10px;
  text-align: center;
}

.result-code {
  display: inline-grid;
  min-width: 110px;
  min-height: 110px;
  margin: 10px 0 25px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(232, 211, 177, 0.12);
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.1em;
  place-items: center;
}

.mini-result h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
}

.mini-result > p:not(.section-kicker) {
  max-width: 620px;
  margin: 0 auto 14px;
  color: rgba(222, 230, 240, 0.72);
  font-family: var(--serif);
  line-height: 1.9;
}

.mini-result > small {
  display: block;
  margin-bottom: 30px;
  color: rgba(219, 228, 239, 0.43);
}

.login-dialog {
  width: min(92vw, 460px);
}

.login-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 46px;
  background: linear-gradient(145deg, #122b50, #081a35);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px rgba(0, 6, 18, 0.55);
}

.login-mark {
  color: var(--gold);
  font-size: 32px;
}

.login-card h2 {
  margin: -10px 0 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.login-card > p:not(.section-kicker) {
  margin: 0;
  color: rgba(219, 228, 240, 0.65);
  font-size: 13px;
  line-height: 1.7;
}

.login-card label {
  display: grid;
  gap: 9px;
  color: rgba(225, 233, 242, 0.68);
  font-size: 12px;
}

.login-card input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--paper);
  background: rgba(239, 244, 250, 0.055);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.login-card .primary-cta {
  width: 100%;
}

.login-card > small {
  color: rgba(216, 226, 238, 0.38);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 300;
  bottom: 24px;
  left: 50%;
  max-width: min(88vw, 480px);
  padding: 13px 18px;
  color: #243049;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 8, 22, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 235px 1fr 150px;
    padding-inline: 25px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-copy > span {
    font-size: 18px;
  }

  .primary-nav {
    gap: 20px;
  }

  .primary-nav a {
    font-size: 14px;
  }

  .account-button {
    padding: 0 15px;
  }

  .hero-mantra {
    display: none;
  }

  .hero-stats {
    right: 5%;
    left: 5%;
  }

  .hero-stats article {
    gap: 13px;
    padding-inline: 13px;
  }

  .hero-stats strong {
    font-size: 19px;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 80px;
    padding-inline: 20px;
  }

  .site-header.is-scrolled {
    height: 68px;
  }

  .menu-toggle {
    z-index: 102;
    display: grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 12px;
    background: rgba(10, 25, 51, 0.42);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--paper);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .primary-nav {
    position: absolute;
    z-index: 101;
    top: 0;
    left: -20px;
    display: grid;
    width: 100vw;
    height: 100svh;
    align-content: center;
    justify-items: center;
    gap: 15px;
    background: rgba(5, 16, 34, 0.97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    font-size: 23px;
  }

  .account-button {
    display: none;
  }

  .hero {
    min-height: 980px;
    background-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 18, 40, 0.9), rgba(10, 27, 54, 0.28) 78%),
      linear-gradient(180deg, rgba(3, 13, 31, 0.4), transparent 55%, rgba(5, 16, 34, 0.8));
  }

  .hero-content {
    align-self: start;
    width: calc(100% - 48px);
    margin: 155px 24px 280px;
  }

  .hero-content > * {
    max-width: 500px;
  }

  .hero-stats {
    right: 24px;
    bottom: 24px;
    left: 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats article:nth-child(2) {
    border-right: 0;
  }

  .hero-stats article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .test-grid,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .journey-section {
    grid-template-columns: 1fr;
  }

  .journey-visual {
    width: min(78vw, 540px);
    justify-self: center;
  }

  .journey-copy {
    max-width: 680px;
    margin: 0 auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    display: none;
  }

  .site-footer > small {
    grid-column: 1 / -1;
  }

  .map-report-entry {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-report-entry .primary-cta {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .brand-copy > span {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .hero {
    min-height: 900px;
    background-position: 62% center;
  }

  .hero-content {
    margin-top: 125px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 66px);
    letter-spacing: 0.08em;
  }

  .hero-subtitle {
    margin-top: 15px;
    font-size: 17px;
    letter-spacing: 0.12em;
  }

  .hero-features {
    gap: 15px;
  }

  .hero-features article {
    grid-template-columns: 37px 1fr;
    gap: 10px;
  }

  .line-icon {
    width: 35px;
    height: 35px;
  }

  .hero-features h2 {
    font-size: 15px;
  }

  .hero-features p {
    font-size: 10px;
  }

  .primary-cta {
    min-height: 54px;
    padding-inline: 25px;
    font-size: 15px;
  }

  .hero-stats {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 155px;
  }

  .hero-stats article {
    justify-content: flex-start;
    padding: 12px;
  }

  .hero-stats svg {
    width: 27px;
    min-width: 27px;
  }

  .hero-stats strong {
    font-size: 15px;
  }

  .hero-stats span {
    font-size: 9px;
  }

  .section {
    padding: 85px 20px;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .section-heading h2,
  .journey-copy h2,
  .closing-section h2 {
    font-size: 33px;
  }

  .section-heading > p:last-child,
  .journey-lead,
  .closing-section > p:not(.section-kicker) {
    font-size: 14px;
  }

  .test-card {
    min-height: 480px;
    padding: 30px 25px 25px;
  }

  .test-number {
    margin-bottom: 35px;
  }

  .test-status {
    top: 27px;
    right: 25px;
  }

  .journey-section {
    gap: 60px;
  }

  .journey-visual {
    width: min(90vw, 420px);
  }

  .journey-dot {
    width: 58px;
    font-size: 11px;
  }

  .report-layout {
    width: 100%;
  }

  .map-card__top {
    display: grid;
    margin-bottom: 34px;
  }

  .axis-list > div {
    grid-template-columns: 53px 1fr 53px;
    gap: 8px;
    font-size: 10px;
  }

  .closing-section {
    min-height: 540px;
    padding-inline: 24px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .choice-poles {
    grid-template-columns: 1fr;
  }

  .choice-poles article {
    min-height: auto;
    padding: 16px;
  }

  .scale-options {
    gap: 5px;
  }

  .scale-option {
    min-height: 45px;
  }

  .dialog-shell {
    padding: 55px 20px 25px;
  }

  .report-dialog__shell {
    padding: 58px 18px 30px;
  }

  .report-hero {
    margin-bottom: 32px;
  }

  .report-chapter {
    padding: 30px 0;
  }

  .report-chapter > header {
    grid-template-columns: 30px 1fr;
    gap: 10px;
  }

  .report-chapter__body {
    padding-left: 0;
    font-size: 12px;
  }

  .report-evidence-grid,
  .report-evidence-grid--wide,
  .summary-triad,
  .full-report-codes,
  .full-report-toc {
    grid-template-columns: 1fr;
  }

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

  .preference-callout {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .preference-callout span {
    order: 0;
  }

  .result-axis-list > div {
    grid-template-columns: 60px 1fr 60px;
    gap: 8px;
    font-size: 9px;
  }

  .full-report-cover {
    padding-top: 0;
  }

  .assessment-header {
    display: grid;
    gap: 14px;
    padding-right: 0;
  }

  .progress-track {
    margin: 24px 0 31px;
  }

  .login-card {
    padding: 55px 28px 34px;
  }
}

@media (max-width: 480px) {
  .hero {
    background-image: image-set(
      url("assets/hero-cosmos-mobile.webp") type("image/webp"),
      url("assets/hero-cosmos.png") type("image/png")
    );
    background-position: center;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
