:root {
  --sky-top: #e5edf4;
  --sky-mid: #f2f6fa;
  --sky-soft: #d6e3ee;
  --blue-powder: #c3d3e1;
  --blue-dusty: #9fb5c6;
  --beige: #f4ebdf;
  --beige-strong: #fcf7ef;
  --cream: #fffaf2;
  --blush: #edd7cf;
  --sand: #e8dccd;
  --taupe: #9e8576;
  --brown-mid: #866a5c;
  --brown-dark: #665045;
  --text: #5f4a40;
  --muted: #8a7468;
  --line: rgba(134, 106, 92, 0.16);
  --shadow: 0 28px 70px rgba(102, 80, 69, 0.14);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Quicksand", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 20%, var(--beige) 60%, var(--blush) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

body::before {
  top: -120px;
  left: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 72%);
}

body::after {
  right: -140px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(237, 215, 207, 0.7) 0%, rgba(237, 215, 207, 0) 74%);
}

.page-shell {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.decor-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.decor-layer::before,
.decor-layer::after {
  content: "";
  position: absolute;
  left: -4vw;
  width: 108vw;
  pointer-events: none;
  opacity: 0.92;
}

.decor-layer::before {
  top: 0;
  height: 210px;
  background:
    radial-gradient(circle at 4% 70%, rgba(255, 255, 255, 0.78) 0 42px, transparent 43px),
    radial-gradient(circle at 12% 46%, rgba(255, 255, 255, 0.86) 0 58px, transparent 59px),
    radial-gradient(circle at 21% 66%, rgba(255, 255, 255, 0.8) 0 48px, transparent 49px),
    radial-gradient(circle at 33% 48%, rgba(255, 255, 255, 0.86) 0 64px, transparent 65px),
    radial-gradient(circle at 46% 66%, rgba(255, 255, 255, 0.78) 0 50px, transparent 51px),
    radial-gradient(circle at 58% 42%, rgba(255, 255, 255, 0.84) 0 62px, transparent 63px),
    radial-gradient(circle at 71% 66%, rgba(255, 255, 255, 0.8) 0 50px, transparent 51px),
    radial-gradient(circle at 83% 46%, rgba(255, 255, 255, 0.86) 0 60px, transparent 61px),
    radial-gradient(circle at 95% 68%, rgba(255, 255, 255, 0.8) 0 46px, transparent 47px);
  filter: blur(1px);
}

.decor-layer::after {
  bottom: 34px;
  height: 170px;
  background:
    radial-gradient(circle at 9% 58%, rgba(255, 255, 255, 0.42) 0 36px, transparent 37px),
    radial-gradient(circle at 25% 42%, rgba(255, 255, 255, 0.48) 0 48px, transparent 49px),
    radial-gradient(circle at 42% 60%, rgba(255, 255, 255, 0.42) 0 40px, transparent 41px),
    radial-gradient(circle at 61% 40%, rgba(255, 255, 255, 0.46) 0 52px, transparent 53px),
    radial-gradient(circle at 78% 58%, rgba(255, 255, 255, 0.42) 0 38px, transparent 39px),
    radial-gradient(circle at 93% 42%, rgba(255, 255, 255, 0.48) 0 46px, transparent 47px);
  filter: blur(1.5px);
}

.cloud {
  position: absolute;
  display: block;
  height: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(0.4px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 74px;
  height: 74px;
  left: 14px;
  bottom: 18px;
}

.cloud::after {
  width: 88px;
  height: 88px;
  right: 18px;
  bottom: 12px;
}

.cloud-left {
  top: 68px;
  left: 4vw;
  width: 240px;
}

.cloud-right {
  top: 132px;
  right: 6vw;
  width: 220px;
}

.cloud-bottom {
  bottom: 96px;
  left: 24vw;
  width: 280px;
  opacity: 0.46;
}

.paw {
  position: absolute;
  display: block;
  width: 92px;
  height: 92px;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.44) 0 17px, transparent 18px),
    radial-gradient(circle at 24% 30%, rgba(255, 255, 255, 0.44) 0 10px, transparent 11px),
    radial-gradient(circle at 42% 16%, rgba(255, 255, 255, 0.44) 0 10px, transparent 11px),
    radial-gradient(circle at 60% 16%, rgba(255, 255, 255, 0.44) 0 10px, transparent 11px),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.44) 0 10px, transparent 11px);
  opacity: 0.75;
  transform: rotate(-16deg);
}

.paw-one {
  top: 18%;
  right: 4%;
}

.paw-two {
  top: 46%;
  left: 1%;
  transform: rotate(18deg);
}

.paw-three {
  bottom: 10%;
  right: 22%;
}

.hero,
.story-card,
.gallery-section,
.family-section,
.detail-card,
.timeline,
.confirm-section {
  position: relative;
  overflow: hidden;
  background: rgba(252, 247, 239, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero::before,
.story-card::before,
.gallery-section::before,
.family-section::before,
.detail-card::before,
.timeline::before,
.confirm-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(214, 227, 238, 0.42), transparent 34%);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  padding: 38px;
  border-radius: 40px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 34px;
  right: 34px;
  height: 16px;
  background: radial-gradient(circle at 8px 8px, rgba(255, 255, 255, 0.8) 0 7px, transparent 8px);
  background-size: 30px 16px;
  opacity: 0.8;
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.story-card > *,
.gallery-section > *,
.family-section > *,
.detail-card > *,
.timeline > *,
.confirm-section > * {
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.section-heading h2,
.timeline-item h3,
.story-grid h3,
.floating-card strong {
  font-family: "Quicksand", sans-serif;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(214, 227, 238, 0.68);
  border: 1px solid rgba(158, 133, 118, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-mid);
}

.hero-script {
  margin: 0 0 14px;
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--brown-mid);
}

.hero-copy h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3rem, 5.8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  text-wrap: balance;
}

.hero-text {
  max-width: 560px;
  margin: 18px 0 20px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.mini-badge {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(158, 133, 118, 0.16);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brown-mid);
}

.event-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(214, 227, 238, 0.9), rgba(255, 250, 242, 0.96));
  border: 1px solid rgba(158, 133, 118, 0.16);
  box-shadow: 0 16px 30px rgba(102, 80, 69, 0.08);
  font-weight: 800;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--blue-dusty), var(--taupe));
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.time-box {
  padding: 18px 12px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 247, 239, 0.96)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.24) 0,
      rgba(255, 255, 255, 0.24) 10px,
      rgba(214, 227, 238, 0.18) 10px,
      rgba(214, 227, 238, 0.18) 20px
    );
  border: 1px solid rgba(158, 133, 118, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: center;
}

.time-box span {
  display: block;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brown-mid);
}

.time-box small {
  display: block;
  margin-top: 6px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button.primary {
  color: #fffaf6;
  background: linear-gradient(135deg, var(--blue-dusty) 0%, var(--taupe) 100%);
  box-shadow: 0 16px 30px rgba(102, 80, 69, 0.22);
}

.button.secondary,
.button.tertiary {
  color: var(--brown-mid);
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(158, 133, 118, 0.16);
  box-shadow: 0 12px 24px rgba(102, 80, 69, 0.08);
}

.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.68;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  padding: 26px 12px 12px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 22px 28px 18px;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(214, 227, 238, 0.82)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 14px,
      rgba(232, 220, 205, 0.16) 14px,
      rgba(232, 220, 205, 0.16) 28px
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 20px 34px rgba(102, 80, 69, 0.08);
}

.photo-slot {
  position: relative;
  display: grid;
  gap: 10px;
  place-items: center;
  border: 2px dashed rgba(158, 133, 118, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(214, 227, 238, 0.88)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.16) 12px,
      rgba(232, 220, 205, 0.18) 12px,
      rgba(232, 220, 205, 0.18) 24px
    );
  color: var(--muted);
  text-align: center;
}

.photo-slot span,
.photo-slot small {
  position: relative;
  z-index: 1;
}

.main-photo {
  min-height: 500px;
  align-content: center;
  padding: 0;
  border-radius: 48px;
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.22),
    0 22px 36px rgba(102, 80, 69, 0.14);
}

.main-photo::before,
.main-photo::after {
  content: "";
  position: absolute;
  top: -36px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e2cdc1 0%, #d3b6a6 100%);
  box-shadow: inset 0 0 0 18px #f3eadf;
}

.main-photo::before {
  left: 42px;
}

.main-photo::after {
  right: 42px;
}

.main-photo-fallback {
  position: absolute;
  inset: 16px;
  display: grid;
  gap: 10px;
  place-items: center;
  align-content: center;
  padding: 36px 26px 30px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(214, 227, 238, 0.42), rgba(252, 247, 239, 0.52));
}

.main-photo-image {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border-radius: 32px;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
  transition: opacity 220ms ease;
}

.main-photo.photo-ready .main-photo-image {
  opacity: 1;
}

.main-photo.photo-ready .main-photo-fallback {
  opacity: 0;
  visibility: hidden;
}

.main-photo-fallback span {
  max-width: 12ch;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--brown-mid);
}

.main-photo-fallback small {
  max-width: 18ch;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
}

.floating-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 36px rgba(102, 80, 69, 0.12);
}

.floating-card p {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.floating-card strong {
  font-size: 1rem;
  line-height: 1.3;
  color: var(--brown-mid);
}

.teddy-card {
  top: 70px;
  left: -4px;
  transform: rotate(-5deg);
}

.date-card {
  top: 24px;
  right: 8px;
  transform: rotate(4deg);
}

.age-card {
  left: 30px;
  bottom: 40px;
  transform: rotate(-3deg);
}

.story-card,
.gallery-section,
.family-section,
.timeline,
.confirm-section {
  margin-top: 28px;
  padding: 36px;
  border-radius: var(--radius-xl);
}

.section-heading h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.02;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.92fr;
  gap: 18px;
  margin-top: 26px;
}

.story-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 235, 223, 0.92));
  border: 1px solid rgba(158, 133, 118, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.story-grid h3,
.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.story-grid p,
.timeline-item p,
.confirm-copy p,
.detail-line,
.form-feedback {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.mini-gallery {
  display: grid;
  gap: 12px;
}

.photo-slot.small {
  min-height: 154px;
  padding: 20px;
  border-radius: 22px;
}

.story-photo {
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.story-photo .family-photo {
  min-height: 154px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.92);
}

.story-photo .family-photo .family-photo-image {
  object-fit: var(--photo-fit, cover);
  object-position: var(--photo-position, center 18%);
  transform: none;
}

.family-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.family-group-header p:last-child {
  max-width: 48ch;
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.gallery-section {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.gallery-section::before {
  display: none;
}

.photo-stack-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-radius: 34px;
  perspective: 1800px;
  perspective-origin: center 38%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(214, 227, 238, 0.48), rgba(252, 247, 239, 0.86)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 18px,
      rgba(232, 220, 205, 0.14) 18px,
      rgba(232, 220, 205, 0.14) 36px
    );
  border: 1px solid rgba(158, 133, 118, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 26px 38px rgba(102, 80, 69, 0.12);
}

.photo-stack-stage::before,
.photo-stack-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.photo-stack-stage::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.62) 0, rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 82% 84%, rgba(214, 227, 238, 0.46) 0, rgba(214, 227, 238, 0) 28%);
}

.photo-stack-stage::after {
  inset: 18px;
  border-radius: 26px;
  border: 1px dashed rgba(158, 133, 118, 0.16);
  opacity: 0;
  transition: opacity 700ms ease;
}

.photo-stack-stage.has-photos::after {
  opacity: 1;
}

.photo-stack-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--stack-width, 290px);
  max-width: min(78vw, 430px);
  aspect-ratio: 4 / 5;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    0 24px 42px rgba(102, 80, 69, 0.16),
    0 6px 16px rgba(102, 80, 69, 0.08);
  opacity: 0;
  cursor: grab;
  touch-action: none;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translate3d(
      calc(var(--stack-x, 0px) + var(--stack-drag-x, 0px)),
      calc(var(--stack-y, 0px) + var(--stack-drag-y, 0px)),
      var(--stack-lift, 0px)
    )
    rotate(calc(var(--stack-rotation, 0deg) + var(--stack-drag-rotation, 0deg)))
    rotateX(var(--stack-tilt-x, 0deg))
    rotateY(var(--stack-tilt-y, 0deg))
    scale(calc(var(--stack-scale, 1) * var(--stack-hover-scale, 1)));
  filter: none;
  transition:
    opacity 1650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms ease,
    filter 220ms ease,
    box-shadow 220ms ease;
  will-change: transform, opacity, filter;
}

.photo-stack-card.is-visible {
  opacity: 1;
  filter: none;
}

.photo-stack-card.is-dragging {
  cursor: grabbing;
  transition: none;
  box-shadow:
    0 34px 62px rgba(102, 80, 69, 0.22),
    0 12px 24px rgba(102, 80, 69, 0.1);
}

.photo-stack-plane {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.photo-stack-plane::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102, 80, 69, 0.22) 0%, rgba(102, 80, 69, 0) 72%);
  transform: translateZ(-32px) scale(1);
  filter: blur(22px);
  opacity: 0.2;
}

.photo-stack-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateZ(18px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.photo-stack-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
}

.family-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.family-group {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 235, 223, 0.92));
  border: 1px solid rgba(158, 133, 118, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.family-group-header {
  margin-bottom: 18px;
}

.family-group-header .eyebrow {
  margin-bottom: 10px;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.family-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid rgba(158, 133, 118, 0.12);
}

.family-photo {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(214, 227, 238, 0.88)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.16) 12px,
      rgba(232, 220, 205, 0.18) 12px,
      rgba(232, 220, 205, 0.18) 24px
    );
}

.family-photo-image,
.family-photo-fallback {
  position: absolute;
  inset: 0;
}

.family-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center 18%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.family-photo-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.photo-card.photo-ready .family-photo-image {
  opacity: 1;
}

.photo-card.photo-ready .family-photo-fallback {
  opacity: 0;
  visibility: hidden;
}

.family-photo-fallback span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown-mid);
}

.family-photo-fallback small {
  max-width: 18ch;
  line-height: 1.6;
}

.family-copy {
  display: grid;
  gap: 6px;
}

.family-role {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
}

.family-copy h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--brown-mid);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.detail-card {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.detail-card::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(237, 215, 207, 0.95), rgba(195, 211, 225, 0.98), rgba(244, 235, 223, 0.95));
  z-index: 1;
}

.detail-line + .detail-line {
  margin-top: 10px;
}

.detail-card .button {
  margin-top: 22px;
}

.timeline-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(244, 235, 223, 0.92));
  border: 1px solid rgba(158, 133, 118, 0.12);
}

.timeline-hour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(195, 211, 225, 0.94), rgba(255, 250, 242, 0.98));
  color: var(--brown-mid);
  font-weight: 800;
}

.confirm-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.confirm-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(237, 215, 207, 0.38);
  font-weight: 700;
}

.confirm-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 235, 223, 0.94));
  border: 1px solid rgba(158, 133, 118, 0.12);
}

.confirm-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.confirm-form input,
.confirm-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(158, 133, 118, 0.18);
  border-radius: 18px;
  background: rgba(242, 246, 250, 0.78);
  font: inherit;
  color: var(--text);
}

.confirm-form input:focus,
.confirm-form textarea:focus {
  outline: 2px solid rgba(159, 181, 198, 0.26);
  border-color: rgba(159, 181, 198, 0.5);
}

.form-feedback {
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .story-grid,
  .family-groups,
  .family-grid,
  .details-grid,
  .confirm-section {
    grid-template-columns: 1fr;
  }

  .family-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 500px;
  }

  .main-photo {
    min-height: 420px;
  }

  .main-photo-image {
    object-position: center 16%;
  }

  .teddy-card {
    top: 82px;
    left: 4px;
  }

  .age-card {
    left: 24px;
    bottom: 34px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
    padding-bottom: 34px;
  }

  .cloud-right,
  .paw-three {
    display: none;
  }

  .decor-layer::before {
    left: -10vw;
    width: 120vw;
  }

  .decor-layer::after {
    left: -8vw;
    width: 116vw;
    bottom: 18px;
  }

  .hero,
  .story-card,
  .gallery-section,
  .family-section,
  .detail-card,
  .timeline,
  .confirm-section {
    padding: 22px;
    border-radius: 28px;
  }

  .hero::after {
    left: 20px;
    right: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .photo-stack-stage {
    min-height: 430px;
  }

  .photo-stack-card {
    max-width: min(78vw, 300px);
  }

  .hero-visual {
    display: grid;
    min-height: auto;
    padding: 0;
    gap: 14px;
  }

  .hero-visual::before {
    inset: 10px 12px 18px;
    border-radius: 30px;
  }

  .main-photo {
    min-height: 320px;
    border-radius: 34px;
  }

  .main-photo::before,
  .main-photo::after {
    width: 92px;
    height: 92px;
    top: -28px;
    box-shadow: inset 0 0 0 14px #f3eadf;
  }

  .main-photo::before {
    left: 28px;
  }

  .main-photo::after {
    right: 28px;
  }

  .main-photo-fallback,
  .main-photo-image {
    inset: 12px;
    border-radius: 22px;
  }

  .main-photo-image {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    object-position: center 14%;
  }

  .floating-card {
    position: static;
    transform: none;
  }

  .family-photo {
    min-height: 220px;
  }
}
