:root {
  color-scheme: light;
  --ink: #27171a;
  --ink-soft: #5f4d49;
  --plum: #32172a;
  --plum-soft: #4a253d;
  --ivory: #fffaf3;
  --cream: #f6efe7;
  --stone: #ded2c7;
  --stone-dark: #a99b91;
  --clay: #b96952;
  --peach: #e9a184;
  --peach-soft: #f2d4c6;
  --chocolate: #3b2723;
  --moss: #4b574b;
  --danger: #8c3d3d;
  --success: #3f5c48;
  --shadow-soft: 0 18px 52px rgba(50, 23, 42, 0.09);
  --shadow-card: 0 20px 48px rgba(37, 18, 31, 0.22);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 4px;
}

::selection {
  background: var(--peach-soft);
  color: var(--plum);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ivory);
  border: 1px solid var(--plum);
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.app-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  background: rgba(246, 239, 231, 0.95);
  border-bottom: 1px solid rgba(50, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.app-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--plum);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(50, 23, 42, 0.42);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
}

.brand-words {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.08;
}

.brand-words small {
  margin-top: 4px;
  color: var(--clay);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 0 8px 12px;
  background: transparent;
  border: 0;
  color: var(--plum);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.app-navigation {
  position: fixed;
  inset: 78px 0 auto;
  display: grid;
  padding: 24px 20px 30px;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

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

.app-navigation a {
  min-height: 52px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--stone);
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.app-navigation a[aria-current="page"] {
  color: var(--clay);
  font-style: italic;
}

#app-main {
  flex: 1;
}

.loading-view {
  display: grid;
  min-height: 68vh;
  place-content: center;
  justify-items: center;
  color: var(--ink-soft);
}

.loading-view[hidden] {
  display: none;
}

.loading-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--stone-dark);
  border-radius: 50%;
  position: relative;
}

.loading-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  border-left: 1px solid var(--clay);
  transform-origin: bottom;
  animation: quiet-time 1.8s ease-in-out infinite;
}

.loading-view p {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-style: italic;
}

@keyframes quiet-time {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(28deg); }
}

.view {
  animation: view-arrive 520ms ease both;
}

@keyframes view-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: var(--clay);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.23em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.display-title,
.page-title,
.section-title,
.card-title,
.truth-text {
  font-family: var(--serif);
  font-weight: 400;
}

.display-title {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(3.1rem, 16vw, 5.4rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.display-title em,
.page-title em {
  color: var(--peach);
  font-weight: 400;
}

.page-title {
  max-width: 900px;
  margin: 0;
  color: var(--plum);
  font-size: clamp(2.55rem, 10vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 3vw, 1.25rem);
  line-height: 1.8;
}

.arrival-view {
  background: var(--plum);
  color: var(--ivory);
}

.arrival-view > .qa-panel {
  margin-top: 24px;
  margin-bottom: 0;
}

.arrival-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 78px);
  align-items: center;
  overflow: hidden;
  padding: 60px 20px 72px;
}

.arrival-hero::before,
.arrival-hero::after {
  position: absolute;
  border: 1px solid rgba(233, 161, 132, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.arrival-hero::before {
  width: 52vw;
  height: 52vw;
  max-width: 460px;
  max-height: 460px;
  top: -26vw;
  right: -24vw;
}

.arrival-hero::after {
  width: 70vw;
  height: 70vw;
  max-width: 620px;
  max-height: 620px;
  bottom: -49vw;
  left: -34vw;
}

.arrival-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, var(--max));
  gap: 54px;
  margin: 0 auto;
}

.arrival-copy {
  align-self: center;
}

.arrival-view .display-title {
  max-width: 760px;
  font-size: clamp(3.05rem, 13.5vw, 5.65rem);
}

.arrival-intro {
  max-width: 620px;
  margin: 30px 0 0;
  color: rgba(255, 250, 243, 0.77);
  font-size: 1.08rem;
  line-height: 1.85;
}

.opening-book {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 620px);
  min-height: 310px;
  justify-self: center;
  filter: drop-shadow(0 34px 42px rgba(16, 5, 14, 0.3));
  perspective: 1200px;
}

.opening-book::before {
  position: absolute;
  inset: 10px 5px -12px;
  z-index: -1;
  background: #bd765e;
  border-radius: 14px 14px 24px 24px;
  content: "";
}

.book-page {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(26px, 5vw, 44px);
  background:
    linear-gradient(rgba(93, 64, 55, 0.055) 1px, transparent 1px) 0 88px / 100% 31px,
    #fff9ef;
  color: var(--plum);
}

.book-page-left {
  border-radius: 14px 2px 2px 14px;
  box-shadow: inset -18px 0 30px -28px rgba(39, 23, 26, 0.8);
  transform: rotateY(4deg);
  transform-origin: right center;
}

.book-page-right {
  border-left: 1px solid rgba(50, 23, 42, 0.14);
  border-radius: 2px 14px 14px 2px;
  box-shadow: inset 18px 0 30px -28px rgba(39, 23, 26, 0.8);
  transform: rotateY(-4deg);
  transform-origin: left center;
}

.book-running-head,
.book-page-number {
  color: var(--clay);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.book-page strong {
  margin: auto 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.book-page p {
  max-width: 220px;
  margin: auto 0 24px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  line-height: 1.13;
}

.book-writing-line {
  display: block;
  width: 78%;
  margin-top: 16px;
  border-top: 1px solid rgba(50, 23, 42, 0.28);
}

.book-writing-line.short {
  width: 48%;
  margin-top: 18px;
}

.landing-card-fan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 22px 0 0;
  padding-right: 8px;
}

.landing-card-fan i {
  display: block;
  width: clamp(22px, 4.2vw, 34px);
  height: clamp(34px, 6.3vw, 52px);
  margin-right: -7px;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 6px, rgba(242, 212, 198, 0.24) 6.5px 7.5px, transparent 8px),
    var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.54);
  border-radius: 6px;
  box-shadow: 0 5px 12px rgba(50, 23, 42, 0.18);
  transform-origin: 50% 110%;
}

.landing-card-fan i:nth-child(1) { transform: rotate(-18deg) translateY(5px); }
.landing-card-fan i:nth-child(2) { transform: rotate(-9deg) translateY(1px); }
.landing-card-fan i:nth-child(4) { transform: rotate(9deg) translateY(1px); }
.landing-card-fan i:nth-child(5) { transform: rotate(18deg) translateY(5px); }

.book-page-number {
  margin-top: auto;
  padding-top: 24px;
  color: rgba(50, 23, 42, 0.4);
}

.book-page-right .book-page-number {
  text-align: right;
}

.permission-list {
  display: grid;
  gap: 11px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.permission-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 250, 243, 0.86);
}

.permission-list li::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--peach);
  border-radius: 50%;
  content: "";
}

.arrival-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: 0 12px 28px rgba(39, 23, 26, 0.16);
  transform: translateY(-2px);
}

.button-secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--plum);
}

.arrival-view .button-secondary {
  color: var(--ivory);
}

.button-quiet {
  min-height: 44px;
  padding-inline: 16px;
  background: transparent;
  border-color: var(--stone-dark);
  color: var(--ink-soft);
}

.button-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}

.button:disabled {
  opacity: 0.55;
}

.arrival-footnote {
  margin: 34px 0 0;
  color: rgba(255, 250, 243, 0.53);
  font-size: 0.76rem;
}

.quiet-sign-in {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: rgba(255, 250, 243, 0.76);
  font-size: 0.78rem;
  text-underline-offset: 5px;
}

.arrival-map-wrap {
  padding: 54px 20px 72px;
  background: var(--cream);
  color: var(--ink);
}

.page-hero {
  padding: 62px 0 44px;
}

.page-hero.compact {
  padding-bottom: 28px;
}

.quiet-panel {
  padding: 26px;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.today-layout {
  display: grid;
  gap: 30px;
  padding-bottom: 72px;
}

.moment-progress {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 250, 243, 0.7);
  border: 1px solid var(--stone);
  border-radius: 20px;
}

.progress-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 20px;
  color: var(--clay);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.progress-copy span:last-child {
  color: var(--plum);
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: var(--stone);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--plum);
  border-radius: inherit;
  transition: width 500ms ease;
}

.moment-progress p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.session-intro {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 42px;
  filter: drop-shadow(0 22px 36px rgba(50, 23, 42, 0.08));
}

.story-page {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  padding: clamp(28px, 6vw, 52px);
  background:
    linear-gradient(90deg, rgba(185, 105, 82, 0.04), transparent 18%),
    var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 20px;
}

.story-page::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(185, 105, 82, 0.12);
  border-radius: 13px;
  content: "";
  pointer-events: none;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  color: var(--clay);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-meta span + span::before {
  margin-right: 16px;
  color: var(--stone-dark);
  content: "/";
}

.session-title {
  max-width: 620px;
  margin: 30px 0 46px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2.75rem, 11vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.story-annotation {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--stone);
}

.story-annotation:first-child {
  padding-top: 0;
  border-top: 0;
}

.story-annotation-primary {
  margin-top: auto;
}

.annotation-number {
  padding-top: 2px;
  color: rgba(185, 105, 82, 0.7);
  font-family: var(--serif);
  font-size: 0.84rem;
  font-style: italic;
}

.story-annotation p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.04rem, 3vw, 1.24rem);
  line-height: 1.72;
}

.story-page-annotations {
  justify-content: center;
}

.story-page-number {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 28px;
  color: var(--stone-dark);
  font-family: var(--serif);
  font-size: 0.72rem;
  font-style: italic;
}

.copy-label {
  margin: 0 0 7px;
  color: var(--clay);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.choice-intro {
  padding-top: 12px;
}

.choice-intro h2,
.section-title {
  margin: 0;
  color: var(--plum);
  font-size: clamp(2rem, 7vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.choice-intro p {
  max-width: 630px;
  margin: 12px 0 0;
  color: var(--ink-soft);
}

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

.symbol-card {
  position: relative;
  display: flex;
  min-height: 224px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px 17px 16px;
  background: var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.4);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  color: var(--ivory);
  text-align: left;
  transition: transform 320ms ease, opacity 420ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.symbol-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(233, 161, 132, 0.22);
  border-radius: 21px;
  content: "";
  pointer-events: none;
}

.symbol-card::after {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 22px;
  height: 1px;
  background: rgba(242, 212, 198, 0.36);
  box-shadow: 0 5px 0 rgba(242, 212, 198, 0.2);
  content: "";
  pointer-events: none;
}

.symbol-card:hover:not(:disabled),
.symbol-card:focus-visible {
  border-color: var(--peach);
  box-shadow: 0 26px 56px rgba(37, 18, 31, 0.3);
  transform: translateY(-5px);
}

.symbol-card.is-selected {
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(233, 161, 132, 0.2), var(--shadow-card);
  transform: translateY(-7px);
}

.symbol-card.is-turning {
  animation: card-turn 560ms cubic-bezier(0.45, 0, 0.25, 1) both;
  transform-style: preserve-3d;
}

@keyframes card-turn {
  0% {
    opacity: 1;
    transform: translateY(-7px) rotateY(0);
  }
  60% {
    opacity: 0.82;
    transform: translateY(-7px) rotateY(74deg) scale(0.985);
  }
  100% {
    opacity: 0.35;
    transform: translateY(-7px) rotateY(89deg) scale(0.98);
  }
}

.symbol-card.is-unchosen {
  opacity: 0.16;
  pointer-events: none;
  transform: scale(0.965);
}

.symbol-card.is-locked {
  opacity: 0.5;
}

.card-number,
.card-ip {
  position: relative;
  z-index: 1;
  color: rgba(255, 250, 243, 0.48);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.card-symbol-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 90px;
  place-items: center;
  color: var(--peach-soft);
}

.symbol-icon {
  width: 70px;
  height: 70px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.card-name {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  line-height: 1.05;
}

.card-line {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 34px;
  margin-top: 8px;
  color: rgba(255, 250, 243, 0.65);
  font-size: 0.73rem;
  line-height: 1.45;
}

.card-ip {
  display: block;
  margin-top: 16px;
  color: rgba(233, 161, 132, 0.58);
  font-size: 0.45rem;
}

.choice-confirmation {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 26px;
  background: var(--ivory);
  border: 1px solid var(--peach);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.confirmation-symbol {
  display: grid;
  width: 78px;
  height: 96px;
  place-items: center;
  background: var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.42);
  border-radius: 22px;
  color: var(--peach-soft);
}

.confirmation-symbol .symbol-icon {
  width: 48px;
  height: 48px;
}

.choice-confirmation .eyebrow {
  margin-bottom: 10px;
}

.choice-confirmation h2 {
  max-width: 780px;
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.choice-confirmation p:not(.eyebrow) {
  max-width: 700px;
  margin: 13px 0 0;
  color: var(--ink-soft);
}

.choice-confirmation .action-row {
  margin-top: 22px;
}

.card-stage {
  perspective: 1200px;
}

.truth-reveal {
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
  background: var(--chocolate);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  color: var(--ivory);
  transform-origin: 50% 25%;
  animation: reveal-in 780ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.truth-reveal.is-keeping {
  animation: page-kept 480ms cubic-bezier(0.32, 0.7, 0.24, 1) both;
}

@keyframes page-kept {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0.36;
    transform: translateY(-8px) scale(0.985);
  }
}

.truth-reveal::before {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(233, 161, 132, 0.23);
  border-radius: 50%;
  content: "";
}

@keyframes reveal-in {
  from { opacity: 0; transform: rotateY(-7deg) scale(0.96); }
  to { opacity: 1; transform: rotateY(0) scale(1); }
}

.reveal-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--peach);
}

.reveal-heading .symbol-icon {
  width: 58px;
  height: 58px;
}

.reveal-heading p {
  margin: 0 0 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.reveal-heading h2 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.truth-text {
  position: relative;
  max-width: 850px;
  margin: 34px 0 0;
  color: var(--ivory);
  font-size: clamp(2rem, 8vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.truth-context {
  position: relative;
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 250, 243, 0.72);
  font-size: 1rem;
  line-height: 1.8;
}

.truth-grounding {
  position: relative;
  max-width: 760px;
  margin: 30px 0 0;
  padding: 22px 24px;
  background: rgba(255, 250, 243, 0.07);
  border-left: 2px solid var(--peach);
  color: rgba(255, 250, 243, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2.7vw, 1.28rem);
  line-height: 1.75;
}

.reflection-question {
  position: relative;
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--peach-soft);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.2;
}

.note-field {
  position: relative;
  display: block;
  max-width: 720px;
  margin-top: 20px;
}

.note-field span {
  display: block;
  margin-bottom: 9px;
  color: var(--peach);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.note-field textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 250, 243, 0.36);
  border-radius: 0;
  color: var(--ivory);
  line-height: 1.7;
}

.note-field textarea::placeholder {
  color: rgba(255, 250, 243, 0.43);
}

.note-privacy {
  margin: 10px 0 0;
  color: rgba(255, 250, 243, 0.52);
  font-size: 0.72rem;
}

.truth-reveal .button-secondary {
  border-color: rgba(255, 250, 243, 0.46);
  color: var(--ivory);
}

.continuation-panel {
  padding: 42px 24px;
  border: 1px solid var(--stone);
  border-radius: 28px;
  text-align: center;
}

.continuation-panel.is-kept {
  animation: kept-page-in 720ms cubic-bezier(0.2, 0.74, 0.24, 1) both;
}

@keyframes kept-page-in {
  from {
    opacity: 0;
    transform: translateY(16px) rotate(-0.35deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.continuation-panel .symbol-icon {
  width: 50px;
  color: var(--clay);
}

.continuation-panel h2 {
  margin: 18px auto 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.continuation-panel p {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--ink-soft);
}

.continuation-panel .action-row {
  justify-content: center;
}

.unlock-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 18px;
  background: var(--peach-soft);
  border-radius: 18px;
  color: var(--chocolate);
  font-size: 0.9rem;
}

.unlock-note .symbol-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.chapter-ceremony {
  position: relative;
  display: grid;
  gap: 26px;
  overflow: hidden;
  margin: 34px 0 54px;
  padding: 34px 26px;
  background:
    radial-gradient(circle at 88% 20%, rgba(233, 161, 132, 0.13), transparent 27%),
    var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.34);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  color: rgba(255, 250, 243, 0.72);
  scroll-margin-top: 100px;
  animation: ceremony-arrive 900ms cubic-bezier(0.24, 0.74, 0.24, 1) both;
}

@keyframes ceremony-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ceremony-mark {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(242, 212, 198, 0.36);
  border-radius: 50%;
  color: var(--peach);
}

.ceremony-mark .symbol-icon {
  width: 42px;
  height: 42px;
}

.ceremony-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.ceremony-copy .eyebrow {
  color: var(--peach);
}

.ceremony-chapter-label {
  display: block;
  margin-top: 9px;
  color: rgba(255, 250, 243, 0.58);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ceremony-copy h2 {
  margin: 12px 0 24px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.45rem, 9vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.ceremony-copy > p {
  max-width: 660px;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.7;
}

.ceremony-copy .ceremony-reflection {
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid rgba(242, 212, 198, 0.2);
  color: var(--peach-soft);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-style: italic;
  line-height: 1.45;
}

.ceremony-continuation {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.ceremony-tomorrow {
  max-width: 650px;
  margin: 28px auto;
  padding: 18px 0 0;
  border-top: 1px solid rgba(242, 212, 198, 0.2);
}

.ceremony-tomorrow span {
  color: var(--peach);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ceremony-tomorrow p {
  margin: 7px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.6;
}

.chapter-ceremony .button {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--plum);
}

.chapter-letter {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin: 28px 0 0;
  padding: 34px clamp(24px, 5vw, 54px);
  background:
    linear-gradient(rgba(255, 250, 243, 0.94), rgba(255, 250, 243, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(128, 102, 91, 0.12) 31px 32px);
  border: 1px solid rgba(169, 155, 145, 0.7);
  box-shadow: 0 18px 44px rgba(39, 23, 26, 0.2);
  color: var(--ink);
  transform: rotate(-0.35deg);
}

.chapter-ceremony .chapter-letter {
  grid-column: 1 / -1;
  margin-inline: auto;
}

.continuation-panel + .chapter-letter {
  margin: 30px auto 0;
}

.chapter-letter-kicker {
  margin: 0;
  color: var(--clay);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-letter h3 {
  margin: 10px 0 28px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.chapter-letter-body {
  max-width: 590px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  line-height: 1.75;
}

.chapter-letter-body p {
  margin: 0 0 18px;
}

.chapter-letter-greeting {
  color: var(--plum);
  font-style: italic;
}

.chapter-letter-signature {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  color: var(--ink-soft);
  font-family: var(--serif);
}

.chapter-letter-signature strong {
  margin-top: 2px;
  color: var(--plum);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 2rem;
  font-weight: 400;
}

.chapter-letter.is-compact {
  margin-bottom: 42px;
}

.chapter-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 0 0 80px;
}

.chapter-row {
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 24px;
}

.chapter-summary {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 104px;
  padding: 20px;
  background: transparent;
  border: 0;
  color: var(--plum);
  text-align: left;
}

.chapter-index {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-style: italic;
  color: var(--clay);
}

.chapter-summary h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.15;
}

.chapter-state {
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-state.locked {
  color: var(--stone-dark);
}

.session-list {
  display: grid;
  margin: 0;
  padding: 0 20px 22px 78px;
  list-style: none;
}

.session-list li {
  border-top: 1px solid var(--stone);
}

.session-link,
.session-locked {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 11px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.session-link:hover {
  color: var(--clay);
}

.session-number {
  color: var(--clay);
  font-family: var(--serif);
  font-style: italic;
}

.session-status {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.session-locked {
  color: var(--stone-dark);
}

.future-path-note {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px;
  background: transparent;
  border: 1px dashed var(--stone-dark);
  border-radius: 22px;
}

.future-path-note .symbol-icon {
  width: 44px;
  height: 44px;
  color: var(--clay);
}

.future-path-note h2 {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.future-path-note p {
  max-width: 700px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.becoming-map {
  display: grid;
  gap: 28px;
  margin-bottom: 30px;
  padding: 28px;
  background: var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.3);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  color: var(--ivory);
}

.becoming-map.is-compact {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.map-intro .eyebrow {
  margin-bottom: 12px;
  color: var(--peach);
}

.map-intro h2 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
}

.map-intro > p:last-child {
  max-width: 630px;
  margin: 16px 0 0;
  color: rgba(255, 250, 243, 0.68);
}

.map-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(242, 212, 198, 0.2);
  border: 1px solid rgba(242, 212, 198, 0.2);
  border-radius: 18px;
}

.map-metrics > div {
  min-height: 106px;
  padding: 18px;
  background: rgba(50, 23, 42, 0.92);
}

.map-metrics strong,
.map-metrics span {
  display: block;
}

.map-metrics strong {
  color: var(--peach-soft);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 5vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.map-metrics span {
  margin-top: 8px;
  color: rgba(255, 250, 243, 0.52);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.map-metrics .metric-wide {
  grid-column: 1 / -1;
}

.archive-list {
  display: grid;
  gap: 16px;
  padding-bottom: 80px;
}

.archive-item {
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 24px;
}

.archive-item summary {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.archive-item summary::-webkit-details-marker {
  display: none;
}

.archive-icon {
  display: grid;
  width: 58px;
  height: 72px;
  place-items: center;
  background: var(--plum);
  border-radius: 16px;
  color: var(--peach);
}

.archive-icon .symbol-icon {
  width: 38px;
  height: 38px;
}

.archive-date {
  display: block;
  color: var(--clay);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-symbol {
  display: block;
  margin-top: 3px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.archive-origin {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.archive-detail {
  padding: 0 20px 24px;
}

.archive-truth {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  line-height: 1.22;
}

.archive-note {
  margin: 22px 0 0;
  padding: 18px;
  background: var(--cream);
  border-left: 2px solid var(--peach);
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.archive-note-label {
  display: block;
  margin-bottom: 7px;
  color: var(--clay);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.archive-page .page-wrap {
  width: min(100% - 28px, 1380px);
  padding: 24px 0 110px;
}

.becoming-atlas {
  display: grid;
  overflow: hidden;
  margin: 0 0 92px;
  background:
    radial-gradient(circle at 20% 20%, rgba(185, 105, 82, 0.05), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(75, 87, 75, 0.05), transparent 32%),
    var(--ivory);
  border: 1px solid rgba(169, 155, 145, 0.72);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(50, 23, 42, 0.12);
}

.atlas-sidebar {
  position: relative;
  display: flex;
  min-height: 590px;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  padding: 34px 28px;
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.04), transparent 44%),
    var(--plum);
  color: var(--ivory);
}

.atlas-botanical {
  position: absolute;
  right: -8px;
  top: 54px;
  width: 150px;
  height: 250px;
  opacity: 0.3;
}

.atlas-botanical path,
.completion-botanical path {
  fill: none;
  stroke: var(--peach);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.atlas-sidebar-copy,
.atlas-statistics-scope,
.atlas-statistics,
.atlas-reflection {
  position: relative;
  z-index: 1;
}

.atlas-sidebar .eyebrow {
  color: var(--peach);
}

.atlas-sidebar h1 {
  max-width: 290px;
  margin: 18px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2.65rem, 11vw, 4.35rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: break-word;
  word-break: normal;
}

.atlas-rule {
  display: block;
  width: 34px;
  height: 1px;
  margin: 30px 0 22px;
  background: var(--peach);
}

.atlas-sidebar-copy > p:last-child {
  max-width: 270px;
  margin: 0;
  color: rgba(255, 250, 243, 0.68);
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.7;
}

.atlas-statistics-scope {
  margin: -2px 0 -12px;
  color: rgba(255, 250, 243, 0.52);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atlas-statistics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid rgba(242, 212, 198, 0.18);
  border-left: 1px solid rgba(242, 212, 198, 0.18);
}

.atlas-statistics > div {
  display: flex;
  min-height: 90px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(242, 212, 198, 0.18);
  border-right: 1px solid rgba(242, 212, 198, 0.18);
}

.atlas-statistics dt {
  order: 2;
  margin-top: 5px;
  color: rgba(255, 250, 243, 0.46);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atlas-statistics dd {
  order: 1;
  margin: 0;
  color: var(--peach-soft);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.atlas-reflection {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(242, 212, 198, 0.18);
  border-radius: 16px;
  color: rgba(255, 250, 243, 0.78);
}

.atlas-reflection p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.45;
}

.atlas-reflection footer {
  margin-top: 12px;
  color: var(--peach);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
}

.atlas-map-panel {
  min-width: 0;
  padding: 30px 22px 24px;
}

.atlas-map-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 0 6px 24px;
  border-bottom: 1px solid rgba(169, 155, 145, 0.55);
}

.atlas-map-header > div:first-child {
  min-width: min(100%, 250px);
}

.atlas-map-header .eyebrow {
  color: var(--clay);
}

.atlas-map-header h2 {
  margin: 6px 0 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.atlas-qa-notice {
  flex-basis: 100%;
  margin: 0;
  padding: 9px 12px;
  background: rgba(185, 105, 82, 0.09);
  border: 1px solid rgba(185, 105, 82, 0.25);
  border-radius: 10px;
  color: var(--clay);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--ink-soft);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.map-legend button:hover,
.map-legend button:focus-visible,
.map-legend button[aria-pressed="true"] {
  background: rgba(185, 105, 82, 0.1);
  border-color: rgba(185, 105, 82, 0.3);
  color: var(--plum);
}

.map-filter-status {
  flex-basis: 100%;
  color: var(--stone-dark);
  font-family: var(--serif);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.legend-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(50, 23, 42, 0.24);
  border-radius: 50%;
}

.legend-marker.is-current {
  background: var(--plum);
  border-color: var(--plum);
}

.legend-marker.is-kept {
  background: var(--stone);
}

.legend-marker.is-waiting {
  background: transparent;
  border-style: dashed;
  opacity: 0.42;
}

.map-legend-static {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: var(--clay);
}

.legend-marker.is-milestone {
  position: relative;
  width: 13px;
  height: 10px;
  background: var(--ivory);
  border-color: var(--clay);
  border-radius: 2px;
}

.legend-marker.is-milestone::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--clay);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.journey-map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 16px;
  scrollbar-color: rgba(50, 23, 42, 0.28) transparent;
  scrollbar-width: thin;
}

.journey-map-scroll:focus-visible {
  outline-offset: -3px;
}

.journey-map-canvas {
  position: relative;
  width: max(780px, 100%);
  aspect-ratio: 1000 / 840;
  min-height: 640px;
}

.journey-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.journey-thread path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-thread-future {
  stroke: rgba(95, 77, 73, 0.17);
  stroke-dasharray: 3 9;
  stroke-width: 1.3;
}

.journey-thread-lived {
  stroke: rgba(185, 105, 82, 0.72);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-width: 1.8;
  animation: journey-thread-draw 1600ms cubic-bezier(0.38, 0.05, 0.2, 1) forwards;
}

@keyframes journey-thread-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.atlas-map-panel[data-active-filter]:not([data-active-filter=""]) .journey-thread {
  opacity: 0.2;
}

.journey-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  z-index: 2;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  transition: filter 220ms ease, opacity 220ms ease;
}

.journey-node.is-filter-muted {
  filter: grayscale(1);
  opacity: 0.065 !important;
}

.journey-node.is-filter-context {
  filter: none;
  opacity: 0.48 !important;
}

.atlas-map-panel[data-active-filter="kept"] .journey-node.is-filter-context .journey-node-marker {
  background: rgba(255, 250, 243, 0.88);
  border-color: rgba(50, 23, 42, 0.3);
  border-style: solid;
  box-shadow: none;
}

.journey-node:hover,
.journey-node:focus-within {
  z-index: 20;
}

.journey-node-control {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--plum);
  font: inherit;
  text-decoration: none;
}

a.journey-node-control,
button.journey-node-control {
  cursor: pointer;
}

.journey-node-marker {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #eee3d8;
  border: 1px solid rgba(50, 23, 42, 0.2);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(50, 23, 42, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.journey-node-control:hover .journey-node-marker,
a.journey-node-control:focus-visible .journey-node-marker,
button.journey-node-control:hover .journey-node-marker,
button.journey-node-control:focus-visible .journey-node-marker {
  box-shadow: 0 12px 24px rgba(50, 23, 42, 0.2);
  transform: translateY(-2px);
}

.journey-node-marker .symbol-icon {
  width: 27px;
  height: 27px;
}

.journey-node.is-current .journey-node-marker {
  width: 58px;
  height: 58px;
  background: var(--plum);
  border-color: var(--plum);
  box-shadow: 0 12px 28px rgba(50, 23, 42, 0.3);
  color: var(--peach);
}

.journey-node.is-current .journey-node-marker::before,
.journey-node.is-kept .journey-node-marker::before,
.journey-node.is-met .journey-node-marker::before {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 7px;
  height: 7px;
  background: var(--clay);
  border: 2px solid var(--ivory);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(50, 23, 42, 0.28);
  content: "";
  transform: translateX(-50%);
}

.journey-node.is-current .journey-node-marker::before {
  background: #c49b64;
}

.journey-node.is-kept .journey-node-marker {
  background: var(--stone);
}

.journey-node.is-met .journey-node-marker {
  background: #f1e8de;
  border-style: dashed;
  color: var(--ink-soft);
}

.journey-node.is-met.is-kept .journey-node-marker {
  background: var(--stone);
  border-style: solid;
  color: var(--plum);
}

.journey-node.is-past,
.journey-node.is-future {
  opacity: 0.2;
}

.journey-node.is-future {
  opacity: 0.11;
}

.journey-node.is-unwritten {
  opacity: calc(0.24 - (var(--future-order) * 0.024));
}

.journey-node.is-unwritten .journey-node-marker {
  width: 28px;
  height: 28px;
  background: rgba(246, 239, 231, 0.76);
}

.journey-node.is-unwritten .journey-node-marker .symbol-icon {
  width: 14px;
  height: 14px;
}

.journey-node.is-past .journey-node-marker,
.journey-node.is-future .journey-node-marker {
  width: 22px;
  height: 22px;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.journey-node-dot {
  width: 4px;
  height: 4px;
  background: var(--ink-soft);
  border-radius: 50%;
}

.journey-node-label {
  position: absolute;
  top: 58px;
  width: 100px;
  color: var(--ink-soft);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-align: center;
}

.journey-node.is-current .journey-node-label {
  top: 64px;
  color: var(--clay);
}

.journey-node.has-chapter-milestone .journey-node-label {
  display: none;
}

.journey-node-label strong,
.journey-node-label span {
  display: block;
}

.journey-node-label strong {
  color: var(--plum);
  font-family: var(--serif);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
}

.journey-node-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  display: block;
  width: 210px;
  padding: 14px;
  background: var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.35);
  border-radius: 14px;
  box-shadow: 0 15px 34px rgba(50, 23, 42, 0.24);
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.journey-node.tooltip-below .journey-node-tooltip {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translate(-50%, -8px);
}

.journey-node.tooltip-align-left .journey-node-tooltip {
  left: -4px;
  transform: translate(0, 8px);
}

.journey-node.tooltip-align-left.tooltip-below .journey-node-tooltip {
  transform: translate(0, -8px);
}

.journey-node.tooltip-align-right .journey-node-tooltip {
  right: -4px;
  left: auto;
  transform: translate(0, 8px);
}

.journey-node.tooltip-align-right.tooltip-below .journey-node-tooltip {
  transform: translate(0, -8px);
}

.journey-node:hover .journey-node-tooltip,
.journey-node:focus-within .journey-node-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.journey-node.tooltip-align-left:hover .journey-node-tooltip,
.journey-node.tooltip-align-left:focus-within .journey-node-tooltip,
.journey-node.tooltip-align-right:hover .journey-node-tooltip,
.journey-node.tooltip-align-right:focus-within .journey-node-tooltip {
  transform: translate(0, 0);
}

.journey-node-tooltip > * {
  display: block;
}

.journey-node-tooltip strong {
  margin: 3px 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.journey-node-tooltip em {
  margin-top: 6px;
  color: var(--peach-soft);
  font-family: var(--serif);
}

.chapter-milestone {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  z-index: 6;
  display: block;
  color: var(--plum);
  text-decoration: none;
  transform: translate(-50%, -50%);
  animation: chapter-milestone-arrive 780ms cubic-bezier(0.24, 0.74, 0.24, 1) both;
  animation-delay: calc(var(--milestone-order) * 55ms);
}

@keyframes chapter-milestone-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 9px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.chapter-milestone:hover,
.chapter-milestone:focus-visible {
  z-index: 24;
}

.chapter-milestone:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 8px;
  border-radius: 5px;
}

.chapter-milestone-marker {
  position: relative;
  display: grid;
  width: 38px;
  height: 28px;
  place-items: center;
  background:
    linear-gradient(145deg, transparent 49%, rgba(185, 105, 82, 0.11) 50%, transparent 52%),
    linear-gradient(215deg, transparent 49%, rgba(185, 105, 82, 0.11) 50%, transparent 52%),
    var(--ivory);
  border: 1px solid rgba(185, 105, 82, 0.68);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(50, 23, 42, 0.18);
  transform: rotate(-1deg);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.chapter-milestone:hover .chapter-milestone-marker,
.chapter-milestone:focus-visible .chapter-milestone-marker {
  box-shadow: 0 12px 24px rgba(50, 23, 42, 0.24);
  transform: translateY(-1px) rotate(0);
}

.chapter-milestone-marker .symbol-icon {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: var(--clay);
}

.chapter-milestone-ribbon {
  position: absolute;
  left: 50%;
  top: 21px;
  z-index: -1;
  width: 10px;
  height: 12px;
  background: rgba(50, 23, 42, 0.88);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
  transform: translateX(-50%);
}

.chapter-milestone-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  background: var(--clay);
  border: 1px solid var(--ivory);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(50, 23, 42, 0.24);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.42rem;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.chapter-milestone-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  z-index: 30;
  display: block;
  width: 220px;
  padding: 14px;
  background: var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.35);
  border-radius: 14px;
  box-shadow: 0 15px 34px rgba(50, 23, 42, 0.24);
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transition: opacity 160ms ease, transform 160ms ease;
}

.chapter-milestone.is-right .chapter-milestone-tooltip {
  right: 0;
  transform: translateY(8px);
}

.chapter-milestone.is-left .chapter-milestone-tooltip {
  left: 0;
  transform: translateY(8px);
}

.chapter-milestone.tooltip-below .chapter-milestone-tooltip {
  bottom: auto;
  top: calc(100% + 12px);
  transform: translateY(-8px);
}

.chapter-milestone:hover .chapter-milestone-tooltip,
.chapter-milestone:focus-visible .chapter-milestone-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.chapter-milestone-tooltip > * {
  display: block;
}

.chapter-milestone-tooltip strong {
  margin: 3px 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.chapter-milestone-tooltip em {
  margin-top: 6px;
  color: var(--peach-soft);
  font-family: var(--serif);
}

.atlas-map-panel[data-active-filter]:not([data-active-filter=""]) .chapter-milestone {
  opacity: 0.72;
}

.journey-tooltip-date {
  color: var(--peach);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atlas-map-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 17px 20px;
  background: rgba(246, 239, 231, 0.78);
  border: 1px solid rgba(169, 155, 145, 0.38);
  border-radius: 14px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.map-future-note {
  display: none;
  margin: 2px 0 16px;
  color: var(--clay);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

.atlas-map-panel[data-active-filter="waiting"] .map-future-note {
  display: block;
}

.atlas-map-footer a {
  color: var(--clay);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.archive-moments-section,
.chapter-journey-section {
  scroll-margin-top: 100px;
}

.archive-section-heading {
  max-width: 720px;
  margin: 0 0 34px;
}

.archive-section-heading .eyebrow {
  color: var(--clay);
}

.archive-section-heading h2 {
  margin: 9px 0 13px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.archive-section-heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.archive-search {
  display: grid;
  gap: 22px;
  margin: 0 0 28px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 58%),
    var(--cream);
  border: 1px solid var(--stone);
  border-radius: 22px;
}

.archive-search-copy .eyebrow {
  color: var(--clay);
}

.archive-search-copy h3 {
  margin: 7px 0 8px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
}

.archive-search-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
}

.archive-search-controls {
  display: grid;
  gap: 12px;
  align-items: end;
}

.archive-search-controls label {
  display: grid;
  gap: 7px;
}

.archive-search-controls label > span {
  color: var(--clay);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-search-controls input,
.archive-search-controls select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid var(--stone);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
}

.archive-search-controls input:focus,
.archive-search-controls select:focus {
  border-color: var(--clay);
  outline: 2px solid rgba(185, 105, 82, 0.18);
  outline-offset: 1px;
}

.archive-search-clear {
  min-height: 46px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--stone-dark);
  border-radius: 999px;
  color: var(--plum);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-search-count {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
}

.archive-no-results {
  display: grid;
  min-height: 290px;
  place-content: center;
  justify-items: center;
  padding: 36px 22px;
  border: 1px dashed var(--stone-dark);
  border-radius: 22px;
  color: var(--ink-soft);
  text-align: center;
}

.archive-no-results[hidden] {
  display: none;
}

.archive-no-results .symbol-icon {
  width: 52px;
  color: var(--clay);
}

.archive-no-results h3 {
  margin: 16px 0 6px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.archive-no-results p {
  max-width: 440px;
  margin: 0;
}

.archive-moments-section .archive-list {
  padding-bottom: 0;
}

.archive-card-copy {
  min-width: 0;
}

.archive-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
}

.archive-arrow {
  color: var(--clay);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.archive-item[open] {
  border-color: rgba(50, 23, 42, 0.55);
  box-shadow: 0 20px 48px rgba(50, 23, 42, 0.1);
}

.archive-item[open] .archive-arrow {
  transform: rotate(90deg);
}

.archive-item summary {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.archive-detail-label {
  display: block;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-context,
.archive-grounding {
  max-width: 790px;
  color: var(--ink-soft);
}

.archive-context {
  margin: 18px 0 0;
}

.archive-grounding {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--stone);
  font-family: var(--serif);
  font-style: italic;
}

.archive-empty {
  margin-bottom: 0;
}

.archive-empty h3 {
  margin: 18px 0 8px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.chapter-journey-section {
  margin-top: 110px;
}

.journey-chapter-grid {
  display: grid;
  gap: 12px;
}

.journey-chapter-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 24px 20px 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 54%),
    var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(50, 23, 42, 0.05);
}

.journey-chapter-card.is-future {
  opacity: 0.5;
}

.journey-chapter-card.is-complete {
  min-height: 270px;
}

.journey-chapter-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  place-items: center;
  background: var(--plum);
  border-radius: 50%;
  color: var(--peach);
}

.journey-chapter-card:nth-child(2) .journey-chapter-icon {
  background: #83583f;
}

.journey-chapter-card:nth-child(3) .journey-chapter-icon {
  background: var(--moss);
}

.journey-chapter-card:nth-child(4) .journey-chapter-icon {
  background: #9a7545;
}

.journey-chapter-card:nth-child(5) .journey-chapter-icon {
  background: #9d5f59;
}

.journey-chapter-card:nth-child(6) .journey-chapter-icon {
  background: #536171;
}

.journey-chapter-card:nth-child(7) .journey-chapter-icon {
  background: var(--stone-dark);
}

.journey-chapter-icon .symbol-icon {
  width: 27px;
  height: 27px;
}

.journey-chapter-number {
  display: block;
  color: var(--plum);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.journey-chapter-card h3 {
  margin: 8px 0 6px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.08;
}

.journey-chapter-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.78rem;
  line-height: 1.4;
}

.journey-chapter-state {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  color: var(--clay);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-chapter-card.is-complete .journey-chapter-state {
  bottom: 48px;
}

.chapter-closing-link {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  color: var(--clay);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.chapter-closing-link:hover,
.chapter-closing-link:focus-visible {
  color: var(--plum);
}

.chapter-journey-footer {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.chapter-journey-footer span {
  margin: 0 10px;
  color: var(--clay);
}

.journey-completion {
  display: grid;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto 110px;
  animation: paper-settle 900ms ease both;
}

.completion-letter,
.completion-page {
  position: relative;
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--stone);
  box-shadow: 0 22px 58px rgba(50, 23, 42, 0.08);
}

.final-invitation {
  display: grid;
  justify-items: center;
  max-width: 880px;
  margin: 96px auto 40px;
  padding: clamp(48px, 8vw, 82px) clamp(24px, 7vw, 70px);
  background:
    radial-gradient(circle at 50% 0%, rgba(233, 161, 132, 0.16), transparent 34%),
    var(--plum);
  border: 1px solid rgba(242, 212, 198, 0.3);
  border-radius: 28px;
  color: var(--ivory);
  text-align: center;
}

.final-invitation .eyebrow {
  color: var(--peach);
}

.final-invitation h2 {
  max-width: 650px;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.final-invitation > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 30px;
  color: rgba(255, 250, 243, 0.75);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  line-height: 1.7;
}

.final-invitation .button {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--plum);
}

.invitation-caption {
  margin-top: 14px;
  color: rgba(255, 250, 243, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.completion-letter {
  min-height: 610px;
  padding: 68px 32px;
}

.completion-letter .eyebrow,
.completion-page .eyebrow {
  color: var(--clay);
}

.completion-letter h2 {
  max-width: 710px;
  margin: 18px 0 44px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.completion-letter-body {
  position: relative;
  z-index: 1;
  max-width: 660px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.65;
}

.completion-letter-body p {
  margin: 0 0 22px;
}

.completion-greeting {
  color: var(--plum);
  font-size: 1.12em;
  font-style: italic;
}

.keepsake-note {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 34px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--stone);
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.65;
}

.completion-signature {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 340px;
  flex-direction: column;
  margin-top: 48px;
  color: var(--ink-soft);
}

.completion-signature strong {
  margin: 4px 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 2rem;
}

.completion-signature span:last-child {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-botanical {
  position: absolute;
  right: 2%;
  bottom: -12px;
  width: 210px;
  height: 350px;
  opacity: 0.45;
}

.completion-page {
  display: grid;
  min-height: 430px;
  place-content: center;
  padding: 70px 28px;
  text-align: center;
}

.completion-page h2 {
  margin: 14px 0 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.completion-statements {
  display: grid;
  gap: 14px;
  margin: 34px 0 54px;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
}

.completion-statements span {
  display: block;
}

.completion-statements strong {
  font-size: 1.35em;
  font-weight: 400;
}

.completion-closing {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

@keyframes paper-settle {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-content: center;
  justify-items: center;
  padding: 42px 24px;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 28px;
  text-align: center;
}

.empty-state .symbol-icon {
  width: 64px;
  height: 64px;
  color: var(--clay);
}

.empty-state h2 {
  margin: 20px 0 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}

.empty-state p {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.empty-state .button {
  margin-top: 24px;
}

.auth-layout {
  display: grid;
  min-height: calc(100svh - 78px);
}

.auth-aside {
  display: none;
  background: var(--plum);
  color: var(--ivory);
}

.auth-panel {
  display: grid;
  align-content: center;
  padding: 52px 20px 72px;
}

.auth-inner {
  width: min(100%, 510px);
  margin: 0 auto;
}

.auth-inner h1 {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 11vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.auth-intro {
  margin: 20px 0 30px;
  color: var(--ink-soft);
}

.auth-name-fields {
  display: grid;
  gap: 18px;
}

.field > span small {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.verification-code-field input {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1.3rem;
  letter-spacing: 0.32em;
  text-align: center;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  background: var(--ivory);
  border: 1px solid var(--stone-dark);
  border-radius: 13px;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--clay);
  outline: 2px solid rgba(185, 105, 82, 0.18);
  outline-offset: 0;
}

.field-help {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  background: var(--peach-soft);
  border-radius: 12px;
  color: var(--chocolate);
  font-size: 0.86rem;
}

.form-message.error {
  background: #f3dddd;
  color: #6b2828;
}

.form-message.success {
  background: #dde8df;
  color: #2e4a36;
}

.form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.form-links a {
  text-underline-offset: 4px;
}

.form-link-button {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--clay);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.account-grid {
  display: grid;
  gap: 18px;
  padding-bottom: 80px;
}

.account-card {
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 24px;
}

.account-card h2 {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.account-card p {
  color: var(--ink-soft);
}

.account-value {
  margin: 12px 0 0;
  color: var(--ink) !important;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.privacy-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--ink-soft);
}

.privacy-points li::before {
  color: var(--moss);
  content: "✓";
  font-weight: 800;
}

.request-card {
  background: linear-gradient(135deg, var(--ivory), #fbf2e9);
}

.request-card .action-row {
  margin-top: 22px;
}

.request-note {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.qa-panel {
  margin: 0 auto 32px;
  padding: 20px;
  width: min(100% - 40px, var(--max));
  background: #18201b;
  border: 2px solid #88b795;
  border-radius: 16px;
  color: #eef8f0;
  overflow: hidden;
}

.qa-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 24px;
}

.qa-panel h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qa-panel-heading p {
  margin: 5px 0 13px;
  color: #b8c9bd;
  font-size: 0.76rem;
}

.qa-panel-heading > span {
  padding: 5px 8px;
  background: rgba(136, 183, 149, 0.12);
  border: 1px solid #718f79;
  border-radius: 999px;
  color: #b8d9c1;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qa-groups {
  display: grid;
  gap: 10px;
}

.qa-group {
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(136, 183, 149, 0.22);
  border-radius: 10px;
}

.qa-group h3 {
  margin: 0 0 9px;
  color: #b8d9c1;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qa-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
}

.qa-controls label {
  display: grid;
  flex: 1 1 190px;
  gap: 5px;
}

.qa-controls label > span {
  color: #9ab2a0;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qa-controls .qa-checkbox {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.qa-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #88b795;
}

.qa-controls .qa-checkbox > span {
  color: #d9e8dd;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.qa-controls select,
.qa-controls button {
  min-height: 40px;
  padding: 8px 11px;
  background: #25332a;
  border: 1px solid #718f79;
  border-radius: 8px;
  color: #eef8f0;
  font-size: 0.75rem;
}

.qa-controls button {
  flex: 0 1 auto;
}

.qa-controls button:hover:not(:disabled) {
  background: #31473a;
}

.qa-controls select {
  width: 100%;
  max-width: 100%;
}

.qa-card-preview-intro {
  padding: 24px;
  background: #edf5ef;
  border: 1px solid #9abda3;
  border-radius: 20px;
}

.qa-card-preview .symbol-card {
  opacity: 1;
}

.qa-preview-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.qa-preview-card .symbol-card {
  width: 100%;
}

.qa-preview-card-back {
  height: 100%;
  padding: 22px;
  background: #f8f2e8;
  border: 1px solid #c9bda9;
  border-radius: 18px;
  color: var(--plum);
}

.qa-preview-card-back h3 {
  margin: 4px 0 14px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.qa-preview-card-back p {
  font-size: 0.82rem;
  line-height: 1.6;
}

.qa-preview-card-back .qa-preview-truth {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.45;
}

.qa-preview-card-back .qa-preview-grounding {
  padding-top: 12px;
  border-top: 1px solid #d9cebd;
  color: var(--ink-muted);
}

.locked-view {
  display: grid;
  min-height: 55vh;
  place-content: center;
  justify-items: center;
  padding: 48px 20px;
  text-align: center;
}

.locked-view .symbol-icon {
  width: 60px;
  height: 60px;
  color: var(--stone-dark);
}

.locked-view h1 {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
}

.locked-view p {
  max-width: 560px;
  margin: 17px 0 0;
  color: var(--ink-soft);
}

.error-view {
  display: grid;
  min-height: 62vh;
  place-content: center;
  padding: 48px 20px;
  text-align: center;
}

.error-view h1 {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 10vw, 5rem);
  font-weight: 400;
}

.error-view p {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--ink-soft);
}

.error-view .button {
  margin-top: 26px;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 220;
  display: grid;
  gap: 8px;
  width: min(calc(100% - 32px), 400px);
}

.toast {
  padding: 14px 16px;
  background: var(--plum);
  border: 1px solid rgba(255, 250, 243, 0.24);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  color: var(--ivory);
  font-size: 0.86rem;
  animation: toast-in 240ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-footer {
  padding: 76px 56px 64px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(233, 144, 112, 0.08), transparent 38%),
    linear-gradient(180deg, #fff8f0 0%, #f6efe7 100%);
  border-top: 1px solid rgba(231, 214, 204, 0.72);
  color: var(--plum);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--plum);
}

.footer-logo-mark {
  position: relative;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.footer-logo-mark::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  width: 1px;
  height: 28px;
  background: rgba(50, 23, 42, 0.26);
  content: "";
  transform: translateY(-50%);
}

.footer-logo-wordmark {
  color: var(--plum);
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
}

.footer-signature {
  margin: 18px 0 14px;
  color: rgba(50, 23, 42, 0.36);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  transform: rotate(-1deg);
}

.footer-copy {
  max-width: 420px;
  margin: 18px 0 0;
  color: rgba(50, 23, 42, 0.46);
  font-size: 12px;
  line-height: 1.8;
}

.footer-build {
  margin: 8px 0 0;
  color: rgba(50, 23, 42, 0.42);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-build code {
  color: rgba(50, 23, 42, 0.58);
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.legal-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(50, 23, 42, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.footer-legal {
  max-width: 560px;
  justify-self: start;
  padding-top: 2px;
}

.footer-legal p {
  max-width: 560px;
  margin: 0;
  color: rgba(50, 23, 42, 0.58);
  font-size: 13px;
  line-height: 1.9;
}

.footer-legal em {
  display: block;
  margin-bottom: 10px;
  color: rgba(50, 23, 42, 0.72);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.footer-legal .crisis-note {
  margin-top: 14px;
  opacity: 0.72;
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 300;
  padding: 16px;
  background: var(--ivory);
  border: 1px solid var(--danger);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

@media (min-width: 700px) {
  .app-header {
    min-height: 88px;
    padding: 16px 32px;
  }

  .app-navigation {
    inset-block-start: 88px;
  }

  .page-wrap {
    width: min(100% - 64px, var(--max));
  }

  .arrival-hero {
    min-height: calc(100svh - 88px);
    padding-inline: 40px;
  }

  .display-title {
    font-size: clamp(4.8rem, 11vw, 7.2rem);
  }

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

  .opening-book {
    min-height: 370px;
  }

  .page-hero {
    padding-top: 82px;
  }

  .card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .symbol-card {
    min-height: 306px;
    padding: 24px 18px 18px;
  }

  .symbol-card::before {
    inset: 10px;
    border-radius: 18px;
  }

  .card-symbol-wrap {
    min-height: 126px;
  }

  .truth-reveal {
    padding: 48px;
  }

  .choice-confirmation {
    grid-template-columns: 100px 1fr;
    padding: 32px;
  }

  .confirmation-symbol {
    width: 92px;
    height: 118px;
  }

  .becoming-map {
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    padding: 38px;
  }

  .map-metrics .metric-wide {
    grid-column: auto;
  }

  .continuation-panel {
    padding: 68px 44px;
  }

  .chapter-summary {
    grid-template-columns: 58px 1fr auto;
    min-height: 120px;
    padding-inline: 28px;
  }

  .chapter-summary h2 {
    font-size: 1.8rem;
  }

  .session-list {
    padding-inline: 105px 28px;
  }

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

  .archive-detail {
    padding-left: 92px;
  }

  .archive-item[open] {
    grid-column: 1 / -1;
  }

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

  .account-card.wide {
    grid-column: 1 / -1;
  }

}

@media (min-width: 960px) {
  .app-header {
    position: relative;
    padding-inline: max(36px, calc((100vw - var(--max)) / 2));
  }

  .menu-button {
    display: none;
  }

  .app-navigation {
    position: static;
    display: flex;
    gap: 28px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .app-navigation a {
    min-height: 44px;
    padding: 12px 0 8px;
    border: 0;
    border-bottom: 1px solid transparent;
    font-family: var(--sans);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .app-navigation a[aria-current="page"] {
    border-bottom-color: var(--clay);
    font-style: normal;
  }

  .arrival-hero {
    min-height: calc(100vh - 88px);
  }

  .arrival-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
    gap: clamp(48px, 6vw, 92px);
    align-items: center;
    margin-inline: auto;
  }

  .opening-book {
    min-height: 430px;
  }

  .qa-groups {
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.8fr) minmax(230px, 0.8fr);
  }

  .today-layout {
    gap: 42px;
  }

  .session-intro {
    grid-template-columns: minmax(0, 0.96fr) minmax(430px, 1.04fr);
    gap: 0;
    align-items: stretch;
  }

  .story-page {
    min-height: 570px;
    border-radius: 0;
  }

  .story-page-opening {
    border-right: 0;
    border-radius: 24px 0 0 24px;
    box-shadow: inset -24px 0 34px -36px rgba(39, 23, 26, 0.8);
  }

  .story-page-annotations {
    border-radius: 0 24px 24px 0;
    box-shadow: inset 24px 0 34px -36px rgba(39, 23, 26, 0.8);
  }

  .session-copy-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    grid-template-columns: minmax(320px, 0.85fr) minmax(520px, 1.15fr);
  }

  .auth-aside {
    position: relative;
    display: flex;
    min-height: calc(100vh - 88px);
    align-items: flex-end;
    overflow: hidden;
    padding: 64px;
  }

  .auth-aside::before,
  .auth-aside::after {
    position: absolute;
    border: 1px solid rgba(233, 161, 132, 0.25);
    border-radius: 50%;
    content: "";
  }

  .auth-aside::before {
    width: 420px;
    height: 420px;
    top: -150px;
    right: -190px;
  }

  .auth-aside::after {
    width: 300px;
    height: 300px;
    bottom: -160px;
    left: -120px;
  }

  .auth-quote {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
  }

  .auth-quote em {
    color: var(--peach);
  }

  .auth-panel {
    padding-inline: 72px;
  }

  .footer-inner {
    grid-template-columns: minmax(300px, 0.76fr) minmax(360px, 0.84fr);
    gap: clamp(64px, 10vw, 150px);
  }

  .footer-legal {
    justify-self: end;
  }
}

@media (min-width: 700px) {
  .archive-page .page-wrap {
    width: min(100% - 48px, 1380px);
    padding-top: 42px;
  }

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

  .chapter-ceremony {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 38px;
    padding: 48px;
  }

  .chapter-ceremony .ceremony-continuation {
    grid-column: 1 / -1;
  }

  .archive-search-controls {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.52fr) auto;
  }

  .completion-letter {
    padding: 82px 70px;
  }

  .completion-page {
    padding-inline: 54px;
  }

  .auth-name-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .becoming-atlas {
    grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
  }

  .atlas-sidebar {
    min-height: 720px;
    padding: 40px 34px 34px;
  }

  .atlas-sidebar h1 {
    font-size: clamp(2.9rem, 3.6vw, 4.1rem);
  }

  .atlas-map-panel {
    padding: 34px 30px 28px;
  }

  .journey-map-canvas {
    width: max(820px, 100%);
  }

  .journey-chapter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .archive-search {
    grid-template-columns: minmax(280px, 0.72fr) minmax(470px, 1.28fr);
    align-items: end;
    padding: 30px;
  }

  .archive-search-count {
    grid-column: 1 / -1;
  }

  .completion-letter,
  .completion-page {
    min-height: 560px;
  }
}

@media (min-width: 1260px) {
  .journey-map-scroll {
    overflow: visible;
  }

  .journey-map-canvas {
    width: 100%;
    min-height: 620px;
  }

  .journey-chapter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-footer {
    padding: 58px 24px 52px;
  }

  .atlas-map-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 699px) {
  .arrival-hero {
    padding-top: 48px;
  }

  .opening-book {
    min-height: 275px;
  }

  .book-page {
    padding: 24px 18px;
  }

  .book-page strong {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .book-page p {
    font-size: clamp(1.08rem, 5.5vw, 1.55rem);
  }

  .choice-confirmation {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 120;
    max-height: calc(100svh - 24px);
    overflow: auto;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(39, 23, 26, 0.34);
  }

  .confirmation-symbol {
    display: none;
  }

  .atlas-sidebar {
    min-height: 640px;
  }

  .atlas-map-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .journey-node-tooltip {
    display: none;
  }

  .chapter-milestone-tooltip {
    display: none;
  }

  .journey-node-label > span {
    display: none;
  }

  .archive-item summary {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding-inline: 14px;
  }

  .archive-icon {
    width: 52px;
    height: 66px;
  }

  .chapter-journey-section {
    margin-top: 82px;
  }

  .completion-botanical {
    right: -50px;
    opacity: 0.25;
  }
}

@media (max-width: 420px) {
  .app-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .app-brand {
    gap: 8px;
  }

  .brand-words {
    font-size: 0.92rem;
  }

  .menu-button span {
    display: none;
  }

  .opening-book {
    min-height: 242px;
  }

  .book-page {
    padding-inline: 15px;
  }

  .book-running-head,
  .book-page-number {
    font-size: 0.47rem;
  }
}

@media (max-width: 369px) {
  .brand-words {
    font-size: 0.84rem;
  }

  .brand-words small {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .symbol-card {
    min-height: 250px;
  }

  .archive-detail {
    padding-left: 20px;
  }
}

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

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