:root {
  color-scheme: light;
  --cream: #fff8f0;
  --paper: #fffdf9;
  --blush: #f6c9d2;
  --rose: #e8a1b1;
  --deep-rose: #c96f89;
  --lavender: #e8dff5;
  --ink: #5b3a42;
  --night: var(--ink);
  --night-soft: var(--cream);
  --night-card: var(--paper);
  --ivory: var(--ink);
  --muted: #876e77;
  --gold: var(--deep-rose);
  --gold-bright: var(--deep-rose);
  --line: rgba(201, 111, 137, .22);
  --green: #5d8a64;
  --blue: #9276aa;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(145deg, var(--cream), var(--paper) 45%, #f7eef8);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(201, 111, 137, .18) .55px, transparent .8px);
  background-size: 23px 23px;
  content: "";
  opacity: .13;
  pointer-events: none;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: var(--night); background: var(--gold-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.identity-locked { overflow: hidden; }
body.identity-locked .skip-link { display: none; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  transform: translateY(-160%);
  color: var(--night);
  background: var(--gold-bright);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 1.5;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 21px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}
.button-primary { color: var(--night); background: var(--gold); }
.button-secondary { color: var(--gold-bright); background: transparent; }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover { transform: translateY(-2px); background: var(--gold-bright); }
  .button-secondary:hover { color: var(--night); background: var(--gold); }
}

/* Identity verification */
.verification-gate {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 20%, rgba(232, 161, 177, .3), transparent 42%),
    linear-gradient(145deg, var(--cream), var(--paper) 52%, #f7eef8);
}
.verification-gate::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(201, 111, 137, .16);
  content: "";
  pointer-events: none;
}
.verification-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: clamp(26px, 7vw, 46px);
  border: 1px solid rgba(201, 111, 137, .3);
  border-radius: 22px;
  background: rgba(255, 253, 249, .91);
  box-shadow: 0 24px 70px rgba(91, 58, 66, .12);
  text-align: center;
}
.verification-card h1 { margin: 0; color: var(--ink); font: 500 clamp(32px, 7vw, 46px)/1.12 var(--font-display); }
.verification-card h1 em { color: var(--deep-rose); font-weight: 400; }
.verification-question { margin: 17px 0; color: #684e56; font-size: 13px; line-height: 1.7; }
.verification-input {
  width: min(100%, 290px);
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(201, 111, 137, .42);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-size: 20px;
  letter-spacing: .34em;
  text-align: center;
}
.verification-input[type="date"] { color-scheme: light; cursor: pointer; font-size: 16px; letter-spacing: normal; text-align: left; }
.verification-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.verification-submit { width: min(100%, 290px); margin-top: 16px; }
.verification-feedback { min-height: 22px; margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.verification-feedback[data-state="error"] { color: #a84f69; }

@media (max-height: 720px) {
  .verification-gate { place-items: start center; }
  .verification-card { margin-block: auto; }
}

/* Opening */
.opening {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 72px 24px 66px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 49% 43%, rgba(232, 161, 177, .42), transparent 39%),
    linear-gradient(155deg, var(--paper), var(--cream) 60%, #f7eef8);
  text-align: center;
}
.opening::before, .opening::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}
.opening::before {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(201, 111, 137, .14), transparent 40%),
    linear-gradient(90deg, transparent, rgba(232, 161, 177, .08), transparent);
  animation: opening-light 12s ease-in-out infinite alternate;
}
.opening::after {
  inset: 8% 7%;
  border: 1px solid rgba(201, 111, 137, .14);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 83%, transparent);
}
.opening-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(201, 111, 137, .35) .6px, transparent .9px);
  background-size: 117px 109px;
  opacity: .1;
  animation: dust-drift 32s linear infinite;
}
.opening-orbit {
  position: absolute;
  width: min(74vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 111, 137, .14);
  border-radius: 50%;
  pointer-events: none;
}
.opening-orbit-one { transform: scaleY(.35) rotate(-17deg); }
.opening-orbit-two { width: min(94vw, 900px); transform: scaleY(.24) rotate(13deg); opacity: .5; }
.opening-memories { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.opening-memories img {
  position: absolute;
  width: clamp(100px, 13vw, 165px);
  aspect-ratio: .74;
  padding: 5px 5px 18px;
  border: 1px solid rgba(255, 253, 249, .88);
  border-bottom-width: 18px;
  border-radius: 3px;
  background: rgba(255, 253, 249, .78);
  box-shadow: 0 12px 32px rgba(91, 58, 66, .12);
  object-fit: cover;
  opacity: .2;
  filter: saturate(.72);
}
.opening-memories img:nth-child(1) { top: 16%; left: 4%; transform: rotate(-8deg); }
.opening-memories img:nth-child(2) { top: 13%; right: 4%; transform: rotate(7deg); }
.opening-memories img:nth-child(3) { bottom: 12%; left: 10%; transform: rotate(6deg); }
.opening-memories img:nth-child(4) { right: 9%; bottom: 11%; transform: rotate(-7deg); }
.opening-content { position: relative; z-index: 1; width: min(100%, 850px); animation: opening-rise 1.2s both; }
.opening-eyebrow { margin-bottom: 26px; }
.opening h1 {
  margin: 0;
  color: var(--ivory);
  font: 500 clamp(43px, 8.8vw, 108px)/.95 var(--font-display);
  letter-spacing: .16em;
}
.opening h1 span { color: var(--gold-bright); font-style: italic; letter-spacing: .1em; }
.opening-tagline { margin: 27px 0 0; color: var(--ivory); font: 22px/1.5 var(--font-display); }
.opening-tagline em, h2 em, .closing-tagline em { color: var(--gold-bright); font-weight: 400; }
.opening-copy { max-width: 480px; margin: 12px auto 28px; color: var(--muted); font-size: 14px; }
.enter-button { min-width: 218px; }
.opening-foot {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: rgba(91, 58, 66, .52);
  font-size: 8px;
  letter-spacing: .16em;
}

/* Journey progress */
.journey-progress { width: min(100% - 48px, 850px); margin: 0 auto; padding: 16px 0 0; }
.journey-progress-copy { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.journey-progress-copy span:last-child { color: var(--deep-rose); font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.journey-progress-track { height: 4px; overflow: hidden; border-radius: 9px; background: rgba(232, 161, 177, .24); }
.journey-progress-fill { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--deep-rose), var(--lavender)); transition: width .5s ease; }

/* Sections and story */
.section-wrap { width: min(100% - 48px, 1120px); margin: 0 auto; padding: clamp(82px, 11vw, 145px) 0; }
.journey-page { min-height: calc(100dvh - 190px); }
.section-index { display: flex; align-items: center; gap: 13px; margin-bottom: 43px; color: var(--gold-bright); font: 19px var(--font-display); }
.section-index span { color: var(--muted); font: 8px var(--font-body); letter-spacing: .22em; }
.story-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(40px, 9vw, 125px); }
.section-heading h2, .story-heading h2, .letter-paper h2 {
  margin: 0;
  color: var(--ivory);
  font: 500 clamp(39px, 6vw, 68px)/1.08 var(--font-display);
  letter-spacing: -.035em;
}
.story-heading h2 em, .section-heading h2 em, .letter-paper h2 em { color: var(--gold-bright); font-weight: 400; }
.story-copy { max-width: 560px; padding-top: 17px; color: #684e56; font-size: 15px; line-height: 1.9; }
.story-copy p { margin: 0 0 20px; }
.story-copy .story-standfirst { color: var(--gold-bright); font: italic 20px/1.6 var(--font-display); }
.story-copy blockquote { margin: 34px 0 0; padding: 20px 0 0 22px; border-top: 1px solid var(--line); border-left: 1px solid var(--gold); color: var(--gold-bright); font: italic 21px/1.55 var(--font-display); }
.milestones-section { padding-top: 38px; }
.section-heading { max-width: 620px; margin: 0 auto 55px; text-align: center; }
.section-intro { max-width: 520px; margin: 19px auto 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.milestones-section > .section-index { margin-bottom: 45px; }
.milestone-stepper {
  display: grid;
  width: min(100%, 850px);
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto 22px;
  padding: 17px 19px;
  border: 1px solid rgba(201, 111, 137, .22);
  border-radius: 18px;
  background: rgba(255, 253, 249, .78);
}
.milestone-step-copy { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.milestone-step-kicker, .milestone-step-count { font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.milestone-step-kicker { color: var(--muted); }
.milestone-step-count { color: var(--gold-bright); }
.step-progress-track { height: 2px; margin-top: 12px; overflow: hidden; background: rgba(232, 161, 177, .3); }
.step-progress-fill { display: block; width: 12.5%; height: 100%; background: var(--gold-bright); transition: width .45s ease; }
.step-navigation { display: flex; width: min(100%, 850px); justify-content: space-between; gap: 9px; margin: 18px auto 0; }
.step-nav-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(201, 111, 137, .56);
  border-radius: 13px;
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.step-nav-primary { color: var(--night); background: var(--gold); }
.step-nav-button:disabled { opacity: .42; cursor: not-allowed; }
.step-nav-button:not(:disabled):hover { color: var(--night); background: var(--gold-bright); }
.timeline { position: relative; display: grid; gap: 26px; width: min(100%, 850px); margin: 0 auto; padding: 8px 0; list-style: none; }
.timeline::before { display: none; }
.timeline-item { position: relative; display: grid; max-width: 820px; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 18px; margin: 0 auto; }
.timeline-item[hidden] { display: none !important; }
.timeline-item.is-current .milestone-card { animation: milestone-arrive .42s ease; }
@keyframes milestone-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.timeline-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(201, 111, 137, .7);
  border-radius: 50%;
  color: var(--deep-rose);
  background: var(--paper);
  box-shadow: 0 0 0 7px rgba(255, 253, 249, .9), 0 0 25px rgba(201, 111, 137, .11);
  font: 17px var(--font-display);
}
.timeline-item:nth-child(even) .timeline-node { border-style: dashed; }
.milestone-card {
  --chapter-accent: var(--gold);
  position: relative;
  grid-row: 1;
  padding: 24px 25px 22px;
  border: 1px solid rgba(201, 111, 137, .2);
  border-top: 2px solid var(--chapter-accent);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 253, 249, .98), rgba(255, 248, 240, .94));
  box-shadow: 0 14px 40px rgba(91, 58, 66, .09);
  transition: border-color .25s, transform .25s, background .25s;
}
.timeline-item .milestone-card { grid-column: 2; }
.timeline-item:nth-child(1) .milestone-card { --chapter-accent: #c96f89; }
.timeline-item:nth-child(2) .milestone-card { --chapter-accent: #9276aa; }
.timeline-item:nth-child(3) .milestone-card { --chapter-accent: #d9869a; }
.timeline-item:nth-child(4) .milestone-card { --chapter-accent: #9276aa; }
.timeline-item:nth-child(5) .milestone-card { --chapter-accent: #c96f89; }
.timeline-item:nth-child(6) .milestone-card { --chapter-accent: #9276aa; }
.timeline-item:nth-child(7) .milestone-card { --chapter-accent: #876e77; }
.timeline-item:nth-child(8) .milestone-card { --chapter-accent: #d9869a; }
@media (hover: hover) and (pointer: fine) {
  .milestone-card:hover { transform: translateY(-3px); border-color: rgba(201, 111, 137, .42); }
}
.chapter-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chapter-label { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid transparent; border-radius: 999px; color: var(--chapter-accent); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-pill::before { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.status-completed .status-pill { border-color: rgba(52, 123, 69, .3); color: #347b45; background: rgba(76, 158, 94, .12); }
.status-completed .status-pill::before { background: currentColor; box-shadow: 0 0 8px rgba(52, 123, 69, .45); }
.status-ongoing .status-pill, .status-yet-to-come .status-pill, .status-lifetime .status-pill {
  border-color: rgba(196, 148, 18, .42);
  color: #896300;
  background: rgba(255, 215, 83, .16);
  animation: status-gold-glow 2.4s ease-in-out infinite;
}
.status-ongoing .status-pill::before, .status-yet-to-come .status-pill::before, .status-lifetime .status-pill::before {
  border-color: #c99a1c;
  background: #e2b52e;
  animation: status-gold-pulse 2s ease-in-out infinite;
}
.status-lifetime .status-pill::before { width: 8px; height: 8px; border-radius: 1px; transform: rotate(45deg); }
.milestone-card h3 { margin: 0; color: var(--ivory); font: 500 clamp(22px, 2.8vw, 30px)/1.18 var(--font-display); }
.completion-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin: 10px 0 0; }
.completion-date span { color: var(--deep-rose); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.completion-date time { color: var(--ink); font-size: 11px; font-weight: 600; }
.chapter-description { margin: 9px 0 17px; color: #684e56; font-size: 13px; line-height: 1.8; }
.chapter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.show-proof, .gallery-nav button, .back-to-top {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(201, 111, 137, .5);
  border-radius: 13px;
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s, background .2s, border-color .2s;
}
.show-proof { color: var(--night); background: var(--gold); }
.show-proof:hover, .gallery-nav button:hover { color: var(--night); background: var(--gold-bright); }
.gallery-nav button:disabled { opacity: .4; cursor: not-allowed; }
.chapter-details { margin-top: 17px; border-top: 1px solid rgba(201, 111, 137, .16); }
.chapter-details summary { padding-top: 13px; color: var(--muted); cursor: pointer; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.chapter-details p { margin: 10px 0 0; color: #876e77; font-size: 11px; line-height: 1.7; }
.photo-count { color: var(--gold-bright); }
/* Progress */
.progress-section { padding-top: 68px; border-top: 1px solid var(--line); }
.progress-layout { display: grid; grid-template-columns: 1fr minmax(300px, .8fr); align-items: center; gap: clamp(38px, 8vw, 100px); }
.progress-heading { margin: 0; text-align: left; }
.progress-heading .section-intro { margin-left: 0; }
.progress-card { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; padding: 26px; border: 1px solid rgba(201, 111, 137, .22); border-radius: 22px; background: linear-gradient(145deg, rgba(255, 253, 249, .96), rgba(255, 248, 240, .92)); box-shadow: 0 14px 40px rgba(91, 58, 66, .07); }
.progress-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.progress-ring circle { fill: none; stroke-width: 5; }
.progress-track { stroke: rgba(232, 161, 177, .25); }
.progress-value { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.progress-ring-label { fill: var(--ivory); font: 24px var(--font-display); text-anchor: middle; transform: rotate(90deg); transform-origin: center; }
.progress-ring-sub { fill: var(--muted); font: 7px var(--font-body); letter-spacing: 1.5px; text-anchor: middle; transform: rotate(90deg); transform-origin: center; }
.progress-legend { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.progress-legend li { display: flex; justify-content: space-between; gap: 15px; color: #684e56; font-size: 11px; }
.progress-legend strong { color: var(--gold-bright); font-weight: 600; }
.progress-total { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }

/* Letter and closing */
.letter-section { padding-top: 68px; }
.letter-paper { position: relative; max-width: 820px; margin: 0 auto; padding: clamp(30px, 7vw, 72px); border: 1px solid rgba(201, 111, 137, .38); border-radius: 20px 5px 20px 5px; color: var(--ink); background: linear-gradient(145deg, #fffdf9, #fff8f0); box-shadow: 0 28px 80px rgba(91, 58, 66, .12); }
.letter-paper::before { position: absolute; inset: 11px; border: 1px solid rgba(201, 111, 137, .18); content: ""; pointer-events: none; }
.letter-paper .eyebrow { color: var(--deep-rose); }
.letter-paper h2 { color: var(--ink); font-size: clamp(34px, 5vw, 54px); }
.letter-paper h2 em { color: var(--deep-rose); }
.letter-body { max-width: 620px; margin: 28px auto 0; color: #684e56; font: 15px/1.95 var(--font-body); }
.letter-body p { margin: 0 0 16px; }
.letter-signoff { margin: 27px 0 0; color: var(--deep-rose); font: 21px "Caveat", cursive; text-align: right; }
.closing-section {
  position: relative;
  display: grid;
  min-height: 720px;
  place-items: center;
  overflow: hidden;
  padding: 110px 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 90%, rgba(232, 161, 177, .28), transparent 49%),
    linear-gradient(145deg, transparent, rgba(232, 223, 245, .28));
  text-align: center;
}
.closing-line { position: absolute; top: 0; left: 50%; width: 1px; height: 110px; transform-origin: top; background: linear-gradient(var(--gold), transparent); animation: line-draw 1.6s both; }
.closing-section h2 { margin: 0; color: var(--ivory); font: 500 clamp(37px, 7vw, 76px)/1.12 var(--font-display); letter-spacing: -.025em; }
.closing-section h2 em { color: var(--gold-bright); }
.closing-copy { margin: 21px 0 0; color: #684e56; font: 18px/1.7 var(--font-display); }
.closing-tagline { margin: 32px 0 0; color: var(--ivory); font: 22px var(--font-display); }
.closing-last { max-width: 560px; margin: 25px auto 0; color: var(--muted); font: 19px/1.7 "Caveat", cursive; }
.back-to-top { margin-top: 30px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px max(24px, calc((100vw - 1120px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.page-navigation {
  display: grid;
  width: min(100% - 48px, 1120px);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: 18px 0 42px;
  border-top: 1px solid var(--line);
}
.page-navigation-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.page-nav-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(201, 111, 137, .5);
  border-radius: 13px;
  color: var(--deep-rose);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-nav-button:last-child { justify-self: end; }
.page-nav-primary { color: #fffdf9; background: var(--deep-rose); }
.page-nav-button:hover { color: var(--ink); background: var(--rose); }
.page-nav-primary:hover { color: var(--ink); background: var(--blush); }

/* Gallery */
.gallery-dialog {
  width: min(900px, calc(100% - 28px));
  max-width: none;
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(201, 111, 137, .45);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(91, 58, 66, .24);
}
.gallery-dialog::backdrop { background: rgba(91, 58, 66, .3); backdrop-filter: blur(9px); }
.gallery-shell { padding: clamp(20px, 4vw, 36px); }
.gallery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.gallery-header .eyebrow { margin-bottom: 5px; }
.gallery-header h2 { margin: 0; color: var(--ivory); font: 32px/1.2 var(--font-display); }
.icon-button { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); color: var(--gold-bright); background: transparent; cursor: pointer; font-size: 25px; line-height: 1; }
.gallery-content { min-height: 240px; padding-top: 22px; }
.gallery-image-wrap { display: grid; min-height: 220px; max-height: 58vh; place-items: center; overflow: hidden; background: #f7eef8; }
.gallery-image { width: 100%; max-height: 58vh; object-fit: contain; animation: image-arrive .32s ease both; }
.gallery-caption { margin: 17px 0 0; color: #684e56; font: italic 18px/1.6 var(--font-display); text-align: center; }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.gallery-count { color: var(--muted); font-size: 10px; letter-spacing: .14em; }
.empty-gallery { display: grid; min-height: 290px; align-content: center; justify-items: center; gap: 16px; padding: 20px; border: 1px dashed rgba(201, 111, 137, .28); text-align: center; }
.empty-gallery-mark { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font: 28px var(--font-display); }
.empty-gallery p { max-width: 390px; margin: 0; color: #684e56; font: 20px/1.5 var(--font-display); }
.empty-gallery small { color: var(--muted); font-size: 11px; }
.gallery-proof-note { max-width: 540px; margin: 0; color: var(--deep-rose); font: italic clamp(22px, 4vw, 32px)/1.45 var(--font-display); text-align: center; }

/* Page-three celebration */
.celebration-dialog {
  width: min(620px, calc(100% - 24px));
  max-width: none;
  max-height: min(90vh, 760px);
  max-height: min(90dvh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(201, 111, 137, .45);
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(91, 58, 66, .3);
}
.celebration-dialog::backdrop { background: rgba(54, 35, 44, .68); backdrop-filter: blur(8px); }
.celebration-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 7vw, 62px) 24px clamp(32px, 6vw, 50px);
  background: radial-gradient(circle at 50% 0, rgba(246, 201, 210, .55), transparent 58%), var(--paper);
  text-align: center;
}
.bond-sparkles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bond-sparkle {
  position: absolute;
  color: var(--deep-rose);
  font-size: 24px;
  filter: drop-shadow(0 0 5px currentColor);
  animation: bond-sparkle-float 3s ease-in-out infinite;
}
.bond-sparkle-one { top: 18%; left: 15%; color: #c96f89; }
.bond-sparkle-two { top: 25%; right: 16%; color: #a78ac1; animation-delay: .8s; }
.bond-sparkle-three { top: 53%; left: 82%; color: #d3a02e; animation-delay: 1.5s; }
.celebration-content > :not(.bond-sparkles):not(.celebration-close) { position: relative; z-index: 1; }
@keyframes bond-sparkle-float {
  0%, 100% { opacity: .18; transform: translateY(4px) scale(.8) rotate(-8deg); }
  50% { opacity: .82; transform: translateY(-8px) scale(1.08) rotate(8deg); }
}
.celebration-close { position: absolute; top: 14px; right: 14px; z-index: 1; }
.celebration-heart { margin-bottom: 12px; color: var(--deep-rose); font-size: 54px; animation: cherished-heartbeat 2.2s ease-in-out infinite; }
@keyframes cherished-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
}
.celebration-content .eyebrow { margin-bottom: 10px; }
.celebration-content h2 { margin: 0; color: var(--ink); font: clamp(34px, 8vw, 50px)/1.1 var(--font-display); }
.celebration-message { margin: 18px 0 0; color: var(--deep-rose); font: clamp(20px, 4.5vw, 27px)/1.5 var(--font-display); }
.celebration-copy { max-width: 390px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.celebration-actions { display: grid; justify-items: center; gap: 14px; margin-top: 24px; }
.celebration-continue { margin-top: 0; }
.celebration-explore { display: grid; gap: 4px; padding: 8px 12px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font: inherit; text-align: center; }
.celebration-explore strong { color: var(--deep-rose); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.celebration-explore:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.thoughts-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: auto;
  padding: max(clamp(28px, 6vw, 64px), env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(clamp(28px, 6vw, 64px), env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: radial-gradient(circle at 50% 0, rgba(246, 201, 210, .55), transparent 45%), var(--paper);
}
.thoughts-shell { width: min(900px, 100%); margin: 0 auto; text-align: center; }
.thoughts-shell h1 { color: var(--ink); font: clamp(40px, 8vw, 62px)/1.05 var(--font-display); }
.thoughts-shell h1 em { color: var(--deep-rose); }
.thoughts-intro { margin: 14px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.thoughts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; }
.thought-card { min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 253, 249, .88); box-shadow: 0 14px 34px rgba(91, 58, 66, .07); }
.thought-number { color: var(--deep-rose); font: 18px var(--font-display); }
.thought-title { margin: 10px 0 0; color: var(--ink); font: 700 clamp(16px, 2.2vw, 19px)/1.35 var(--font-display); letter-spacing: .035em; }
.thought-caption { margin: 8px 0 0; color: var(--deep-rose); font: 700 10px/1.5 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.thought-date { font-size: 12px; letter-spacing: .04em; text-transform: none; }
.thought-copy { margin: 15px 0 0; color: var(--ink); font: clamp(15px, 2.1vw, 17px)/1.7 var(--font-body); }
.thought-pdf-button { min-height: 42px; margin-top: 18px; padding: 9px 14px; font-size: 9px; }
.thoughts-continue { margin-top: 28px; }
.pdf-dialog {
  display: none;
  width: min(1000px, calc(100% - 24px));
  max-width: none;
  height: min(92vh, 900px);
  height: min(92dvh, 900px);
  max-height: none;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 111, 137, .45);
  border-radius: 20px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(91, 58, 66, .3);
}
.pdf-dialog[open] { display: grid; }
.pdf-dialog::backdrop { background: rgba(54, 35, 44, .68); backdrop-filter: blur(8px); }
.pdf-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.pdf-dialog-header h2 { margin: 0; color: var(--ink); font: clamp(19px, 4vw, 25px)/1.3 var(--font-display); }
.pdf-viewer { width: 100%; height: 100%; border: 0; background: var(--paper); }
@media (max-width: 600px) {
  .thoughts-grid { grid-template-columns: 1fr; gap: 10px; }
  .thought-card { min-height: auto; padding: 18px; }
  .thought-caption { margin-top: 6px; }
  .thought-copy { margin-top: 12px; }
  .pdf-dialog { width: calc(100% - 16px); height: 94vh; height: 94dvh; border-radius: 14px; }
  .pdf-dialog-header { padding: 10px 12px 10px 16px; }
}

/* Reveal motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes opening-rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes opening-light { to { transform: translateX(4%); opacity: .7; } }
@keyframes dust-drift { to { background-position: 117px -109px; } }
@keyframes status-gold-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(226, 181, 46, 0); }
  50% { border-color: rgba(196, 148, 18, .72); background: rgba(255, 215, 83, .28); box-shadow: 0 0 12px rgba(226, 181, 46, .28); }
}
@keyframes status-gold-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 181, 46, 0); }
  50% { box-shadow: 0 0 0 4px rgba(226, 181, 46, .2), 0 0 12px rgba(226, 181, 46, .7); }
}
@keyframes image-arrive { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@keyframes line-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 820px) {
  .progress-layout { grid-template-columns: 1fr; gap: 35px; }
  .progress-heading { max-width: 620px; text-align: center; }
  .progress-heading .section-intro { margin-right: auto; margin-left: auto; }
  .progress-card { width: min(100%, 530px); margin: 0 auto; }
}

@media (max-width: 640px) {
  .opening { padding: 70px 20px 82px; }
  .opening-memories img { width: clamp(72px, 22vw, 104px); border-width: 4px; border-bottom-width: 14px; opacity: .12; }
  .opening-memories img:nth-child(1) { top: 17%; left: 1%; }
  .opening-memories img:nth-child(2) { top: 16%; right: 1%; }
  .opening-memories img:nth-child(3) { bottom: 13%; left: 2%; }
  .opening-memories img:nth-child(4) { right: 2%; bottom: 12%; }
  .opening h1 { font-size: clamp(42px, 12vw, 70px); letter-spacing: .11em; }
  .opening h1 span { letter-spacing: .055em; }
  .opening-tagline { font-size: 19px; }
  .opening-copy { max-width: 330px; font-size: 13px; }
  .opening-foot { right: 18px; left: 18px; display: grid; justify-items: center; gap: 5px; font-size: 8px; letter-spacing: .1em; text-align: center; }
  .section-wrap { width: min(100% - 38px, 540px); padding: 76px 0; }
  .journey-progress { width: min(100% - 38px, 540px); padding-top: 12px; }
  .journey-page { min-height: calc(100dvh - 145px); }
  .section-index { margin-bottom: 30px; }
  .story-layout { grid-template-columns: 1fr; gap: 22px; }
  .story-copy { padding-top: 0; font-size: 14px; }
  .story-copy blockquote { margin-top: 24px; font-size: 19px; }
  .milestones-section { padding-top: 22px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .story-heading h2 { font-size: clamp(38px, 10vw, 56px); }
  .milestone-stepper { padding: 15px; }
  .milestone-step-copy { align-items: flex-start; flex-direction: column; gap: 5px; }
  .step-navigation { justify-content: space-between; }
  .step-nav-button { min-height: 44px; flex: 1; padding: 8px; font-size: 9px; letter-spacing: .05em; }
  .timeline { gap: 19px; padding-left: 0; }
  .timeline-item { grid-template-columns: 43px minmax(0, 1fr); gap: 10px; }
  .timeline-node { width: 39px; height: 39px; grid-column: 1; font-size: 14px; }
  .timeline-item:nth-child(odd) .milestone-card, .timeline-item:nth-child(even) .milestone-card { grid-column: 2; }
  .milestone-card { padding: 19px 16px 17px; }
  .chapter-topline { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 13px; }
  .milestone-card h3 { font-size: 25px; }
  .chapter-description { font-size: 12px; }
  .chapter-actions { gap: 8px; }
  .show-proof { min-height: 44px; }
  .progress-section { padding-top: 45px; }
  .progress-card { grid-template-columns: 120px minmax(0, 1fr); gap: 17px; padding: 18px 14px; }
  .progress-ring { width: 120px; height: 120px; }
  .progress-legend { gap: 9px; }
  .progress-legend li { font-size: 10px; }
  .letter-section { padding-top: 45px; }
  .letter-paper { padding: 32px 23px; }
  .letter-body { margin-top: 23px; font-size: 14px; }
  .closing-section { min-height: 650px; padding: 100px 20px; }
  .closing-copy { font-size: 16px; }
  .closing-tagline { font-size: 19px; }
  .site-footer { flex-direction: column; gap: 5px; padding: 19px 19px calc(19px + env(safe-area-inset-bottom)); font-size: 8px; }
  .page-navigation { width: min(100% - 38px, 540px); grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0 calc(28px + env(safe-area-inset-bottom)); }
  .page-navigation-label { grid-column: 1 / -1; grid-row: 1; }
  .page-nav-button { min-height: 44px; padding: 8px; font-size: 9px; letter-spacing: .05em; }
  .page-nav-button:last-child { justify-self: stretch; }
  .gallery-dialog { width: calc(100% - 18px); max-height: 94vh; max-height: 94dvh; }
  .gallery-shell { padding: 17px 14px; }
  .gallery-header h2 { font-size: 27px; }
  .gallery-image-wrap, .gallery-image { max-height: 48vh; max-height: 48dvh; }
  .gallery-nav button { min-height: 44px; padding: 8px; font-size: 9px; letter-spacing: .05em; }
  .gallery-count { font-size: 9px; text-align: center; }
}

@media (max-width: 380px) {
  .opening h1 { font-size: clamp(32px, 10.8vw, 39px); letter-spacing: .09em; }
  .opening h1 span { letter-spacing: .04em; }
  .opening-foot { font-size: 7px; }
  .section-wrap { width: calc(100% - 30px); }
  .progress-card { grid-template-columns: 94px minmax(0, 1fr); gap: 11px; padding: 16px 10px; }
  .progress-ring { width: 94px; height: 94px; }
  .progress-legend li { font-size: 9px; }
  .progress-total { font-size: 8px; }
  .chapter-label, .status-pill { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .timeline-item.is-current .milestone-card { animation: none; }
}
