:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* ================= THEMES ================= */
body[data-theme="her"] {
  --base: #f9dcd8;
  --ink: #5c2436;
  --ink-soft: rgba(92, 36, 54, 0.68);
  --accent: #c0708a;
  --accent-deep: #8e3a55;
  --on-accent: #fff8f0;
  --card: rgba(255, 249, 245, 0.55);
  --line: rgba(142, 58, 85, 0.3);
  --glow: rgba(255, 196, 160, 0.75);
  --veil: rgba(253, 236, 232, 0.86);
  --emblem-fill: rgba(233, 138, 162, 0.22);
}
body[data-theme="wedding"] {
  --base: #f3ecd9;
  --ink: #43402e;
  --ink-soft: rgba(67, 64, 46, 0.7);
  --accent: #a39555;
  --accent-deep: #6b663c;
  --on-accent: #fffdf4;
  --card: rgba(255, 253, 246, 0.6);
  --line: rgba(107, 102, 60, 0.32);
  --glow: rgba(255, 240, 200, 0.85);
  --veil: rgba(251, 247, 236, 0.86);
  --emblem-fill: rgba(212, 179, 95, 0.2);
}
body[data-theme="firstday"] {
  --base: #5a5a86;
  --ink: #fff6e9;
  --ink-soft: rgba(255, 246, 233, 0.76);
  --accent: #ffc98a;
  --accent-deep: #ffd9a0;
  --on-accent: #2e2a4a;
  --card: rgba(30, 32, 64, 0.42);
  --line: rgba(255, 217, 160, 0.38);
  --glow: rgba(255, 170, 100, 0.55);
  --veil: rgba(46, 48, 88, 0.7);
  --emblem-fill: rgba(255, 202, 122, 0.18);
}
body[data-theme="baby"] {
  --base: #d9f0fb;
  --ink: #23455a;
  --ink-soft: rgba(35, 69, 90, 0.7);
  --accent: #e08a3c;
  --accent-deep: #b25f1c;
  --on-accent: #fff;
  --card: rgba(255, 255, 255, 0.62);
  --line: rgba(44, 74, 94, 0.25);
  --glow: rgba(255, 240, 180, 0.9);
  --veil: rgba(240, 249, 255, 0.84);
  --emblem-fill: rgba(126, 195, 234, 0.25);
}

/* ================= BASE ================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  transition: color 0.8s ease;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; border-radius: 8px; }

/* ================= LAYERS ================= */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.sky__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.sky__layer::before, .sky__layer::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(40px); opacity: 0.55; animation: drift 24s ease-in-out infinite alternate;
}
.sky__layer::before { left: -20vmax; top: -15vmax; }
.sky__layer::after { right: -25vmax; bottom: -20vmax; animation-duration: 31s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate(12vmax, 8vmax) scale(1.15); } }

.sky__layer[data-for="her"] { background: linear-gradient(165deg, #fdf3ee 0%, #f9dcd8 42%, #eec3c6 78%, #e3adb4 100%); }
.sky__layer[data-for="her"]::before { background: radial-gradient(closest-side, #ffe3d6, transparent); }
.sky__layer[data-for="her"]::after { background: radial-gradient(closest-side, #f2b5c4, transparent); }
.sky__layer[data-for="wedding"] { background: linear-gradient(165deg, #fbf8f0 0%, #f3ecd9 45%, #e4ddc4 80%, #ccd2b8 100%); }
.sky__layer[data-for="wedding"]::before { background: radial-gradient(closest-side, #fff7e0, transparent); }
.sky__layer[data-for="wedding"]::after { background: radial-gradient(closest-side, #d5dcbc, transparent); }
.sky__layer[data-for="firstday"] { background: linear-gradient(170deg, #2e3a5c 0%, #5a5a86 34%, #c97b6d 68%, #eda96f 100%); }
.sky__layer[data-for="firstday"]::before { background: radial-gradient(closest-side, #7d6fb0, transparent); }
.sky__layer[data-for="firstday"]::after { background: radial-gradient(closest-side, #ffb070, transparent); }
.sky__layer[data-for="baby"] { background: linear-gradient(165deg, #eaf7ff 0%, #d9f0fb 38%, #fdf3c9 76%, #d9f2e2 100%); }
.sky__layer[data-for="baby"]::before { background: radial-gradient(closest-side, #fff6c8, transparent); }
.sky__layer[data-for="baby"]::after { background: radial-gradient(closest-side, #bfe6fb, transparent); }

body[data-theme="her"] .sky__layer[data-for="her"],
body[data-theme="wedding"] .sky__layer[data-for="wedding"],
body[data-theme="firstday"] .sky__layer[data-for="firstday"],
body[data-theme="baby"] .sky__layer[data-for="baby"] { opacity: 1; }

.decor-root { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx--back { z-index: 2; }
main { position: relative; z-index: 3; }
.topbar { z-index: 30; }
.bear { z-index: 35; }
.fx--front { z-index: 40; }
.grain { z-index: 45; }
.cursor { z-index: 60; }
.lightbox { z-index: 80; }
.curtain { z-index: 100; }

.grain {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 21px; } 40% { background-position: 24px -45px; }
  60% { background-position: -52px -9px; } 80% { background-position: 33px 38px; } 100% { background-position: 0 0; }
}

/* ================= CURTAIN ================= */
.curtain {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: var(--base); clip-path: inset(0 0 0 0);
}
.curtain__mark { width: 140px; height: 140px; }
.curtain__mark path {
  fill: none; stroke: var(--accent-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}

/* ================= CURSOR ================= */
.cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; display: none; }
body.has-cursor .cursor { display: block; opacity: 0; transition: opacity 0.4s; }
body.has-cursor .cursor.is-on { opacity: 1; }
.cursor::before {
  content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--accent-deep); transition: transform 0.35s var(--ease-out), background 0.35s ease, border-color 0.35s;
}
.cursor.is-hover::before { transform: scale(2.6); background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: transparent; }

/* ================= TOP BAR ================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 44px) 12px;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
body.scrolled .topbar { background: color-mix(in srgb, var(--base) 55%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { text-decoration: none; color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-style: normal; font-weight: 300; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }
.switcher { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.switcher__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-soft); transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease-out);
}
.switcher__btn:hover { transform: scale(1.12); color: var(--ink); }
.switcher__btn[aria-pressed="true"] { background: var(--accent-deep); color: var(--on-accent); }
.switcher__btn svg { width: 22px; height: 22px; }
.switcher__btn path { fill: none; stroke: currentColor; stroke-width: 16; stroke-linejoin: round; }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 96px 16px 80px; text-align: center; overflow: hidden;
}
.hero__media {
  position: absolute; inset: -3%; opacity: 0.6;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 45%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 45%, transparent 85%);
}
.hero__media.is-placeholder { opacity: 0.45; }
.hero__drift, .hero__slide, .hero__img { position: absolute; inset: 0; }
.hero__img { overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__veil {
  position: absolute; inset: 0; opacity: 0.75; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%, var(--veil) 0%, color-mix(in srgb, var(--veil) 55%, transparent) 55%, transparent 100%);
}
.hero__glow {
  position: absolute; left: 50%; bottom: -18vh; width: 80vw; height: 40vh; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 75%);
  pointer-events: none; animation: flicker 3.4s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: 0.8; } 40% { opacity: 1; } 60% { opacity: 0.7; } }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 980px; }

.emblem-btn {
  width: clamp(120px, 19vh, 210px); aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer;
  margin-bottom: clamp(4px, 1.5vh, 16px); border-radius: 50%;
}
.emblem { width: 100%; height: 100%; overflow: visible; }
.emblem path { stroke-linecap: round; stroke-linejoin: round; }
.emblem__line { fill: none; stroke: var(--accent-deep); stroke-width: 2.4; stroke-dasharray: 1; transition: stroke 0.8s ease; }
.emblem__glow { fill: none; stroke: var(--accent); stroke-width: 12; opacity: 0.32; filter: blur(7px); stroke-dasharray: 1; }
.emblem__fill { fill: var(--emblem-fill); fill-rule: evenodd; stroke: none; transition: fill 0.8s ease; }

.kicker { font-size: 12px; font-weight: 400; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.title {
  font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: 0.005em;
  font-size: clamp(50px, 10.5vw, 118px); perspective: 700px; padding: 0 0.05em 0.08em;
}
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.copy { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(21px, 3.2vw, 32px); color: var(--accent-deep); margin-top: 8px; }
.badge {
  margin-top: 14px; font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
  color: var(--accent-deep); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; background: var(--card);
}

.count { margin-top: clamp(14px, 3vh, 30px); display: flex; flex-direction: column; align-items: center; }
.count__days { display: flex; flex-direction: column; align-items: center; }
.count__label { font-size: 12px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.count__small { display: flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 22px; font-weight: 300; }
.count__small i { font-style: normal; font-size: 13px; color: var(--ink-soft); margin-right: 10px; letter-spacing: 0.1em; }
body[data-theme="baby"] .count__small { display: none; }

.odo { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; }
.odo--big { font-size: clamp(92px, 20vw, 190px); font-weight: 200; letter-spacing: -0.02em; }
.odo__col { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); }
.odo__strip span { display: block; height: 1em; }

.tick { width: 22px; height: 22px; transform: rotate(-90deg); }
.tick circle { fill: none; stroke: var(--line); stroke-width: 3; }
.tick .tick__fill { stroke: var(--accent-deep); stroke-dasharray: 60; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease-out); }

.today { margin-top: clamp(14px, 3vh, 30px); }
.today__big { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(60px, 13vw, 140px); line-height: 1.05; color: var(--accent-deep); }
.today__sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.8vw, 27px); color: var(--ink-soft); margin-top: 8px; max-width: 30ch; margin-inline: auto; }
.date { margin-top: 14px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(18px, 2.4vw, 23px); color: var(--ink-soft); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; left: -1px; width: 3px; height: 16px; border-radius: 2px; background: var(--accent-deep); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { from { top: -16px; } to { top: 54px; } }

/* ================= TOGETHER ================= */
.together {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px;
}
.together__lead { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(26px, 4vw, 46px); line-height: 1.25; max-width: 20ch; }
.together__lead .wd { display: inline-block; }
.together__num { font-size: clamp(96px, 23vw, 270px); font-weight: 200; line-height: 1; margin-top: 3vh; font-variant-numeric: tabular-nums; color: var(--accent-deep); }
.together__label { font-size: 13px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--ink-soft); }
.thread { position: absolute; left: 0; bottom: 6vh; width: 100%; height: 120px; overflow: visible; }
.thread path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 1; vector-effect: non-scaling-stroke; opacity: 0.7; }

/* ================= GALLERY ================= */
.gallery__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.gallery__head { padding: 70px clamp(20px, 8vw, 120px) 0; }
.gallery__head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 72px); line-height: 1; }
.gallery__track {
  display: flex; align-items: flex-start; gap: clamp(28px, 5vw, 80px); width: max-content;
  padding: clamp(24px, 5vh, 56px) clamp(24px, 10vw, 160px) 0; will-change: transform;
}
.card {
  flex: none; position: relative; border: 0; padding: 0; background: none; cursor: pointer;
  height: clamp(260px, 50vh, 520px); aspect-ratio: var(--ar, 4 / 5); max-width: 76vw;
  margin-top: var(--lift, 0); display: flex; flex-direction: column; text-align: left;
}
.card__frame { position: relative; display: block; flex: 1; min-height: 0; box-shadow: 0 30px 60px -24px rgba(40, 20, 30, 0.45); transition: box-shadow 0.4s ease; }
.card:hover .card__frame { box-shadow: 0 40px 80px -24px rgba(40, 20, 30, 0.55); }
.card__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.card__media { position: absolute; inset: 0 -12%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.8s ease; }
.card__media.is-loaded img, .hero__img.is-loaded img, .lightbox__frame.is-loaded img { opacity: 1; }
.card__frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.45), transparent 55%); mix-blend-mode: soft-light;
}
.card:hover .card__frame::after { opacity: 1; }
.card__cap { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(18px, 2vw, 22px); margin-top: 14px; padding-left: 4px; }

/* per-theme frames */
body[data-theme="her"] .card__frame { border-radius: 50% 50% 16px 16px / 34% 34% 16px 16px; }
body[data-theme="wedding"] .card__frame { border-radius: 4px; outline: 1px solid var(--line); outline-offset: 8px; border: 7px solid rgba(255, 255, 255, 0.7); }
body[data-theme="wedding"] .card__clip { border-radius: 0; }
body[data-theme="firstday"] .card__frame {
  border-radius: 4px; padding: 20px 0; background-color: #17172b;
  background-image: radial-gradient(circle at 50% 50%, #f0e2c8 0 3.4px, transparent 4px), radial-gradient(circle at 50% 50%, #f0e2c8 0 3.4px, transparent 4px);
  background-size: 22px 20px; background-repeat: repeat-x; background-position: 0 0, 0 100%;
}
body[data-theme="firstday"] .card__clip { inset: 20px 0; border-radius: 0; }
body[data-theme="baby"] .card__frame { border-radius: 12px; background: #fff; }
body[data-theme="baby"] .card__clip { inset: 10px 10px 38px; border-radius: 6px; }
body[data-theme="baby"] .card__frame::before {
  content: ""; position: absolute; z-index: 2; top: -12px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%) rotate(-4deg);
  background: color-mix(in srgb, var(--tape, #f6cf5f) 75%, transparent); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
body[data-theme="baby"] .card:nth-child(4n + 2) .card__frame::before { --tape: #7ec3ea; }
body[data-theme="baby"] .card:nth-child(4n + 3) .card__frame::before { --tape: #f2a7bb; }
body[data-theme="baby"] .card:nth-child(4n + 4) .card__frame::before { --tape: #8fd0a8; }
body[data-theme="baby"] .card__cap { position: absolute; left: 14px; bottom: 9px; margin: 0; font-size: 18px; color: #4a5a66; }

.gallery__progress { margin: clamp(20px, 5vh, 44px) auto 0; width: min(300px, 50vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gallery__progress span { display: block; height: 100%; background: var(--accent-deep); transform-origin: 0 50%; transform: scaleX(0); }

/* moving placeholders until real photos arrive */
.ph { background: linear-gradient(150deg, var(--a), var(--b) 55%, var(--c)); overflow: hidden; }
.ph__blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.35); filter: blur(2px); animation: blob 9s ease-in-out infinite alternate; }
.ph__blob:nth-child(1) { width: 46%; aspect-ratio: 1; left: 12%; top: 18%; }
.ph__blob:nth-child(2) { width: 30%; aspect-ratio: 1; right: 14%; top: 8%; animation-duration: 12s; animation-direction: alternate-reverse; background: rgba(255, 255, 255, 0.22); }
.ph__blob:nth-child(3) { width: 60%; aspect-ratio: 1; left: 30%; bottom: -30%; animation-duration: 15s; background: rgba(255, 255, 255, 0.18); }
@keyframes blob { to { transform: translate(18%, 12%) scale(1.2); } }
.ph__label { position: absolute; top: 16%; right: 18%; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(40, 20, 30, 0.5); background: rgba(255, 255, 255, 0.5); padding: 4px 10px; border-radius: 999px; }
.hero__img .ph__label { display: none; }

/* ================= YEAR ================= */
.year { padding: 18vh clamp(16px, 4vw, 40px) 14vh; overflow-x: clip; }
.year__head { text-align: center; margin-bottom: 10vh; }
.year__head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 6vw, 72px); line-height: 1.05; }
.year__map { position: relative; max-width: 940px; margin: 0 auto; }
.year__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 120px; height: 100%; transform: translateX(-50%); overflow: visible; }
.year__track { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.year__draw { fill: none; stroke: var(--accent-deep); stroke-width: 2.2; stroke-dasharray: 1; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 12vh; }
.station { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.station__node {
  position: absolute; left: 50%; top: 40px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--base); border: 2px solid var(--accent-deep); z-index: 1;
}
.station.is-current .station__node { background: var(--accent-deep); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 30px var(--glow); }
.station__card {
  grid-column: 1; margin-right: 56px; text-align: left; cursor: pointer; display: grid; gap: 6px; align-content: start;
  padding: 24px 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--card);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.station[data-side="r"] .station__card { grid-column: 2; margin: 0 0 0 56px; }
.station__card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(40, 20, 30, 0.35); }
.station.is-current .station__card { border-color: var(--accent-deep); }
.station__icon { width: 54px; height: 54px; overflow: visible; }
.station__icon path { fill: none; stroke: var(--accent-deep); stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1; }
.station__when { font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.station__name { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; }
.station__note { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.station__go { margin-top: 8px; font-size: 13px; letter-spacing: 0.12em; color: var(--accent-deep); }

/* ================= FINALE ================= */
.finale { min-height: 90svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px 100px; gap: 10px; }
.finale__date { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 7vw, 84px); line-height: 1.05; max-width: 14ch; }
.finale__note { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 28px); color: var(--accent-deep); }
.pill {
  margin-top: 24px; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  padding: 13px 26px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.pill:hover { background: var(--accent-deep); color: var(--on-accent); border-color: transparent; }

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed; inset: 0; --lb-bg: 0;
  background: rgba(18, 10, 16, calc(var(--lb-bg) * 0.84));
  backdrop-filter: blur(calc(var(--lb-bg) * 10px)); -webkit-backdrop-filter: blur(calc(var(--lb-bg) * 10px));
}
.lightbox__frame { position: fixed; margin: 0; overflow: hidden; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); touch-action: pan-y; }
.lightbox__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.5s; }
.lightbox__caption { position: fixed; left: 0; right: 0; bottom: max(26px, env(safe-area-inset-bottom)); text-align: center; color: #fff6ee; font-family: var(--serif); font-style: italic; font-size: 22px; }
.lightbox__close, .lightbox__nav {
  position: fixed; border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.14);
  width: 46px; height: 46px; border-radius: 50%; font-size: 30px; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox__close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lightbox__nav { top: 50%; margin-top: -23px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
body.lb-open { overflow: hidden; }

/* ================= DECOR ================= */
.decor { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
body[data-theme="her"] .decor[data-for="her"],
body[data-theme="wedding"] .decor[data-for="wedding"],
body[data-theme="firstday"] .decor[data-for="firstday"],
body[data-theme="baby"] .decor[data-for="baby"] { opacity: 1; }

.balloon { position: absolute; --m: 1; width: calc(58px * var(--s) * var(--m)); height: calc(74px * var(--s) * var(--m)); transform-origin: 50% 160%; }
.balloon__body {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 45%), var(--c);
  box-shadow: inset -6px -10px 18px rgba(120, 40, 60, 0.15);
}
.balloon__body::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 7px solid var(--c); border-top: 0; }
.balloon__string { position: absolute; left: 50%; top: calc(100% + 6px); width: 1px; height: 110px; background: linear-gradient(var(--line), transparent); }

.sprig { position: absolute; bottom: -10px; width: clamp(80px, 11vw, 150px); color: #8a8552; transform-origin: 50% 100%; }
.sprig--l { left: 1vw; }
.sprig--r { right: 1vw; }
.sprig--r svg { transform: scaleX(-1); }
.sprig svg { display: block; width: 100%; height: auto; overflow: visible; }
.sprig .stem { stroke-dasharray: 1; }
.sprig .leaves path { fill: #a9b18c; }
.sprig .buds circle { fill: #f1e8d2; stroke: #d4b35f; stroke-width: 1; }
.lace { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; opacity: 0.6; background-image: radial-gradient(circle at 8px 12px, var(--line) 2.2px, transparent 2.8px); background-size: 22px 22px; }

.night { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #0d1130 0%, #1c1c40 60%, #2a2448 100%); }
.sun {
  position: absolute; right: 10vw; top: 14vh; width: clamp(80px, 11vw, 140px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #ffe8b8 0%, #ffb46e 55%, rgba(255, 160, 90, 0) 72%);
}
.sun::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 180, 110, 0.35), transparent); animation: flicker 4s ease-in-out infinite; }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; background: linear-gradient(transparent, rgba(30, 24, 60, 0.35)); }
.ticket {
  position: absolute; left: 4vw; bottom: 16vh; transform: rotate(-7deg);
  font-weight: 400; letter-spacing: 0.22em; font-size: 10.5px; text-transform: uppercase;
  color: #ffe9c4; border: 1px dashed rgba(255, 233, 196, 0.65); border-radius: 8px; padding: 10px 16px; background: rgba(24, 26, 50, 0.4);
}
.ticket b { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: 0.02em; font-size: 19px; margin-top: 3px; text-transform: none; }

.bunting { position: absolute; top: 0; left: 0; width: 100%; height: 100px; }
.bear {
  position: fixed; right: clamp(6px, 3vw, 44px); bottom: -14px; width: clamp(84px, 11vw, 140px);
  border: 0; padding: 0; background: none; cursor: pointer; transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 18px rgba(44, 74, 94, 0.25)); opacity: 0; pointer-events: none; transition: opacity 0.6s ease;
}
body[data-theme="baby"] .bear { opacity: 1; pointer-events: auto; }
.bear img { display: block; width: 100%; height: auto; }

/* ================= VIEW TRANSITION ================= */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ================= SMALL SCREENS ================= */
@media (max-width: 640px) {
  .brand small { display: none; }
  .switcher__btn { width: 34px; height: 34px; }
  .balloon { --m: 0.62; }
  .balloon:nth-child(2), .balloon:nth-child(5) { display: none; }
  .ticket { display: none; }
  .bunting { top: 58px; height: 80px; }
  .sprig { width: 70px; opacity: 0.8; }
  .hero { padding-top: 84px; }
  .count__small { font-size: 19px; }
  .card { height: 46svh; }
  .year__line { left: 22px; width: 40px; transform: none; }
  .station { grid-template-columns: 1fr; }
  .station__node { left: 42px; }
  .station__card, .station[data-side="r"] .station__card { grid-column: 1; margin: 0 0 0 64px; padding: 20px; }
  .stations { gap: 7vh; }
}

@media (prefers-reduced-motion: reduce) {
  .sky__layer::before, .sky__layer::after, .grain, .hero__glow, .ph__blob, .scroll-cue span, .sun::before { animation: none !important; }
}
