:root {
  --ink: #1c0f12;
  --wine: #5a1d2c;
  --rose: #b06b76;
  --gold: #c4a574;
  --gold-soft: #e4d2b0;
  --leaf: #3f8f5a;
  --ivory: #f6f0e6;
  --paper: #fbf7f0;
  --line: rgba(196, 165, 116, 0.45);
  --shadow: 0 30px 80px rgba(28, 15, 18, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
  --hand: "Patrick Hand", "Segoe Print", "Comic Sans MS", sans-serif;
  --pen: #2c1a1f;
  --native: "Noto Serif Telugu", "Noto Serif Malayalam", Georgia, serif;
  --timer: "Azeret Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ivory);
  background: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
  -webkit-tap-highlight-color: rgba(196, 165, 116, 0.25);
}

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

code {
  font-size: 0.86em;
  color: var(--wine);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.is-locked {
  overflow: hidden;
}

body:not(.is-locked) .gate,
body:not(.is-locked) .welcome.is-gone {
  display: none;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.07;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--ink);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(63, 143, 90, 0.18), transparent 46%),
    var(--ink);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.welcome.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome img {
  width: min(320px, 78vw);
  height: min(320px, 78vw);
  max-height: none;
  object-fit: contain;
}

.welcome-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
}

.welcome.is-war {
  background:
    radial-gradient(ellipse at 50% 28%, rgba(176, 42, 36, 0.28), transparent 46%),
    var(--ink);
}

.scroll-rabbit {
  position: fixed;
  left: 0;
  bottom: 1.1rem;
  z-index: 28;
  width: 92px;
  height: 56px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.scroll-rabbit.is-running {
  opacity: 0.88;
}

.scroll-rabbit img,
.intro-rabbit {
  width: 92px;
  height: 56px;
  object-fit: contain;
  animation: rabbit-bob 0.32s ease-in-out infinite;
  filter: drop-shadow(0 6px 8px rgba(28, 15, 18, 0.18));
}

.intro-rabbit {
  position: absolute;
  bottom: 12%;
  left: -18%;
  width: 110px;
  height: 66px;
  animation: rabbit-dash 2.1s linear infinite;
}

.intro-native {
  font-family: var(--native);
  letter-spacing: 0;
  color: var(--gold);
  margin: 0.4rem 0 0;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  padding: max(2rem, env(safe-area-inset-top, 0px)) 1.25rem max(2rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(63, 143, 90, 0.16), transparent 42%),
    var(--ink);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.gate.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-logo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

.gate-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 500;
}

.gate-native {
  margin: 0;
  font-family: var(--native);
  color: var(--gold);
  letter-spacing: 0;
}

.who-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.who-btn,
.gate-form button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  padding: 0.85rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  cursor: pointer;
  min-height: 44px;
}

.who-btn span {
  display: block;
  font-family: var(--native);
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 0.2rem;
}

.who-btn.is-active {
  border-color: var(--leaf);
  box-shadow: 0 0 0 1px var(--leaf);
}

.gate-form {
  display: grid;
  gap: 0.7rem;
  width: min(320px, 86vw);
  margin-top: 0.4rem;
}

.gate-form[hidden] {
  display: none;
}

.gate-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  padding: 0.8rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
}

.gate-form button {
  background: var(--leaf);
  border-color: var(--leaf);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-size: 0.72rem;
}

.gate-error {
  margin: 0;
  color: var(--rose);
  font-size: 0.85rem;
}

.gate-form.is-shake {
  animation: shake 0.4s ease;
}

.intro-kicker,
.eyebrow {
  margin: 0;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
}

.intro-date,
.hero-date {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.intro-date {
  font-size: clamp(2.4rem, 8vw, 5rem);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px), 4vw) 0.85rem max(1rem, env(safe-area-inset-left, 0px), 4vw);
  color: var(--gold-soft);
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.nav.is-scrolled {
  color: var(--ink);
  background: rgba(246, 240, 230, 0.9);
  box-shadow: 0 10px 30px rgba(28, 15, 18, 0.06);
  backdrop-filter: blur(16px);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.nav-mark img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 0.35rem 0;
}

.hero,
.close {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(6.5rem + env(safe-area-inset-top, 0px)) 5vw calc(4.8rem + env(safe-area-inset-bottom, 0px));
  position: relative;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(90, 29, 44, 0.55), transparent 48%),
    radial-gradient(ellipse at 80% 90%, rgba(196, 165, 116, 0.12), transparent 42%),
    linear-gradient(180deg, #14090c, #1c0f12 55%, #2a1218);
}

.hero-inner {
  max-width: 960px;
  width: 100%;
}

.hero-ornament {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid var(--line);
}

.hero-ornament-tl {
  top: 5.5rem;
  left: 6vw;
  border-right: 0;
  border-bottom: 0;
}

.hero-ornament-br {
  right: 6vw;
  bottom: 3.5rem;
  border-left: 0;
  border-top: 0;
}

.hero-date,
.close-date {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.28rem, 1.8vw, 0.75rem);
  font-size: clamp(2.35rem, 11vw, 8.5rem);
  line-height: 0.9;
}

.hero-date i,
.close-date i {
  width: clamp(0.32rem, 1.2vw, 0.55rem);
  height: clamp(0.32rem, 1.2vw, 0.55rem);
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  flex-shrink: 0;
}

.hero-names,
.close-script {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  margin: 1.1rem 0 0.2rem;
  color: var(--gold-soft);
}

.hero-names:empty {
  display: none;
}

.hero-scripts {
  font-family: var(--native);
  letter-spacing: 0;
  color: var(--gold);
  margin: 0.55rem auto 0;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
}

.hero-between:empty {
  display: none;
}

.hero-tagline,
.lede,
.hero-long,
.hero-between,
.next-note,
.close-domain {
  max-width: 38rem;
  margin: 0.75rem auto 0;
  color: rgba(246, 240, 230, 0.78);
}

.hero-long,
.hero-between {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.hero-between {
  margin-top: 0.35rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.scroll-cue b {
  width: 1px;
  height: 2.4rem;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}

.together,
.story,
.memories,
.letter-wrap,
.feedback {
  padding: 6.5rem 6vw;
  scroll-margin-top: calc(5rem + env(safe-area-inset-top, 0px));
}

.memories {
  overflow-x: hidden;
}

.together {
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.story,
.memories {
  background: var(--ivory);
  color: var(--ink);
}

.together .eyebrow,
.story .eyebrow,
.memories .eyebrow {
  color: var(--wine);
}

.together h2,
.story h2,
.memories h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 500;
  margin: 0.55rem 0 0;
  letter-spacing: 0.02em;
}

.together .lede,
.memories .lede {
  color: rgba(28, 15, 18, 0.68);
  max-width: 38rem;
  padding: 0 0.2rem;
}

.counters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 1080px;
  width: 100%;
  margin: 2.8rem auto 0;
}

.counter {
  min-width: 0;
  padding: 1.35rem 0.4rem 1.1rem;
  border: 1px solid rgba(90, 29, 44, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.counter strong {
  display: block;
  font-family: var(--timer);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.counter span {
  display: block;
  margin-top: 0.45rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: var(--wine);
}

.next-note {
  color: var(--wine);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}

.timeline {
  list-style: none;
  margin: 3.5rem auto 0;
  padding: 0;
  max-width: 720px;
  border-left: 1px solid var(--line);
}

.timeline li {
  padding: 0 0 2.8rem 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--wine);
}

.timeline li:nth-child(2) {
  animation-delay: 0.12s;
}
.timeline li:nth-child(3) {
  animation-delay: 0.24s;
}
.timeline li:nth-child(4) {
  animation-delay: 0.36s;
}
.timeline li:nth-child(5) {
  animation-delay: 0.48s;
}
.timeline li:nth-child(6) {
  animation-delay: 0.6s;
}

.kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.timeline h3,
.polaroid figcaption {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0.25rem 0 0.4rem;
}

.timeline p {
  margin: 0;
  color: rgba(28, 15, 18, 0.72);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.7rem, 2.2vw, 1.6rem);
  margin: 2.8rem auto 0;
  max-width: 52rem;
  width: 100%;
}

.gallery-break {
  margin-top: 4.2rem;
}

.polaroid {
  margin: 0;
  min-width: 0;
  background: white;
  padding: 0.85rem 0.85rem 1.15rem;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, -1.5deg));
}

.polaroid:nth-child(even) {
  --tilt: 1.8deg;
}

.polaroid.is-wide {
  grid-column: 1 / -1;
  max-width: 36rem;
  justify-self: center;
  width: 100%;
}

.polaroid.is-wide .frame {
  aspect-ratio: 5 / 3;
}

.polaroid .frame {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(180deg, rgba(90, 29, 44, 0.08), rgba(196, 165, 116, 0.22)),
    repeating-linear-gradient(
      135deg,
      #efe4d4 0 12px,
      #e8d8c2 12px 24px
    );
  display: grid;
  place-items: center;
  overflow: hidden;
}

.polaroid img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.frame-fallback {
  text-align: center;
  padding: 1rem;
  color: var(--wine);
}

.frame-fallback span {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: 0.18em;
}

.frame-fallback em {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  opacity: 0.75;
}

.polaroid figcaption {
  text-align: center;
  font-size: 1.35rem;
  margin-top: 0.7rem;
}

.letter-wrap {
  background:
    radial-gradient(circle at 50% 0, rgba(196, 165, 116, 0.18), transparent 48%),
    var(--ink);
  text-align: center;
}

.letter-wrap .eyebrow {
  margin-bottom: 1.6rem;
}

.letter {
  --paper-noise: 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='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='0.35'/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  color: var(--pen);
  text-align: left;
  padding: clamp(2rem, 6vw, 3.6rem) clamp(1.4rem, 5vw, 3.4rem) clamp(2.4rem, 6vw, 4rem);
  box-shadow:
    0 24px 50px rgba(28, 15, 18, 0.28),
    inset 0 0 80px rgba(150, 112, 70, 0.16);
  transform: rotate(-0.35deg);
  background-color: #f1e6cc;
  background-image:
    var(--paper-noise),
    var(--paper-mottle),
    linear-gradient(165deg, #f8f1e0 0%, #ead8b6 100%);
  background-blend-mode: overlay, multiply, normal;
}

.letter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: var(--paper-noise);
  background-size: 140px 140px;
}

.letter p,
.letter-title {
  position: relative;
  z-index: 1;
  font-family: var(--hand);
  font-weight: 400;
  font-style: normal;
  color: var(--pen);
  letter-spacing: 0.02em;
}

.letter p {
  margin: 0 0 1.15rem;
  font-size: clamp(1.28rem, 3.4vw, 1.62rem);
  line-height: 1.72;
}

.letter-greeting {
  font-size: clamp(1.5rem, 3.8vw, 1.85rem) !important;
  margin-bottom: 0.45rem !important;
}

.letter-title {
  font-size: clamp(1.75rem, 4.4vw, 2.2rem);
  margin: 0 0 1.5rem;
}

.letter-signoff {
  margin: 1.8rem 0 0.2rem !important;
}

.letter-signature {
  font-family: var(--hand) !important;
  font-size: clamp(1.55rem, 4vw, 1.95rem) !important;
  color: var(--pen);
  margin: 0 !important;
  line-height: 1.6;
}

.close-love {
  max-width: 28rem;
  margin: 1rem auto 0;
  font-family: var(--sans);
  letter-spacing: clamp(0.16em, 3.4vw, 0.42em);
  text-transform: uppercase;
  font-size: clamp(0.68rem, 3.2vw, 0.82rem);
  color: var(--gold);
  padding: 0 0.75rem;
}

.close-domain {
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}

.feedback {
  padding: 5.5rem 5vw calc(6.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0, rgba(90, 29, 44, 0.42), transparent 52%),
    linear-gradient(180deg, #2a1218, #14090c);
}

.feedback h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0.35rem 0 0;
}

.feedback-arena {
  position: relative;
  max-width: 36rem;
  min-height: 18rem;
  margin: 2.4rem auto 0;
  overflow: hidden;
}

.feedback-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  padding: 0.9rem 1.55rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}

.feedback-yes {
  position: absolute;
  right: 50%;
  top: 1.15rem;
  margin-right: 0.55rem;
  z-index: 2;
  background: var(--leaf);
  border-color: var(--leaf);
}

.feedback-yes:disabled {
  opacity: 1;
  cursor: default;
}

.feedback-no {
  position: absolute;
  left: 50%;
  top: 1.15rem;
  margin-left: 0.55rem;
  z-index: 3;
  touch-action: none;
  user-select: none;
}

.feedback-no.is-loose {
  margin-left: 0;
  transition: left 0.16s ease, top 0.16s ease;
}

.feedback-thanks {
  font-family: var(--script);
  font-size: clamp(1.6rem, 6vw, 3rem);
  color: var(--gold-soft);
  margin: 0.4rem auto 0;
  max-width: 22rem;
  padding: 0 1rem;
  line-height: 1.25;
}

.feedback-thanks[hidden] {
  display: none;
}

.feedback.is-answered .feedback-arena {
  min-height: 5.5rem;
}

.audio-btn {
  position: fixed;
  right: max(1.2rem, env(safe-area-inset-right, 0px));
  bottom: max(1.2rem, env(safe-area-inset-bottom, 0px));
  z-index: 35;
  border: 1px solid var(--gold);
  background: rgba(28, 15, 18, 0.72);
  color: var(--gold-soft);
  padding: 0.7rem 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  cursor: pointer;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1.15);
    opacity: 1;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rabbit-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes rabbit-dash {
  0% {
    left: -18%;
    transform: scaleX(1);
  }
  49% {
    left: 92%;
    transform: scaleX(1);
  }
  50% {
    left: 92%;
    transform: scaleX(-1);
  }
  100% {
    left: -18%;
    transform: scaleX(-1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-7px);
  }
  75% {
    transform: translateX(7px);
  }
}

@media (max-width: 800px) {
  .nav-links {
    gap: 0.2rem 0.7rem;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .who-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .counters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .counter {
    padding: 1rem 0.2rem 0.85rem;
  }

  .counter span {
    letter-spacing: 0.1em;
    font-size: 0.58rem;
  }

  .hero-ornament {
    display: none;
  }

  .together,
  .story,
  .memories,
  .letter-wrap {
    padding: 4.4rem 5vw;
  }

  .timeline {
    margin-top: 2.4rem;
  }

  .timeline li {
    padding: 0 0 2.1rem 1.4rem;
  }

  .polaroid figcaption {
    font-size: 1.15rem;
  }
}

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

  .nav-links a {
    padding: 0.45rem 0.15rem;
  }

  .feedback-arena {
    min-height: 20rem;
    max-width: 100%;
  }

  .feedback-yes {
    left: 50%;
    right: auto;
    margin-right: 0;
    transform: translateX(-50%);
  }

  .feedback-no {
    left: 50%;
    top: 4.8rem;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .feedback-no.is-loose {
    transform: none;
  }

  .feedback-btn {
    padding: 0.85rem 1.15rem;
    font-size: 1.05rem;
  }

  .hero-names,
  .close-script {
    font-size: clamp(1.85rem, 8vw, 3.2rem);
  }
}

@media (max-width: 520px) {
  .together,
  .story,
  .memories,
  .letter-wrap,
  .feedback {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .gallery {
    gap: 0.65rem;
  }

  .polaroid {
    padding: 0.5rem 0.5rem 0.7rem;
    transform: rotate(var(--tilt, -0.7deg));
  }

  .polaroid:nth-child(even) {
    --tilt: 0.8deg;
  }

  .polaroid figcaption {
    font-size: 0.98rem;
    margin-top: 0.4rem;
  }

  .eyebrow {
    letter-spacing: 0.28em;
    font-size: 0.62rem;
  }

  .scroll-cue {
    bottom: 1.3rem;
  }
}

@media (max-height: 700px) {
  .hero,
  .close {
    min-height: 100svh;
    padding-top: 5.5rem;
    padding-bottom: 4.2rem;
  }
}

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

  .intro,
  .timeline li,
  .scroll-cue b,
  .intro-rabbit,
  .scroll-rabbit img,
  .gate-form {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .scroll-rabbit {
    display: none;
  }
}
