:root {
  --cream: #fffaf5;
  --paper: #fffefa;
  --sand: #f4e8dc;
  --brown: #6b432a;
  --brown-dark: #33241b;
  --sage: #657660;
  --sage-light: #dfe8da;
  --muted: #74675f;
  --line: #dfd0c3;
  --shadow: 0 20px 60px rgba(83, 54, 34, .12);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--brown-dark);
  background: var(--cream);
  font-family: "DM Sans", sans-serif;
  line-height: 1.7;
}
img {
  display: block;
  width: 100%;
  max-width: 100%;
}
a { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  background: rgba(255, 250, 245, .86);
  border-radius: 0 0 22px 22px;
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
  font-family: "DM Serif Display", serif;
  font-size: 1.25rem;
  text-decoration: none;
}
.paw {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  background: var(--sage);
  border-radius: 50%;
  font-family: sans-serif;
  font-size: .85rem;
}
nav { display: flex; gap: 30px; }
nav a {
  color: var(--muted);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: var(--brown); }
.menu-button { display: none; }

.hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 70px;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  z-index: -1;
  top: 8%;
  width: min(680px, 120vw);
  height: min(680px, 120vw);
  background: radial-gradient(circle, rgba(226, 202, 172, .55), transparent 68%);
}
.portrait-wrap {
  position: relative;
  width: min(310px, 70vw);
  aspect-ratio: 1;
  margin-bottom: 28px;
  padding: 9px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.portrait-wrap img {
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.placeholder-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 10px;
  color: white;
  background: rgba(51, 36, 27, .78);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, blockquote {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}
h1 {
  max-width: 100%;
  margin: 0;
  color: var(--brown);
  font-size: clamp(3rem, 6.4vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 span { display: block; }
.subtitle {
  width: 100%;
  max-width: 610px;
  margin: 24px auto 16px;
  color: var(--muted);
  font-size: 1.12rem;
}
.dates {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 42px;
  color: var(--sage);
  font-weight: 600;
}
.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 19px;
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.section {
  width: min(1120px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  padding: 110px 0;
}
.story {
  display: block;
}
.story::after {
  display: table;
  clear: both;
  content: "";
}
.story > *, .gallery > *, .timeline > * { min-width: 0; }
.image-card {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.section-image {
  width: clamp(300px, 40%, 455px);
  aspect-ratio: 3 / 4;
  float: left;
  margin: 7px clamp(28px, 4vw, 52px) 28px 0;
}
.section-image img, .gallery img, .farewell-image img {
  height: 100%;
  object-fit: cover;
}
h2 {
  max-width: 100%;
  margin: 0 0 22px;
  color: var(--brown);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}
.section-image + p::first-letter {
  margin: .08em .09em 0 0;
  float: left;
  color: var(--brown);
  font-family: "DM Serif Display", serif;
  font-size: 4.2rem;
  line-height: .78;
}
.cookie-memories {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.cookie-memories h3 {
  margin: 0 0 20px;
  color: var(--brown);
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  text-wrap: balance;
}
.cookie-memories p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 50px;
  text-align: center;
}
.memories.section {
  width: 100%;
  max-width: none;
  padding-block: 92px 70px;
  overflow: hidden;
}
.section-heading > p:last-child { color: var(--muted); }
.scattered-gallery {
  position: relative;
  width: 100%;
  height: clamp(620px, 76vh, 780px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 232, 206, .55), transparent 24%),
    radial-gradient(circle at 88% 74%, rgba(244, 187, 146, .28), transparent 23%),
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(244, 232, 220, .72));
  border-block: 1px solid rgba(107, 67, 42, .1);
}
.scattered-gallery::before,
.scattered-gallery::after {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: clamp(35px, 8vw, 140px);
  content: "";
  pointer-events: none;
}
.scattered-gallery::before {
  left: 0;
  background: linear-gradient(90deg, var(--cream), rgba(255, 250, 245, .78) 30%, transparent);
}
.scattered-gallery::after {
  right: 0;
  background: linear-gradient(270deg, var(--cream), rgba(255, 250, 245, .78) 30%, transparent);
}
.photo-row {
  position: absolute;
  right: 0;
  left: 0;
  overflow: visible;
}
.photo-row-left { z-index: 2; top: 44px; }
.photo-row-right { z-index: 1; bottom: 42px; opacity: .92; }
.scrolling-photo-track {
  position: relative;
  z-index: 1;
  display: flex;
  width: max-content;
  will-change: transform;
}
.scrolling-photo-track::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background:
    repeating-linear-gradient(90deg, #7b4d31 0 7px, #ae7951 7px 11px, #69412b 11px 16px);
  border-radius: 999px;
  box-shadow: 0 2px 3px rgba(65, 40, 24, .22);
  content: "";
}
.photo-row-left .scrolling-photo-track { animation: photo-scroll-left 312s linear infinite; }
.photo-row-right .scrolling-photo-track { animation: photo-scroll-right 368s linear infinite; }
.scattered-gallery:hover .scrolling-photo-track,
.scattered-gallery:focus-within .scrolling-photo-track,
.scattered-gallery.is-paused .scrolling-photo-track { animation-play-state: paused; }
.scrolling-photo-group {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex: none;
  gap: clamp(32px, 4vw, 66px);
  padding-right: clamp(32px, 4vw, 66px);
}
.scrolling-photo {
  --tilt: -3deg;
  --string-length: 54px;
  position: relative;
  width: clamp(250px, 24vw, 360px);
  height: clamp(205px, 20vw, 300px);
  flex: none;
  margin-top: var(--string-length);
  padding: 8px 8px 23px;
  background: white;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(62, 42, 29, .2);
  cursor: zoom-in;
  transform: rotate(var(--tilt));
  transform-origin: 50% calc(0px - var(--string-length));
  transition: transform .45s ease, box-shadow .45s ease;
}
.scrolling-photo::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 3px;
  height: var(--string-length);
  background: repeating-linear-gradient(0deg, #805236 0 6px, #b07a53 6px 9px, #6d452f 9px 13px);
  box-shadow: 1px 0 1px rgba(77, 47, 29, .2);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}
.scrolling-photo::after {
  position: absolute;
  bottom: calc(100% + var(--string-length) - 7px);
  left: 50%;
  width: 13px;
  height: 13px;
  background: #8d5b3b;
  border: 2px solid #f7eee5;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(65, 40, 24, .3);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}
.scrolling-photo:nth-child(3n + 2) { --tilt: 4deg; --string-length: 78px; width: clamp(220px, 21vw, 315px); }
.scrolling-photo:nth-child(3n + 3) { --tilt: -1.5deg; --string-length: 42px; width: clamp(270px, 26vw, 390px); }
.scrolling-photo:nth-child(5n) { height: clamp(225px, 22vw, 325px); }
.photo-row-right .scrolling-photo:nth-child(odd) { --tilt: 3.5deg; --string-length: 68px; }
.photo-row-right .scrolling-photo:nth-child(even) { --tilt: -4deg; --string-length: 46px; }
.scrolling-photo img {
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
}
.scrolling-photo:hover,
.scrolling-photo:focus-visible {
  z-index: 2;
  box-shadow: 0 26px 58px rgba(62, 42, 29, .28);
  outline: none;
  transform: rotate(0deg) scale(1.045);
}
.scrolling-photo:focus-visible { box-shadow: 0 0 0 4px var(--sage), 0 26px 58px rgba(62, 42, 29, .28); }
.gallery-motion-hint,
.gallery-motion-toggle {
  position: absolute;
  z-index: 6;
  top: 16px;
  padding: 7px 12px;
  color: var(--muted);
  background: rgba(255, 254, 250, .82);
  border: 1px solid rgba(107, 67, 42, .14);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(83, 54, 34, .09);
  backdrop-filter: blur(8px);
  font-size: .72rem;
}
.gallery-motion-hint { left: max(20px, 4vw); }
.gallery-motion-toggle {
  right: max(20px, 4vw);
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brown);
  cursor: pointer;
  font-family: inherit;
}
.gallery-motion-toggle:hover { color: white; background: var(--sage); }
.gallery-motion-toggle:focus-visible { outline: 3px solid var(--brown); outline-offset: 3px; }
.gallery-motion-toggle[hidden] { display: none; }
.gallery-status {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100% - 40px));
  margin: 0;
  padding: 38px 24px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
  transform: translate(-50%, -50%);
}

@keyframes photo-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes photo-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.video-memories {
  width: 100%;
  margin: 74px 0 0;
  padding: clamp(30px, 4vw, 52px) max(20px, calc((100% - 1280px) / 2));
  background: linear-gradient(145deg, var(--paper), var(--sand));
  border-block: 1px solid rgba(107, 67, 42, .13);
  border-radius: 0;
  box-shadow: 0 18px 55px rgba(83, 54, 34, .08);
}
.video-memories[hidden] { display: none; }
.video-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
  text-align: left;
}
.video-heading > span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding-left: 3px;
  color: white;
  background: var(--sage);
  border-radius: 50%;
  place-items: center;
}
.video-heading .eyebrow { margin-bottom: 3px; }
.video-heading h3 { margin: 0; color: var(--brown); font-size: clamp(1.55rem, 3vw, 2.15rem); }
.video-reel {
  position: relative;
  padding: 32px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle, var(--sand) 0 4px, transparent 4.5px) 10px 7px / 26px 18px repeat-x,
    radial-gradient(circle, var(--sand) 0 4px, transparent 4.5px) 10px calc(100% - 7px) / 26px 18px repeat-x,
    var(--brown-dark);
  border-radius: 22px;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, .24);
}
.video-gallery {
  --video-card-width: min(640px, 78vw);
  display: flex;
  gap: 18px;
  padding-block: 2px;
  padding-inline: max(2px, calc((100% - var(--video-card-width)) / 2));
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.video-gallery::-webkit-scrollbar { display: none; }
.single-video .video-gallery { justify-content: center; padding-inline: 2px; }
.video-frame {
  position: relative;
  width: var(--video-card-width);
  flex: 0 0 var(--video-card-width);
  padding: 8px;
  overflow: hidden;
  background: white;
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(62, 42, 29, .16);
  scroll-snap-align: center;
}
.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #211a13;
  border-radius: 11px;
  object-fit: contain;
}
.video-frame video::-webkit-media-controls-overlay-play-button,
.video-frame video::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  -webkit-appearance: none;
}
.video-play-overlay {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(58px, 7vw, 76px);
  height: clamp(58px, 7vw, 76px);
  padding: 0;
  color: white;
  background: rgba(33, 26, 19, .72);
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: background .25s ease, opacity .25s ease, transform .25s ease;
}
.video-play-overlay span { padding-left: 4px; font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1; }
.video-play-overlay:hover {
  background: var(--sage);
  transform: translate(-50%, -50%) scale(1.06);
}
.video-play-overlay:focus-visible { outline: 4px solid white; outline-offset: 4px; }
.video-frame.is-playing .video-play-overlay {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.video-reel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  color: var(--brown-dark);
  background: rgba(255, 254, 250, .92);
  border: 2px solid rgba(107, 67, 42, .2);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .24);
  cursor: pointer;
  font-family: serif;
  font-size: 1.8rem;
  place-items: center;
  transform: translateY(-50%);
}
.video-reel-previous { left: 8px; }
.video-reel-next { right: 8px; }
.video-reel-arrow:hover { color: white; background: var(--sage); }
.video-reel-arrow:disabled { opacity: 0; pointer-events: none; }
.single-video .video-reel-arrow { display: none; }

.lightbox {
  width: min(1000px, calc(100% - 32px));
  height: min(760px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 46px 64px 24px;
  overflow: hidden;
  color: white;
  background: #1f1814;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}
.lightbox::backdrop { background: rgba(20, 15, 12, .84); backdrop-filter: blur(5px); }
.lightbox figure {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  place-items: center;
  text-align: center;
}
.lightbox img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  color: white;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}
.lightbox-close { top: 10px; right: 10px; font-size: 1.7rem; }
.lightbox-arrow { top: 50%; font-size: 2rem; transform: translateY(-50%); }
.lightbox-previous { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, .25); }

.quote {
  padding: 120px 24px;
  background: linear-gradient(135deg, var(--sage-light), var(--sand));
  text-align: center;
}
.quote-mark {
  display: block;
  height: 60px;
  color: var(--brown);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  opacity: .2;
}
blockquote {
  max-width: 850px;
  margin: 15px auto 0;
  color: var(--brown);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.2;
}

.letter { max-width: 820px; }
.letter-paper {
  position: relative;
  padding: clamp(45px, 8vw, 85px);
  background-color: var(--paper);
  background-image: radial-gradient(var(--line) .55px, transparent .55px);
  background-size: 18px 18px;
  border: 1px solid rgba(107, 67, 42, .1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-.4deg);
}
.letter-tag {
  position: absolute;
  top: -16px;
  left: 30px;
  padding: 7px 14px;
  color: white;
  background: var(--sage);
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
}
.letter-paper h2, .letter-paper p {
  font-family: "Kalam", cursive;
}
.letter-paper h2 { font-size: 2.8rem; }
.letter-paper p { color: #5d5048; font-size: 1.25rem; line-height: 1.8; }
.signature { margin-top: 35px; text-align: right; }

.journey { max-width: 850px; }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.timeline::before {
  position: absolute;
  top: 13px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}
.timeline article {
  position: relative;
  padding: 48px 30px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.timeline article::before {
  position: absolute;
  z-index: 1;
  top: 6px;
  left: 28px;
  width: 15px;
  height: 15px;
  background: var(--sage);
  border: 5px solid var(--cream);
  border-radius: 50%;
  content: "";
}
.timeline time {
  color: var(--sage);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.timeline h3 { margin: 10px 0 8px; color: var(--brown); font-size: 1.55rem; }
.timeline p { margin: 0; color: var(--muted); }

.farewell {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 100px 24px 120px;
  background: #f3e8dd;
  text-align: center;
}
.farewell-image {
  width: min(640px, 100%);
  aspect-ratio: 16 / 9;
  margin-bottom: 50px;
}
.farewell h2 { margin: 25px 0 0; }
.farewell p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.share-memory-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 13px 20px;
  color: white;
  background: var(--brown);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(83, 54, 34, .2);
  cursor: pointer;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
}
.share-memory-button:hover { background: var(--sage); transform: translateY(-2px); }
.share-memory-button:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; }
.share-dialog {
  width: min(560px, calc(100% - 28px));
  max-width: none;
  padding: clamp(28px, 5vw, 46px);
  color: var(--brown-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(45, 31, 23, .34);
  text-align: center;
}
.share-dialog::backdrop { background: rgba(31, 24, 20, .68); backdrop-filter: blur(5px); }
.share-dialog h2 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 2.7rem); }
.share-dialog-copy { margin: 0 0 24px; color: var(--muted); }
.share-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--brown);
  background: var(--sand);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}
.share-local-warning {
  margin: 0 0 22px;
  padding: 12px 14px;
  color: #745022;
  background: #fff1cf;
  border: 1px solid #e6c983;
  border-radius: 12px;
  font-size: .85rem;
  text-align: left;
}
.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.share-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 50px;
  padding: 10px 14px;
  color: var(--brown-dark);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  text-decoration: none;
}
.share-option span {
  display: grid;
  width: 28px;
  height: 28px;
  color: white;
  background: var(--sage);
  border-radius: 50%;
  font-weight: 700;
  place-items: center;
}
.share-option:hover { color: white; background: var(--brown); }
.facebook-share span { background: #1877f2; }
.whatsapp-share span { background: #25d366; }
.share-feedback { min-height: 1.5em; margin: 15px 0 0; color: var(--sage); font-size: .85rem; }
.candle { display: flex; align-items: center; flex-direction: column; height: 100px; }
.flame {
  width: 21px;
  height: 34px;
  background: radial-gradient(ellipse at bottom, #fff 5%, #ffd57a 45%, #e99032 100%);
  border-radius: 55% 45% 52% 48% / 70% 70% 30% 30%;
  box-shadow: 0 0 28px rgba(226, 140, 44, .65);
  transform-origin: bottom;
  animation: flicker 2.2s ease-in-out infinite;
}
.wick { width: 2px; height: 6px; background: #4b403a; }
.wax {
  width: 36px;
  height: 58px;
  background: linear-gradient(90deg, #e9dfd2, #fffdf7 45%, #ded0c0);
  border-radius: 4px 4px 7px 7px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(24px, calc((100% - 1120px) / 2));
  color: var(--muted);
  background: var(--brown-dark);
  font-size: .88rem;
}
footer p { margin: 0; }
footer > p:first-child { color: #f7e8dc; }
.footer-details { display: grid; gap: 6px; text-align: right; }
.visitor-count { color: #cdbdaf; font-size: .78rem; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@keyframes flicker {
  0%, 100% { transform: rotate(-2deg) scaleY(1); }
  45% { transform: rotate(3deg) scaleY(.92); }
  70% { transform: rotate(-1deg) scaleY(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .photo-row { overflow-x: auto; scrollbar-width: thin; }
  .scrolling-photo-track { transform: none !important; }
  .scrolling-photo-group[aria-hidden="true"] { display: none; }
}

@media (max-width: 860px) {
  .section-image {
    width: min(480px, 100%);
    max-height: 650px;
    margin: 0 auto 36px;
    float: none;
  }
}

@media (max-width: 720px) {
  .site-header { padding: 15px 20px; }
  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 0;
    place-content: center;
    gap: 5px;
  }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--brown); }
  nav {
    position: absolute;
    top: 68px;
    right: 16px;
    display: none;
    min-width: 180px;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  nav.open { display: flex; }
  nav a { padding: 8px 10px; }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: flex-start;
    padding: 92px 16px 28px;
  }
  .portrait-wrap {
    width: clamp(175px, 52vw, 225px);
    margin-bottom: 18px;
    padding: 6px;
  }
  .hero .eyebrow {
    margin-bottom: 7px;
    font-size: .68rem;
  }
  h1 {
    width: min(100%, 280px);
    padding-inline: 4px;
    font-size: clamp(2.1rem, 9.5vw, 2.55rem);
    line-height: 1.02;
    letter-spacing: -.03em;
  }
  .subtitle {
    width: min(100%, 280px);
    max-width: 280px;
    margin: 15px auto 10px;
    font-size: .95rem;
    line-height: 1.55;
  }
  .dates { align-items: center; flex-direction: column; gap: 0; }
  .dates span { transform: rotate(90deg); }
  .dates {
    margin: 2px 0 20px;
    font-size: .9rem;
    line-height: 1.5;
  }
  .scroll-link { padding: 9px 15px; font-size: .88rem; }
  .section {
    width: min(100% - 28px, 1120px);
    padding: 68px 0;
  }
  .section-copy p { hyphens: none; text-align: left; }
  .section-image + p::first-letter { font-size: 3.6rem; }
  .memories.section { width: 100%; padding-block: 60px 50px; }
  .scattered-gallery { height: 520px; }
  .photo-row-left { top: 34px; }
  .photo-row-right { bottom: 32px; }
  .scrolling-photo-group { gap: 22px; padding-right: 22px; }
  .scattered-gallery .scrolling-photo {
    width: 230px;
    height: 178px;
    padding: 7px 7px 18px;
    border-radius: 14px;
  }
  .scrolling-photo img { border-radius: 8px; }
  .gallery-motion-hint { display: none; }
  .gallery-motion-toggle { top: 12px; right: 12px; }
  .video-memories {
    width: 100%;
    margin-top: 48px;
    padding: 28px 14px 18px;
    border-radius: 0;
  }
  .video-heading { align-items: flex-start; justify-content: flex-start; margin-inline: 6px; }
  .video-heading > span { width: 40px; height: 40px; flex-basis: 40px; }
  .video-reel { padding: 27px 10px; border-radius: 17px; }
  .video-gallery { --video-card-width: calc(100vw - 76px); }
  .video-frame { padding: 5px; border-radius: 13px; }
  .video-play-overlay { width: 62px; height: 62px; }
  .video-reel-arrow { width: 36px; height: 36px; }
  .video-reel-previous { left: 2px; }
  .video-reel-next { right: 2px; }
  .lightbox {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    padding: 52px 10px 64px;
    border-radius: 16px;
  }
  .lightbox-arrow { top: auto; bottom: 14px; }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline::before { top: 0; bottom: 0; left: 10px; width: 1px; height: auto; }
  .timeline article { margin-left: 28px; }
  .timeline article::before { top: 28px; left: -32px; }
  .letter-paper {
    padding: 52px 24px 36px;
    transform: none;
  }
  .letter-paper h2 { font-size: 2.25rem; }
  .letter-paper p { font-size: 1.05rem; }
  .quote { padding: 80px 18px; }
  .farewell { padding: 72px 14px 85px; }
  footer { align-items: center; flex-direction: column; text-align: center; }
  .footer-details { text-align: center; }
}

@media (max-width: 380px) {
  .site-header { padding-inline: 14px; }
  .brand { font-size: 1.08rem; }
  .portrait-wrap { width: 165px; }
  h1 { font-size: clamp(2rem, 9.5vw, 2.2rem); }
  .subtitle { font-size: .88rem; }
  .dates { font-size: .82rem; }
  .share-options { grid-template-columns: 1fr; }
}

@media (max-height: 700px) and (min-width: 721px) {
  .hero { padding-block: 84px 24px; }
  .portrait-wrap { width: 190px; margin-bottom: 14px; }
  h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
  .subtitle { margin-block: 14px 8px; }
  .dates { margin-bottom: 18px; }
}
