/* =========================================================
   A little universe for you — birthday site
   Typography: Bodoni MT / Noto Serif SC / Noto Sans SC
   ========================================================= */

:root {
  --ink: #161022;
  --ink-soft: #241b35;
  --night: #0b0917;
  --night-2: #171028;
  --cream: #fbf4e8;
  --paper: #fffaf1;
  --paper-deep: #f3e5d3;
  --peach: #ffb18c;
  --peach-deep: #e98d7f;
  --rose: #d9757d;
  --gold: #e9bd7e;
  --lilac: #bfa9ff;
  --muted: #74697d;
  --muted-light: rgba(251, 244, 232, 0.58);
  --line: rgba(29, 20, 42, 0.12);
  --line-light: rgba(251, 244, 232, 0.13);
  --font-display: "Bodoni MT", "Didot", "Baskerville Old Face", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-cn: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --container: 1160px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

h1, h2, h3, p, figure, blockquote {
  margin: 0;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

img {
  display: block;
  max-width: 100%;
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.82rem;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--peach), var(--rose));
  box-shadow: 0 0 12px rgba(255, 177, 140, 0.6);
}

#confetti {
  position: fixed;
  inset: 0;
  z-index: 95;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

section[id] {
  scroll-margin-top: 64px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--cream);
  transition: padding 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  min-height: 64px;
  padding-top: 13px;
  padding-bottom: 13px;
  background: #0b0917;
  border-bottom-color: rgba(251, 244, 232, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(233, 189, 126, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.7rem;
  transition: transform 0.8s var(--ease), background 0.4s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(180deg);
  background: rgba(233, 189, 126, 0.12);
}

.brand__text em {
  font-family: var(--font-cn);
  font-style: normal;
  color: var(--gold);
}

.nav {
  position: absolute;
  left: 50%;
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  transform: translateX(-50%);
}

.nav a {
  position: relative;
  padding: 4px 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(251, 244, 232, 0.68);
  transition: color 0.3s ease;
}

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

.nav a:hover {
  color: var(--cream);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 12px;
  border: 1px solid rgba(251, 244, 232, 0.22);
  border-radius: 999px;
  background: rgba(251, 244, 232, 0.03);
  color: rgba(251, 244, 232, 0.78);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.music-btn:hover,
.music-btn[aria-pressed="true"] {
  border-color: rgba(233, 189, 126, 0.55);
  background: rgba(233, 189, 126, 0.1);
  color: var(--cream);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 14px;
  height: 12px;
}

.music-bars i {
  display: block;
  width: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  transition: height 0.3s ease;
}

.music-btn[aria-pressed="true"] .music-bars i {
  animation: equalize 0.9s ease-in-out infinite alternate;
}

.music-btn[aria-pressed="true"] .music-bars i:nth-child(2) {
  animation-delay: -0.4s;
}

.music-btn[aria-pressed="true"] .music-bars i:nth-child(3) {
  animation-delay: -0.7s;
}

.music-btn[aria-pressed="true"] .music-bars i:nth-child(4) {
  animation-delay: -0.2s;
}

@keyframes equalize {
  from { height: 3px; }
  to { height: 12px; }
}

.nav-share {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(251, 244, 232, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.nav-share:hover {
  transform: rotate(45deg);
  border-color: var(--gold);
  background: rgba(233, 189, 126, 0.1);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: clamp(118px, 14vh, 166px) 24px clamp(30px, 4.5vh, 46px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 50% at 78% 20%, rgba(238, 137, 115, 0.24), transparent 66%),
    radial-gradient(ellipse 48% 50% at 12% 78%, rgba(144, 105, 255, 0.16), transparent 72%),
    linear-gradient(180deg, #0a0815 0%, #110c21 52%, #1b1230 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 12vh;
  min-height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--paper));
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  display: block;
  width: 1.5px;
  height: 1.5px;
  border-radius: 50%;
  background: rgba(255, 244, 225, 0.8);
  animation: twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}

.star.is-bright {
  width: 3px;
  height: 3px;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(233, 189, 126, 0.55);
}

@keyframes twinkle {
  from { opacity: 0.15; transform: scale(0.7); }
  to { opacity: 0.95; transform: scale(1.15); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.orb--moon {
  top: 4vh;
  right: -12vw;
  width: min(54vw, 760px);
  aspect-ratio: 1;
  opacity: 0.72;
  filter: blur(2px) saturate(1.08);
  background:
    radial-gradient(circle at 34% 30%,
      #fff0d8 0%,
      #ffd2b2 12%,
      #efab92 27%,
      #bb707c 48%,
      #70436b 65%,
      #2a1b42 74%,
      transparent 75%);
  animation: float-orb 16s ease-in-out infinite alternate;
}

.orb--moon::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 173, 139, 0.18), transparent 64%);
  filter: blur(30px);
}

.orb--peach {
  bottom: -18vh;
  left: -12vw;
  width: min(46vw, 580px);
  aspect-ratio: 1;
  opacity: 0.42;
  filter: blur(18px);
  background: radial-gradient(circle at 40% 40%, rgba(255, 162, 131, 0.75), rgba(164, 90, 123, 0.3) 48%, transparent 70%);
  animation: float-orb 19s -5s ease-in-out infinite alternate-reverse;
}

.orb--lilac {
  top: 16%;
  left: 18%;
  width: min(24vw, 300px);
  aspect-ratio: 1;
  opacity: 0.18;
  filter: blur(28px);
  background: radial-gradient(circle, var(--lilac), transparent 68%);
}

@keyframes float-orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(1.5vw, -2.5vh, 0) scale(1.035); }
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(251, 244, 232, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.orbit--outer {
  width: min(80vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.orbit--outer::before,
.orbit--outer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px 3px rgba(233, 189, 126, 0.45);
}

.orbit--outer::before {
  top: 18%;
  left: 10%;
  width: 3px;
  height: 3px;
}

.orbit--outer::after {
  right: 6%;
  bottom: 23%;
  width: 2px;
  height: 2px;
}

.orbit--inner {
  width: min(58vw, 700px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(233, 189, 126, 0.17);
  transform: translate(-50%, -50%);
  animation: orbit-spin 80s linear infinite;
}

.orbit__dot {
  position: absolute;
  top: 7%;
  left: 21%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 16px 5px rgba(255, 177, 140, 0.55);
}

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

.shooting-star {
  position: absolute;
  top: 18%;
  left: 8%;
  width: 110px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 225, 0.9), transparent);
  transform: rotate(18deg);
  animation: shoot 11s 4s ease-in infinite;
}

@keyframes shoot {
  0%, 88% { opacity: 0; transform: translate3d(0, 0, 0) rotate(18deg) scaleX(0.4); }
  90% { opacity: 1; }
  96%, 100% { opacity: 0; transform: translate3d(28vw, 10vh, 0) rotate(18deg) scaleX(1.4); }
}

.hero__content {
  position: relative;
  z-index: 4;
  width: min(100%, 1060px);
  text-align: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: rgba(233, 189, 126, 0.85);
  font-size: 0.63rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 0.9s 0.3s var(--ease-out) forwards;
}

.hero__eyebrow .rule {
  width: clamp(24px, 5vw, 56px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 189, 126, 0.65));
}

.hero__eyebrow .rule:last-child {
  background: linear-gradient(90deg, rgba(233, 189, 126, 0.65), transparent);
}

.hero__title {
  margin-top: clamp(18px, 2.8vh, 30px);
  font-family: var(--font-display);
  font-size: clamp(4rem, min(15vw, 21vh), 13rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--cream);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-right: 0.06em;
  padding-bottom: 0.16em;
  margin-bottom: -0.13em;
}

.hero__line > span {
  display: block;
  transform: translateY(115%);
  animation: title-rise 1.15s 0.5s var(--ease-out) forwards;
}

.hero__line--2 {
  margin-top: 0.04em;
}

.hero__line--2 > span {
  font-style: italic;
  letter-spacing: -0.045em;
  color: rgba(251, 244, 232, 0.04);
  -webkit-text-stroke: 1.5px rgba(251, 244, 232, 0.82);
  animation-delay: 0.68s;
}

@keyframes title-rise {
  to { transform: translateY(0); }
}

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

.hero__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: clamp(20px, 3.2vh, 34px);
  color: var(--gold);
  font-family: var(--font-cn);
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.36em;
  padding-left: 0.36em;
  opacity: 0;
  animation: fade-up 0.9s 1s var(--ease-out) forwards;
}

.hero__name > span[aria-hidden] {
  font-size: 0.5em;
  opacity: 0.7;
}

.hero__tagline {
  max-width: 520px;
  margin: 12px auto 0;
  color: rgba(251, 244, 232, 0.62);
  font-family: var(--font-cn);
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  letter-spacing: 0.08em;
  line-height: 2;
  opacity: 0;
  animation: fade-up 0.9s 1.12s var(--ease-out) forwards;
}

.countdown-wrap {
  margin-top: clamp(24px, 3.8vh, 38px);
  opacity: 0;
  animation: fade-up 0.9s 1.24s var(--ease-out) forwards;
}

.countdown__label {
  margin-bottom: 11px;
  color: rgba(251, 244, 232, 0.45);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.countdown__label span {
  color: rgba(233, 189, 126, 0.88);
}

.countdown {
  display: flex;
  align-items: stretch;
  width: fit-content;
  margin: 0 auto;
  padding: 13px 8px;
  border: 1px solid rgba(251, 244, 232, 0.1);
  border-radius: 18px;
  background: rgba(251, 244, 232, 0.045);
  box-shadow: 0 20px 60px -28px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.countdown__cell {
  position: relative;
  min-width: 78px;
  padding: 0 15px;
  text-align: center;
}

.countdown__cell + .countdown__cell::before {
  content: "";
  position: absolute;
  top: 12%;
  left: 0;
  width: 1px;
  height: 76%;
  background: linear-gradient(to bottom, transparent, rgba(251, 244, 232, 0.15), transparent);
}

.countdown__cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.countdown__cell span {
  display: block;
  margin-top: 4px;
  color: rgba(251, 244, 232, 0.4);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.countdown-wrap.is-today .countdown__cell strong {
  color: var(--gold);
}

.hero__actions {
  margin-top: clamp(24px, 4vh, 40px);
  opacity: 0;
  animation: fade-up 0.9s 1.36s var(--ease-out) forwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 25px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-22deg);
  transition: left 0.7s var(--ease);
}

.btn:hover::before {
  left: 130%;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.82rem;
  transition: transform 0.45s var(--ease), background 0.3s ease;
}

.btn:hover .btn__icon {
  transform: translateY(3px);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 18px 50px -20px rgba(255, 224, 192, 0.55);
}

.btn--light .btn__icon {
  background: var(--ink);
  color: var(--cream);
}

.btn--light:hover {
  box-shadow: 0 24px 60px -22px rgba(255, 224, 192, 0.8);
}

.btn--outline {
  padding: 13px 15px 13px 26px;
  background: transparent;
  border-color: rgba(251, 244, 232, 0.3);
  color: var(--cream);
}

.btn--outline .btn__icon {
  background: var(--cream);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--gold);
  background: rgba(251, 244, 232, 0.05);
}

.btn__icon--flame {
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
}

.btn--outline:hover .btn__icon--flame {
  transform: translateY(-2px) rotate(45deg);
  box-shadow: 0 0 24px rgba(233, 189, 126, 0.7);
}

.hero__stamp {
  position: absolute;
  top: 26%;
  right: clamp(32px, 7vw, 110px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(233, 189, 126, 0.38);
  border-radius: 50%;
  color: var(--gold);
  transform: rotate(9deg);
  opacity: 0;
  animation: stamp-in 1s 1.5s var(--ease-out) forwards;
}

.hero__stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__stamp svg text {
  fill: rgba(251, 244, 232, 0.58);
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 2.3px;
}

.hero__stamp > span {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.hero__stamp em {
  font-style: normal;
  font-size: 1rem;
  opacity: 0.7;
}

@keyframes stamp-in {
  from { opacity: 0; transform: rotate(22deg) scale(0.86); }
  to { opacity: 1; transform: rotate(9deg) scale(1); }
}

/* =========================================================
   Shared section styles
   ========================================================= */

.section {
  position: relative;
  padding: clamp(92px, 11vw, 150px) clamp(20px, 5vw, 48px);
  overflow: hidden;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 330px);
  gap: 18px 56px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 74px);
}

.section-head__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2px;
}

.section-head__meta::after {
  content: "";
  width: min(90px, 12vw);
  height: 1px;
  background: rgba(29, 20, 42, 0.2);
}

.section-head__meta--dark::after {
  background: rgba(251, 244, 232, 0.22);
}

.section-num {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(29, 20, 42, 0.18);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.section-head__meta--dark .section-num {
  border-color: rgba(251, 244, 232, 0.22);
  color: var(--cream);
}

.kicker {
  color: var(--rose);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.section-head__meta--dark .kicker {
  color: var(--gold);
}

.section-head h2 {
  grid-column: 1;
  font-family: var(--font-cn);
  font-size: clamp(2.55rem, 5.2vw, 4.65rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.015em;
}

.section-head h2 em {
  font-style: italic;
  color: var(--rose);
}

.section-head__note {
  grid-column: 2;
  align-self: end;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 2;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

.section-head--split {
  grid-template-columns: 1fr minmax(250px, 380px);
}

.section-head--split > div {
  grid-column: 1;
}

.section-head--split .section-head__meta {
  margin-bottom: 10px;
}

.section-head--split .section-head__note {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}

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

/* =========================================================
   Letter / ticket
   ========================================================= */

.letter {
  background:
    radial-gradient(ellipse 45% 55% at 92% 8%, rgba(255, 177, 140, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 45% at 4% 78%, rgba(191, 169, 255, 0.1), transparent 72%),
    var(--paper);
  color: var(--ink);
}

.letter::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -8%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(217, 117, 125, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.letter-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}

.ticket-wrap {
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.ticket {
  position: relative;
  padding: 25px 28px 22px;
  border: 1px solid rgba(42, 29, 48, 0.09);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 50%),
    linear-gradient(160deg, #fffdf7 0%, #f8ecdb 100%);
  box-shadow: 0 35px 70px -38px rgba(55, 35, 48, 0.55), inset 0 0 0 4px rgba(255, 255, 255, 0.32);
  transform: rotate(-3.2deg);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.ticket::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(42, 29, 48, 0.07);
  border-radius: 3px;
  pointer-events: none;
}

.ticket-wrap:hover .ticket {
  transform: rotate(-0.7deg) translateY(-5px);
  box-shadow: 0 45px 85px -38px rgba(55, 35, 48, 0.6);
}

.ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6e5a5f;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ticket__star {
  color: var(--rose);
  font-size: 0.9rem;
}

.ticket__date {
  position: relative;
  padding: 24px 0 18px;
  text-align: center;
}

.ticket__month {
  display: block;
  color: var(--rose);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
}

.ticket__date strong {
  display: block;
  margin: 3px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(6.1rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.ticket__year {
  display: block;
  color: #8b7779;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
}

.ticket__year i {
  font-style: normal;
}

.ticket__divider {
  position: relative;
  margin: 0 -28px;
  border-top: 1px dashed rgba(42, 29, 48, 0.23);
}

.ticket__divider::before,
.ticket__divider::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--paper);
}

.ticket__divider::before {
  left: -12px;
}

.ticket__divider::after {
  right: -12px;
}

.ticket__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}

.ticket__admit span,
.ticket__admit small {
  display: block;
  color: #8b7779;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ticket__admit strong {
  display: block;
  margin: 3px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
}

.ticket__barcode {
  width: 126px;
  height: 44px;
  opacity: 0.82;
  background:
    linear-gradient(90deg, #251b2c 0 2px, transparent 2px 4px, #251b2c 4px 7px, transparent 7px 10px),
    linear-gradient(90deg, #251b2c 0 1px, transparent 1px 3px, #251b2c 3px 4px, transparent 4px 8px);
  background-size: 37px 100%, 19px 100%;
  background-blend-mode: multiply;
}

.ticket-note {
  margin-top: 22px;
  color: #877379;
  font-family: var(--font-cn);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-align: center;
}

.letter-card {
  position: relative;
  padding: clamp(30px, 4.4vw, 56px);
  border: 1px solid rgba(42, 29, 48, 0.08);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent 30%),
    #fffdf8;
  box-shadow: 0 40px 90px -58px rgba(53, 33, 45, 0.55);
}

.letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(16px, 2.4vw, 26px);
  width: 1px;
  background: rgba(217, 117, 125, 0.2);
}

.letter-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(42, 29, 48, 0.11);
  color: #99858a;
  font-size: 0.55rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.letter-card__hello {
  margin: 30px 0 8px;
  font-family: var(--font-cn);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: 0.1em;
}

.letter-card > p:not(.letter-card__hello) {
  margin-bottom: 0.95em;
  color: #51465a;
  font-family: var(--font-cn);
  font-size: clamp(0.94rem, 1.15vw, 1.02rem);
  line-height: 2.12;
  letter-spacing: 0.025em;
  text-wrap: pretty;
}

.letter-card__sign {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
}

.letter-card__sign > div > span {
  display: block;
  color: #51465a;
  font-family: var(--font-cn);
  font-size: 0.84rem;
  letter-spacing: 0.09em;
}

.letter-card__sign small {
  display: block;
  margin-top: 10px;
  color: #a08c8e;
  font-family: var(--font-cn);
  font-size: 0.73rem;
  font-style: italic;
}

.seal {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(62px, 7vw, 78px);
  aspect-ratio: 1;
  border-radius: 48% 52% 46% 54% / 52% 47% 53% 48%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 235, 221, 0.5), transparent 28%),
    radial-gradient(circle at 45% 40%, #df858b, #b25464 62%, #8c3d50);
  color: #ffe9dd;
  transform: rotate(-9deg);
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.22),
    inset 0 -5px 10px rgba(75, 22, 41, 0.32),
    0 12px 24px -12px rgba(94, 35, 48, 0.55);
}

.seal i {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  opacity: 0.9;
}

/* =========================================================
   Wish / cake
   ========================================================= */

.wish {
  color: var(--cream);
  background:
    radial-gradient(ellipse 45% 52% at 78% 50%, rgba(255, 153, 119, 0.17), transparent 68%),
    radial-gradient(ellipse 40% 45% at 8% 84%, rgba(137, 99, 224, 0.15), transparent 70%),
    linear-gradient(155deg, #141026 0%, #0d0a1c 58%, #171028 100%);
}

.wish__texture {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(rgba(251, 244, 232, 0.4) 1px, transparent 1.4px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 75%);
}

.wish::before,
.wish::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(251, 244, 232, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.wish::before {
  top: -170px;
  right: 8%;
}

.wish::after {
  bottom: -220px;
  left: 4%;
  width: 440px;
  height: 440px;
}

.wish-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.wish-copy h2 {
  margin: 12px 0 26px;
  font-family: var(--font-cn);
  font-size: clamp(2.7rem, 5.3vw, 4.7rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.wish-copy h2 em {
  font-style: italic;
  color: var(--gold);
}

.wish-copy__text {
  max-width: 440px;
  color: var(--muted-light);
  font-family: var(--font-cn);
  font-size: 0.92rem;
  line-height: 2.15;
  letter-spacing: 0.025em;
  text-wrap: pretty;
}

.br-mobile {
  display: none;
}

.wish-copy .btn {
  margin-top: 34px;
}

.wish-status {
  min-height: 1.8em;
  margin-top: 17px;
  color: rgba(251, 244, 232, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}

.wish-status.is-happy {
  color: var(--gold);
}

.cake-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  isolation: isolate;
}

.cake-halo {
  position: absolute;
  width: min(560px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 135, 0.23), rgba(255, 178, 135, 0.05) 43%, transparent 68%);
  filter: blur(8px);
}

.cake-orbit {
  position: absolute;
  width: min(470px, 82%);
  aspect-ratio: 1;
  border: 1px dashed rgba(233, 189, 126, 0.18);
  border-radius: 50%;
  animation: orbit-spin 70s linear infinite reverse;
}

.cake {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(304px, 80vw);
  filter: drop-shadow(0 32px 32px rgba(0, 0, 0, 0.38));
}

.candles {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 8vw, 38px);
  height: 64px;
  margin-bottom: -5px;
}

.candle {
  position: relative;
  width: 9px;
  height: 55px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: repeating-linear-gradient(48deg, #fff0e8 0 4px, #ff9ba8 4px 8px);
  box-shadow: inset -2px 0 3px rgba(137, 50, 73, 0.22), 0 2px 5px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.25s var(--ease);
}

.candle::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 8px;
  background: transparent;
}

.candle:hover {
  transform: translateY(-2px);
}

.candle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 7px;
}

.wick {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 1.5px;
  height: 6px;
  background: #3d2a2a;
  transform: translateX(-50%);
}

.flame {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  width: 15px;
  height: 23px;
  border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 76%, #fff9dd 0 20%, #ffd47d 21% 47%, #ff904f 48% 75%, rgba(255, 102, 54, 0) 76%);
  box-shadow:
    0 0 12px 3px rgba(255, 178, 84, 0.65),
    0 0 38px 13px rgba(255, 128, 72, 0.24);
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  animation: flicker 0.22s infinite alternate ease-in-out;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flame::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(1px);
  transform: translateX(-50%);
}

@keyframes flicker {
  from { transform: translateX(-50%) scale(1) rotate(-2deg); }
  to { transform: translateX(-50%) scale(1.09, 0.92) rotate(2deg); }
}

.smoke {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  width: 7px;
  height: 9px;
  border: 1px solid rgba(251, 244, 232, 0.42);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%);
}

.candle.is-out .flame {
  opacity: 0;
  animation: none;
  transform: translateX(-50%) scale(0.15);
}

.candle.is-out .smoke {
  animation: smoke-rise 1.8s ease-out forwards;
}

@keyframes smoke-rise {
  0% { opacity: 0.7; transform: translate(-50%, 0) scale(0.5); }
  55% { opacity: 0.38; }
  100% { opacity: 0; transform: translate(-20%, -52px) scale(2.1); }
}

.tier {
  position: relative;
  background: linear-gradient(180deg, #ffc2af 0%, #f0a09b 52%, #d47f88 100%);
  box-shadow:
    inset 0 -18px 28px rgba(123, 52, 79, 0.18),
    inset 8px 0 16px rgba(255, 255, 255, 0.16),
    inset -9px 0 18px rgba(113, 47, 70, 0.13);
}

.tier::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 10px;
  left: 11px;
  height: 60%;
  opacity: 0.65;
  background-image:
    radial-gradient(circle, #ffdd9a 0 1.8px, transparent 2.3px),
    radial-gradient(circle, #c6d8ff 0 1.6px, transparent 2.1px),
    radial-gradient(circle, #ffe9e1 0 1.5px, transparent 2px);
  background-size: 43px 31px, 61px 43px, 52px 37px;
  background-position: 8px 5px, 26px 22px, 38px 9px;
}

.tier--top {
  z-index: 4;
  width: 66%;
  height: 84px;
  border-radius: 10px 10px 5px 5px;
}

.tier--bottom {
  z-index: 3;
  width: 100%;
  height: 105px;
  margin-top: -2px;
  border-radius: 12px 12px 7px 7px;
}

.tier__frosting {
  position: absolute;
  top: -2px;
  right: -5px;
  left: -5px;
  z-index: 2;
  height: 40px;
  filter: drop-shadow(0 5px 3px rgba(118, 47, 70, 0.15));
}

.tier__frosting svg {
  width: 100%;
  height: 100%;
}

.tier__frosting path {
  fill: #fff3df;
}

.tier__shine {
  position: absolute;
  top: 6px;
  left: 12px;
  z-index: 3;
  width: 34%;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(2px);
}

.plate {
  position: relative;
  z-index: 1;
  width: 122%;
  height: 25px;
  margin-top: -3px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6e2ca, #c9a795 58%, #a5837b);
  box-shadow:
    0 18px 24px -8px rgba(0, 0, 0, 0.5),
    inset 0 3px 2px rgba(255, 255, 255, 0.6);
}

.plate::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 12%;
  left: 12%;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(1px);
}

.cake-sparkles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.cake-sparkles i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.2s ease-in-out infinite alternate;
}

.cake-sparkles i:nth-child(1) { top: 17%; left: 13%; width: 10px; height: 10px; }
.cake-sparkles i:nth-child(2) { top: 29%; right: 12%; animation-delay: -1.1s; }
.cake-sparkles i:nth-child(3) { bottom: 28%; left: 7%; width: 6px; height: 6px; animation-delay: -2s; }
.cake-sparkles i:nth-child(4) { top: 9%; right: 28%; width: 5px; height: 5px; animation-delay: -0.6s; }
.cake-sparkles i:nth-child(5) { bottom: 20%; right: 9%; width: 7px; height: 7px; animation-delay: -1.7s; }

.cake-caption {
  position: absolute;
  right: 2%;
  bottom: 15%;
  color: rgba(251, 244, 232, 0.28);
  font-size: 0.52rem;
  letter-spacing: 0.36em;
  writing-mode: vertical-rl;
}

.cake-stage.is-wished .cake {
  animation: cake-celebrate 0.9s var(--ease-out);
}

@keyframes cake-celebrate {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-12px) scale(1.025); }
  65% { transform: translateY(2px) scale(0.995); }
  100% { transform: translateY(0) scale(1); }
}

/* =========================================================
   Memories
   ========================================================= */

.memories {
  background:
    radial-gradient(ellipse 40% 50% at 88% 14%, rgba(255, 177, 140, 0.18), transparent 72%),
    var(--paper-deep);
}

.memories::before {
  content: "FRAGMENTS";
  position: absolute;
  top: 4%;
  right: -3%;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(8rem, 19vw, 19rem);
  line-height: 1;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px rgba(70, 46, 46, 0.07);
  pointer-events: none;
  white-space: nowrap;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.memory {
  position: relative;
  padding: 12px 12px 23px;
  border: 1px solid rgba(55, 36, 40, 0.07);
  background: #fffdf8;
  box-shadow: 0 26px 55px -32px rgba(72, 45, 41, 0.55);
  rotate: var(--r);
  transition: transform 0.6s var(--ease), rotate 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.memory:hover {
  z-index: 2;
  transform: translateY(-10px);
  rotate: 0deg;
  box-shadow: 0 40px 65px -32px rgba(72, 45, 41, 0.5);
}

.memory:nth-child(2) {
  margin-top: 52px;
}

.memory:nth-child(3) {
  margin-top: 16px;
}

.memory__tape {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 26px;
  background: rgba(230, 196, 144, 0.62);
  box-shadow: 0 2px 4px rgba(79, 54, 37, 0.1);
  clip-path: polygon(2% 4%, 99% 0, 97% 96%, 1% 100%);
  transform: translateX(-50%) rotate(-2deg);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.memory__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d8c6b6;
}

.memory__photo svg {
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--ease-out);
}

.memory__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.memory:hover .memory__photo svg,
.memory:hover .memory__photo img {
  transform: scale(1.045);
}

.memory figcaption {
  padding: 17px 9px 0;
}

.memory__date {
  display: block;
  margin-bottom: 5px;
  color: #a18a83;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.memory figcaption strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.memory figcaption p {
  margin-top: 7px;
  color: #85726f;
  font-family: var(--font-cn);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.8;
}

/* =========================================================
   Wish wall
   ========================================================= */

.wall {
  background:
    radial-gradient(ellipse 50% 42% at 8% 0%, rgba(255, 177, 140, 0.2), transparent 70%),
    radial-gradient(ellipse 38% 44% at 96% 82%, rgba(191, 169, 255, 0.12), transparent 74%),
    var(--paper);
}

.wall::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(92, 64, 58, 0.18) 0.8px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.wall .section-head h2 em {
  color: var(--peach-deep);
}

.wish-form {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  gap: 0;
  align-items: center;
  max-width: 860px;
  margin: 0 auto clamp(38px, 5vw, 58px);
  padding: 9px;
  border: 1px solid rgba(55, 36, 40, 0.09);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 25px 55px -35px rgba(70, 45, 37, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.wish-form input {
  min-width: 0;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
}

.wish-form input::placeholder {
  color: #a79591;
}

.wish-form input:first-of-type {
  border-right: 1px solid rgba(55, 36, 40, 0.11);
}

.wish-form input:focus-visible {
  outline: none;
  background: rgba(233, 189, 126, 0.09);
  border-radius: 999px;
}

.wish-form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.wish-form button span {
  color: var(--gold);
  font-size: 0.72rem;
}

.wish-form button:hover {
  background: #2a2038;
  transform: translateY(-2px);
}

.notes {
  columns: 3;
  column-gap: 22px;
}

.note {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  padding: 25px 24px 20px;
  border: 1px solid rgba(73, 49, 49, 0.05);
  border-radius: 3px 14px 14px;
  background: var(--note-bg, #ffe2d2);
  box-shadow: 0 18px 40px -28px rgba(77, 50, 45, 0.5);
  rotate: var(--rot, -1deg);
  break-inside: avoid;
  transition: transform 0.45s var(--ease), rotate 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 58px;
  height: 18px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: translateX(-50%) rotate(-2deg);
}

.note:hover {
  z-index: 2;
  transform: translateY(-5px);
  rotate: 0deg;
  box-shadow: 0 26px 50px -28px rgba(77, 50, 45, 0.45);
}

.note--new {
  animation: note-in 0.7s var(--ease-out);
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.note__text {
  color: #392d38;
  font-family: var(--font-cn);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note__author {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: rgba(65, 44, 49, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.note__author::before {
  content: "✦";
  color: rgba(148, 78, 77, 0.55);
  font-size: 0.5rem;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 60% at 50% 0%, rgba(255, 160, 126, 0.1), transparent 72%),
    var(--night);
  color: var(--cream);
}

.marquee {
  overflow: hidden;
  padding: 30px 0 24px;
  border-top: 1px solid rgba(251, 244, 232, 0.09);
  border-bottom: 1px solid rgba(251, 244, 232, 0.09);
}

.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.marquee__item i {
  color: var(--gold);
  font-size: 0.36em;
  font-style: normal;
  letter-spacing: 0;
}

.marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(251, 244, 232, 0.55);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(45px, 6vw, 70px) 0 38px;
}

.footer__love {
  font-family: var(--font-cn);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: 0.06em;
}

.footer__love span {
  color: var(--gold);
}

.footer__sub {
  max-width: 480px;
  margin-top: 9px;
  color: rgba(251, 244, 232, 0.4);
  font-size: 0.76rem;
  line-height: 1.9;
}

.footer__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 26px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.footer__actions button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(251, 244, 232, 0.22);
  background: none;
  color: rgba(251, 244, 232, 0.7);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer__actions a {
  color: rgba(251, 244, 232, 0.7);
  border-bottom: 1px solid rgba(251, 244, 232, 0.22);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer__actions button:hover,
.footer__actions a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.footer__actions span {
  font-size: 0.65rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(251, 244, 232, 0.08);
  color: rgba(251, 244, 232, 0.28);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 120;
  max-width: calc(100vw - 40px);
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(251, 244, 232, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

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

/* =========================================================
   Responsive
   ========================================================= */

@media (max-height: 920px) and (min-width: 721px) {
  .hero {
    padding-top: clamp(102px, 12vh, 132px);
    padding-bottom: clamp(18px, 2.6vh, 28px);
  }

  .hero__title {
    font-size: clamp(3.7rem, min(14vw, 20vh), 12rem);
  }

  .hero__name {
    margin-top: 18px;
  }

  .hero__tagline {
    margin-top: 8px;
  }

  .countdown-wrap {
    margin-top: 24px;
  }

  .hero__actions {
    margin-top: 26px;
  }
}

@media (max-height: 740px) and (min-width: 721px) {
  .hero {
    padding-top: clamp(88px, 10vh, 104px);
    padding-bottom: 20px;
  }

  .hero__title {
    font-size: clamp(3.4rem, min(12.8vw, 18vh), 10rem);
  }

  .hero__name {
    margin-top: 12px;
  }

  .hero__tagline {
    margin-top: 4px;
    line-height: 1.8;
  }

  .countdown-wrap {
    margin-top: 16px;
  }

  .hero__actions {
    margin-top: 18px;
  }

  .countdown {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}

@media (max-width: 1120px) {
  .hero__stamp {
    display: none;
  }
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }

  .letter-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
  }

  .section-head {
    grid-template-columns: 1fr minmax(200px, 290px);
    gap: 18px 36px;
  }
}

@media (max-width: 900px) {
  .section-head,
  .section-head--split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head__note,
  .section-head--split .section-head__note {
    grid-column: 1;
    max-width: 520px;
    padding-bottom: 0;
    text-align: left;
  }

  .section-head--split > div {
    grid-column: 1;
  }

  .letter-grid,
  .wish-grid {
    grid-template-columns: 1fr;
  }

  .ticket-wrap {
    max-width: 380px;
  }

  .letter-card {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }

  .wish-grid {
    gap: 20px;
  }

  .wish-copy {
    text-align: center;
  }

  .wish-copy .section-head__meta {
    justify-content: center;
  }

  .wish-copy__text {
    margin-right: auto;
    margin-left: auto;
  }

  .br-mobile {
    display: block;
  }

  .cake-stage {
    min-height: 500px;
  }

  .memory-grid {
    gap: 18px;
  }

  .memory figcaption p {
    display: none;
  }

  .notes {
    columns: 2;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 118px 20px 54px;
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 8.6vw, 2.55rem);
  }

  .hero__tagline {
    max-width: 320px;
  }

  .countdown__cell {
    min-width: 65px;
    padding: 0 10px;
  }

  .memory-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }

  .memory:nth-child(2),
  .memory:nth-child(3) {
    margin-top: 0;
  }

  .memory {
    rotate: var(--r);
  }

  .memory figcaption p {
    display: block;
  }

  .ticket {
    transform: rotate(-2deg);
  }

  .section-head__note br {
    display: none;
  }

  .cake-caption {
    display: none;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand {
    font-size: 0.74rem;
  }

  .brand__mark {
    width: 24px;
    height: 24px;
  }

  .music-btn {
    gap: 8px;
    padding: 8px 11px;
  }

  .music-label {
    font-size: 0.64rem;
  }

  .nav-share {
    width: 32px;
    height: 32px;
  }

  .hero__eyebrow {
    gap: 12px;
    font-size: 0.54rem;
    letter-spacing: 0.28em;
  }

  .hero__title {
    font-size: clamp(3.7rem, 17.5vw, 5.3rem);
  }

  .hero__name {
    gap: 12px;
    letter-spacing: 0.3em;
    padding-left: 0.3em;
  }

  .hero__tagline {
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .countdown {
    padding: 11px 4px;
  }

  .countdown__cell {
    min-width: 57px;
    padding: 0 7px;
  }

  .countdown__cell strong {
    font-size: 1.65rem;
  }

  .countdown__cell span {
    font-size: 0.52rem;
  }

  .btn {
    padding-left: 20px;
    font-size: 0.76rem;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .letter-card {
    padding: 27px 22px 32px 30px;
  }

  .letter-card::before {
    left: 15px;
  }

  .letter-card__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .letter-card__sign {
    align-items: flex-start;
  }

  .wish-form {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px;
    border-radius: 24px;
  }

  .wish-form input {
    padding: 10px 13px;
  }

  .wish-form input:first-of-type {
    border-right: 0;
    border-bottom: 1px solid rgba(55, 36, 40, 0.11);
    border-radius: 0;
  }

  .wish-form button {
    justify-content: center;
    margin-top: 4px;
    border-radius: 16px;
  }

  .notes {
    columns: 1;
  }

  .note {
    margin-bottom: 18px;
  }

  .cake-stage {
    min-height: 440px;
  }

  .footer__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .marquee {
    padding: 22px 0 18px;
  }
}

@media (max-width: 420px) {
  .countdown__cell {
    min-width: 50px;
    padding: 0 5px;
  }

  .countdown__cell strong {
    font-size: 1.48rem;
  }

  .hero__name {
    font-size: 1.35rem;
  }

  .letter-card {
    padding: 25px 18px 28px 27px;
  }

  .letter-card__sign {
    flex-direction: column;
  }

  .seal {
    align-self: flex-end;
  }

  .ticket {
    padding: 22px 22px 19px;
  }

  .ticket__divider {
    margin: 0 -22px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

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

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

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

  .hero__line > span {
    transform: none;
  }

  .hero__eyebrow,
  .hero__name,
  .hero__tagline,
  .countdown-wrap,
  .hero__actions,
  .hero__stamp {
    opacity: 1;
  }

  .orb,
  .orbit--inner,
  .cake-orbit,
  .shooting-star {
    animation: none;
  }
}
