:root {
  --ink: #201618;
  --ink-soft: #5f4d4d;
  --cream: #f2ede7;
  --paper: #e9e0d8;
  --rose: #c99389;
  --rose-deep: #a76563;
  --gold: #d5b477;
  --line: rgba(32, 22, 24, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
body::selection { background: var(--rose); color: var(--cream); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
body:has(.letter-section) .sound-toggle { transition: color .3s ease; }
#anniversary-audio { display: none; }


.ambient-canvas, .grain { position: fixed; inset: 0; pointer-events: none; }
.ambient-canvas { z-index: -3; opacity: .72; contain: strict; }
.grain {
  z-index: 20;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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='.75'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.cursor-glow {
  position: fixed; z-index: 19; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; will-change: left, top, opacity;
  background: radial-gradient(circle, rgba(201,147,137,.19), transparent 65%); transform: translate3d(var(--glow-x, 0px), var(--glow-y, 0px), 0) translate(-50%, -50%);
  transition: opacity .3s ease; opacity: 0; will-change: transform, opacity;
}
.site-header {
  position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 30px clamp(24px, 5vw, 78px); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s ease, box-shadow .35s ease;
}
/* Once the reader scrolls, the header gets a soft frosted bar so it stays readable
   over the darker sections and always visible while browsing. */
body.is-scrolled .site-header {
  background: rgba(242, 237, 231, .86);
  box-shadow: 0 1px 0 rgba(32, 22, 24, .08);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}
.wordmark { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
.wordmark-mark { color: var(--rose-deep); font-family: var(--serif); font-size: 27px; line-height: 0; margin-top: -4px; }
.desktop-nav { display: flex; gap: clamp(20px, 3vw, 48px); color: var(--ink-soft); }
.desktop-nav a { position: relative; transition: color .25s ease; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--rose-deep); transition: right .35s var(--ease); }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { right: 0; }
.sound-toggle { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 13px; }
.sound-bars i { display: block; width: 1px; height: 7px; background: var(--ink); transition: height .25s ease; }
.sound-bars i:nth-child(2) { height: 11px; } .sound-bars i:nth-child(3) { height: 5px; } .sound-bars i:nth-child(4) { height: 9px; }
.sound-toggle:hover .sound-bars i, .sound-toggle[aria-pressed="true"] .sound-bars i { animation: sound-wave .8s ease-in-out infinite alternate; }
.sound-toggle:hover .sound-bars i:nth-child(2), .sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.2s; }
.sound-toggle:hover .sound-bars i:nth-child(3), .sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.5s; }
@keyframes sound-wave { to { height: 13px; } }
.section-shell { position: relative; min-height: 100vh; padding: clamp(110px, 15vh, 180px) clamp(24px, 10vw, 160px); scroll-margin-top: 92px; }
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(280px, .9fr) minmax(370px, 1fr); align-items: center; gap: 6vw; padding-top: 130px; background: radial-gradient(ellipse at 75% 35%, rgba(212,184,160,.68) 0%, transparent 42%), var(--cream); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background: linear-gradient(110deg, transparent 0 54%, rgba(201,147,137,.2) 54% 55%, transparent 55%); pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 25px; color: var(--rose-deep); font-size: 10px; letter-spacing: .22em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-line { width: 34px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 650px; margin-bottom: 28px; font-size: clamp(72px, 10vw, 154px); line-height: .78; }
h1 em, h2 em { color: var(--rose-deep); font-style: italic; font-weight: 400; }
.hero-intro { max-width: 410px; margin-bottom: 38px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; padding: 0 18px 0 21px; border: 1px solid var(--ink); cursor: pointer; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; transition: color .3s ease, background .3s ease, transform .3s var(--ease); }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: var(--cream); }
.button-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.button-outline { background: transparent; }
.button-outline:hover { background: var(--cream); color: var(--ink); }
.button-arrow { font-size: 18px; font-family: var(--serif); line-height: 0; }
.hero-art { position: relative; min-height: min(640px, 70vw); display: grid; place-items: center; }
.photo-frame { position: relative; z-index: 2; width: min(31vw, 430px); min-width: 280px; padding: 13px 13px 48px; background: #faf7f2; box-shadow: 0 28px 55px rgba(72,45,40,.17); }
.photo-image { position: relative; overflow: hidden; background-position: center; background-size: contain; background-repeat: no-repeat; background-color: #ded0c5; }
.photo-image::after, .memory-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(241,212,188,.42), transparent 38%, rgba(86,42,41,.3)); mix-blend-mode: soft-light; }
.photo-hero { aspect-ratio: .88; background-image: url("photos/wedding/0.jpg"); }
.photo-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; color: #725b53; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.orbit { position: absolute; border: 1px solid rgba(167,101,99,.4); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: min(43vw, 590px); height: min(28vw, 390px); }
.orbit-two { width: min(48vw, 650px); height: min(23vw, 320px); transform: rotate(35deg); border-color: rgba(213,180,119,.6); }
.hero-stamp { position: absolute; z-index: 3; right: 4%; bottom: 13%; display: grid; width: 91px; height: 91px; place-items: center; border: 1px solid var(--rose-deep); border-radius: 50%; color: var(--rose-deep); transform: rotate(12deg); text-align: center; }
.hero-stamp span { position: absolute; top: 10px; font-family: var(--serif); font-size: 38px; line-height: 1; }
.hero-stamp small { margin-top: 38px; font-size: 8px; letter-spacing: .11em; line-height: 1.25; text-transform: uppercase; }
.scribble { color: var(--rose-deep); font-family: var(--serif); }
.scribble-heart { position: absolute; top: 9%; left: 8%; font-size: 54px; transform: rotate(-20deg); }
.scroll-cue { position: absolute; bottom: 33px; left: clamp(24px, 10vw, 160px); display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 52px; height: 1px; position: relative; background: var(--ink-soft); }
.scroll-cue i::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.section-number { position: absolute; top: 54px; right: clamp(24px, 10vw, 160px); color: var(--rose-deep); font-size: 10px; letter-spacing: .2em; }
.section-number span { color: var(--ink-soft); opacity: .7; }
.intro-section { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); align-content: center; column-gap: clamp(54px, 8vw, 118px); min-height: 75vh; background: var(--paper); isolation: isolate; }
.intro-section::before { content: ""; position: absolute; top: 18%; left: 10%; width: 1px; height: 64%; background: linear-gradient(transparent, rgba(167,101,99,.28), transparent); }
.intro-section::after { content: ""; position: absolute; right: -7%; bottom: -28%; width: 50vw; height: 50vw; border: 1px solid rgba(167,101,99,.22); border-radius: 50%; pointer-events: none; z-index: 0; }
.split-heading, .intro-body { position: relative; z-index: 1; min-width: 0; }
.split-heading h2, .section-heading h2 { max-width: 680px; margin-bottom: 0; font-size: clamp(70px, 9.5vw, 145px); line-height: .78; }
.intro-body { padding: 22px 0 8px clamp(22px, 3vw, 46px); border-left: 1px solid rgba(167,101,99,.28); }
.intro-body-label { margin-bottom: 20px; color: var(--rose-deep); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.large-copy { max-width: 410px; margin-bottom: 34px; color: var(--ink-soft); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.55; }
.handwritten { margin: 0 0 34px; color: var(--rose-deep); font-family: var(--serif); font-size: clamp(28px, 2.5vw, 39px); font-style: italic; line-height: .92; transform: rotate(-5deg); transform-origin: left center; }
.handwritten em { color: var(--ink); font-weight: 400; }
.intro-body::after { content: ""; display: block; width: 58px; height: 1px; margin-top: 3px; background: var(--rose-deep); opacity: .55; }
.slideshow-section { min-height: 100vh; background: var(--ink); color: var(--cream); overflow: hidden; }
.slideshow-section::before { content: ""; position: absolute; top: 15%; right: -16%; width: 58vw; height: 58vw; border: 1px solid rgba(213,180,119,.25); border-radius: 50%; }
.slideshow-section .section-number { color: var(--gold); }
.slideshow-heading { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.slideshow-heading .eyebrow { color: var(--gold); }
.slideshow-heading h2 { margin: 0; font-size: clamp(72px, 9.5vw, 145px); line-height: .78; }
.slideshow-heading h2 em { color: var(--rose); }
.slideshow-heading .section-description { color: rgba(242,237,231,.65); }
.slideshow-shell { position: relative; z-index: 1; width: min(1040px, 100%); margin: 0 auto; }
.slideshow-stage { position: relative; min-height: min(62vw, 620px); overflow: hidden; isolation: isolate; background: #38262a; outline: none; touch-action: pan-y; }
.slideshow-stage:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.slide-layer { position: absolute; inset: 0; opacity: 0; background-position: center; background-size: cover; transform: scale(1.07); transition: opacity 1.25s ease, transform 8s var(--ease); }
.slide-layer.is-active { opacity: 1; transform: scale(1); }
.slide-vignette { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(24,13,16,.78), transparent 65%), linear-gradient(0deg, rgba(24,13,16,.68), transparent 42%); pointer-events: none; }
.slide-meta { position: absolute; z-index: 2; left: clamp(24px, 5vw, 67px); bottom: clamp(28px, 5vw, 63px); max-width: 420px; }
.slide-kicker { display: block; margin-bottom: 15px; color: var(--gold); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.slide-title { margin: 0 0 9px; color: var(--cream); font-family: var(--serif); font-size: clamp(47px, 6vw, 86px); font-style: italic; font-weight: 400; letter-spacing: -.04em; line-height: .8; }
.slide-detail { margin: 0; color: rgba(242,237,231,.75); font-size: 12px; letter-spacing: .05em; }
.slide-counter { position: absolute; z-index: 2; top: 28px; right: 30px; color: var(--cream); font-size: 10px; letter-spacing: .18em; }
.slideshow-controls { display: flex; align-items: center; gap: 13px; padding-top: 18px; }
.slide-control, .slide-play { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(242,237,231,.35); background: transparent; color: var(--cream); cursor: pointer; transition: background .3s ease, border-color .3s ease, transform .3s var(--ease); }
.slide-control:hover, .slide-play:hover { border-color: var(--gold); background: rgba(213,180,119,.15); transform: translateY(-2px); }
.slide-play { gap: 9px; padding: 0 14px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.play-icon { font-family: var(--sans); font-size: 12px; }
.slide-progress { width: clamp(80px, 15vw, 210px); height: 1px; margin-left: 10px; background: rgba(242,237,231,.25); }
.slide-progress span { display: block; width: 10%; height: 100%; background: var(--gold); transition: width .6s var(--ease); }
.slide-thumbnails { display: flex; gap: 7px; margin-left: auto; }
.slide-thumbnail { width: 42px; height: 42px; border: 1px solid rgba(242,237,231,.3); background-position: center; background-size: cover; cursor: pointer; opacity: .5; transition: opacity .3s ease, transform .3s var(--ease), border-color .3s ease; }
.slide-thumbnail:hover, .slide-thumbnail.is-active { border-color: var(--gold); opacity: 1; transform: translateY(-3px); }
.slideshow-tools { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 28px auto 0; width: min(1040px, 100%); }
.file-picker { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border: 1px solid rgba(242,237,231,.32); color: var(--cream); cursor: pointer; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; transition: background .3s ease, border-color .3s ease; }
.file-picker:hover, .file-picker:focus-within, .file-picker.is-needed { border-color: var(--gold); background: rgba(213,180,119,.12); outline: 2px solid rgba(213,180,119,.7); outline-offset: 4px; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-note { color: rgba(242,237,231,.48); font-size: 10px; letter-spacing: .04em; }
.upload-note code { color: var(--gold); font-family: var(--sans); }
.memory-atlas { min-height: auto; background: #d8cbc2; overflow: hidden; }
.atlas-heading { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); align-items: end; gap: 7vw; margin-bottom: 58px; }
.atlas-heading h2 { margin: 0; color: var(--ink); font-size: clamp(70px, 9.5vw, 145px); line-height: .78; }
.atlas-heading h2 em { color: var(--rose-deep); }
.atlas-intro { max-width: 340px; margin: 0 0 5px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.memory-atlas-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 1180px; margin: 0 auto; }
.atlas-card { position: relative; min-width: 0; aspect-ratio: .78; overflow: hidden; border: 1px solid rgba(32,22,24,.12); background: #c9b9ae; cursor: pointer; isolation: isolate; }
.atlas-card::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 43%, rgba(25,14,16,.78)); pointer-events: none; }
.atlas-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; background: #bca99e; transition: filter .6s ease; }
.atlas-card:hover .atlas-card-image, .atlas-card:focus-visible .atlas-card-image { filter: saturate(1.08); }
.atlas-card-meta { position: absolute; z-index: 2; right: 10px; bottom: 10px; left: 10px; color: #fff8f2; }
.atlas-card-meta strong { display: block; overflow: hidden; font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 400; line-height: .92; text-overflow: ellipsis; white-space: nowrap; }
.atlas-card-meta span { display: block; margin-top: 7px; color: rgba(255,248,242,.68); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; }
.atlas-card[data-group="wedding"] { border-color: rgba(167,101,99,.35); }
.atlas-card[data-group="between the moments"] { border-color: rgba(213,180,119,.35); }
.atlas-card[data-group="with our kids"] { border-color: rgba(83,110,92,.35); }.atlas-card.is-missing { background: linear-gradient(135deg, #8a716a, #3b292d); }.atlas-card.is-missing::before { content: "memory unavailable"; position: absolute; z-index: 3; inset: 50% 0 auto; color: rgba(255,248,242,.7); font-size: 8px; letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.timeline-section { background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; align-items: end; margin-bottom: 85px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-description { max-width: 340px; margin: 0 0 5px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.memory-grid { display: grid; grid-template-columns: 1fr .7fr 1.25fr; grid-template-rows: 260px 260px; gap: 22px; max-width: 1040px; margin: 0 auto; }
.memory-card { min-width: 0; position: relative; overflow: hidden; }
.memory-card-tall { grid-row: span 2; }
.memory-card-wide { grid-column: 2 / 4; }
.memory-card-note { display: flex; flex-direction: column; justify-content: center; padding: 29px; background: var(--rose); }
.note-mark { color: rgba(255,255,255,.7); font-family: var(--serif); font-size: 69px; line-height: .5; }
.memory-card-note p { max-width: 200px; margin: 20px 0; color: #fff6ef; font-family: var(--serif); font-size: 27px; line-height: .98; }
.note-signoff { color: rgba(255,255,255,.8); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.memory-card-stamp { display: flex; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--line); padding: 20px; }
.memory-card-stamp p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 20px; line-height: 1.05; }
.stamp-circle { display: grid; flex: 0 0 98px; width: 98px; height: 98px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: var(--serif); font-size: 42px; line-height: .6; text-align: center; transform: rotate(-11deg); }
.stamp-circle small { font-family: var(--sans); font-size: 7px; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.memory-image { height: 100%; position: relative; background-position: center; background-size: contain; background-repeat: no-repeat; background-color: #ded0c5; filter: saturate(.7); transition: filter .8s ease; }
.memory-card:hover .memory-image { filter: saturate(1); transform: scale(1.05); }
.memory-one { background-image: url("photos/wedding/2.jpg"); }
.memory-two { background-image: url("photos/wedding/3.jpg"); }
.memory-overlay { position: absolute; inset: auto 0 0; padding: 22px; color: #fff; background: linear-gradient(transparent, rgba(30,14,17,.82)); }
.memory-overlay span { display: block; margin-bottom: 6px; font-size: 9px; letter-spacing: .18em; }
.memory-overlay p { margin: 0; font-family: var(--serif); font-size: 27px; font-style: italic; }
.letter-section { display: grid; place-items: center; min-height: 100vh; background: var(--ink); color: var(--cream); overflow: visible; }
.letter-section .section-number { color: var(--gold); }
body[data-active-section="memories"] .progress-dot, body[data-active-section="becoming"] .progress-dot, body[data-active-section="letter"] .progress-dot { border-color: var(--cream); }
body[data-active-section="memories"] .progress-dot.active, body[data-active-section="becoming"] .progress-dot.active, body[data-active-section="letter"] .progress-dot.active { background: var(--cream); }
.letter-section::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(242,237,231,.13); transform: rotate(-4deg); }
.letter-orb { position: absolute; width: min(55vw, 750px); height: min(55vw, 750px); border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(201,147,137,.57), rgba(99,53,53,.15) 41%, transparent 67%); filter: blur(10px); opacity: .8; }
.letter-content { position: relative; z-index: 1; width: min(680px, 100%); }
.letter-content .eyebrow { color: var(--gold); }
.letter-content h2 { margin-bottom: 46px; font-size: clamp(54px, 7vw, 104px); line-height: .82; }
.letter-content h2 em { color: var(--rose); }
.letter-body { width: 70%; margin-left: 30%; color: rgba(242,237,231,.78); font-family: var(--serif); font-size: 19px; line-height: 1.48; }
.letter-body p { margin-bottom: 18px; }
.letter-signature { margin-top: 35px; color: var(--cream); font-style: italic; }
.letter-signature strong { color: var(--rose); font-size: 26px; font-weight: 500; }
.letter-side-note { position: absolute; right: 6.5%; bottom: 23%; color: var(--gold); font-family: var(--serif); font-size: 20px; font-style: italic; line-height: .9; text-align: center; }
.finale { display: grid; place-items: center; min-height: 100svh; background: var(--rose); color: var(--ink); overflow: hidden; }
.finale::before { content: ""; position: absolute; width: min(75vw, 1000px); height: min(75vw, 1000px); border: 1px solid rgba(242,237,231,.28); border-radius: 50%; }
.finale::after { content: ""; position: absolute; width: min(58vw, 800px); height: min(58vw, 800px); border: 1px solid rgba(242,237,231,.2); border-radius: 50%; transform: rotate(30deg) scaleX(1.5); }
.finale-stars { position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(circle, #f5e6d8 1px, transparent 1.5px), radial-gradient(circle, #f5e6d8 1px, transparent 1.5px); background-size: 97px 121px, 157px 173px; background-position: 20px 30px, 70px 90px; }
.finale-content { position: relative; z-index: 1; text-align: center; }
.eyebrow-centered { justify-content: center; color: var(--ink); }
.finale-kicker { margin-bottom: 20px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.finale h2 { margin-bottom: 30px; font-size: clamp(78px, 12vw, 185px); line-height: .7; }
.finale h2 em { color: var(--cream); }
.finale-date { margin-bottom: 39px; color: rgba(32,22,24,.65); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.finale-footer { position: absolute; right: clamp(24px, 5vw, 78px); bottom: 30px; left: clamp(24px, 5vw, 78px); display: flex; justify-content: space-between; color: rgba(32,22,24,.63); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.finale-footer span:nth-child(2) { font-family: var(--serif); font-size: 22px; line-height: 0; }
.progress-dots { position: fixed; z-index: 10; top: 50%; right: clamp(18px, 3vw, 45px); display: grid; gap: 13px; transform: translateY(-50%); }
.progress-dot { width: 6px; height: 6px; border: 1px solid var(--ink); border-radius: 50%; opacity: .45; transition: transform .3s var(--ease), background .3s ease, opacity .3s ease; }
.progress-dot.active { background: var(--ink); opacity: 1; transform: scale(1.65); }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* The letter-side-note is a decorative flourish: keep its 9° tilt through the reveal
   (it lives on a .reveal element, which would otherwise override its transform). */
.letter-side-note { transform: rotate(9deg) translateY(30px); }
.letter-side-note.is-visible { transform: rotate(9deg) translateY(0); }
.reveal-delay { transition-delay: .15s; } .reveal-delay-2 { transition-delay: .25s; } .reveal-delay-3 { transition-delay: .35s; }
.tilt-card { transition: transform .5s var(--ease); will-change: transform; }

/* Mid-size screens: the centered letter leaves little side room, so hug the
   edge to keep the side note clear of the rotated frame border. */
@media (min-width: 830px) and (max-width: 1300px) {
  .letter-side-note { right: 3.5%; }
}

@media (max-width: 800px) {
  .site-header { padding-top: 23px; }
  .desktop-nav { display: none; }
  .sound-label { display: none; }
  .section-shell { padding-right: 23px; padding-left: 23px; }
  .hero { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 35px; padding-top: 105px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(67px, 19vw, 115px); }
  .hero-intro { font-size: 13px; }
  .hero-art { align-self: center; width: 100%; min-height: 400px; }
  .photo-frame { width: min(64vw, 320px); min-width: 0; }
  .orbit-one { width: 90vw; height: 57vw; } .orbit-two { width: 100vw; height: 48vw; }
  .hero-stamp { right: 2%; bottom: 6%; }
  .scribble-heart { left: 3%; top: 2%; }
  .scroll-cue { left: 23px; }
  .intro-section { display: block; min-height: 100vh; padding-top: 145px; }
  .intro-section::before { top: 12%; left: 23px; width: 34px; height: 1px; background: var(--rose-deep); }
  .split-heading h2, .section-heading h2 { font-size: clamp(68px, 18vw, 120px); }
  .intro-body { margin-top: 64px; padding: 24px 0 8px 20px; }
  .intro-body-label { margin-bottom: 18px; font-size: 8px; }
  .large-copy { max-width: 30rem; font-size: 19px; line-height: 1.5; }
  .handwritten { margin-bottom: 32px; font-size: 34px; }
  .slideshow-heading { display: block; margin-bottom: 38px; }
  .slideshow-heading .section-description { margin-top: 25px; }
  .slideshow-stage { min-height: 118vw; }
  .slideshow-controls { flex-wrap: wrap; }
  .slide-progress { flex: 1; min-width: 80px; margin-left: 4px; }
  .slide-thumbnails { width: 100%; margin: 10px 0 0; }
  .slideshow-tools { gap: 10px; }
  .upload-note { width: 100%; line-height: 1.5; }
  .atlas-heading { display: block; margin-bottom: 38px; }.atlas-intro { margin-top: 25px; font-size: 16px; }.memory-atlas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.atlas-card { aspect-ratio: .72; }.atlas-card-meta strong { font-size: 18px; }
  .section-heading { display: block; margin-bottom: 58px; }
  .section-description { max-width: 34rem; margin-top: 25px; font-size: 16px; }
  .memory-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 270px 190px 220px; gap: 12px; }
  .memory-card-tall { grid-row: span 2; } .memory-card-wide { grid-column: 1 / 3; grid-row: 3; }
  .memory-card-note { padding: 18px; } .memory-card-note p { font-size: 22px; }
  .memory-card-stamp { grid-column: 2; grid-row: 2; display: block; padding: 15px; }
  .stamp-circle { width: 65px; height: 65px; font-size: 30px; } .memory-card-stamp p { margin-top: 11px; font-size: 16px; }
  .letter-section::before { inset: 8%; }
  .letter-content h2 { font-size: clamp(56px, 14vw, 88px); }
  .letter-section { min-height: auto; padding-top: 130px; padding-bottom: 130px; }
  .letter-body { width: 100%; margin-left: 0; font-size: 18px; line-height: 1.5; }
  .letter-side-note { right: 8%; bottom: 13%; font-size: 17px; }
  .finale h2 { font-size: clamp(73px, 19vw, 125px); }
  .finale-footer { font-size: 8px; }
  .progress-dots { right: 12px; }
}
@media (max-width: 440px) {
  .desktop-only { display: none; }
  .hero { gap: 10px; } .hero-art { min-height: 360px; }
  .photo-frame { width: 68vw; } .hero-stamp { right: -1%; }
  .memory-atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.atlas-card { aspect-ratio: .7; }.atlas-card-meta strong { font-size: 17px; }
  .intro-body { margin-top: 56px; }
  .memory-grid { grid-template-rows: 240px 180px 190px; }
  .memory-card-note p { font-size: 20px; }
  .letter-content h2 { margin-bottom: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
