/* ==========================================
   REAGAN BIRTHDAY EXPERIENCE
   OMEGA FUSION DESIGN SYSTEM
========================================== */

:root {
  --bg: #080611;
  --bg-soft: #0d0a1b;
  --panel: rgba(21, 16, 39, 0.72);

  --gold: #e9c77b;
  --gold-light: #ffe9ae;
  --purple: #a58aff;
  --blue: #6da9ff;
  --pink: #ed9bd9;

  --text: #f8f5ff;
  --muted: #a9a3bb;

  --border: rgba(233, 199, 123, 0.17);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --tech: "Space Grotesk", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: #080611;
}

/* BACKGROUND SYSTEM */

#particles,
#celebration {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#particles {
  z-index: 0;
  opacity: .75;
}

#celebration {
  z-index: 100;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .025;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
  opacity: .12;
  animation: ambientDrift 16s ease-in-out infinite alternate;
}

.ambient-one {
  background: #7041dc;
  top: -180px;
  left: -160px;
}

.ambient-two {
  background: #1745a5;
  right: -200px;
  top: 35%;
  animation-delay: -6s;
}

.ambient-three {
  background: #a23c83;
  left: 20%;
  bottom: -280px;
  animation-delay: -10s;
}

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(60px, -35px, 0) scale(1.15);
  }
}

/* NAVIGATION */

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 90px;
  padding: 20px 7%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255,255,255,.045);
  background: rgba(8, 6, 17, .3);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  font-family: var(--tech);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
}

.brand-icon {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  border: 1px solid var(--gold);
  color: var(--gold);

  font-family: var(--serif);
  font-size: 22px;

  transform: rotate(-6deg);
}

.brand-dot {
  color: var(--gold);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4edb9;
  box-shadow: 0 0 12px #a4edb9;
  animation: pulse 2s infinite;
}

.topbar-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

@keyframes pulse {
  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

/* GLOBAL SECTION */

.section {
  position: relative;
  z-index: 2;
  padding: 125px 8%;
}

.hero {
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 130px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
}

.eyebrow,
.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  font-family: var(--tech);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
}

.eyebrow-line,
.date-line {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow-line:last-child {
  transform: rotate(180deg);
}

.hero-kicker {
  margin-top: 38px;

  color: var(--muted);
  font-size: 10px;
  letter-spacing: 5px;
}

.hero-title {
  margin-top: 18px;

  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(45px, 8vw, 100px);
  line-height: 1.12;
  letter-spacing: -3px;
}

.hero-name {
  display: block;

  background: linear-gradient(
    110deg,
    #fff1c6 10%,
    #e9c77b 35%,
    #b9a0ff 65%,
    #f2c3e6 85%
  );

  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  filter: drop-shadow(0 0 28px rgba(190, 153, 255, .14));
}

.gold-dot {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.hero-description {
  max-width: 480px;
  margin: 26px auto 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-date {
  margin-top: 34px;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 2px;
}

.date-line {
  width: 24px;
  opacity: .7;
}

.date-star {
  color: var(--purple);
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  margin-top: 38px;
  padding: 17px 24px;

  border: 1px solid rgba(255, 226, 164, .6);
  border-radius: 3px;

  background: linear-gradient(
    110deg,
    rgba(233, 199, 123, .14),
    rgba(165, 138, 255, .1)
  );

  font-family: var(--tech);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;

  cursor: pointer;
  transition:
    transform .4s var(--ease),
    background .4s ease,
    box-shadow .4s ease;
}

.primary-button:hover {
  transform: translateY(-4px);
  background: rgba(233, 199, 123, .17);
  box-shadow: 0 10px 45px rgba(233, 199, 123, .1);
}

.button-icon {
  color: var(--gold);
  font-size: 18px;
}

.button-arrow {
  color: var(--gold);
  transition: transform .3s ease;
}

.primary-button:hover .button-arrow {
  transform: translate(3px, -3px);
}

.hero-hint {
  margin-top: 24px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #756e89;
}

.hero-hint span {
  color: var(--pink);
}

/* ORBITAL DECORATION */

.hero-orbit {
  position: absolute;
  left: 50%;
  top: 50%;

  width: min(75vw, 650px);
  aspect-ratio: 1;

  border: 1px solid rgba(165, 138, 255, .06);
  border-radius: 50%;

  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit-two {
  width: min(90vw, 800px);
  border-color: rgba(233, 199, 123, .045);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;

  transform: translateX(-50%);

  font-size: 8px;
  letter-spacing: 2px;
  color: #827a99;
}

.scroll-arrow {
  color: var(--gold);
  animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
  50% {
    transform: translateY(5px);
  }
}

/* SECTION LABELS */

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;

  margin-bottom: 60px;

  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

.section-label > span:first-child {
  color: var(--gold);
}

.label-line {
  display: inline-block;
  width: 45px;
  height: 1px;
  background: var(--border);
}

/* CELEBRATION CARD */

.reveal-section {
  padding-top: 75px;
  padding-bottom: 150px;
}

.celebration-card {
  position: relative;
  max-width: 850px;
  margin: auto;

  padding: 75px 35px;

  text-align: center;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(165, 138, 255, .13),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.008)
    );

  border: 1px solid var(--border);
  border-radius: 5px;

  box-shadow: 0 25px 100px rgba(0,0,0,.18);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  left: 50%;
  top: -260px;

  transform: translateX(-50%);

  background: var(--purple);
  filter: blur(100px);
  opacity: .18;
}

.crown-icon {
  position: relative;
  display: inline-block;

  color: var(--gold);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 26px;
}

.small-caps {
  position: relative;

  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold);
}

.celebration-card h2 {
  position: relative;

  margin-top: 25px;

  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(35px, 6vw, 65px);
  line-height: 1.25;
}

.celebration-card h2 span {
  display: block;
  color: var(--gold);
}

.celebration-description {
  max-width: 450px;
  margin: 24px auto 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.celebration-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin-top: 32px;
  color: var(--gold);
}

.celebration-divider span {
  width: 65px;
  height: 1px;
  background: var(--border);
}

.outline-button {
  margin-top: 30px;
  padding: 13px 22px;

  background: transparent;
  border: 1px solid rgba(165,138,255,.35);

  color: #d7ccff;
  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 1.5px;

  cursor: pointer;
  transition: all .3s ease;
}

.outline-button:hover {
  background: rgba(165,138,255,.1);
  border-color: var(--purple);
  box-shadow: 0 0 30px rgba(165,138,255,.12);
}

/* GALLERY */

.gallery-section {
  padding-top: 100px;
  padding-bottom: 150px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(18, 12, 34, .55),
    transparent
  );
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-heading h2,
.wishes-heading h2 {
  margin-top: 15px;

  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(35px, 5vw, 57px);
  line-height: 1.3;
}

.section-heading h2 span,
.wishes-heading h2 span {
  color: var(--gold);
  font-style: italic;
}

.section-heading > p:last-child {
  margin-top: 18px;

  font-size: 13px;
  color: var(--muted);
}

.photo-grid {
  max-width: 1050px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
}

.photo-card {
  min-width: 0;
  padding: 12px;

  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.018);

  transition:
    border-color .4s ease,
    transform .5s var(--ease),
    background .4s ease;
}

.photo-card-two {
  margin-top: 45px;
}

.photo-card:hover {
  transform: translateY(-7px);
  border-color: rgba(233,199,123,.25);
  background: rgba(255,255,255,.035);
}

.photo-frame {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: #161124;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .8s var(--ease), filter .5s ease;
}

.photo-card:hover .photo-frame img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

.photo-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: flex-end;
  align-items: flex-start;

  padding: 14px;

  background: linear-gradient(
    180deg,
    rgba(8,6,17,.3),
    transparent 25%,
    transparent 75%,
    rgba(8,6,17,.5)
  );
}

.zoom-button {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  background: rgba(8,6,17,.7);
  border: 1px solid rgba(255,255,255,.25);

  backdrop-filter: blur(10px);

  cursor: pointer;
  transition: all .3s ease;
}

.zoom-button:hover {
  background: var(--gold);
  color: #080611;
}

.photo-number {
  position: absolute;
  left: 18px;
  bottom: 15px;

  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 2px;
  color: white;

  text-shadow: 0 1px 8px black;
}

.photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 22px 10px 13px;
}

.caption-label {
  display: block;

  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.photo-caption h3 {
  margin-top: 5px;

  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
}

.caption-star {
  color: var(--gold);
}

.gallery-footnote {
  margin-top: 45px;
  text-align: center;

  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

.gallery-footnote span {
  color: var(--pink);
}

/* LETTER */

.letter-section {
  padding-top: 100px;
  padding-bottom: 150px;
}

.letter-wrapper {
  max-width: 780px;
  margin: auto;

  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(165,138,255,.08),
      transparent 45%
    ),
    rgba(18,13,32,.65);

  border: 1px solid rgba(233,199,123,.19);
  box-shadow: 0 35px 120px rgba(0,0,0,.22);
}

.letter-top,
.letter-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 24px 30px;
}

.letter-top {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.letter-symbol {
  font-size: 23px;
  color: var(--gold);
}

.letter-number,
.letter-bottom {
  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.letter-body {
  padding: 50px clamp(25px, 7vw, 65px);
}

.letter-greeting {
  margin-bottom: 30px;

  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.4;
  color: var(--text);
}

.letter-greeting span {
  color: var(--gold);
  font-style: italic;
}

.letter-body > p:not(.letter-greeting) {
  margin-bottom: 23px;

  font-size: 14px;
  line-height: 2.05;
  color: #c6c0d4;
}

.letter-body blockquote {
  position: relative;

  margin-top: 38px;
  padding: 26px 24px 26px 30px;

  border-left: 2px solid var(--gold);

  background: linear-gradient(
    90deg,
    rgba(233,199,123,.09),
    rgba(165,138,255,.035)
  );

  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 25px);
  font-style: italic;
  line-height: 1.7;
  color: #f6e6c1;
}

.quote-mark {
  display: block;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
}

.quote-heart {
  color: var(--pink);
  font-size: 16px;
}

.letter-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.signature-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.signature-label {
  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
}

.letter-signature p {
  margin-top: 5px;

  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.letter-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
}

/* WISHES */

.wishes-section {
  padding-top: 100px;
  padding-bottom: 150px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(17,12,31,.7),
    transparent
  );
}

.wishes-heading {
  max-width: 650px;
  margin: 0 auto 55px;
  text-align: center;
}

.wish-grid {
  max-width: 1050px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.wish-card {
  position: relative;
  min-height: 230px;
  padding: 28px 22px;

  background: rgba(255,255,255,.018);
  border: 1px solid rgba(255,255,255,.07);

  overflow: hidden;

  transition:
    transform .4s var(--ease),
    border-color .3s ease,
    background .3s ease;
}

.wish-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233,199,123,.3);
  background: rgba(233,199,123,.035);
}

.wish-icon {
  display: inline-grid;
  place-items: center;

  width: 43px;
  height: 43px;

  border: 1px solid rgba(233,199,123,.22);
  color: var(--gold);
  font-size: 22px;
}

.wish-card h3 {
  margin-top: 23px;

  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
}

.wish-card p {
  margin-top: 10px;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.wish-index {
  position: absolute;
  top: 18px;
  right: 17px;

  font-family: var(--tech);
  font-size: 9px;
  color: #655c79;
}

/* SECRET MESSAGE */

.secret-section {
  padding-top: 100px;
  padding-bottom: 150px;
}

.secret-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

.envelope-scene {
  position: relative;

  display: grid;
  place-items: center;

  height: 220px;
  margin-bottom: 35px;

  perspective: 1000px;
}

.envelope-shadow {
  position: absolute;
  bottom: 18px;

  width: 240px;
  height: 25px;

  border-radius: 50%;
  background: #000;
  filter: blur(18px);
  opacity: .4;
}

.envelope {
  position: relative;

  width: 220px;
  height: 145px;

  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: #302343;
  border: 1px solid rgba(233,199,123,.35);
}

.letter-inside {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;

  height: 120px;
  padding: 15px;

  background: linear-gradient(145deg, #fff1cf, #e6c98c);
  color: #332341;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  transition: transform .8s var(--ease);
}

.inside-heart {
  color: #9d427e;
  font-size: 20px;
}

.letter-inside p {
  font-family: var(--serif);
  font-size: 15px;
}

.letter-inside > span:last-child {
  font-family: var(--tech);
  font-size: 7px;
  letter-spacing: 1.5px;
}

.envelope-front {
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg, #49315f, #231832);

  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);

  border-bottom: 1px solid rgba(233,199,123,.35);
}

.envelope-flap {
  position: absolute;
  inset: 0;

  background: #624779;

  clip-path: polygon(0 0, 100% 0, 50% 58%);

  transform-origin: top center;
  transition: transform .7s var(--ease);
  backface-visibility: hidden;
}

.envelope-seal {
  position: absolute;
  top: 57px;
  left: 50%;

  display: grid;
  place-items: center;

  width: 33px;
  height: 33px;

  border-radius: 50%;
  background: linear-gradient(145deg, #ffe9ae, #c79b4b);

  color: #392342;
  font-family: var(--serif);
  font-size: 19px;

  transform: translateX(-50%);
  transition: opacity .3s ease;
}

.envelope-scene.opened .envelope-flap {
  transform: rotateX(180deg);
}

.envelope-scene.opened .letter-inside {
  transform: translateY(-75px);
}

.envelope-scene.opened .envelope-seal {
  opacity: 0;
}

.secret-content > .small-caps {
  margin-top: 5px;
}

.secret-content h2 {
  margin-top: 15px;

  font-family: var(--serif);
  font-size: clamp(33px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.3;
}

.secret-content h2 span {
  color: var(--gold);
  font-style: italic;
}

.secret-description {
  margin-top: 15px;

  color: var(--muted);
  font-size: 13px;
}

.secret-button {
  margin-top: 25px;
}

.secret-message {
  display: grid;
  grid-template-rows: 0fr;

  opacity: 0;
  transform: translateY(15px);

  margin-top: 0;

  transition:
    grid-template-rows .8s var(--ease),
    opacity .5s ease,
    transform .5s ease,
    margin .5s ease;
}

.secret-message-inner {
  min-height: 0;
  overflow: hidden;
}

.secret-message.open {
  grid-template-rows: 1fr;

  opacity: 1;
  transform: translateY(0);
  margin-top: 45px;
}

.secret-message.open .secret-message-inner {
  padding: 35px 30px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
}

.secret-heart {
  color: var(--pink);
  font-size: 26px;
}

.secret-message h3 {
  margin-top: 12px;

  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.secret-message-inner > p {
  margin-top: 18px;

  font-size: 13px;
  line-height: 2;
  color: #c8c0d8;
}

.secret-message-inner .secret-ending {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
}

.secret-stars {
  margin-top: 20px;
  color: var(--gold);
}

/* FINAL SECTION */

.final-section {
  min-height: 600px;

  display: grid;
  place-items: center;

  text-align: center;
  overflow: hidden;
}

.final-glow {
  position: absolute;

  width: 350px;
  height: 350px;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  background: #6745c4;
  filter: blur(150px);
  opacity: .14;
}

.final-content {
  position: relative;
  max-width: 700px;
}

.final-crown {
  display: block;
  margin-bottom: 25px;

  color: var(--gold);
  font-size: 45px;
}

.final-content h2 {
  margin-top: 22px;

  font-family: var(--serif);
  font-size: clamp(45px, 8vw, 85px);
  font-weight: 400;
  line-height: 1.2;
}

.final-content h2 span {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.final-content > p:not(.small-caps) {
  max-width: 460px;
  margin: 25px auto 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.final-button {
  margin-top: 35px;
  padding: 15px 22px;

  border: 1px solid rgba(233,199,123,.35);
  background: rgba(233,199,123,.04);

  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 1.6px;

  cursor: pointer;
  transition: all .3s ease;
}

.final-button:hover {
  background: rgba(233,199,123,.12);
  transform: translateY(-3px);
}

.final-signature {
  margin-top: 60px;

  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
}

.final-signature span {
  color: var(--pink);
}

/* FOOTER */

.footer {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 30px 7%;

  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(8,6,17,.55);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--gold);
}

.footer-brand span {
  color: var(--purple);
}

.footer > p,
.footer-year {
  font-family: var(--tech);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* MUSIC BUTTON */

.music-control {
  position: fixed;
  z-index: 50;

  right: 24px;
  bottom: 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 62px;
  height: 48px;

  border: 1px solid rgba(233,199,123,.35);
  background: rgba(15,11,29,.88);
  backdrop-filter: blur(15px);

  color: var(--gold);

  cursor: pointer;

  transition: all .3s ease;
}

.music-control:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.music-note {
  font-size: 20px;
}

.music-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}

.music-bars i {
  display: block;
  width: 2px;
  height: 5px;
  background: var(--purple);
  border-radius: 2px;
}

.music-control.playing .music-bars i {
  animation: musicWave .65s ease-in-out infinite alternate;
}

.music-bars i:nth-child(2) {
  animation-delay: -.3s;
}

.music-bars i:nth-child(3) {
  animation-delay: -.5s;
}

.music-bars i:nth-child(4) {
  animation-delay: -.2s;
}

@keyframes musicWave {
  to {
    height: 17px;
  }
}

/* IMAGE VIEWER */

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 200;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;

  padding: 25px;

  background: rgba(4,3,10,.95);
  backdrop-filter: blur(20px);

  opacity: 0;
  visibility: hidden;

  transition: opacity .3s ease, visibility .3s ease;
}

.image-modal.open {
  opacity: 1;
  visibility: visible;
}

.image-modal > img {
  max-width: min(90vw, 850px);
  max-height: 78svh;

  object-fit: contain;

  border: 1px solid rgba(233,199,123,.3);
  box-shadow: 0 20px 100px rgba(0,0,0,.5);

  transform: scale(.96);
  transition: transform .4s var(--ease);
}

.image-modal.open > img {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;

  width: 43px;
  height: 43px;

  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);

  cursor: pointer;
}

.image-modal > p {
  font-family: var(--tech);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--gold);
}

/* TOAST */

.toast {
  position: fixed;
  z-index: 150;

  left: 50%;
  bottom: 90px;

  padding: 13px 20px;

  border: 1px solid var(--border);
  background: rgba(18,13,32,.95);
  backdrop-filter: blur(15px);

  font-size: 12px;
  color: var(--gold);

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 15px);

  transition: all .3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* SCROLL REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity .9s ease,
    transform .9s var(--ease);
}

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

/* INTRO ANIMATIONS */

.hero-content .reveal:nth-child(1) {
  transition-delay: .05s;
}

.hero-content .reveal:nth-child(2) {
  transition-delay: .12s;
}

.hero-content .reveal:nth-child(3) {
  transition-delay: .2s;
}

.hero-content .reveal:nth-child(4) {
  transition-delay: .28s;
}

.hero-content .reveal:nth-child(5) {
  transition-delay: .35s;
}

.hero-content .reveal:nth-child(6) {
  transition-delay: .42s;
}

.hero-content .reveal:nth-child(7) {
  transition-delay: .5s;
}

/* CELEBRATION MODE */

body.celebration-mode .hero-name {
  filter: drop-shadow(0 0 35px rgba(233,199,123,.32));
}

body.celebration-mode .crown-icon {
  animation: crownGlow 1.8s ease-in-out infinite alternate;
}

@keyframes crownGlow {
  to {
    text-shadow: 0 0 30px rgba(233,199,123,.7);
    transform: translateY(-3px);
  }
}

/* RESPONSIVE TABLETS */

@media (max-width: 900px) {
  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .photo-frame {
    height: 320px;
  }

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

  .wish-card {
    min-height: 210px;
  }

  .photo-grid {
    gap: 20px;
  }
}

/* RESPONSIVE PHONES */

@media (max-width: 600px) {
  html {
    scroll-padding-top: 20px;
  }

  .topbar {
    min-height: 72px;
    padding: 15px 5%;
  }

  .brand {
    gap: 9px;
    font-size: 11px;
    letter-spacing: 2px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .topbar-label {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .topbar-right {
    gap: 6px;
  }

  .section {
    padding: 90px 6%;
  }

  .hero {
    min-height: 100svh;
    min-height: 100vh;

    padding-top: 125px;
    padding-bottom: 100px;
  }

  .hero-kicker {
    margin-top: 28px;
    font-size: 8px;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: clamp(43px, 12vw, 66px);
    letter-spacing: -1.8px;
  }

  .hero-description {
    max-width: 330px;
    font-size: 12px;
  }

  .hero-date {
    gap: 8px;
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  .date-line {
    width: 14px;
  }

  .primary-button {
    max-width: 100%;
    gap: 10px;
    padding: 15px 14px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .scroll-indicator {
    bottom: 18px;
  }

  .section-label {
    margin-bottom: 40px;
    gap: 10px;
    font-size: 8px;
    letter-spacing: 1.3px;
  }

  .label-line {
    width: 25px;
  }

  .reveal-section {
    padding-top: 70px;
    padding-bottom: 95px;
  }

  .celebration-card {
    padding: 55px 22px;
  }

  .celebration-card h2 {
    font-size: 39px;
  }

  .celebration-description {
    font-size: 12px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .photo-card-two {
    margin-top: 0;
  }

  .photo-frame {
    height: min(105vw, 420px);
  }

  .photo-caption h3 {
    font-size: 19px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .wishes-heading h2 {
    font-size: 36px;
  }

  .letter-top,
  .letter-bottom {
    padding: 18px 15px;
  }

  .letter-top .small-caps {
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  .letter-number {
    font-size: 7px;
  }

  .letter-body {
    padding: 35px 22px;
  }

  .letter-greeting {
    font-size: 31px;
  }

  .letter-body > p:not(.letter-greeting) {
    font-size: 13px;
    line-height: 1.95;
  }

  .letter-body blockquote {
    padding: 20px 17px;
    font-size: 20px;
  }

  .letter-bottom {
    font-size: 7px;
    letter-spacing: .8px;
  }

  .wish-grid {
    gap: 10px;
  }

  .wish-card {
    min-height: 210px;
    padding: 20px 15px;
  }

  .wish-card h3 {
    font-size: 18px;
  }

  .wish-card p {
    font-size: 11px;
  }

  .wish-icon {
    width: 37px;
    height: 37px;
    font-size: 19px;
  }

  .secret-content h2 {
    font-size: 36px;
  }

  .secret-message.open .secret-message-inner {
    padding: 28px 20px;
  }

  .final-section {
    min-height: 550px;
  }

  .final-content h2 {
    font-size: 48px;
  }

  .final-content > p:not(.small-caps) {
    font-size: 12px;
  }

  .footer {
    flex-wrap: wrap;
    padding: 24px 6%;
  }

  .footer > p {
    max-width: 190px;
    line-height: 1.8;
  }

  .footer-year {
    display: none;
  }

  .music-control {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 44px;
  }

  .toast {
    bottom: 75px;
    max-width: calc(100% - 30px);
    text-align: center;
    white-space: nowrap;
  }

  .ambient {
    width: 250px;
    height: 250px;
    filter: blur(80px);
  }
}

/* EXTRA SMALL PHONES */

@media (max-width: 360px) {
  .topbar-label {
    max-width: 90px;
    line-height: 1.5;
  }

  .hero-title {
    font-size: 41px;
  }

  .hero-date {
    gap: 5px;
    font-size: 6px;
  }

  .primary-button {
    font-size: 8px;
    padding: 14px 10px;
  }

  .wish-card {
    padding: 16px 12px;
  }

  .wish-card h3 {
    font-size: 16px;
  }
}

/* ACCESSIBILITY: REDUCED MOTION */

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}