:root {
  color-scheme: dark;
  --shell-padding: clamp(8px, 1vw, 20px);
  --color-bg: #0f0a07;
  --color-surface: rgba(26, 19, 15, 0.82);
  --color-surface-strong: rgba(18, 15, 13, 0.9);
  --color-surface-soft: rgba(255, 255, 255, 0.08);
  --color-border: rgba(216, 225, 248, 0.28);
  --color-border-soft: rgba(255, 255, 255, 0.12);
  --color-brand: #1c46a5;
  --color-brand-bright: #6d8bdb;
  --color-brand-soft: #a8bce9;
  --color-brand-fade: rgba(168, 188, 233, 0.52);
  --color-text: #fff8f1;
  --color-text-muted: rgba(232, 237, 248, 0.9);
  --color-text-soft: rgba(213, 222, 245, 0.68);
  --color-gold: #c9a882;
  --color-danger: #ffb4b4;
  --heritage-navy: #002676;
  --heritage-navy-deep: #001b5e;
  --heritage-gold: #9c7a2b;
  --heritage-cream: #f8f4ea;
  --heritage-cream-light: #fbf8f1;
  --heritage-surface: #ffffff;
  --heritage-surface-blue: #eef3ff;
  --heritage-text: #0b1220;
  --heritage-muted: #5b6472;
  --heritage-border: #e6ddc9;
  --heritage-shadow: 0 18px 44px rgba(21, 36, 68, 0.08);

  --font-heading: "Archivo Black", "Archivo", Helvetica, Arial, sans-serif;
  --font-ui: "Archivo", Helvetica, Arial, sans-serif;
  --font-body: "Questrial", Helvetica, Arial, sans-serif;

  --radius-large: 18px;
  --radius-medium: 14px;
  --radius-small: 10px;
  --shadow-standard: 0 28px 80px rgba(0, 0, 0, 0.34);
  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(109, 139, 219, 0.12), transparent 32%),
    linear-gradient(180deg, #140f0c 0%, #0f0a07 100%);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

.site-shell {
  min-height: 100vh;
  padding: var(--shell-padding);
}

.site-main {
  width: 100%;
}

.app-frame {
  position: relative;
  width: 100%;
  max-width: none;
  height: calc(100vh - (var(--shell-padding) * 2));
  min-height: 680px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-large);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-standard);
}

.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("./images/generated-1773844794184.png");
  background-position: center;
  background-size: cover;
  transition: background-image 0.3s ease;
}

.app-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(30, 21, 16, 0.66) 0%, rgba(42, 29, 20, 0.76) 48%, rgba(20, 15, 12, 0.9) 100%);
  pointer-events: none;
}

.app-frame[data-scene="intro"]::before {
  background-image: url("./images/generated-1773844840844.png");
}

.app-frame[data-scene="diagnostic"]::before,
.app-frame[data-scene="result"]::before {
  background-image: url("./images/generated-1773844815023.png");
}

.app-frame[data-scene="intro"]::after {
  background:
    radial-gradient(circle at 16% 18%, rgba(151, 177, 233, 0.18) 0%, transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(248, 244, 234, 0.12) 0%, transparent 28%),
    radial-gradient(circle at 48% 82%, rgba(120, 151, 226, 0.08) 0%, transparent 30%),
    radial-gradient(circle at center, rgba(30, 21, 16, 0.62) 0%, rgba(42, 29, 20, 0.74) 48%, rgba(20, 15, 12, 0.88) 100%);
}

.app-frame[data-scene="diagnostic"]::after {
  background:
    radial-gradient(circle at 12% 14%, rgba(168, 191, 240, 0.2) 0%, transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(248, 244, 234, 0.14) 0%, transparent 26%),
    radial-gradient(circle at 28% 74%, rgba(146, 171, 229, 0.09) 0%, transparent 30%),
    radial-gradient(circle at 72% 72%, rgba(245, 237, 221, 0.08) 0%, transparent 28%),
    radial-gradient(circle at center, rgba(29, 21, 16, 0.64) 0%, rgba(39, 28, 21, 0.78) 48%, rgba(18, 14, 12, 0.9) 100%);
}

.app-frame[data-scene="result"]::before {
  opacity: 1;
  filter: grayscale(18%) saturate(0.82) brightness(0.88) blur(0.2px);
  transform: scale(1.02);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 34%,
    rgba(0, 0, 0, 0.98) 44%,
    rgba(0, 0, 0, 0.84) 54%,
    rgba(0, 0, 0, 0.48) 64%,
    rgba(0, 0, 0, 0) 74%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 34%,
    rgba(0, 0, 0, 0.98) 44%,
    rgba(0, 0, 0, 0.84) 54%,
    rgba(0, 0, 0, 0.48) 64%,
    rgba(0, 0, 0, 0) 74%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.app-frame[data-scene="result"]::after {
  background:
    radial-gradient(circle at 18% 16%, rgba(219, 229, 248, 0.34) 0%, rgba(219, 229, 248, 0.08) 18%, transparent 40%),
    radial-gradient(circle at 84% 14%, rgba(248, 244, 234, 0.28) 0%, rgba(248, 244, 234, 0.06) 18%, transparent 42%),
    radial-gradient(circle at 30% 64%, rgba(239, 244, 255, 0.12) 0%, transparent 26%),
    radial-gradient(circle at 74% 76%, rgba(245, 237, 221, 0.1) 0%, transparent 28%),
    linear-gradient(
      180deg,
      rgba(19, 14, 12, 0.46) 0%,
      rgba(44, 30, 21, 0.22) 10%,
      rgba(250, 246, 238, 0.46) 24%,
      rgba(247, 241, 232, 0.68) 42%,
      rgba(243, 238, 228, 0.94) 66%,
      rgba(237, 242, 250, 0.98) 84%,
      rgba(237, 242, 250, 1) 100%
    );
}

.app-frame[data-scene="result"] {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-color: rgba(230, 221, 201, 0.78);
  background:
    linear-gradient(180deg, #f8f4ea 0%, #f4efe5 54%, #edf2fb 100%);
  box-shadow: 0 30px 72px rgba(17, 31, 65, 0.12);
}

.app-frame[data-scene="result"] .site-header {
  background: linear-gradient(180deg, rgba(18, 13, 11, 0.28), rgba(18, 13, 11, 0));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.app-frame[data-scene="result"] .site-header__divider {
  background: rgba(255, 255, 255, 0.16);
}

.app-frame[data-scene="result"] .site-header__subbrand,
.app-frame[data-scene="result"] .site-header__note {
  color: rgba(255, 255, 255, 0.8);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 64px;
  padding: 0 56px;
  border-bottom: 1px solid rgba(159, 176, 220, 0.2);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-mark__image {
  display: block;
  height: 56px;
  width: auto;
}

.site-header__divider {
  width: 1px;
  height: 16px;
  background: rgba(124, 149, 212, 0.25);
}

.site-header__subbrand,
.site-header__note {
  margin: 0;
  color: rgba(213, 222, 245, 0.72);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-view {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.page-view.is-active,
.view.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hidden {
  display: none !important;
}

.page-view--landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 64px);
  padding: 30px 56px 58px;
}

.landing-symbol {
  color: rgba(143, 167, 224, 0.4);
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 1;
  transform: translateY(-42px);
}

.landing-copy {
  display: grid;
  justify-items: center;
  gap: 0;
  max-width: 1240px;
  transform: translateY(-42px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--color-brand-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.card-title,
.result-block__title {
  margin: 0;
  color: var(--color-text);
}

.hero-title {
  max-width: 26ch;
  font-family: var(--font-heading);
  font-size: clamp(31px, 3.7vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
}

.hero-divider {
  width: 56px;
  height: 1px;
  margin-top: 24px;
  background: var(--color-brand-bright);
}

.hero-text,
.section-description,
.card-note,
.result-copy,
.helper-text {
  color: var(--color-text-muted);
}

.hero-text {
  max-width: 860px;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.48;
  text-align: center;
}

.hero-text-break {
  display: block;
}

.hero-text--secondary {
  max-width: 720px;
  margin-top: 16px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(216, 225, 248, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 237, 248, 0.9);
  font-family: var(--font-body);
  font-size: 13px;
}

.hero-actions {
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.button-hero {
  min-width: 320px;
  min-height: 58px;
  padding: 18px 34px;
  border: 1.5px solid rgba(109, 139, 219, 0.92);
  background:
    linear-gradient(180deg, rgba(58, 97, 192, 0.96), rgba(28, 70, 165, 0.98)),
    var(--color-brand);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 40px rgba(28, 70, 165, 0.28);
}

.button-hero:hover,
.button-hero:focus-visible {
  background: #244fae;
}

.button-primary {
  background:
    linear-gradient(180deg, rgba(58, 97, 192, 0.96), rgba(28, 70, 165, 0.98)),
    var(--color-brand);
  color: #f9fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 28px rgba(28, 70, 165, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #244fae;
}

.button-secondary {
  border-color: rgba(216, 225, 248, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(18, 18, 22, 0.34);
  color: #eef3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.button-block {
  width: 100%;
}

.privacy-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 24px;
  border-top: 1px solid rgba(159, 176, 220, 0.12);
  background: linear-gradient(180deg, rgba(15, 10, 7, 0.18), rgba(15, 10, 7, 0.58));
}

.privacy-bar__dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(140, 163, 219, 0.42);
  box-shadow: 0 0 0 4px rgba(140, 163, 219, 0.06);
}

.privacy-bar__text {
  margin: 0;
  color: rgba(232, 237, 248, 0.84);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
}

.page-view--narrow {
  width: 100%;
  min-height: calc(100% - 64px);
  margin: 0;
  padding: 20px 56px 34px;
}

#questionnaire-view.page-view--narrow {
  height: calc(100% - 64px);
  min-height: auto;
  overflow-y: auto;
  padding-top: 16px;
  padding-bottom: 64px;
  scrollbar-gutter: stable;
}

#intro-view.page-view--narrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.stage-panel {
  position: relative;
  min-height: 100%;
}

#intro-view .stage-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
}

.stage-panel__watermark {
  position: absolute;
  top: 50%;
  left: -165px;
  color: rgba(125, 150, 212, 0.1);
  font-family: var(--font-heading);
  font-size: 92px;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  pointer-events: none;
}

.stage-panel__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 100%;
  width: 66.666%;
  max-width: 920px;
  min-width: 760px;
  margin-right: auto;
}

#intro-view .stage-panel__content {
  margin: 0 auto;
  align-content: center;
  justify-items: center;
  transform: translateY(-22px);
}

#intro-view .intro-form {
  text-align: center;
}

#intro-view .intro-card {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

#intro-view .input-label,
#intro-view .helper-text,
#intro-view .card-label {
  text-align: center;
}

#intro-view .card-title {
  font-size: clamp(24px, 3vw, 34px);
  text-align: center;
}

#intro-view .card-note {
  max-width: 620px;
  margin: 16px auto 0;
  text-align: center;
}

#intro-view .text-input {
  text-align: center;
}

#intro-view .input-group--spaced {
  width: min(100%, 340px);
  margin: 20px auto 0;
}

.stage-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 18px;
}

.stage-progress__track {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.stage-progress__fill {
  display: block;
  height: 2px;
  background: var(--color-brand-bright);
}

.stage-progress__fill--intro {
  width: 85px;
}

.stage-progress__label {
  margin: 0;
  color: var(--color-brand-soft);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card {
  padding: 24px 26px;
  background: rgba(26, 19, 15, 0.82);
  border: 1px solid rgba(216, 225, 248, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(2px);
}

.intro-card,
.question-card,
.reflection-card,
.email-form {
  border-radius: 28px;
  border: 1px solid rgba(224, 231, 246, 0.22);
  background:
    radial-gradient(circle at top right, rgba(126, 160, 231, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(248, 244, 234, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(17, 15, 18, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 24px 54px rgba(8, 12, 24, 0.26);
  backdrop-filter: blur(14px);
}

.intro-card,
.question-card,
.reflection-card,
.email-form,
.result-hero,
.result-block,
.heritage-path-card,
.heritage-cta-card,
.bridge-card {
  width: 100%;
}

.card-label {
  margin: 0 0 18px;
  color: rgba(184, 202, 240, 0.9);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.card-note {
  margin-top: 18px;
  max-width: 38ch;
}

.intro-form,
.email-form {
  display: grid;
  gap: 18px;
}

.input-group {
  display: grid;
  gap: 8px;
}

.input-group--spaced {
  margin-top: 8px;
}

.input-label {
  color: var(--color-brand-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(226, 232, 246, 0.26);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  color: #f3f6fd;
  font: inherit;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(8, 12, 24, 0.08);
}

.text-input::placeholder {
  color: rgba(243, 246, 253, 0.78);
}

.text-input:focus {
  outline: none;
  border-color: rgba(184, 208, 255, 0.72);
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(109, 139, 219, 0.12),
    0 14px 30px rgba(8, 12, 24, 0.12);
}

.text-area {
  min-height: 128px;
  padding: 14px;
  resize: vertical;
}

.text-area--memory-script {
  font-family: "Caveat", "Segoe Print", "Bradley Hand", "Apple Chancery", cursive;
  font-size: 24px;
  padding-top: 16px;
  padding-bottom: 14px;
  line-height: 1.45;
  letter-spacing: 0.005em;
  background:
    radial-gradient(circle at 12% 14%, rgba(248, 244, 234, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.16), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0 30px,
      rgba(170, 189, 231, 0.07) 30px 31px
    ),
    rgba(255, 255, 255, 0.045);
  background-position:
    0 0,
    0 0,
    0 15px,
    0 0;
}

.text-area--compact {
  min-height: 16px;
  padding: 4px 12px;
}

.text-area--memory-script::placeholder {
  font-family: "Caveat", "Segoe Print", "Bradley Hand", "Apple Chancery", cursive;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  opacity: 0.72;
}

.text-area--memory-brief {
  width: min(100%, 700px);
  min-height: 76px;
  max-height: 120px;
}

.question-card--open.question-card--reflective {
  max-width: none;
  margin: 0;
}

.question-card--open.question-card--reflective .section-title,
.question-card--open.question-card--reflective .section-description,
.question-card--open.question-card--reflective #open-wrap {
  width: min(100%, 700px);
  justify-self: start;
}

.question-card--open.question-card--reflective #question-error {
  width: min(100%, 700px);
  justify-self: start;
}

.question-card--memory-primary {
  width: min(100%, 900px);
  max-width: 900px;
  padding-right: 12px;
}

.question-card--open.question-card--reflective.question-card--memory-primary .section-title {
  width: min(100%, 860px);
  justify-self: start;
  font-size: clamp(25px, 2.85vw, 35px);
  letter-spacing: -0.035em;
  text-wrap: normal;
}

.question-card--open.question-card--reflective.question-card--memory-primary .section-description {
  width: min(100%, 700px);
  justify-self: start;
}

.question-card--open.question-card--reflective.question-card--memory-primary #question-error {
  width: min(100%, 700px);
  justify-self: start;
}

.question-card--memory-secondary {
  width: min(100%, 760px);
  max-width: 760px;
}

.question-card--memory-secondary .section-title,
.question-card--memory-secondary .section-description,
.question-card--memory-secondary #open-wrap,
.question-card--memory-secondary #question-error {
  width: min(100%, 760px);
}

.text-area--compact::placeholder {
  font-size: 24px;
}

#open-wrap {
  margin-top: 18px;
}

.helper-text,
.section-meta,
.support-text {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 13px;
}

.field-error {
  min-height: 22px;
  margin: 6px 0 0;
  color: var(--color-danger);
  font-size: 14px;
}

.progress-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(8, 12, 24, 0.12);
  overflow: hidden;
}

.progress-bar {
  width: 8.333%;
  height: 100%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #6d8bdb 0%, #9ab6ff 52%, #d7e5ff 100%);
  box-shadow:
    0 0 16px rgba(109, 139, 219, 0.45),
    0 0 28px rgba(109, 139, 219, 0.18),
    0 8px 16px rgba(43, 79, 167, 0.16);
  transition:
    width 0.32s ease,
    box-shadow 0.32s ease;
}

.journey-note {
  width: 66.666%;
  max-width: 920px;
  min-width: 760px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid rgba(184, 208, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(43, 79, 167, 0.3), rgba(120, 151, 226, 0.12)),
    rgba(17, 20, 33, 0.64);
  color: #f7faff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
  box-shadow:
    0 18px 36px rgba(4, 8, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  transition:
    opacity 0.28s ease,
    transform 0.34s ease,
    box-shadow 0.34s ease;
  backdrop-filter: blur(8px);
  background:
    linear-gradient(135deg, rgba(43, 79, 167, 0.26), rgba(120, 151, 226, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(17, 20, 33, 0.66);
}

.journey-note.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow:
    0 22px 42px rgba(4, 8, 18, 0.3),
    0 0 0 1px rgba(109, 139, 219, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.question-form {
  display: block;
  width: 66.666%;
  max-width: 920px;
  min-width: 760px;
  margin-right: auto;
}

.question-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 24px 26px;
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.36s ease,
    box-shadow 0.36s ease,
    background 0.36s ease;
  will-change: opacity, transform, filter;
}

.question-card--first {
  max-width: 820px;
}

.question-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(248, 244, 234, 0.06), transparent 34%);
  pointer-events: none;
  opacity: 0.8;
}

.question-card.is-switching {
  opacity: 0;
  transform: translateY(16px) scale(0.987);
  filter: blur(8px);
}

.question-card.is-entering {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
  filter: blur(6px);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-title--compact {
  font-size: clamp(30px, 4.2vw, 42px);
}

.section-description {
  margin: 6px 0 0;
  width: 100%;
  max-width: none;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(232, 237, 248, 0.82);
}

.options-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice-followup {
  margin-top: 4px;
  margin-bottom: 16px;
  grid-column: 1 / -1;
  max-width: 620px;
}

.choice-followup__card {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(109, 139, 219, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(48, 83, 168, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(20, 17, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(8, 12, 24, 0.09);
  backdrop-filter: blur(8px);
}

.choice-followup__eyebrow {
  margin: 0;
  color: var(--color-brand-soft);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.choice-followup__title {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
}

.option-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(225, 232, 246, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.045);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  transition:
    transform 0.22s ease,
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow 0.22s ease;
  cursor: pointer;
}

.option-card:hover,
.option-card:focus-visible {
  outline: none;
  border-color: rgba(184, 208, 255, 0.34);
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    0 18px 36px rgba(8, 12, 24, 0.2),
    0 0 0 1px rgba(248, 244, 234, 0.05);
  transform: translateY(-3px);
}

.option-card.is-selected {
  border-color: rgba(109, 139, 219, 0.84);
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(58, 97, 192, 0.22), rgba(255, 255, 255, 0.05)),
    rgba(28, 70, 165, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(109, 139, 219, 0.3),
    0 16px 30px rgba(6, 10, 20, 0.18);
  transform: translateY(-2px);
}

.option-card__dot {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(216, 225, 248, 0.28);
  border-radius: 999px;
  background: transparent;
}

.option-card.is-selected .option-card__dot {
  border-color: var(--color-brand-bright);
  background: var(--color-brand-bright);
  box-shadow: inset 0 0 0 4px rgba(18, 15, 13, 0.9);
}

.option-card__label {
  font-size: 16px;
  line-height: 1.42;
}

.question-card--reflective {
  border-color: rgba(192, 207, 240, 0.26);
  background:
    radial-gradient(circle at top right, rgba(164, 190, 246, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(248, 244, 234, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(18, 16, 20, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 62px rgba(8, 12, 24, 0.28);
}

.question-card--reflective::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, rgba(248, 244, 234, 0.86), rgba(168, 188, 233, 0));
  pointer-events: none;
}

.question-card--reflective .section-title {
  font-size: clamp(26px, 3vw, 37px);
  letter-spacing: -0.04em;
}

.question-card--reflective .section-description {
  color: rgba(239, 243, 252, 0.88);
  max-width: none;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.58;
}

.question-card--reflective .options-list,
.question-card--reflective #open-wrap {
  margin-top: 18px;
}

.question-card--open .text-area--memory-script {
  border-color: rgba(226, 232, 246, 0.3);
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(8, 12, 24, 0.11);
}

.question-card--reflective .text-area--memory-script {
  background:
    radial-gradient(circle at 12% 12%, rgba(248, 244, 234, 0.14), transparent 32%),
    radial-gradient(circle at 84% 20%, rgba(168, 188, 233, 0.09), transparent 36%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0 30px,
      rgba(168, 188, 233, 0.08) 30px 31px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.055);
  background-position:
    0 0,
    0 0,
    0 15px,
    0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 32px rgba(8, 12, 24, 0.13);
}

.question-card--reflective .option-card {
  border-color: rgba(226, 232, 246, 0.24);
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
}

.question-card--reflective .option-card:hover,
.question-card--reflective .option-card:focus-visible {
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.07);
}

.question-card--reflective .option-card.is-selected {
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(58, 97, 192, 0.24), rgba(255, 255, 255, 0.05)),
    rgba(28, 70, 165, 0.18);
}

.form-actions,
.bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.question-card .form-actions {
  gap: 12px;
  margin-top: 2px;
}

.question-card .button {
  min-height: 44px;
  padding: 12px 22px;
}

.form-actions--lead {
  justify-content: flex-start;
}

#intro-view .form-actions--lead {
  justify-content: center;
  margin-top: 22px;
}

#intro-view .helper-text {
  margin-top: 10px;
}

.result-copy {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.result-copy p {
  margin: 0;
}

.result-gauge {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.result-gauge__dial {
  position: relative;
  width: min(100%, 410px);
  margin: 0 auto;
}

.result-gauge__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.result-gauge__segment-outline {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: butt;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-box: fill-box;
  transform-origin: center;
}

.result-gauge__segment-outline--1 {
  stroke: #8b95c4;
}

.result-gauge__segment-outline--2 {
  stroke: #4d6fda;
}

.result-gauge__segment-outline--3 {
  stroke: #2f57cf;
}

.result-gauge__segment-outline--4 {
  stroke: #163fb7;
}

.result-gauge__segment-outline.is-highlighted {
  opacity: 1;
  transform: scale(1.035);
  filter:
    drop-shadow(0 0 6px currentColor)
    drop-shadow(0 0 14px currentColor)
    drop-shadow(0 0 24px rgba(38, 80, 200, 0.34));
}

.result-gauge__segment {
  stroke: none;
  filter: drop-shadow(0 8px 16px rgba(21, 36, 68, 0.08));
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-box: fill-box;
  transform-origin: center;
}

.result-gauge__segment--1 {
  fill: #d7d9e6;
}

.result-gauge__segment--2 {
  fill: #8b96b7;
}

.result-gauge__segment--3 {
  fill: #4f618f;
}

.result-gauge__segment--4 {
  fill: #0f2a72;
}

.result-gauge__segment.is-highlighted {
  transform: scale(1.03);
  filter: drop-shadow(0 8px 16px rgba(21, 36, 68, 0.08));
}

.result-gauge__needle {
  will-change: transform;
  filter:
    drop-shadow(0 0 5px rgba(196, 236, 255, 0.1))
    drop-shadow(0 4px 8px rgba(21, 36, 68, 0.12));
}

.result-gauge__needle-shaft {
  fill: var(--heritage-navy);
  stroke: rgba(224, 244, 255, 0.34);
  stroke-width: 0.7;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}

.result-gauge__needle-core {
  fill: #ffffff;
  stroke: rgba(109, 139, 219, 0.42);
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 5px rgba(21, 36, 68, 0.1));
}

.result-gauge__label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  margin: 0;
  color: rgba(0, 38, 118, 0.56);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-gauge__mark {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(78, 92, 126, 0.92);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  line-height: 1.15;
  max-width: 110px;
  white-space: normal;
  text-transform: uppercase;
  box-shadow: none;
  transition:
    background-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 260ms cubic-bezier(0.16, 1, 0.3, 1),
    min-height 260ms cubic-bezier(0.16, 1, 0.3, 1),
    color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    font-size 260ms cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 260ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.result-gauge__mark.is-highlighted {
  min-height: 24px;
  max-width: none;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(18, 54, 129, 0.98), rgba(15, 42, 114, 0.98));
  color: rgba(255, 255, 255, 0.98);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(0, 38, 118, 0.2);
  transform: translate(-50%, -50%) scale(1.04);
}

.result-gauge__mark--1 {
  left: -4%;
  top: 63%;
  transform: translate(-50%, -50%);
}

.result-gauge__mark--2 {
  left: 21%;
  top: 12%;
  transform: translate(-50%, -50%);
  max-width: none;
  white-space: nowrap;
}

.result-gauge__mark--3 {
  left: 73%;
  top: 12%;
  transform: translate(-50%, -50%);
  max-width: none;
  white-space: nowrap;
}

.result-gauge__mark--4 {
  left: 106%;
  top: 63%;
  transform: translate(-50%, -50%);
  max-width: none;
  white-space: nowrap;
}

.result-hero {
  display: grid;
  gap: 0;
  padding: clamp(14px, 2vw, 24px) 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.result-hero .card-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #002676;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 38, 118, 0.18);
}

#result-view .result-hero .card-label {
  color: #ffffff;
}

.result-hero__layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

.result-hero__copy {
  display: grid;
  gap: 14px;
  max-width: 66ch;
  padding-top: 18px;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(8px);
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.result-hero__copy.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.result-hero__title {
  margin: 0;
  color: #0b0f17;
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.7vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 16ch;
}

.result-hero__summary {
  margin: 0;
  max-width: 50ch;
  color: rgba(11, 18, 32, 0.88);
  font-size: clamp(15px, 1.18vw, 17px);
  line-height: 1.56;
  white-space: normal;
}

.result-hero__transition {
  width: 100%;
  max-width: 50ch;
  margin: 10px 0 0;
  color: rgba(0, 38, 118, 0.92);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.result-summary-break {
  display: block;
  height: 0.5em;
}

.result-level-line {
  display: grid;
  gap: 2px;
  margin: -40px 0 0;
  text-align: center;
}

.result-level-label {
  color: rgba(91, 100, 114, 0.78);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-level-value {
  color: var(--heritage-navy);
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.result-level-line.is-highlighted .result-level-value {
  opacity: 1;
  transform: translateY(0);
}

.result-block {
  display: grid;
  gap: 12px;
}

.result-block--memories {
  position: relative;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 3vw, 32px);
  border-color: rgba(0, 38, 118, 0.09);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 22px 46px rgba(21, 36, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow: visible;
}

.result-block--memories::before {
  content: none;
}

.result-block--memories > * {
  position: relative;
  z-index: 1;
}

.result-block__title {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.result-block--memories .result-block__title {
  position: relative;
  max-width: none;
  margin: 0;
  color: var(--heritage-navy);
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-align: center;
}

.section-description--reward-lead,
.section-description--reward {
  justify-self: center;
  text-align: center;
}

.section-description--reward-lead {
  max-width: 80ch;
  margin: -4px 0 0;
  color: rgba(11, 18, 32, 0.78);
  font-size: 15.5px;
  line-height: 1.58;
}

.section-description--reward {
  max-width: 88ch;
  color: rgba(11, 18, 32, 0.72);
  font-size: 16px;
  line-height: 1.6;
}

.memory-cards {
  display: grid;
  gap: 16px;
}

.memory-cards--stacked {
  grid-template-columns: repeat(auto-fit, minmax(258px, 258px));
  justify-content: center;
  gap: 72px;
  max-width: 100%;
  width: 100%;
  justify-self: stretch;
  align-items: start;
  margin-top: 28px;
  padding-top: 20px;
  justify-items: center;
}

.memory-card {
  display: grid;
  gap: 12px;
  padding: 26px 26px 24px;
  border: 1px solid rgba(216, 225, 248, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(11, 10, 14, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.16);
}

.memory-card--editorial {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  justify-items: center;
  width: 258px;
  max-width: 100%;
  min-height: 310px;
  padding: 13px 13px 15px;
  border: 1px solid rgba(230, 221, 201, 0.88);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 246, 0.98)),
    #fff;
  box-shadow:
    0 16px 34px rgba(21, 36, 68, 0.09),
    0 2px 7px rgba(21, 36, 68, 0.045);
  text-align: center;
}

.memory-card--editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(230, 221, 201, 0.78);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(11, 18, 32, 0.03);
  pointer-events: none;
}

.memory-card--editorial:nth-child(3n + 1) {
  --memory-photo: url("./images/generated-1773848671285.png");
  transform: rotate(-2deg);
}

.memory-card--editorial:nth-child(3n + 2) {
  --memory-photo: url("./images/generated-1773849152867.png");
  transform: rotate(0.8deg);
}

.memory-card--editorial:nth-child(3n + 3) {
  --memory-photo: url("./images/generated-1773849269214.png");
  transform: rotate(-1deg);
}

.memory-card--editorial::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 12px;
  border-top: 1px solid rgba(230, 221, 201, 0.9);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  background: linear-gradient(180deg, rgba(205, 190, 161, 0.08), transparent 80%);
  pointer-events: none;
}

.memory-card__label {
  order: 2;
  margin: 0;
  color: rgba(122, 136, 170, 0.82);
  font-family: "Caveat", "Segoe Print", "Bradley Hand", "Apple Chancery", cursive;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
}

.memory-card__value {
  order: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  min-height: 220px;
  max-width: none;
  padding: 26px 20px;
  color: var(--heritage-text);
  font-family: "Caveat", "Segoe Print", "Bradley Hand", "Apple Chancery", cursive;
  font-size: clamp(21px, 2.45vw, 29px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.005em;
  font-style: normal;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(224, 234, 251, 0.96), rgba(216, 228, 248, 0.98));
  border: 1px solid rgba(124, 145, 190, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 0 0 1px rgba(124, 145, 190, 0.05),
    inset 0 -16px 26px rgba(173, 194, 234, 0.08);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.memory-card__value::before,
.memory-card__value::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.memory-card__value::before {
  inset: -8px;
  z-index: -2;
  background-image: var(--memory-photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(0.94) brightness(0.94);
}

.memory-card__value::after {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(233, 241, 255, 0.42), rgba(223, 233, 251, 0.54)),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.66), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(204, 219, 250, 0.34), transparent 36%),
    radial-gradient(circle at 52% 78%, rgba(185, 204, 242, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(242, 247, 255, 0.44), rgba(230, 238, 252, 0.56));
}

.memory-card__value.is-medium {
  font-size: clamp(17px, 1.75vw, 21px);
  line-height: 1.28;
}

.memory-card__value.is-small {
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.24;
}

.memory-card__value.is-xsmall {
  font-size: clamp(13.5px, 1.18vw, 16px);
  line-height: 1.2;
}

.result-block--memories .memory-card--editorial .memory-card__label {
  color: rgba(126, 140, 176, 0.88);
}

.result-block--memories .memory-card--editorial .memory-card__value {
  width: 100%;
  max-width: none;
  font-size: clamp(19px, 2.08vw, 24px);
  letter-spacing: 0.005em;
  color: rgba(11, 18, 32, 0.9);
}

.result-block--memories .memory-card--editorial .memory-card__value.is-medium {
  font-size: clamp(17.25px, 1.82vw, 21px);
}

.result-block--memories .memory-card--editorial .memory-card__value.is-small {
  font-size: clamp(15.25px, 1.48vw, 18px);
}

.result-block--memories .memory-card--editorial .memory-card__value.is-xsmall {
  font-size: clamp(13.5px, 1.2vw, 15.5px);
}

.result-block--memories .section-description--reward {
  position: relative;
  width: 100%;
  max-width: none;
  margin-top: 18px;
  margin-bottom: -4px;
  padding-top: 16px;
  border-top: 0;
}

.result-block--memories .section-description--reward::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 440px);
  height: 1px;
  background: rgba(0, 38, 118, 0.12);
  transform: translateX(-50%);
}

.reward-synthesis {
  position: relative;
  z-index: 1;
  max-width: 92ch;
  margin: 0;
  color: rgba(11, 18, 32, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.68;
  text-align: left;
}

.memory-detail-note {
  max-width: 92ch;
  margin: -6px 0 2px;
  color: rgba(91, 100, 114, 0.92);
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.memory-reward-note {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 14px;
  text-align: center;
}

.preserve-stack {
  display: grid;
  gap: 20px;
  counter-reset: preserve;
}

.preserve-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
  padding: 0;
  counter-increment: preserve;
  border: 0;
  background: transparent;
}

.preserve-card::before {
  content: counter(preserve, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  color: rgba(168, 188, 233, 0.72);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.preserve-card__title {
  margin: 0;
  grid-column: 2;
  color: rgba(255, 248, 241, 0.9);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.preserve-card__text {
  margin: 0;
  grid-column: 2;
  width: 100%;
  max-width: none;
  color: rgba(232, 237, 248, 0.64);
  font-size: 14px;
  line-height: 1.58;
}

.heritage-path-card {
  display: grid;
  gap: 14px;
  padding: clamp(26px, 3.2vw, 36px);
  border-color: rgba(0, 38, 118, 0.08);
  border-radius: 26px;
  background: rgba(247, 250, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 40px rgba(21, 36, 68, 0.08);
}

.heritage-path-card .card-label {
  margin-bottom: 18px;
}

.heritage-path-card .result-block__title {
  margin: 0;
  color: var(--heritage-navy);
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-align: left;
}

.heritage-path-card__intro {
  width: 100%;
  max-width: none;
  margin: -4px 0 18px;
  color: rgba(11, 18, 32, 0.78);
  font-size: 15.5px;
  line-height: 1.58;
  text-align: left;
}

.heritage-path-card__layout {
  display: grid;
  gap: 68px;
  align-items: start;
}

.heritage-compare {
  display: grid;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.heritage-column {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 20px 16px 18px;
  border: 1px solid rgba(0, 38, 118, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.heritage-column--today {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 244, 234, 0.92)),
    rgba(251, 248, 241, 0.94);
  border-color: rgba(230, 221, 201, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 24px rgba(21, 36, 68, 0.04);
}

.heritage-column--platform {
  background:
    radial-gradient(circle at top right, rgba(161, 190, 255, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(28, 67, 150, 0.95), rgba(16, 47, 116, 0.95)),
    rgba(17, 45, 109, 0.95);
  border-color: rgba(167, 194, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 40px rgba(0, 24, 74, 0.22);
}

.heritage-column__title {
  margin: 0;
  color: var(--heritage-navy);
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heritage-column--today .heritage-column__title {
  color: rgba(11, 18, 32, 0.74);
  font-size: 17px;
}

.heritage-column--platform .heritage-column__title {
  color: rgba(255, 255, 255, 0.98);
  font-size: 18px;
  white-space: nowrap;
}

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

.heritage-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(11, 18, 32, 0.78);
  font-size: 13px;
  line-height: 1.44;
}

.heritage-column--today .heritage-list li {
  color: rgba(91, 100, 114, 0.96);
}

.heritage-column--platform .heritage-list li {
  color: rgba(239, 244, 255, 0.94);
}

.heritage-list li::before {
  content: "";
  position: absolute;
  top: 0.02em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(108, 129, 193, 0.92);
}

.heritage-column--today .heritage-list li::before {
  background: rgba(179, 63, 45, 0.82);
}

.heritage-column--platform .heritage-list li::before {
  top: 0.1em;
  background: rgba(78, 181, 126, 0.98);
}

.heritage-list li::after {
  content: "check";
  position: absolute;
  top: 0.02em;
  left: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(241, 246, 255, 0.98);
  font-family: "Material Symbols Outlined";
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20;
}

.heritage-column--today .heritage-list li::after {
  content: "close";
  color: rgba(250, 246, 239, 0.98);
}

.heritage-column--platform .heritage-list li::after {
  content: "check";
  top: 0.1em;
  color: rgba(244, 253, 248, 0.98);
}

.heritage-preview {
  display: grid;
  position: relative;
  justify-items: start;
  align-content: start;
  gap: 0;
  text-decoration: none;
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.heritage-preview:hover,
.heritage-preview:focus-visible {
  transform: translateY(-2px);
}

@keyframes heritage-connector-pulse {
  0%,
  100% {
    background: rgba(0, 38, 118, 0.26);
    box-shadow:
      0 0 0 0 rgba(0, 38, 118, 0),
      0 0 0 0 rgba(0, 38, 118, 0);
    transform: translate(-50%, -50%) scale(1);
  }

  22% {
    background: rgba(0, 38, 118, 0.86);
    box-shadow:
      0 0 0 3px rgba(0, 38, 118, 0.1),
      0 0 12px rgba(0, 38, 118, 0.22);
    transform: translate(-50%, -50%) scale(1.07);
  }

  44% {
    background: rgba(0, 38, 118, 0.42);
    box-shadow:
      0 0 0 6px rgba(0, 38, 118, 0.06),
      0 0 16px rgba(0, 38, 118, 0.1);
    transform: translate(-50%, -50%) scale(1);
  }
}

.heritage-connector {
  display: none;
}

.heritage-preview:focus-visible {
  outline: 2px solid rgba(196, 212, 255, 0.58);
  outline-offset: 6px;
}

.heritage-preview__frame {
  position: relative;
  width: 100%;
  margin-top: 44px;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(0, 38, 118, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(221, 232, 255, 0.08)),
    rgba(248, 251, 255, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 28px 64px rgba(21, 36, 68, 0.14);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.heritage-preview:hover .heritage-preview__frame,
.heritage-preview:focus-visible .heritage-preview__frame {
  border-color: rgba(0, 38, 118, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 34px 74px rgba(21, 36, 68, 0.18);
}

.heritage-preview__image {
  position: absolute;
  inset: 0;
  background-image: url("./images/Marguerite.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.01);
}

.heritage-preview__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 38, 118, 0.88);
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0, 38, 118, 0.22);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.heritage-preview:hover .heritage-preview__badge,
.heritage-preview:focus-visible .heritage-preview__badge {
  transform: translateY(-1px);
  background: rgba(0, 27, 94, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.heritage-cta-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  gap: 18px;
  margin-top: 26px;
  padding: 24px 0 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.heritage-cta-card::before {
  content: "";
  width: 100%;
  height: 1px;
  margin-bottom: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 132, 148, 0.32) 14%, rgba(124, 132, 148, 0.32) 86%, transparent);
}

.heritage-cta-card__text {
  max-width: 56ch;
  margin: 0;
  color: rgba(11, 18, 32, 0.74);
  font-size: 14.5px;
  text-align: center;
}

@media (min-width: 900px) {
  #result-transition {
    max-width: none;
    white-space: nowrap;
  }
}

.heritage-cta-card__actions {
  margin-top: 0;
}

.heritage-cta-card__actions .button {
  min-width: 320px;
}

.cta-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  width: 100%;
  margin-top: 4px;
}

.cta-proof__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(11, 18, 32, 0.68);
  font-family: var(--font-ui);
  font-size: 12.25px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.cta-proof__pill::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9d4ff' d='M12 1.5l2.54 2.04 3.22-.38 1.63 2.8 3 .91-.38 3.22L24 12l-2.04 2.54.38 3.22-2.8 1.63-.91 3-3.22-.38L12 24l-2.54-2.04-3.22.38-1.63-2.8-3-.91.38-3.22L0 12l2.04-2.54-.38-3.22 2.8-1.63.91-3 3.22.38z'/%3E%3Cpath fill='%23002676' d='M10.45 15.9L6.9 12.36l1.42-1.42 2.13 2.12 5.23-5.22 1.42 1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .cta-proof {
    gap: 6px 12px;
  }

  .cta-proof__pill {
    justify-content: center;
    width: 100%;
    font-size: 12px;
  }
}

.media-proof {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
  margin-top: 10px;
  padding-top: 14px;
}

.media-proof__label {
  margin: 0;
  color: rgba(91, 100, 114, 0.78);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.media-proof__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 46px;
  width: 100%;
  max-width: 1240px;
}

.media-proof__logo {
  display: block;
  max-height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.96;
  filter: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.media-proof__logo--xl {
  max-height: 72px;
}

.media-proof__logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}

#result-view .button-primary {
  border-radius: 16px;
  background: var(--heritage-navy);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 38, 118, 0.18);
  transition:
    background-color 180ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

#result-view .button-primary:hover,
#result-view .button-primary:focus-visible {
  background: var(--heritage-navy-deep);
  transform: translateY(-2.5px);
  box-shadow: 0 20px 38px rgba(0, 38, 118, 0.26);
}

.bridge-card {
  display: grid;
  gap: 14px;
  max-width: 1140px;
  padding: 22px 24px;
  border-color: rgba(194, 206, 240, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
    rgba(14, 13, 15, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.1);
}

.result-block--preserve {
  gap: 18px;
  max-width: 1160px;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.result-block--preserve .card-label {
  margin-bottom: 0;
}

.result-block--preserve .result-block__title {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.bridge-card .section-description {
  width: 100%;
  max-width: none;
  color: rgba(232, 237, 248, 0.72);
}

.bridge-actions {
  margin-top: 4px;
}

#result-view.page-view--narrow {
  position: relative;
  display: grid;
  align-content: start;
  width: min(100%, 1220px);
  min-height: calc(100% - 64px);
  margin: 0 auto;
  gap: clamp(58px, 6vh, 92px);
  padding-top: clamp(28px, 4vh, 46px);
  padding-right: clamp(20px, 3vw, 42px);
  padding-bottom: 88px;
  padding-left: clamp(20px, 3vw, 42px);
  background: transparent;
  border-radius: 0;
}

#result-view.page-view--narrow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -88px;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  top: clamp(500px, 52vw, 620px);
  background:
    linear-gradient(
      180deg,
      rgba(248, 244, 234, 0) 0%,
      rgba(248, 244, 234, 0.2) 10%,
      rgba(248, 244, 234, 0.72) 22%,
      rgba(244, 239, 229, 0.96) 34%,
      rgba(237, 242, 250, 1) 100%
    );
  pointer-events: none;
}

#result-view.page-view--narrow > * {
  position: relative;
  z-index: 1;
}

#result-view .card-label {
  color: rgba(0, 38, 118, 0.56);
}

#result-view .result-block__title {
  color: var(--heritage-navy);
}

#result-view .section-description {
  color: var(--heritage-muted);
}

#result-view .result-hero,
#result-view .heritage-path-card,
#result-view .heritage-cta-card,
#result-view .result-block--preserve,
#result-view .bridge-card {
  justify-self: start;
}

#result-view .result-block--memories {
  justify-self: stretch;
  margin-top: clamp(18px, 2.2vh, 28px);
}

@media (min-width: 900px) {
  .result-title-break {
    display: block;
  }

  .result-hero__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 420px);
    gap: 72px;
  }

  .result-gauge {
    justify-self: end;
    width: 100%;
    max-width: 420px;
    padding-top: 44px;
  }

  .heritage-path-card__layout {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.08fr);
    gap: 40px;
    width: 100%;
    margin-left: 0;
    transform: translateX(72px);
  }

  .heritage-compare {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
    width: calc(100% + 56px);
    margin-left: -56px;
  }

  .heritage-column--today {
    width: 100%;
    justify-self: start;
    margin-top: 26px;
    height: auto;
    padding: 20px 20px 14px;
  }

  .heritage-column--platform {
    margin-top: 6px;
    width: calc(100% + 10px);
    padding: 28px 22px 38px;
    justify-self: stretch;
  }

  .heritage-column--today .heritage-column__title {
    font-size: 17px;
  }

  .heritage-column--platform .heritage-column__title {
    font-size: 18px;
  }

  .heritage-column--today .heritage-list {
    gap: 16px;
  }

  .heritage-column--platform .heritage-list {
    gap: 20px;
  }

  .heritage-column--today .heritage-list li {
    font-size: 14px;
    line-height: 1.48;
  }

  .heritage-column--platform .heritage-list li {
    font-size: 15px;
    line-height: 1.54;
  }

  .heritage-connector {
    display: none;
  }

  .heritage-preview {
    align-self: start;
    width: calc(100% - 128px);
    justify-self: start;
    margin-left: 32px;
    margin-top: -18px;
    isolation: isolate;
    z-index: 1;
  }

  .heritage-preview__connector {
    position: absolute;
    top: calc(50% + 22px);
    left: -96px;
    right: 44px;
    height: 28px;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
  }

  .heritage-preview__connector-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(0, 38, 118, 0.04),
      rgba(0, 38, 118, 0.16) 35%,
      rgba(0, 38, 118, 0.14) 68%,
      rgba(0, 38, 118, 0.06)
    );
    transform: translateY(-50%);
  }

  .heritage-preview__connector-dot {
    position: absolute;
    top: 50%;
    left: calc(16px + (var(--dot-index) * 26px));
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 38, 118, 0.26);
    transform: translate(-50%, -50%);
    animation: heritage-connector-pulse 2.5s ease-in-out infinite;
    animation-delay: var(--dot-delay);
  }

  .heritage-preview__frame {
    min-height: 0;
    height: auto;
    aspect-ratio: 1.22;
  }
}

@media (max-width: 900px) {
  #result-view.page-view--narrow::before {
    top: clamp(380px, 82vw, 520px);
  }

  .result-hero {
    padding: 6px 0 0;
  }

  .result-hero__copy {
    max-width: 100%;
    padding-top: 0;
    gap: 12px;
  }

  .result-hero__title {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 44px);
  }

  .result-hero__summary,
  .result-hero__transition {
    max-width: 100%;
  }

  .result-block--memories {
    padding: 28px 24px;
    gap: 22px;
  }

  .result-block--memories .result-block__title {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 38px);
    white-space: normal;
  }

  .reward-synthesis,
  .section-description--reward-lead,
  .section-description--reward,
  .memory-detail-note {
    max-width: 100%;
  }

  .memory-cards--stacked {
    grid-template-columns: minmax(0, 258px);
    justify-content: center;
    gap: 22px;
    padding-top: 8px;
  }

  .memory-card--editorial {
    width: min(100%, 258px);
    padding: 13px 13px 15px;
  }

  .memory-card__value {
    max-width: 100%;
    font-size: clamp(24px, 7vw, 36px);
  }

  .memory-card__value::before {
    content: none;
  }

  .result-hero,
  .heritage-path-card,
  .bridge-card {
    max-width: 100%;
  }

  .preserve-card {
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
  }

  .heritage-preview__frame {
    min-height: 320px;
  }

  .heritage-cta-card__actions .button {
    width: 100%;
    min-width: 0;
  }
}

@media print {
  body.print-capsule {
    background: #ffffff !important;
    color: #101010 !important;
  }

  body.print-capsule .site-header,
  body.print-capsule .result-hero,
  body.print-capsule .result-block--preserve,
  body.print-capsule .bridge-card {
    display: none !important;
  }

  body.print-capsule .site-shell,
  body.print-capsule .site-main,
  body.print-capsule .app-frame,
  body.print-capsule #result-view {
    background: #ffffff !important;
    box-shadow: none !important;
    border: 0 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    scrollbar-gutter: auto !important;
    padding: 0 !important;
  }

  body.print-capsule .app-frame::before,
  body.print-capsule .app-frame::after {
    display: none !important;
  }

  body.print-capsule .result-block--memories,
  body.print-capsule .memory-card {
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
  }

  body.print-capsule .result-block--memories {
    padding: 0 !important;
  }

  body.print-capsule .memory-card__value,
  body.print-capsule .result-block__title,
  body.print-capsule .reward-synthesis,
  body.print-capsule .section-description--reward,
  body.print-capsule .section-description--reward-lead,
  body.print-capsule .memory-detail-note,
  body.print-capsule .memory-card__label,
  body.print-capsule .card-label {
    color: #111111 !important;
  }
}

.email-form-shell {
  transition:
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-form-shell.is-hidden {
  opacity: 0;
  transform: translateY(16px) scale(0.992);
  filter: blur(6px);
  pointer-events: none;
}

#email-view.page-view--narrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.email-stage {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

#email-view .reflection-card {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

#email-view .section-description,
#email-view .card-label,
#email-view .input-label,
#email-view .helper-text,
#email-view .field-error {
  text-align: center;
}

#email-view .section-title--compact {
  font-size: clamp(24px, 3.2vw, 33px);
}

#email-view .section-description {
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

#email-view .email-benefits {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  margin: 0 auto 2px;
}

#email-view .email-benefits__intro {
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

#email-view .email-benefits__list {
  display: grid;
  gap: 4px;
  margin: 0;
  width: 100%;
  padding: 14px 18px;
  list-style: none;
  text-align: left;
  border: 1px solid rgba(205, 217, 244, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(248, 244, 234, 0.12), transparent 42%),
    radial-gradient(circle at bottom right, rgba(109, 139, 219, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(18, 20, 30, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    0 18px 36px rgba(8, 12, 24, 0.12);
  backdrop-filter: blur(8px);
}

#email-view .email-benefits__list li {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1px 0;
  color: rgba(243, 246, 253, 0.88);
  font-size: 14.5px;
  line-height: 1.32;
  box-shadow: none;
}

#email-view .email-benefits__list li::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin-top: 0.42em;
  border-radius: 999px;
  background: rgba(168, 188, 233, 0.9);
  box-shadow: 0 0 0 3px rgba(109, 139, 219, 0.08);
}

#email-view .email-form {
  justify-items: center;
  gap: 12px;
}

#email-view .input-group {
  width: min(100%, 500px);
  margin: 2px auto 0;
}

#email-view .email-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  width: min(100%, 500px);
  margin: -8px auto 0;
  text-align: left;
}

#email-view .email-consent__input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--heritage-navy);
}

#email-view .email-consent__text {
  margin: 0;
  color: rgba(233, 238, 248, 0.8);
  font-size: 12.5px;
  line-height: 1.48;
}

#email-view .text-input {
  text-align: center;
}

#email-view .button-block {
  width: auto;
  min-width: 240px;
}

#email-view .helper-text--spaced {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .site-shell {
    padding: 14px;
  }

  .page-view--narrow {
    width: 100%;
    margin: 0;
  }

  .question-form {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .journey-note {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .stage-panel__content {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .stage-panel__watermark {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-shell {
    padding: 0;
  }

  .app-frame {
    min-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .site-header {
    padding: 0 20px;
  }

  .site-header__subbrand {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .brand-mark__image {
    height: 48px;
  }

  .page-view--landing,
  .page-view--narrow {
    min-height: calc(100vh - 64px);
    padding-right: 20px;
    padding-left: 20px;
  }

  .page-view--landing {
    padding-top: 24px;
    padding-bottom: 50px;
  }

  .hero-title {
    max-width: 14ch;
    font-size: clamp(34px, 8vw, 46px);
  }

  .hero-text {
    max-width: 100%;
    font-size: 16px;
  }

  .hero-text-break {
    display: none;
  }

  .hero-proof {
    gap: 10px;
  }

  .button,
  .form-actions .button,
  .bridge-actions .button {
    width: 100%;
  }

  .button-hero {
    min-width: 100%;
  }

  .form-actions,
  .bridge-actions {
    align-items: stretch;
  }

  .privacy-bar {
    gap: 10px;
    padding: 0 14px;
  }

  .privacy-bar__text {
    font-size: 10px;
  }

  .card,
  .question-card {
    padding: 20px 18px;
  }

  .section-title,
  .card-title {
    font-size: clamp(24px, 7.6vw, 32px);
  }

  .option-card__label {
    font-size: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
