/* ==========================================================================
   scarlett-site — styles
   Palette is fixed by the brief. Fonts are self-hosted (no third-party
   requests); if the woff2 files are absent, the fallback stacks below keep
   everything legible.
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Parisienne';
  src: url('/fonts/parisienne-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/fonts/caveat-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #2B1216;
  --burgundy: #4A0410;
  --burgundy-deep: #36030c;
  --crimson: #C1121F;
  --rose: #E36A78;
  --paper: #F7EFE2;
  --paper-dim: #efe4cf;
  --gold: #C9A227;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --script: 'Parisienne', 'Snell Roundhand', 'Brush Script MT', cursive;
  --hand: 'Caveat', 'Marker Felt', 'Comic Sans MS', cursive;
  --mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Roboto Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* The display rules below (.screen/.modal { display:flex }) would otherwise
   override the UA's non-important [hidden] { display:none }. */
[hidden] { display: none !important; }

/* Tap-proofing: rapid tapping (the seal especially) must never select text,
   double-tap zoom, or pop the long-press callout. Pinch-zoom stays enabled. */
* { touch-action: manipulation; }
html { -webkit-tap-highlight-color: transparent; }
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* the words that are hers to keep or write stay selectable */
.paper-body, .wb-paper textarea, .op-msg-text, .pin-input {
  -webkit-user-select: text;
  user-select: text;
}

html { scroll-behavior: smooth; }

body {
  background: var(--burgundy);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.script { font-family: var(--script); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- full-viewport screens (lock, countdown) ---------- */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(193,18,31,.12), transparent 60%),
    var(--burgundy);
  z-index: 40;
  overflow: hidden;
  /* one viewport tall, no scrolling, iOS-safe */
  height: 100vh;
  height: 100dvh;
  text-align: center;
  padding: 24px;
}

/* ---------- lock screen ---------- */
.lock-inner { max-width: 340px; width: 100%; }

.lock-envelope { width: 180px; margin: 0 auto 22px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
.lock-env-svg { display: block; width: 100%; }

.lock-line {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--paper);
  margin-bottom: 28px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 8px;
  cursor: pointer;
}
.pin-dots .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(247,239,226,.5);
  transition: background .15s, border-color .15s, transform .15s;
}
.pin-dots .dot.filled { background: var(--gold); border-color: var(--gold); }

.pin-dots.shake { animation: shake .45s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.pin-input {
  position: absolute;
  opacity: 0.01;
  height: 1px; width: 1px;
  pointer-events: none;
}

.lock-error {
  min-height: 1.5em;
  font-size: .95rem;
  color: var(--rose);
  font-style: italic;
}

.lock-hint-link {
  margin-top: 18px;
  font-size: .85rem;
  color: rgba(247,239,226,.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lock-hint {
  margin-top: 10px;
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--gold);
}

/* ---------- countdown ---------- */
.cd-inner { width: 100%; max-width: 560px; }

.cd-grid {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 5vw, 36px);
  margin-bottom: 34px;
}
.cd-unit { display: flex; flex-direction: column; align-items: center; }
.cd-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  font-weight: 500;
  color: var(--paper);
  line-height: 1.1;
}
.cd-label {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(247,239,226,.5);
  margin-top: 6px;
}
.cd-copy {
  font-style: italic;
  color: rgba(247,239,226,.75);
  font-size: 1.05rem;
}
.cd-back {
  margin-top: 30px;
  font-size: .85rem;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cd-switch {
  margin-top: 30px;
  font-size: .8rem;
  color: rgba(247,239,226,.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cd-switch:hover { color: rgba(247,239,226,.75); }

/* ---------- shared section chrome ---------- */
main { position: relative; z-index: 1; }

section { padding: clamp(70px, 12vh, 130px) 22px; max-width: 720px; margin: 0 auto; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  color: var(--paper);
  text-align: center;
  margin-bottom: 44px;
}
.section-title::after {
  content: '';
  display: block;
  width: 54px; height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
  opacity: .7;
}

/* scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease-out, transform .55s ease-out;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4rem, 18vw, 9.5rem);
  color: var(--crimson);
  letter-spacing: .02em;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(193,18,31,.35);
}
.hero-name span {
  opacity: 0;
  display: inline-block;
  animation: letterIn .7s ease-out forwards;
}
@keyframes letterIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-sub {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  color: var(--rose);
  margin-top: 18px;
  opacity: 0;
  animation: letterIn .9s ease-out 1.4s forwards;
}
.scroll-cue {
  position: absolute;
  bottom: max(26px, env(safe-area-inset-bottom));
  color: var(--rose);
  animation: cuePulse 1.8s ease-in-out infinite;
  transition: opacity .5s;
}
.scroll-cue.gone { opacity: 0; pointer-events: none; }
@keyframes cuePulse {
  0%,100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(9px); opacity: .95; }
}

/* ---------- live counter ---------- */
.counter { text-align: center; }
.counter-label {
  font-family: var(--script);
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  color: var(--paper);
  margin-bottom: 30px;
}
.counter-grid {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(12px, 4.5vw, 30px);
  margin-bottom: 30px;
}
.c-unit { display: flex; flex-direction: column; align-items: center; }
.c-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: clamp(2rem, 8.5vw, 3.4rem);
  color: var(--paper);
  line-height: 1.15;
}
.c-secs .c-num { font-size: clamp(1.4rem, 6vw, 2.3rem); color: var(--gold); }
.c-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,239,226,.5);
  margin-top: 4px;
}
.counter-sub {
  font-size: .95rem;
  color: rgba(247,239,226,.65);
  margin-top: 6px;
}
.counter-sub .pin-icon { color: var(--gold); margin-right: 4px; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(201,162,39,.15));
}
.tl-entry { position: relative; margin-bottom: 46px; }
.tl-entry:last-child { margin-bottom: 0; }
.tl-entry::before {
  content: '';
  position: absolute;
  left: -30.5px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 3px rgba(193,18,31,.25);
}
.tl-date {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}
.tl-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--paper);
  margin: 4px 0 6px;
}
.tl-body { color: rgba(247,239,226,.75); font-size: 1rem; }

/* ---------- the letter ---------- */
.letter-section { text-align: center; }
.letter-sealed-copy {
  font-style: italic;
  color: rgba(247,239,226,.75);
  margin-bottom: 36px;
}
.envelope-wrap { display: flex; flex-direction: column; align-items: center; }
.envelope {
  position: relative;
  width: min(320px, 84vw);
  transform: rotate(-2.5deg);
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.5));
  transition: transform .3s;
}
.envelope.opened #envFlap { transform: translateY(-8px) scaleY(-.6); transform-origin: 50% 34px; transition: transform .8s ease; }
.env-svg { display: block; width: 100%; }

.envelope.jolt-1 { animation: jolt .18s ease; }
.envelope.jolt-2 { animation: jolt .18s ease; animation-name: joltMed; }
.envelope.jolt-3 { animation: joltBig .22s ease; }
@keyframes jolt {
  50% { transform: rotate(-2.5deg) translate(1.5px, -1px); }
}
@keyframes joltMed {
  30% { transform: rotate(-1.4deg) translate(-3px, 1.5px); }
  70% { transform: rotate(-3.4deg) translate(3px, -1.5px); }
}
@keyframes joltBig {
  25% { transform: rotate(-.5deg) translate(-5px, 2px); }
  55% { transform: rotate(-4.5deg) translate(5px, -3px); }
  80% { transform: rotate(-2deg) translate(-2px, 1px); }
}

.seal {
  position: absolute;
  left: 50%; top: 58%;
  width: 34%;
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.seal-svg { display: block; width: 100%; }
.seal:active #sealWax { transform: scale(.96); transform-origin: 50% 50%; }
#sealRing { transition: stroke-dashoffset .25s ease; }
.crack { transition: opacity .2s; }

.seal.shattered { pointer-events: none; }
.seal.shattered #sealWax { animation: shatter .55s ease-out forwards; }
@keyframes shatter {
  40% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
#sealWax { transform-origin: 50% 50%; }

.seal-tease {
  min-height: 1.6em;
  margin-top: 22px;
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--gold);
}
.reopen-letter {
  margin-top: 14px;
  font-style: italic;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- letter modal / paper ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,2,6,.78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 1.7rem;
  line-height: 1;
  color: rgba(43,18,22,.55);
  z-index: 2;
  padding: 6px 10px;
}

.paper {
  position: relative;
  width: min(560px, 100%);
  max-height: min(82vh, 82dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    repeating-linear-gradient(transparent, transparent 34px, rgba(43,18,22,.055) 34px, rgba(43,18,22,.055) 35px),
    radial-gradient(circle at 30% 20%, rgba(43,18,22,.03), transparent 55%),
    var(--paper);
  color: #3d2420;
  border-radius: 3px;
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  padding: clamp(28px, 6vw, 52px);
  animation: paperRise .6s ease-out;
  /* deckled edge */
  clip-path: polygon(0% 1%, 3% 0%, 12% .6%, 25% 0%, 38% .7%, 52% .1%, 66% .8%, 80% 0%, 92% .6%, 100% .2%,
                     100% 99%, 96% 100%, 84% 99.3%, 70% 100%, 55% 99.2%, 41% 100%, 27% 99.4%, 13% 100%, 4% 99.3%, 0% 100%);
}
@keyframes paperRise {
  from { opacity: 0; transform: translateY(46px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.paper-body { font-family: var(--hand); font-size: 1.35rem; line-height: 1.9; }
.paper-greeting {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--crimson);
  margin-bottom: 22px;
}
.paper-body p { margin-bottom: 20px; font-style: italic; }
.paper-signoff {
  font-family: var(--script);
  font-size: 1.7rem;
  margin-top: 30px;
  color: var(--crimson);
}
.paper-date {
  font-family: var(--mono);
  font-size: .8rem;
  color: rgba(43,18,22,.5);
  margin-top: 8px;
}

/* ---------- photographs ---------- */
.polaroids {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
.polaroid {
  background: var(--paper);
  padding: 10px 10px 14px;
  width: min(230px, 42vw);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper-dim);
}
.polaroid figcaption {
  font-family: var(--hand);
  color: var(--ink);
  font-size: 1.05rem;
  padding-top: 9px;
  line-height: 1.3;
}
.polaroid .p-date { display: block; font-size: .8rem; color: rgba(43,18,22,.55); }
@media (hover: hover) {
  .polaroid:hover { transform: rotate(0deg) translateY(-8px) scale(1.03) !important; box-shadow: 0 22px 44px rgba(0,0,0,.55); }
}

/* lightbox */
.lightbox .lb-figure {
  position: relative;
  max-width: min(92vw, 700px);
  text-align: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 72vh;
  max-height: 72dvh;
  border: 10px solid var(--paper);
  border-bottom-width: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  background: var(--paper-dim);
}
.lightbox figcaption { color: var(--paper); font-size: 1.4rem; margin-top: 12px; }
.lightbox .modal-close { color: var(--paper); top: -44px; right: 0; font-size: 2rem; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
  color: var(--paper);
  padding: 10px 14px;
  opacity: .8;
}
.lb-prev { left: -8px; }
.lb-next { right: -8px; }

/* ---------- reasons ---------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.reason-card {
  perspective: 800px;
  aspect-ratio: 5 / 4;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.reason-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s ease;
}
.reason-card.flipped .reason-inner { transform: rotateY(180deg); }
.reason-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.reason-front {
  background: linear-gradient(150deg, #5c0714, var(--burgundy-deep));
  border: 1px solid rgba(201,162,39,.35);
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold);
}
.reason-back {
  background: var(--paper);
  color: var(--ink);
  transform: rotateY(180deg);
  font-family: var(--hand);
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
}

/* ---------- future ---------- */
.future-list { list-style: none; max-width: 460px; margin: 0 auto; }
.future-list li { margin-bottom: 6px; }
.future-list label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 6px;
  cursor: pointer;
  font-size: 1.1rem;
  color: rgba(247,239,226,.85);
}
.future-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 21px; height: 21px;
  margin-top: 4px;
  border: 1.5px solid var(--gold);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.future-list input[type="checkbox"]:checked { background: var(--crimson); border-color: var(--crimson); }
.future-list input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: .85rem;
}
.future-list input[type="checkbox"]:checked + span { color: rgba(247,239,226,.5); }

/* ---------- write back ---------- */
.writeback { text-align: center; }
.wb-paper {
  background:
    repeating-linear-gradient(transparent, transparent 30px, rgba(43,18,22,.06) 30px, rgba(43,18,22,.06) 31px),
    var(--paper);
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
  padding: 20px;
  max-width: 520px;
  margin: 0 auto;
  transition: transform .6s ease-in, opacity .6s ease-in;
}
.wb-paper.flying {
  transform: translateY(-70vh) rotate(-7deg) scale(.25);
  opacity: 0;
}
.wb-paper textarea {
  width: 100%;
  background: transparent;
  border: none;
  resize: vertical;
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: 31px;
  color: var(--ink);
  min-height: 160px;
}
.wb-paper textarea:focus { outline: none; }
.wb-paper textarea::placeholder { color: rgba(43,18,22,.35); }
.wb-send {
  margin-top: 12px;
  background: var(--crimson);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 34px;
  border-radius: 999px;
  transition: background .2s, transform .15s;
}
.wb-send:hover { background: #a30f1a; }
.wb-send:active { transform: scale(.97); }
.wb-send:disabled { opacity: .55; cursor: default; }
.wb-status {
  min-height: 1.6em;
  margin-top: 18px;
  font-style: italic;
  color: var(--gold);
}
.wb-status.error { color: var(--rose); }

/* ---------- sign-off / footer ---------- */
.signoff {
  text-align: center;
  padding: 90px 22px 70px;
  position: relative;
}
.signoff .script { font-size: 1.7rem; color: var(--rose); }
.owner-heart {
  position: absolute;
  right: 18px; bottom: 14px;
  color: rgba(247,239,226,.28);
  padding: 8px;
}
.owner-heart:hover { color: var(--rose); }

/* ---------- owner panel ---------- */
.owner-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: min(84vh, 84dvh);
  overflow-y: auto;
  background: var(--burgundy-deep);
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 10px;
  padding: 28px 24px;
  color: var(--paper);
}
.owner-panel h2 { font-weight: 600; margin-bottom: 8px; }
.owner-panel .modal-close { color: rgba(247,239,226,.6); }
.op-meta { font-family: var(--mono); font-size: .8rem; color: var(--gold); margin-bottom: 14px; }
.op-preview {
  font-size: .9rem;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 22px;
}
.op-msg {
  background: rgba(247,239,226,.06);
  border-left: 3px solid var(--crimson);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.op-msg-text { white-space: pre-wrap; font-family: var(--hand); font-size: 1.15rem; }
.op-msg-at { font-family: var(--mono); font-size: .72rem; color: rgba(247,239,226,.5); margin-top: 8px; }
.op-empty { font-style: italic; color: rgba(247,239,226,.55); }

/* ---------- hearts & fx layers ---------- */
#heartsLayer, #fxLayer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#heartsLayer { z-index: 0; }
#fxLayer { z-index: 80; }

.amb-heart {
  position: absolute;
  bottom: -40px;
  color: var(--crimson);
  animation: floatUp linear forwards;
  will-change: transform;
}
@keyframes floatUp {
  from { transform: translateY(0) rotate(-6deg); }
  to { transform: translateY(calc(-100vh - 80px)) rotate(8deg); }
}

.tap-heart {
  position: absolute;
  color: var(--rose);
  animation: tapRise .9s ease-out forwards;
}
@keyframes tapRise {
  from { opacity: .9; transform: translate(-50%, -50%) scale(.5); }
  to { opacity: 0; transform: translate(-50%, calc(-50% - 70px)) scale(1.15); }
}

.petal {
  position: absolute;
  top: -30px;
  border-radius: 60% 0 60% 0;
  background: var(--rose);
  animation: petalFall ease-in forwards;
  will-change: transform;
}
@keyframes petalFall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to { transform: translateY(110vh) rotate(320deg); opacity: .5; }
}

/* ---------- transitions between screens ---------- */
.screen.fade-out { animation: screenOut .9s ease forwards; }
@keyframes screenOut {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: opacity .3s; transform: none; }
  .hero-name span, .hero-sub { animation-duration: .01s; animation-delay: 0s; }
  .scroll-cue, .amb-heart, .tap-heart, .petal { animation: none; display: none; }
  .envelope.jolt-1, .envelope.jolt-2, .envelope.jolt-3 { animation: none; }
  .pin-dots.shake { animation: none; }
  .paper { animation: none; }
  .wb-paper { transition: opacity .3s; }
  .wb-paper.flying { transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 400px) {
  body { font-size: 16.5px; }
  .polaroid { width: min(230px, 78vw); }
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
}
