:root {
  --ink: #17120f;
  --muted: #6f625b;
  --paper: #fffaf4;
  --blue: #9fe4ff;
  --pink: #ff9dc6;
  --gold: #f5c65b;
  --tomato: #ec6047;
  --mint: #b9e6cb;
  --hero-party: 0;
  --hero-sketch: 1;
  --rays-scale: 1;
  --party-scale: 0.98;
  --shade-y: -70vh;
  --shade-opacity: 0;
}

@font-face {
  font-family: "Blade Runner";
  src: url("assets/fonts/blade_runner/BLADRMF_.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  pointer-events: none;
}

.site-logo {
  color: var(--ink);
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.45);
  transition:
    color 160ms ease,
    font-family 160ms ease,
    font-size 160ms ease,
    text-transform 160ms ease;
  pointer-events: auto;
}

.logo-party {
  display: none;
}

.is-party .site-logo {
  font-family: "Blade Runner", Impact, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.is-party .logo-default {
  display: none;
}

.is-party .logo-party {
  display: inline;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: min(62vw, 44rem);
  pointer-events: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.62rem;
  border: 0.12rem solid rgba(23, 18, 15, 0.25);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(0.45rem);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #fff;
  border-color: var(--ink);
  transform: translateY(-0.08rem);
}

.is-party .site-nav a {
  border-color: rgba(23, 18, 15, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0.18rem 0.18rem 0 rgba(255, 157, 198, 0.88);
}

.hero-scroll {
  position: relative;
  height: 210vh;
  background: #fff;
}

#facts,
#life,
#food,
#thanks {
  scroll-margin-top: 5rem;
}

.hero-stage {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.party-rays {
  position: absolute;
  inset: -16vmax;
  opacity: var(--hero-party);
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.95) 0 7rem, transparent 7.1rem),
    repeating-conic-gradient(
      from -7deg at 50% 54%,
      var(--blue) 0deg 9deg,
      #fff8fc 9deg 12deg,
      var(--pink) 12deg 21deg,
      #ffffff 21deg 24deg
    );
  transform: scale(var(--rays-scale));
  transition: opacity 80ms linear;
}

.birthday-30 {
  position: absolute;
  top: 51%;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Tourney, Impact, sans-serif;
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.8;
  opacity: var(--hero-party);
  pointer-events: none;
  text-shadow:
    0.08em 0.08em 0 var(--pink),
    -0.08em -0.08em 0 var(--blue),
    0 0.04em 0 var(--ink);
  -webkit-text-stroke: 0.045em var(--ink);
}

.birthday-30 span {
  display: block;
  animation: spin-30 2.8s linear infinite;
}

.birthday-30-left {
  left: 17vw;
}

.birthday-30-right {
  right: 17vw;
}

.birthday-30-right span {
  animation-direction: reverse;
}

.birthday-30-top {
  top: 17%;
  left: 32vw;
  font-size: clamp(3.8rem, 7vw, 7rem);
  transform: rotate(-14deg);
}

.birthday-30-bottom {
  top: auto;
  right: 30vw;
  bottom: 8%;
  font-size: clamp(3.4rem, 6.4vw, 6.5rem);
  transform: rotate(11deg);
}

.birthday-30-top span {
  animation-duration: 2.2s;
}

.birthday-30-bottom span {
  animation-duration: 3.4s;
  animation-direction: reverse;
}

.party-emoji {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(3rem, 6vw, 5.8rem);
  aspect-ratio: 1;
  opacity: var(--hero-party);
  pointer-events: none;
  filter:
    drop-shadow(0.12rem 0.18rem 0 #fff)
    drop-shadow(0.18rem 0.2rem 0 var(--ink));
}

.party-emoji span {
  display: block;
  font-size: clamp(2.4rem, 5vw, 5rem);
  animation: spin-30 3s linear infinite;
}

.party-emoji-one {
  top: 23%;
  right: 20vw;
}

.party-emoji-two {
  top: 35%;
  left: 10vw;
}

.party-emoji-three {
  right: 11vw;
  bottom: 27%;
}

.party-emoji-four {
  left: 27vw;
  bottom: 13%;
}

.party-emoji-two span,
.party-emoji-four span {
  animation-direction: reverse;
}

.party-emoji-three span {
  animation-duration: 2.3s;
}

.party-emoji-four span {
  animation-duration: 1.9s;
}

.hero-figure {
  position: relative;
  z-index: 2;
  width: min(72vw, 28rem);
  height: min(88vh, 48rem);
  overflow: visible;
}

.hero-image {
  user-select: none;
  pointer-events: none;
}

.hero-sketch {
  position: absolute;
  left: 50%;
  top: -3vh;
  height: min(152vh, 82rem);
  max-width: none;
  clip-path: inset(0 0 51% 0);
  opacity: var(--hero-sketch);
  transform: translateX(-50%);
  transition: opacity 80ms linear;
}

.hero-party-wrap {
  position: absolute;
  left: 50%;
  top: 2vh;
  height: min(92vh, 50rem);
  opacity: var(--hero-party);
  transform: translateX(-50%) scale(var(--party-scale));
  transition: opacity 80ms linear;
}

.hero-party {
  height: 100%;
  max-width: none;
}

.sunglasses {
  position: absolute;
  top: 8.3%;
  left: 38%;
  width: 24.5%;
  aspect-ratio: 3 / 1;
  opacity: var(--shade-opacity);
  transform: translate(-50%, var(--shade-y));
  filter: drop-shadow(0 0.25rem 0 rgba(255, 255, 255, 0.5));
  image-rendering: pixelated;
}

.sunglasses::before,
.sunglasses::after {
  position: absolute;
  top: 12%;
  content: "";
  width: 43%;
  height: 68%;
  background: #111;
  border: 0.25rem solid #111;
  clip-path: polygon(0 16%, 62% 0, 100% 26%, 82% 100%, 16% 88%);
  box-shadow:
    inset 0.35rem 0.25rem 0 rgba(255, 255, 255, 0.18),
    0.25rem 0.25rem 0 #ff4c9a;
}

.sunglasses::before {
  left: 0;
}

.sunglasses::after {
  right: 0;
  transform: scaleX(-1);
}

.sunglasses span {
  position: absolute;
  left: 39%;
  top: 35%;
  width: 22%;
  height: 22%;
  background: #111;
  box-shadow: 0 0.2rem 0 #111;
}

@keyframes spin-30 {
  to {
    transform: rotate(360deg);
  }
}

.facts-section {
  position: relative;
  display: grid;
  min-height: 82vh;
  place-items: center;
  padding: 7rem 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.72), transparent 0.7rem 1.1rem, transparent 1.2rem),
    radial-gradient(circle at 72% 32%, rgba(255, 255, 255, 0.5), transparent 0.5rem 0.9rem, transparent 1rem),
    linear-gradient(180deg, #bdefff 0%, #8ed9f2 58%, #5fbad9 100%);
}

.facts-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-radial-gradient(ellipse at 18% 12%, rgba(255, 255, 255, 0.24) 0 0.12rem, transparent 0.13rem 3.2rem),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.18) 0 0.35rem, transparent 0.36rem 3.8rem);
  opacity: 0.58;
  pointer-events: none;
}

.ocean-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.facts-block {
  position: relative;
  z-index: 2;
  width: min(100%, 37.5rem);
  padding: 2rem;
  background: rgba(232, 250, 255, 0.76);
  border: 0.16rem solid rgba(23, 18, 15, 0.18);
  backdrop-filter: blur(0.2rem);
}

.bubble {
  position: absolute;
  border: 0.18rem solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, rgba(255, 255, 255, 0.22) 32%, transparent 62%);
  opacity: 0.78;
  animation: bubble-drift 7s ease-in-out infinite;
}

.bubble-one {
  left: 8%;
  bottom: 18%;
  width: 2.2rem;
  aspect-ratio: 1;
}

.bubble-two {
  left: 17%;
  top: 18%;
  width: 1.25rem;
  aspect-ratio: 1;
  animation-delay: -2s;
}

.bubble-three {
  right: 14%;
  top: 20%;
  width: 2.75rem;
  aspect-ratio: 1;
  animation-delay: -4s;
}

.bubble-four {
  right: 28%;
  bottom: 17%;
  width: 1.45rem;
  aspect-ratio: 1;
  animation-delay: -1.2s;
}

.bubble-five {
  left: 31%;
  bottom: 27%;
  width: 0.85rem;
  aspect-ratio: 1;
  animation-delay: -5s;
}

.bubble-six {
  right: 7%;
  bottom: 42%;
  width: 1rem;
  aspect-ratio: 1;
  animation-delay: -3s;
}

.seaweed {
  position: absolute;
  bottom: -0.8rem;
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
}

.seaweed span {
  display: block;
  width: 1.2rem;
  height: 8rem;
  border-left: 0.7rem solid #15916d;
  border-radius: 80% 0 0 0;
  transform-origin: bottom center;
}

.seaweed span:nth-child(2) {
  height: 10rem;
  border-left-color: #0d765d;
  transform: rotate(8deg);
}

.seaweed span:nth-child(3) {
  height: 7.2rem;
  border-left-color: #31a76b;
  transform: rotate(-13deg);
}

.seaweed-one {
  left: 4%;
}

.seaweed-two {
  right: 8%;
}

.seaweed-three {
  left: 76%;
  transform: scale(0.78);
}

.cartoon-fish,
.cartoon-dolphin {
  position: absolute;
  filter: drop-shadow(0.18rem 0.22rem 0 rgba(23, 18, 15, 0.18));
}

.cartoon-fish {
  width: 7.8rem;
  height: 4.8rem;
  border: 0.18rem solid var(--ink);
  border-radius: 58% 44% 52% 46%;
}

.cartoon-fish::before {
  position: absolute;
  top: 1rem;
  left: -2.15rem;
  width: 2.5rem;
  height: 2.6rem;
  content: "";
  background: inherit;
  border: 0.18rem solid var(--ink);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.cartoon-fish::after {
  position: absolute;
  top: 1.15rem;
  right: 1rem;
  width: 0.45rem;
  aspect-ratio: 1;
  content: "";
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0.18rem -0.08rem 0 #fff inset;
}

.cartoon-fish span {
  position: absolute;
  right: 2.2rem;
  bottom: -1rem;
  width: 2.6rem;
  height: 1.4rem;
  background: inherit;
  border: 0.18rem solid var(--ink);
  border-radius: 0 0 80% 80%;
  clip-path: polygon(8% 0, 100% 0, 64% 100%, 24% 82%);
}

.yellow-tang {
  background: #ffdc38;
}

.yellow-tang span {
  background: #f6c923;
}

.tang-one {
  top: 18%;
  left: 7%;
  transform: rotate(-7deg);
}

.tang-two {
  right: 10%;
  bottom: 19%;
  transform: scaleX(-1) rotate(9deg);
}

.christmas-wrasse {
  top: 60%;
  left: 12%;
  width: 10rem;
  height: 3.6rem;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, 0.78) 9% 14%, transparent 14%),
    repeating-linear-gradient(90deg, #1b8f60 0 1.15rem, #e33b39 1.15rem 2rem, #2daae1 2rem 2.7rem, #ffd84d 2.7rem 3.2rem);
  transform: rotate(8deg);
}

.christmas-wrasse::before {
  top: 0.62rem;
  left: -2rem;
  height: 2.2rem;
}

.christmas-wrasse span {
  background: #e33b39;
}

.moorish-idol {
  top: 24%;
  right: 14%;
  width: 7.1rem;
  height: 5.7rem;
  background:
    linear-gradient(90deg, #fff 0 24%, #111 24% 39%, #fff 39% 56%, #111 56% 71%, #ffdc42 71% 100%);
  transform: rotate(-11deg);
}

.moorish-idol::before {
  top: 1.38rem;
}

.moorish-idol span {
  top: -4.8rem;
  right: 2.1rem;
  bottom: auto;
  width: 0.85rem;
  height: 5.8rem;
  background: #111;
  border-radius: 90% 90% 0 0;
  clip-path: polygon(45% 0, 100% 100%, 0 100%);
}

.cartoon-dolphin {
  top: 12%;
  left: 52%;
  width: 13rem;
  height: 5.4rem;
  background: #73b9d7;
  border: 0.18rem solid var(--ink);
  border-radius: 72% 42% 52% 70%;
  transform: rotate(-8deg);
}

.cartoon-dolphin::before {
  position: absolute;
  top: 1.6rem;
  right: -2.3rem;
  width: 3.8rem;
  height: 1.65rem;
  content: "";
  background: #73b9d7;
  border: 0.18rem solid var(--ink);
  border-left: 0;
  border-radius: 0 80% 80% 0;
}

.cartoon-dolphin::after {
  position: absolute;
  left: 4.2rem;
  bottom: -1.1rem;
  width: 3.4rem;
  height: 1.6rem;
  content: "";
  background: #539bbd;
  border: 0.18rem solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 35% 100%);
}

.cartoon-dolphin span {
  position: absolute;
  top: -1.4rem;
  left: 4.7rem;
  width: 2.8rem;
  height: 2.2rem;
  background: #539bbd;
  border: 0.18rem solid var(--ink);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.cartoon-dolphin span::after {
  position: absolute;
  right: -3.8rem;
  bottom: -1.55rem;
  width: 0.42rem;
  aspect-ratio: 1;
  content: "";
  background: var(--ink);
  border-radius: 50%;
}

@keyframes bubble-drift {
  50% {
    transform: translateY(-1.1rem) translateX(0.35rem);
  }
}

.facts-block h1,
.timeline-title h2,
.pyramid-wrap h2,
.goodbye-copy h2 {
  margin: 0;
  font-size: 3.25rem;
  line-height: 1;
}

.facts-list {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
}

.facts-list div {
  padding: 0 0 1.1rem;
  border-bottom: 0.125rem solid rgba(23, 18, 15, 0.18);
}

.facts-list dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts-list dd {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

.timeline-section {
  position: relative;
  height: 1720vh;
  background:
    linear-gradient(180deg, #f9f3e7, #fff 18%, #eff8ff 52%, #fff9f6);
}

.timeline-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 5rem 1.5rem 3rem;
}

.timeline-title {
  width: min(100%, 70rem);
  margin: 0 auto 1.5rem;
}

.timeline-title p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-shell {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 2rem;
  width: min(100%, 70rem);
  height: calc(100vh - 13rem);
  min-height: 30rem;
  margin: 0 auto;
}

.timeline-tracker {
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 0.35rem 0;
}

.timeline-tracker::before {
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 50%;
  width: 0.125rem;
  content: "";
  background: rgba(23, 18, 15, 0.28);
  transform: translateX(-50%);
}

.tracker-dot {
  position: relative;
  z-index: 1;
  width: 0.8rem;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 0.125rem solid rgba(23, 18, 15, 0.78);
  border-radius: 50%;
  background: transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.tracker-dot.is-active {
  background: transparent;
  border-color: var(--ink);
  transform: scale(1.35);
}

.timeline-panels {
  position: relative;
  min-width: 0;
}

.timeline-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(14rem, 0.82fr) minmax(18rem, 1.18fr);
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: transform 180ms ease;
}

.timeline-panel.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
}

.timeline-copy {
  align-self: center;
}

.timeline-copy p {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.08;
}

.timeline-copy small {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.timeline-media {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  place-items: center;
  margin: 0;
}

.timeline-media img {
  width: 100%;
  height: 100%;
  max-height: 34rem;
  object-fit: cover;
  border: 0.22rem solid var(--ink);
  box-shadow: 0.7rem 0.7rem 0 #ffffff, 1rem 1rem 0 var(--ink);
}

.placeholder-media,
.ellipsis-media {
  border: 0.22rem dashed rgba(23, 18, 15, 0.7);
  background:
    linear-gradient(135deg, rgba(159, 228, 255, 0.28), rgba(255, 157, 198, 0.24)),
    #fff;
  box-shadow: 0.7rem 0.7rem 0 rgba(23, 18, 15, 0.12);
}

.placeholder-media span {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ellipsis-media span {
  margin-bottom: 4rem;
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
}

.overlap-media {
  display: block;
  min-height: 32rem;
}

.overlap-media img {
  position: absolute;
  width: 76%;
  height: 62%;
  object-fit: cover;
}

.overlap-top {
  top: 0;
  left: 0;
}

.overlap-bottom {
  right: 0;
  bottom: 0;
}

.pyramid-section {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff9f6, #f0fff6);
}

.pyramid-snacks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.snack {
  position: absolute;
  height: auto;
  opacity: 0.2;
  transform: rotate(var(--rotate));
  transform-origin: center;
  user-select: none;
}

.snack-knudsen {
  width: clamp(7rem, 12vw, 13.5rem);
}

.snack-tomato {
  width: clamp(4rem, 7vw, 7rem);
}

.snack-1 {
  top: 8%;
  left: 5%;
  --rotate: -18deg;
}

.snack-2 {
  top: 13%;
  left: 31%;
  --rotate: 26deg;
}

.snack-3 {
  top: 16%;
  right: 10%;
  --rotate: -14deg;
}

.snack-4 {
  top: 35%;
  right: 4%;
  --rotate: 18deg;
}

.snack-5 {
  top: 45%;
  left: 8%;
  --rotate: -34deg;
}

.snack-6 {
  bottom: 11%;
  left: 12%;
  --rotate: 22deg;
}

.snack-7 {
  bottom: 20%;
  left: 29%;
  --rotate: 11deg;
}

.snack-8 {
  bottom: 9%;
  right: 13%;
  --rotate: -24deg;
}

.snack-9 {
  top: 58%;
  right: 25%;
  --rotate: 31deg;
}

.snack-10 {
  top: 63%;
  left: -2%;
  --rotate: 7deg;
}

.snack-11 {
  bottom: 33%;
  right: 6%;
  --rotate: -42deg;
}

.snack-12 {
  bottom: 6%;
  left: 45%;
  --rotate: 18deg;
}

.pyramid-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
}

.food-pyramid {
  display: block;
  width: min(100%, 42rem);
  height: auto;
  margin: 3rem auto 0;
  overflow: visible;
}

.pyramid-outline,
.pyramid-line {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.pyramid-label {
  fill: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.pyramid-label-large {
  font-size: 24px;
}

.goodbye-section {
  display: grid;
  grid-template-columns: minmax(18rem, 1.1fr) minmax(0, 0.9fr);
  min-height: 100vh;
  background: #fff;
}

.goodbye-copy {
  display: grid;
  align-items: center;
  padding: 5rem;
}

.goodbye-copy h2 {
  max-width: 12ch;
}

.goodbye-photo {
  min-height: 100vh;
  margin: 0;
}

.goodbye-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding: 1rem;
  }

  .site-logo {
    font-size: 1.7rem;
  }

  .is-party .site-logo {
    font-size: 2.2rem;
  }

  .site-nav {
    max-width: 62vw;
    gap: 0.28rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 1.85rem;
    padding: 0.32rem 0.5rem;
    font-size: 0.66rem;
  }

  .hero-figure {
    width: min(84vw, 23rem);
    height: min(86vh, 42rem);
  }

  .facts-block {
    padding: 1.5rem;
  }

  .cartoon-fish {
    width: 5.8rem;
    height: 3.6rem;
  }

  .christmas-wrasse {
    width: 7.5rem;
    height: 2.9rem;
  }

  .moorish-idol {
    width: 5.5rem;
    height: 4.4rem;
  }

  .cartoon-dolphin {
    top: 10%;
    left: 42%;
    width: 9rem;
    height: 3.8rem;
  }

  .seaweed span {
    height: 6.2rem;
  }

  .seaweed span:nth-child(2) {
    height: 7.8rem;
  }

  .timeline-section {
    height: 1780vh;
  }

  .timeline-stage {
    padding: 4.8rem 1rem 2rem;
  }

  .facts-block h1,
  .timeline-title h2,
  .pyramid-wrap h2,
  .goodbye-copy h2 {
    font-size: 2.25rem;
  }

  .timeline-shell {
    grid-template-columns: 1.55rem minmax(0, 1fr);
    gap: 1rem;
    height: calc(100vh - 11rem);
    min-height: 34rem;
  }

  .timeline-panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(7rem, auto) minmax(0, 1fr);
    gap: 1.2rem;
    align-content: center;
  }

  .timeline-copy p {
    font-size: 1.55rem;
  }

  .timeline-media {
    min-height: 19rem;
  }

  .timeline-media img {
    max-height: 25rem;
  }

  .overlap-media {
    min-height: 23rem;
  }

  .pyramid-section {
    padding-inline: 1rem;
  }

  .goodbye-section {
    grid-template-columns: 1fr;
  }

  .goodbye-copy {
    min-height: 45vh;
    padding: 4rem 1.5rem;
  }

  .goodbye-photo {
    min-height: 60vh;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 0.65rem;
  }

  .site-logo {
    min-width: 7.4rem;
  }

  .is-party .site-logo {
    min-width: 6.3rem;
    font-size: 1.85rem;
  }

  .site-nav {
    max-width: calc(100vw - 9rem);
  }

  .site-nav a {
    font-size: 0.6rem;
  }

  .hero-figure {
    width: 92vw;
  }

  .facts-section {
    padding-inline: 1rem;
  }

  .facts-block {
    padding: 1.25rem;
  }

  .tang-one {
    top: 13%;
    left: -1.2rem;
  }

  .tang-two {
    right: -1.4rem;
    bottom: 13%;
  }

  .christmas-wrasse {
    top: 72%;
    left: 5%;
  }

  .moorish-idol {
    top: 16%;
    right: -1rem;
  }

  .cartoon-dolphin {
    top: 8%;
    left: 30%;
    transform: scale(0.78) rotate(-8deg);
  }

  .seaweed-one {
    left: -0.8rem;
  }

  .seaweed-two {
    right: -0.8rem;
  }

  .bubble-three,
  .bubble-six {
    display: none;
  }

  .hero-sketch {
    top: -1vh;
    height: min(138vh, 70rem);
    clip-path: inset(0 0 50% 0);
  }

  .birthday-30 {
    top: 71%;
    font-size: 4rem;
  }

  .birthday-30-left {
    left: 10%;
  }

  .birthday-30-right {
    right: 10%;
  }

  .birthday-30-top {
    top: 21%;
    left: 8%;
    font-size: 3.1rem;
  }

  .birthday-30-bottom {
    right: 9%;
    bottom: 13%;
    font-size: 3rem;
  }

  .party-emoji {
    width: 3.2rem;
  }

  .party-emoji span {
    font-size: 2.65rem;
  }

  .party-emoji-one {
    top: 18%;
    right: 11%;
  }

  .party-emoji-two {
    top: 43%;
    left: 5%;
  }

  .party-emoji-three {
    right: 4%;
    bottom: 31%;
  }

  .party-emoji-four {
    left: 18%;
    bottom: 8%;
  }

  .timeline-title p {
    font-size: 0.72rem;
  }

  .timeline-copy p {
    font-size: 1.35rem;
  }

  .timeline-copy small {
    font-size: 0.9rem;
  }

  .timeline-media {
    min-height: 17rem;
  }

  .snack {
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
