@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #fff8ef;
  --muted: #d9cbbd;
  --soft: #a99bab;
  --night: #11101f;
  --night-2: #1a1730;
  --night-3: #241a35;
  --rose: #f0a6aa;
  --rose-deep: #9f506e;
  --gold: #f6c36d;
  --candle: #ffe4a6;
  --ivory: #fff5e5;
  --glass: rgba(255, 248, 239, 0.09);
  --glass-strong: rgba(255, 248, 239, 0.16);
  --line: rgba(255, 248, 239, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 10%, rgba(159, 80, 110, 0.3), transparent 32rem),
    radial-gradient(circle at 84% 14%, rgba(246, 195, 109, 0.16), transparent 28rem),
    linear-gradient(180deg, #100f1e 0%, #171327 42%, #0e0d18 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 90%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 46%, rgba(0, 0, 0, 0.44) 100%);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #241a35;
  background: var(--candle);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ivory);
  color: #241a35;
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--gold);
}

:focus-visible {
  outline: 3px solid rgba(246, 195, 109, 0.9);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient span {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 236, 186, 0.86);
  box-shadow: 0 0 22px rgba(255, 218, 141, 0.9);
  opacity: 0;
  animation: floatLight 16s linear infinite;
}

.ambient span:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 18s; }
.ambient span:nth-child(2) { left: 23%; animation-delay: -7s; animation-duration: 23s; }
.ambient span:nth-child(3) { left: 48%; animation-delay: -12s; animation-duration: 20s; }
.ambient span:nth-child(4) { left: 69%; animation-delay: -5s; animation-duration: 24s; }
.ambient span:nth-child(5) { left: 82%; animation-delay: -15s; animation-duration: 19s; }
.ambient span:nth-child(6) { left: 93%; animation-delay: -9s; animation-duration: 26s; }

.site-header {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  z-index: 30;
  width: min(1120px, calc(100% - 1.25rem));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 248, 239, 0.18);
  border-radius: 999px;
  background: rgba(18, 16, 31, 0.52);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
  padding: 0.7rem 0.8rem 0.7rem 1rem;
  backdrop-filter: blur(20px) saturate(135%);
}

.brand,
.nav a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(246, 195, 109, 0.12);
  box-shadow: inset 0 0 0 1px rgba(246, 195, 109, 0.24), 0 0 26px rgba(246, 195, 109, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  border-radius: 999px;
  color: rgba(255, 248, 239, 0.82);
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover {
  background: rgba(255, 248, 239, 0.12);
  color: var(--ivory);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(7rem, 13vw, 11rem) 1.25rem clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
  opacity: 0.66;
  filter: saturate(0.85) sepia(0.12) brightness(0.72) contrast(1.05);
  transform: scale(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero__veil {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 214, 151, 0.16), transparent 24rem),
    radial-gradient(circle at 52% 53%, rgba(13, 11, 22, 0.22), rgba(12, 10, 21, 0.78) 56%, rgba(7, 7, 13, 0.92) 100%),
    linear-gradient(180deg, rgba(11, 10, 19, 0.18) 0%, rgba(11, 10, 19, 0.86) 88%);
}

.hero__content {
  position: relative;
  width: min(940px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.1rem, 4vw, 3.4rem);
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255, 248, 239, 0.13);
  border-radius: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, rgba(255, 248, 239, 0.08), rgba(255, 248, 239, 0.025));
  box-shadow: var(--shadow), inset 0 0 70px rgba(255, 248, 239, 0.035);
  backdrop-filter: blur(10px) saturate(118%);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  margin: 0 auto;
  font-size: clamp(4.1rem, 13vw, 10.5rem);
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 8px 42px rgba(0, 0, 0, 0.5), 0 0 48px rgba(255, 215, 166, 0.2);
}

h2 {
  color: var(--ivory);
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h3 {
  color: var(--ivory);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
}

.hero__subtitle {
  width: min(720px, 100%);
  margin: 1.25rem auto 0;
  color: rgba(255, 248, 239, 0.88);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  text-wrap: balance;
}

.hero__candle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  width: min(720px, 100%);
  margin: clamp(1.7rem, 4vw, 2.6rem) auto 0;
  color: rgba(255, 248, 239, 0.82);
}

.hero__candle p {
  max-width: 42ch;
  margin: 0;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-style: italic;
}

.candle {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 92px;
  filter: drop-shadow(0 0 22px rgba(246, 195, 109, 0.36));
}

.candle--large {
  width: 70px;
  height: 122px;
}

.flame {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 24px;
  height: 36px;
  transform: translateX(-50%);
  transform-origin: center bottom;
  border-radius: 70% 35% 65% 35% / 70% 45% 65% 35%;
  background:
    radial-gradient(circle at 48% 66%, #fff9d9 0 18%, transparent 19%),
    radial-gradient(circle at 48% 64%, #ffd37e 0 44%, transparent 45%),
    linear-gradient(180deg, #ffefb2 0%, #ffac5f 46%, #d85062 100%);
  box-shadow: 0 0 16px rgba(255, 210, 125, 0.9), 0 0 42px rgba(246, 195, 109, 0.42);
  animation: flicker 2.25s ease-in-out infinite;
}

.candle--large .flame {
  width: 32px;
  height: 48px;
}

.wick {
  position: absolute;
  top: 34px;
  left: 50%;
  z-index: 2;
  width: 4px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #2e2031;
}

.candle--large .wick {
  top: 45px;
  height: 22px;
}

.wax {
  position: absolute;
  right: 7px;
  bottom: 0;
  left: 7px;
  height: 58px;
  border-radius: 12px 12px 8px 8px;
  background:
    radial-gradient(circle at 45% 8%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 28%, transparent 29%),
    linear-gradient(90deg, #d9b982 0%, #fff2d2 26%, #f3d49a 58%, #cba669 100%);
  box-shadow: inset 0 -18px 24px rgba(95, 61, 37, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.candle--large .wax {
  height: 76px;
  border-radius: 16px 16px 10px 10px;
}

.hero__actions,
.forever__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  color: #2a1a24;
  background: linear-gradient(135deg, #fff1c9, #f6c36d 50%, #ef9e8d);
  box-shadow: 0 16px 34px rgba(246, 195, 109, 0.22);
}

.button--ghost {
  color: var(--ivory);
  border-color: rgba(255, 248, 239, 0.26);
  background: rgba(255, 248, 239, 0.08);
  backdrop-filter: blur(14px);
}

.button--ghost:hover {
  background: rgba(255, 248, 239, 0.15);
  border-color: rgba(255, 248, 239, 0.38);
}

body.candle-lit .button[data-light-candle]::after {
  content: " lit";
}

body.candle-lit .flame {
  box-shadow: 0 0 22px rgba(255, 229, 168, 1), 0 0 80px rgba(246, 195, 109, 0.68);
  animation-duration: 1.55s;
}

body.candle-lit .hero__content::before,
body.candle-lit .forever__card {
  box-shadow: 0 24px 100px rgba(246, 195, 109, 0.16), var(--shadow), inset 0 0 80px rgba(255, 232, 187, 0.055);
}

.candle-spark {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 80;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 239, 178, 0.9);
  box-shadow: 0 0 0 0 rgba(246, 195, 109, 0.45), 0 0 80px rgba(255, 226, 166, 0.65);
  animation: candleSpark 1.35s ease-out forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  width: 2rem;
  height: 3rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 248, 239, 0.34);
  border-radius: 999px;
  opacity: 0.74;
}

.scroll-cue span {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ivory);
  animation: scrollCue 1.9s ease-in-out infinite;
}

.section {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section__ornament {
  position: absolute;
  top: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246, 195, 109, 0.22);
  font-size: clamp(6rem, 20vw, 14rem);
  line-height: 1;
  filter: blur(0.6px);
  pointer-events: none;
}

.section__heading {
  width: min(820px, 100%);
  margin: 0 auto clamp(2.2rem, 6vw, 4rem);
  text-align: center;
}

.section__heading p:not(.eyebrow) {
  margin: 1rem auto 0;
  color: rgba(255, 248, 239, 0.74);
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-wrap: balance;
}

.letter__inner {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 248, 239, 0.16);
  border-radius: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.12), rgba(255, 248, 239, 0.045)),
    radial-gradient(circle at top left, rgba(246, 195, 109, 0.12), transparent 45%);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 5vw, 4rem);
  text-align: center;
  backdrop-filter: blur(18px);
}

.letter__inner h2 {
  margin-bottom: 1.4rem;
}

.letter__inner p:not(.eyebrow) {
  margin: 1rem auto 0;
  max-width: 68ch;
  color: rgba(255, 248, 239, 0.8);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

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

.keepsake-card {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(255, 248, 239, 0.15);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.11), rgba(255, 248, 239, 0.045)),
    radial-gradient(circle at 20% 0%, rgba(240, 166, 170, 0.17), transparent 55%);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  overflow: hidden;
}

.keepsake-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: rgba(246, 195, 109, 0.08);
  filter: blur(8px);
}

.keepsake-card span {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.1rem;
  place-items: center;
  border: 1px solid rgba(246, 195, 109, 0.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(246, 195, 109, 0.1);
}

.keepsake-card p {
  margin: 0.8rem 0 0;
  color: rgba(255, 248, 239, 0.73);
}

.quote-band {
  position: relative;
  margin: clamp(1rem, 4vw, 2rem) 0;
  padding: clamp(3.5rem, 8vw, 7rem) 1rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17, 16, 31, 0.96), rgba(42, 28, 53, 0.9), rgba(17, 16, 31, 0.96)),
    radial-gradient(circle at center, rgba(246, 195, 109, 0.18), transparent 40rem);
}

.quote-band::before,
.quote-band::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(900px, 80vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 248, 239, 0.34), transparent);
}

.quote-band::before { top: 1.5rem; }
.quote-band::after { bottom: 1.5rem; }

.quote-band__inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.quote-band__inner p {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.photo-grid {
  columns: 310px 3;
  column-gap: 1.25rem;
}

.photo-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1.25rem;
  break-inside: avoid;
  border: 1px solid rgba(255, 248, 239, 0.4);
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 222, 201, 0.93)),
    radial-gradient(circle at top, #ffffff, #e8dccd);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  padding: 0.65rem 0.65rem 0.92rem;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  z-index: 0;
  border-radius: 1rem;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.72), inset 0 0 90px rgba(92, 63, 74, 0.16);
}

.photo-card:hover {
  z-index: 4;
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.46), 0 0 42px rgba(246, 195, 109, 0.12);
}

.photo-button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0.9rem;
  background: #191525;
  cursor: zoom-in;
  padding: 0;
}

.photo-button::before,
.photo-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.photo-button::before {
  background:
    radial-gradient(ellipse at center, transparent 48%, rgba(255, 255, 255, 0.2) 72%, rgba(255, 255, 255, 0.48) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 35%, rgba(246, 195, 109, 0.12));
  mix-blend-mode: soft-light;
}

.photo-button::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), inset 0 0 44px rgba(255, 248, 239, 0.46), inset 0 0 88px rgba(23, 18, 31, 0.28);
}

.photo-button img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.03) sepia(0.04);
  transition: transform 420ms ease, filter 420ms ease;
}

.photo-card:hover .photo-button img,
.photo-button:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.02) contrast(1.05) sepia(0.02);
}

.photo-card figcaption {
  position: relative;
  z-index: 1;
  margin: 0.65rem 0.2rem 0;
  color: #4a3a3f;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
}

.forever {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.forever__card {
  position: relative;
  width: min(910px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(255, 248, 239, 0.18);
  border-radius: clamp(1.8rem, 5vw, 4rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 195, 109, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(255, 248, 239, 0.12), rgba(255, 248, 239, 0.045));
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.forever__card::before {
  content: "✦";
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  color: rgba(246, 195, 109, 0.28);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
}

.forever__candle {
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.forever__card h2 {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: clamp(2rem, 5.4vw, 4.4rem);
}

.forever__card p:not(.eyebrow):not(.share-note) {
  width: min(680px, 100%);
  margin: 1.2rem auto 0;
  color: rgba(255, 248, 239, 0.76);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
}

.share-note {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--gold);
  font-weight: 800;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 248, 239, 0.12);
  padding: 2rem 0 3rem;
  color: rgba(255, 248, 239, 0.72);
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer__small {
  color: rgba(255, 248, 239, 0.52);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) minmax(0, auto) minmax(3rem, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(0.4rem, 2vw, 1.4rem);
  padding: clamp(0.85rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 50% 45%, rgba(246, 195, 109, 0.1), transparent 32rem),
    rgba(8, 7, 14, 0.88);
  backdrop-filter: blur(20px) saturate(120%);
  animation: lightboxIn 180ms ease both;
}

.lightbox__figure {
  grid-column: 2;
  display: grid;
  gap: 0.8rem;
  max-width: min(88vw, 1240px);
  margin: 0;
  justify-items: center;
}

.lightbox__figure img {
  display: block;
  max-width: min(88vw, 1240px);
  max-height: 78svh;
  border: 0.72rem solid rgba(255, 248, 239, 0.9);
  border-radius: 1.1rem;
  background: #0e0d18;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62), 0 0 90px rgba(246, 195, 109, 0.12);
  object-fit: contain;
}

.lightbox__figure figcaption {
  display: grid;
  gap: 0.2rem;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  line-height: 1.2;
  text-align: center;
}

.lightbox__figure small {
  color: rgba(255, 248, 239, 0.55);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 239, 0.28);
  border-radius: 999px;
  color: var(--ivory);
  background: rgba(255, 248, 239, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  transform: translateY(-2px);
  background: rgba(255, 248, 239, 0.16);
}

.lightbox__close {
  position: absolute;
  top: clamp(0.8rem, 3vw, 1.5rem);
  right: clamp(0.8rem, 3vw, 1.5rem);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav {
  width: clamp(2.8rem, 6vw, 4rem);
  height: clamp(2.8rem, 6vw, 4rem);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.8;
}

.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.photo-card.reveal {
  transform: translateY(28px) rotate(var(--tilt, 0deg));
}

.photo-card.reveal.is-visible {
  transform: rotate(var(--tilt, 0deg));
}

.photo-card.reveal.is-visible:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
}

@keyframes floatLight {
  0% {
    transform: translate3d(0, 110vh, 0) scale(0.7);
    opacity: 0;
  }
  12% { opacity: 0.7; }
  72% { opacity: 0.35; }
  100% {
    transform: translate3d(1.8rem, -12vh, 0) scale(1.35);
    opacity: 0;
  }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(-0.4%, -0.3%, 0); }
  to { transform: scale(1.095) translate3d(0.6%, 0.4%, 0); }
}

@keyframes flicker {
  0%, 100% { transform: translateX(-50%) rotate(-2deg) scale(1); }
  22% { transform: translateX(-48%) rotate(3deg) scale(1.04, 0.96); }
  48% { transform: translateX(-52%) rotate(-4deg) scale(0.96, 1.06); }
  74% { transform: translateX(-49%) rotate(2deg) scale(1.03); }
}

@keyframes scrollCue {
  0% { transform: translate(-50%, 0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translate(-50%, 1.3rem); opacity: 0; }
}

@keyframes candleSpark {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.4);
    box-shadow: 0 0 0 0 rgba(246, 195, 109, 0.45), 0 0 60px rgba(255, 226, 166, 0.55);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
    box-shadow: 0 0 0 4rem rgba(246, 195, 109, 0), 0 0 120px rgba(255, 226, 166, 0);
  }
}

@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .keepsake-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: stretch;
    border-radius: 1.4rem;
  }

  .nav a {
    padding-inline: 0.65rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0.55rem;
    width: calc(100% - 0.8rem);
    padding: 0.55rem;
  }

  .brand__mark {
    display: none;
  }

  .brand {
    font-size: 0.94rem;
  }

  .nav a {
    font-size: 0.78rem;
    padding: 0.45rem 0.45rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 6.4rem;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 6.6rem);
  }

  .hero__content {
    padding: 1.1rem;
  }

  .hero__content::before {
    border-radius: 1.6rem;
  }

  .hero__candle {
    flex-direction: column;
    gap: 0.55rem;
  }

  .hero__actions,
  .forever__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 1rem, 1180px);
  }

  .photo-grid {
    columns: 1;
  }

  .photo-card {
    transform: none !important;
  }

  .photo-card:hover {
    transform: translateY(-3px) !important;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    align-items: end;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: center;
  }

  .lightbox__figure img {
    max-width: 94vw;
    max-height: 72svh;
    border-width: 0.45rem;
  }

  .lightbox__nav--prev,
  .lightbox__nav--next {
    grid-row: 2;
    margin-bottom: 0.4rem;
  }

  .lightbox__nav--prev { grid-column: 1; justify-self: end; }
  .lightbox__nav--next { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .photo-card.reveal,
  .photo-card.reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
