/* ==========================================
   FOR LAIBA — A MIDNIGHT SURPRISE
   Designed for Laiba, from Hamza
   ========================================== */
:root {
  --bg: #120e0d;
  --bg-soft: #1c1513;
  --bg-card: #241b18;
  --cream: #f4ede3;
  --cream-muted: #c5b7a8;
  --gold: #d4ae7a;
  --gold-light: #f0d5aa;
  --line: rgba(236, 210, 177, 0.17);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked,
body.is-intro {
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
}
::selection {
  background: var(--gold);
  color: var(--bg);
}
.section {
  position: relative;
  overflow: hidden;
}
.section-index {
  display: inline-block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 90px);
  line-height: 1.16;
  letter-spacing: -.045em;
}
.section-title em {
  color: var(--gold-light);
  font-weight: 400;
}
/* AMBIENCE */
.ambient-glow {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 15% 25%,
      rgba(117, 65, 42, .12),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 85% 75%,
      rgba(143, 98, 59, .07),
      transparent 42%
    );
}
.grain-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E"
  );
}
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(212, 174, 122, .055),
    transparent 70%
  );
  transition: opacity .3s ease;
}
/* ==========================================
   COUNTDOWN
   ========================================== */
.countdown-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      rgba(98, 57, 39, .28),
      transparent 65%
    ),
    #120e0d;
  transition: opacity 1s ease, visibility 1s ease;
}
.countdown-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.countdown-inner {
  width: 100%;
  max-width: 850px;
  animation: fadeRise 1.5s var(--ease) both;
}
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .28em;
  font-weight: 700;
}
.eyebrow-line {
  width: 35px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.countdown-ornament {
  margin: 32px 0 20px;
  color: var(--gold);
  font-size: 35px;
  animation: slowRotate 18s linear infinite;
}
.countdown-pretitle {
  color: var(--cream-muted);
  font-size: 13px;
  letter-spacing: .06em;
}
.countdown-heading {
  margin: 20px 0 25px;
  font-family: var(--font-serif);
  font-size: clamp(52px, 9vw, 120px);
  line-height: 1.09;
  letter-spacing: -.065em;
  font-weight: 400;
}
.countdown-heading em {
  color: var(--gold-light);
  font-weight: 400;
}
.countdown-description {
  max-width: 430px;
  margin: 0 auto;
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.9;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(9px, 2.8vw, 35px);
  margin: 52px 0 30px;
}
.time-unit {
  display: flex;
  flex-direction: column;
  min-width: 72px;
  gap: 10px;
}
.time-unit strong {
  font-family: var(--font-serif);
  font-size: clamp(35px, 6vw, 70px);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.time-unit span {
  color: var(--cream-muted);
  font-size: 9px;
  letter-spacing: .18em;
}
.time-separator {
  padding-top: 8px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 55px);
}
.countdown-date {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
}
.countdown-date span {
  padding: 0 8px;
}
.countdown-signature {
  margin-top: 38px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--cream-muted);
}
.countdown-bottom {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  color: rgba(244, 237, 227, .32);
  font-size: 9px;
  letter-spacing: .3em;
}
/* ==========================================
   CINEMATIC INTRO
   ========================================== */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  background: #100c0b;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, visibility .7s ease;
}
.intro-screen.is-active {
  opacity: 1;
  visibility: visible;
}
.intro-content {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s ease;
}
.intro-screen.is-active .intro-content {
  transform: translateY(0);
  opacity: 1;
}
.intro-small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .3em;
}
.intro-name {
  margin: 20px 0;
  font-family: var(--font-serif);
  font-size: clamp(90px, 17vw, 230px);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: 1;
}
.intro-name span {
  color: var(--gold);
}
.intro-subtitle {
  color: var(--cream-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
}
/* ==========================================
   SITE HEADER
   ========================================== */
.birthday-site {
  visibility: hidden;
}
.birthday-site.is-unlocked {
  visibility: visible;
}
.site-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease;
}
.site-header.scrolled {
  background: rgba(18, 14, 13, .88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
}
.site-logo span {
  color: var(--gold);
  font-size: 20px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.desktop-nav a {
  color: var(--cream-muted);
  font-size: 11px;
  letter-spacing: .08em;
  transition: color .3s ease;
}
.desktop-nav a:hover {
  color: var(--gold-light);
}
.music-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .035);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: .12em;
}
.music-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}
.music-bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--gold);
  border-radius: 3px;
}
.music-toggle.playing .music-bars i {
  animation: soundBars .75s ease-in-out infinite alternate;
}
.music-toggle.playing .music-bars i:nth-child(2) {
  animation-delay: .2s;
}
.music-toggle.playing .music-bars i:nth-child(3) {
  animation-delay: .4s;
}
.music-toggle.playing .music-bars i:nth-child(4) {
  animation-delay: .1s;
}
/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 10% 100px;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      ellipse at 75% 45%,
      rgba(132, 81, 49, .25),
      transparent 50%
    ),
    linear-gradient(125deg, #120e0d, #211713 70%, #120e0d);
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(
      rgba(240, 213, 170, .08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(240, 213, 170, .08) 1px,
      transparent 1px
    );
  background-size: 90px 90px;
  mask-image: linear-gradient(90deg, transparent, black);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-topline {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .22em;
}
.small-star {
  margin-right: 10px;
  font-size: 19px;
}
.hero-kicker {
  margin: 65px 0 15px;
  color: var(--cream-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 34px);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(76px, 11vw, 165px);
  line-height: .97;
  letter-spacing: -.075em;
}
.hero-title-line {
  display: block;
}
.hero-title-line.italic {
  padding-left: 8%;
  color: var(--gold-light);
  font-style: italic;
}
.hero-title-line.name-line {
  padding-left: 18%;
}
.hero-title-line.name-line span {
  position: relative;
  top: -.35em;
  padding-left: 12px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: .25em;
}
.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-footer p {
  color: var(--cream-muted);
  font-size: 13px;
  line-height: 1.9;
}
.round-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 26px;
  transition: background .3s ease, color .3s ease;
}
.round-arrow:hover {
  background: var(--gold);
  color: var(--bg);
}
.hero-side-label {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: rgba(244, 237, 227, .4);
  font-size: 9px;
  letter-spacing: .25em;
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--cream-muted);
  font-size: 9px;
  letter-spacing: .2em;
}
.scroll-line {
  display: block;
  width: 65px;
  height: 1px;
  background: var(--gold);
}
/* ==========================================
   OPENING STATEMENT
   ========================================== */
.statement-section {
  padding: 170px 8%;
  background: var(--cream);
  color: var(--bg);
}
.statement-inner {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}
.statement-section .section-index {
  color: #8a623c;
}
.statement-text {
  margin: 50px 0 35px;
  font-family: var(--font-serif);
  font-size: clamp(35px, 5.1vw, 75px);
  line-height: 1.32;
  letter-spacing: -.045em;
}
.statement-text em {
  color: #9d714d;
}
.statement-after {
  color: #74685e;
  font-size: 14px;
  line-height: 1.8;
}
/* ==========================================
   EDITORIAL PHOTO STORY
   ========================================== */
.editorial-section {
  padding: 145px 7% 130px;
  background: #17110f;
}
.editorial-heading {
  margin-bottom: 100px;
}
.editorial-heading .section-title {
  margin-top: 30px;
}
.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  align-items: center;
}
.editorial-layout-one {
  margin-bottom: 150px;
}
.editorial-photo {
  position: relative;
  overflow: hidden;
  background: #33241d;
}
.editorial-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.editorial-photo:hover img {
  transform: scale(1.055);
}
.editorial-photo-main {
  height: min(730px, 70vw);
}
.photo-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 9px;
  letter-spacing: .16em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}
.editorial-mini-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .19em;
}
.stagger-words {
  margin: 35px 0;
}
.word-line {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.2vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.word-line.word-italic {
  margin: 5px 0 16px 30px;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
}
.editorial-copy {
  max-width: 350px;
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.9;
}
.editorial-layout-two {
  grid-template-columns: .9fr 1.1fr;
  margin-bottom: 160px;
}
.editorial-secondary-text {
  padding-left: 9%;
}
.editorial-secondary-text h3 {
  margin: 35px 0;
  font-family: var(--font-serif);
  font-size: clamp(35px, 4.8vw, 70px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.editorial-secondary-text h3 em {
  color: var(--gold-light);
}
.editorial-secondary-text p {
  max-width: 310px;
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.9;
}
.editorial-photo-secondary {
  height: min(650px, 65vw);
}
.emerald-feature {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #18251f;
}
.emerald-photo {
  position: absolute;
  inset: 0;
}
.emerald-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.emerald-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 20, 16, .9),
    rgba(7, 20, 16, .3) 55%,
    rgba(7, 20, 16, .05)
  );
}
.emerald-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 690px;
  max-width: 650px;
  padding: 8%;
}
.emerald-overlay h3 {
  margin: 25px 0;
  font-family: var(--font-serif);
  font-size: clamp(50px, 7vw, 105px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.06em;
}
.emerald-overlay h3 em {
  color: var(--gold-light);
}
.emerald-overlay p {
  color: #e2d9cc;
  font-size: 14px;
}
/* ==========================================
   FRIENDSHIP MOMENTS
   ========================================== */
.moments-section {
  padding: 145px 7%;
  background: var(--cream);
  color: var(--bg);
}
.moments-header {
  max-width: 900px;
  margin-bottom: 65px;
}
.moments-header .section-index {
  color: #946c47;
}
.moments-header .section-title {
  margin: 25px 0;
}
.moments-header .section-title em {
  color: #a87851;
}
.moments-header > p {
  color: #74685e;
  font-size: 15px;
}
.moments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.moment-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}
.moment-card-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.moment-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 45px;
  color: white;
  background: linear-gradient(
    transparent 20%,
    rgba(0, 0, 0, .85)
  );
}
.moment-card-overlay > span,
.moment-number {
  font-size: 10px;
  letter-spacing: .2em;
}
.moment-card-overlay h3 {
  margin: 18px 0;
  font-family: var(--font-serif);
  font-size: clamp(35px, 4vw, 58px);
  font-weight: 400;
}
.moment-card-overlay p {
  font-size: 14px;
}
.moment-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 50px;
  background: #30211d;
  color: var(--cream);
}
.moment-symbol {
  margin-bottom: auto;
  color: var(--gold);
  font-size: 55px;
}
.moment-number {
  color: var(--gold);
}
.moment-card-text h3 {
  margin: 20px 0;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.5vw, 70px);
  font-weight: 400;
  line-height: 1.15;
}
.moment-card-text h3 em {
  color: var(--gold-light);
}
.moment-card-text p {
  max-width: 330px;
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.9;
}
.moment-footnote {
  margin-top: 45px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .13em;
}
/* ==========================================
   BIRTHDAY WISH
   ========================================== */
.wish-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 850px;
  background: #211713;
}
.wish-photo {
  min-height: 700px;
  overflow: hidden;
}
.wish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wish-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 11%;
}
.wish-content .section-title {
  margin: 35px 0 40px;
  font-size: clamp(42px, 4.6vw, 75px);
}
.wish-content > p {
  max-width: 490px;
  margin-bottom: 25px;
  color: var(--cream-muted);
  font-size: 15px;
  line-height: 2;
}
.wish-signature {
  margin-top: 30px;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
}
/* ==========================================
   CAKE CELEBRATION
   ========================================== */
.celebration-section {
  padding: 150px 20px;
  background:
    radial-gradient(
      circle at center,
      rgba(121, 71, 46, .23),
      transparent 60%
    ),
    #120e0d;
  text-align: center;
}
.celebration-inner {
  max-width: 900px;
  margin: auto;
}
.celebration-inner .section-title {
  margin: 30px 0;
}
.celebration-inner > p {
  color: var(--cream-muted);
  font-size: 15px;
  line-height: 1.9;
}
.cake-scene {
  position: relative;
  width: 310px;
  height: 315px;
  margin: 65px auto 20px;
}
.cake-candles {
  position: absolute;
  z-index: 3;
  top: 30px;
  left: 50%;
  display: flex;
  gap: 37px;
  transform: translateX(-50%);
}
.candle {
  position: relative;
  width: 13px;
  height: 68px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    135deg,
    #f6e3c7 0 10px,
    #c99378 10px 15px
  );
}
.flame {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  width: 17px;
  height: 29px;
  transform: translateX(-50%);
  border-radius: 70% 20% 65% 40%;
  background: #ffcb61;
  box-shadow:
    0 0 20px rgba(255, 187, 72, .8),
    0 0 50px rgba(255, 153, 54, .4);
  animation: flicker .4s ease-in-out infinite alternate;
}
.cake-scene.candles-out .flame {
  opacity: 0;
  animation: none;
}
.cake-top {
  position: absolute;
  z-index: 2;
  top: 95px;
  left: 25px;
  width: 260px;
  height: 60px;
  border-radius: 50%;
  background: #e8c5ad;
  box-shadow: inset 0 -12px 0 #d7ab91;
}
.cake-body {
  position: absolute;
  top: 120px;
  left: 25px;
  display: grid;
  place-items: center;
  width: 260px;
  height: 145px;
  border-radius: 0 0 35px 35px;
  background: linear-gradient(
    90deg,
    #b67e6c,
    #e1b69a 45%,
    #b77d6c
  );
  box-shadow: inset 0 -18px 0 rgba(90, 48, 40, .17);
}
.cake-decoration {
  color: #fff2e0;
  font-family: var(--font-serif);
  font-size: 65px;
}
.cake-plate {
  position: absolute;
  bottom: 33px;
  left: 0;
  width: 310px;
  height: 22px;
  border-radius: 50%;
  background: #e6d0bb;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 19px 28px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  transition: transform .3s ease, background .3s ease;
}
.primary-button:hover {
  transform: translateY(-4px);
  background: var(--gold-light);
}
.cake-message {
  min-height: 35px;
  margin-top: 30px;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
}
/* ==========================================
   LETTER SECTION
   ========================================== */
.letter-section {
  padding: 170px 20px;
  background: #e9ded0;
  color: var(--bg);
  text-align: center;
}
.letter-inner {
  max-width: 850px;
  margin: auto;
}
.letter-section .section-index {
  color: #956b43;
}
.letter-section .section-title {
  margin: 35px 0;
}
.letter-section .section-title em {
  color: #9f704a;
}
.letter-inner > p {
  color: #74685e;
  font-size: 15px;
  line-height: 1.9;
}
.letter-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 45px;
  padding: 22px 30px;
  border: 1px solid #9d7959;
  background: transparent;
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  transition: background .3s ease, color .3s ease;
}
.letter-button:hover {
  background: var(--bg);
  color: var(--cream);
}
.letter-icon {
  font-size: 22px;
}
/* ==========================================
   LETTER MODAL
   ========================================== */
.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease, visibility .4s ease;
}
.letter-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.letter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 5, .85);
  backdrop-filter: blur(12px);
}
.letter-paper {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 65px 65px 55px;
  background: #f3eadd;
  color: #2b201c;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
  transform: translateY(25px) scale(.97);
  transition: transform .5s var(--ease);
}
.letter-modal.is-open .letter-paper {
  transform: translateY(0) scale(1);
}
.letter-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: none;
  color: #2b201c;
  font-size: 34px;
}
.letter-paper-label {
  color: #98704d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}
.letter-paper h2 {
  margin: 25px 0 30px;
  font-family: var(--font-serif);
  font-size: 55px;
  font-weight: 400;
}
.letter-body p {
  margin-bottom: 19px;
  color: #594b42;
  font-size: 15px;
  line-height: 1.95;
}
.letter-body .letter-ending {
  color: #38271f;
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
}
.letter-signature {
  margin-top: 35px;
  color: #8e694a;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
}
.letter-signature strong {
  display: inline-block;
  margin-top: 7px;
  color: #2b201c;
  font-size: 29px;
  font-weight: 400;
}
/* ==========================================
   FINALE
   ========================================== */
.finale-section {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 7% 40px;
  text-align: center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(132, 78, 46, .17),
      transparent 65%
    ),
    #120e0d;
}
.finale-small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .28em;
}
.finale-title {
  margin: 35px 0;
  font-family: var(--font-serif);
  font-size: clamp(55px, 8vw, 115px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.06em;
}
.finale-title em {
  color: var(--gold-light);
}
.finale-message {
  color: var(--cream-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
}
.finale-divider {
  width: 1px;
  height: 85px;
  margin: 65px 0 45px;
  background: var(--gold);
  opacity: .5;
}
.finale-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--cream-muted);
  font-size: 9px;
  letter-spacing: .14em;
}
/* ==========================================
   SCROLL REVEALS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-image {
  opacity: 0;
  transform: translateY(60px) scale(.97);
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease);
}
.reveal-image.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stagger-words .word-line:nth-child(2) {
  transition-delay: .12s;
}
.stagger-words .word-line:nth-child(3) {
  transition-delay: .24s;
}
.stagger-words .word-line:nth-child(4) {
  transition-delay: .36s;
}
.stagger-words .word-line:nth-child(5) {
  transition-delay: .48s;
}
.stagger-words .word-line:nth-child(6) {
  transition-delay: .6s;
}
/* ==========================================
   FIREWORKS CANVAS
   ========================================== */
#celebrationCanvas {
  position: fixed;
  inset: 0;
  z-index: 250;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* ==========================================
   KEYFRAMES
   ========================================== */
@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slowRotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes soundBars {
  from {
    height: 4px;
  }
  to {
    height: 14px;
  }
}
@keyframes flicker {
  from {
    transform: translateX(-50%) scale(.9) rotate(-5deg);
  }
  to {
    transform: translateX(-50%) scale(1.1) rotate(5deg);
  }
}
/* ==========================================
   TABLET
   ========================================== */
@media (max-width: 1000px) {
  .hero {
    padding-left: 7%;
    padding-right: 7%;
  }
  .hero-title {
    font-size: clamp(70px, 11vw, 120px);
  }
  .editorial-layout {
    gap: 5%;
  }
  .word-line {
    font-size: clamp(27px, 4vw, 50px);
  }
  .wish-content {
    padding: 70px 8%;
  }
}
/* ==========================================
   MOBILE
   ========================================== */
@media (max-width: 700px) {
  .site-header {
    height: 68px;
    padding: 0 6%;
  }
  .desktop-nav {
    display: none;
  }
  .site-logo {
    font-size: 27px;
  }
  .music-toggle {
    padding: 10px 13px;
    font-size: 9px;
  }
  .countdown-heading {
    font-size: clamp(48px, 11vw, 75px);
  }
  .countdown-description {
    max-width: 330px;
    font-size: 13px;
  }
  .countdown-timer {
    gap: 7px;
    margin-top: 42px;
  }
  .time-unit {
    min-width: 54px;
  }
  .time-unit strong {
    font-size: clamp(32px, 8vw, 45px);
  }
  .time-unit span {
    font-size: 7px;
    letter-spacing: .1em;
  }
  .time-separator {
    font-size: 30px;
  }
  .countdown-date {
    font-size: 9px;
  }
  .countdown-bottom {
    font-size: 7px;
  }
  .hero {
    min-height: 100svh;
    padding: 130px 6% 100px;
  }
  .hero-topline {
    font-size: 9px;
  }
  .hero-kicker {
    margin-top: 55px;
  }
  .hero-title {
    font-size: clamp(64px, 13vw, 100px);
  }
  .hero-title-line.italic {
    padding-left: 3%;
  }
  .hero-title-line.name-line {
    padding-left: 8%;
  }
  .hero-footer {
    margin-top: 55px;
  }
  .hero-footer p {
    font-size: 12px;
  }
  .round-arrow {
    width: 48px;
    height: 48px;
  }
  .hero-side-label {
    display: none;
  }
  .scroll-hint {
    left: 6%;
  }
  .statement-section {
    padding: 110px 7%;
  }
  .statement-text {
    margin-top: 35px;
    font-size: clamp(34px, 8vw, 53px);
  }
  .editorial-section {
    padding: 100px 6%;
  }
  .editorial-heading {
    margin-bottom: 55px;
  }
  .editorial-layout,
  .editorial-layout-two {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .editorial-layout-one {
    margin-bottom: 110px;
  }
  .editorial-photo-main,
  .editorial-photo-secondary {
    height: 550px;
    max-height: 130vw;
  }
  .editorial-words {
    padding: 0 2%;
  }
  .word-line {
    font-size: clamp(36px, 9vw, 60px);
  }
  .editorial-layout-two {
    display: flex;
    flex-direction: column-reverse;
    margin-bottom: 100px;
  }
  .editorial-layout-two > * {
    width: 100%;
  }
  .editorial-secondary-text {
    padding-left: 2%;
  }
  .emerald-feature,
  .emerald-overlay {
    min-height: 570px;
  }
  .emerald-feature::after {
    background: linear-gradient(
      0deg,
      rgba(7, 20, 16, .95),
      rgba(7, 20, 16, .05) 85%
    );
  }
  .emerald-overlay {
    justify-content: flex-end;
    padding: 35px;
  }
  .emerald-overlay h3 {
    font-size: clamp(47px, 10vw, 75px);
  }
  .moments-section {
    padding: 105px 6%;
  }
  .moments-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .moment-card {
    min-height: 470px;
  }
  .moment-card-overlay,
  .moment-card-text {
    padding: 32px;
  }
  .wish-section {
    grid-template-columns: 1fr;
  }
  .wish-photo {
    min-height: 500px;
    height: 650px;
    max-height: 115vw;
  }
  .wish-content {
    padding: 85px 7% 100px;
  }
  .celebration-section {
    padding: 110px 20px;
  }
  .letter-section {
    padding: 120px 7%;
  }
  .letter-paper {
    padding: 60px 28px 35px;
  }
  .letter-paper h2 {
    font-size: 45px;
  }
  .finale-section {
    min-height: 600px;
    padding: 110px 6% 30px;
  }
  .finale-title {
    font-size: clamp(52px, 10vw, 80px);
  }
  .finale-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 8px;
  }
}
@media (max-width: 380px) {
  .countdown-timer {
    gap: 4px;
  }
  .time-unit {
    min-width: 48px;
  }
  .time-unit strong {
    font-size: 30px;
  }
  .hero-title {
    font-size: 59px;
  }
  .cake-scene {
    transform: scale(.9);
    transform-origin: center;
    margin-left: auto;
    margin-right: auto;
  }
}
/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* =========================================================
   PREMIUM EXPANSION — FIVE NEW SECTIONS
   Complete replacement stylesheet | 26 October 2026
   ========================================================= */
/* Navigation: visibly readable, without overpowering the hero */
.desktop-nav { gap: clamp(22px, 2.7vw, 43px); }
.desktop-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.4;
}
.desktop-nav a:focus-visible, .music-toggle:focus-visible,
.primary-button:focus-visible, .letter-button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}
.music-toggle { font-size: 12px; }
/* Small copy across existing sections, gently enlarged */
.hero-footer p, .editorial-copy, .editorial-secondary-text p,
.statement-after, .celebration-inner > p, .letter-inner > p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
}
.section-index, .photo-caption, .hero-topline { font-size: 12px; }
/* 01 — Personality cards */
.experience-section { padding: 145px 7% 110px; background: #f4ede3; color: #211713; }
.experience-intro { max-width: 1050px; margin: 0 auto 75px; text-align: center; }
.experience-intro .section-index { color: #926840; }
.experience-intro .section-title { margin: 30px 0; }
.experience-intro .section-title em { color: #9e704b; }
.experience-intro > p { color: #786a5d; font-size: 17px; line-height: 1.9; }
.experience-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; max-width: 1350px; margin: 0 auto; }
.experience-card { display: flex; flex-direction: column; min-height: 490px; padding: 35px; overflow: hidden; transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, opacity 1s cubic-bezier(.22,1,.36,1); }
.experience-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(41,25,18,.14); }
.experience-card-feature { background: #271b17; color: #f4ede3; }
.experience-card-gold { background: #d4ae7a; color: #271b17; }
.experience-card-outline { border: 1px solid #bba48b; background: #e9ddcf; color: #271b17; }
.experience-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.experience-card-top span:last-child { font-size: 23px; }
.experience-stat { display: block; margin-top: auto; font-family: var(--font-serif); font-size: clamp(95px,10vw,170px); font-weight: 400; line-height: 1.05; letter-spacing: -.09em; }
.experience-stat span { font-size: .4em; letter-spacing: -.04em; }
.experience-card h3 { margin: 18px 0 15px; font-family: var(--font-serif); font-size: clamp(28px,2.7vw,42px); font-weight: 400; letter-spacing: -.04em; }
.experience-card p { max-width: 310px; font-size: 16px; line-height: 1.85; opacity: .85; }
.experience-disclaimer { max-width: 850px; margin: 48px auto 0; color: #7c6e60; text-align: center; font-size: 13px; line-height: 1.9; }
.experience-disclaimer span { color: #90633e; font-weight: 700; letter-spacing: .1em; }
/* 02 — Confidential friendship report */
.report-section { padding: 150px 7%; background: radial-gradient(ellipse at 80% 15%,rgba(166,109,66,.15),transparent 50%),#17110f; }
.report-shell { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 9%; max-width: 1350px; margin: 0 auto; }
.report-heading .section-title { margin: 30px 0; font-size: clamp(43px,5.5vw,80px); }
.report-heading > p { max-width: 370px; color: var(--cream-muted); font-size: 16px; line-height: 1.9; }
.report-paper { padding: 48px; background: #eee3d4; color: #2b201b; box-shadow: 0 30px 90px rgba(0,0,0,.24),0 0 0 1px rgba(255,255,255,.08); }
.report-paper-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid rgba(71,47,32,.18); }
.report-overline { color: #917354; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.report-paper-top h3 { margin-top: 10px; font-family: var(--font-serif); font-size: 53px; font-weight: 400; }
.report-stamp { padding: 12px 15px; border: 2px solid #a26d50; color: #a26d50; font-size: 11px; font-weight: 700; letter-spacing: .08em; transform: rotate(9deg); }
.report-line { margin-top: 30px; }
.report-line-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 12px; font-size: 15px; }
.report-line-head strong { color: #9d6d4b; font-weight: 700; }
.report-track { height: 6px; overflow: hidden; background: rgba(70,47,33,.13); }
.report-track > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#93603f,#d0a173); transition: width 1.8s cubic-bezier(.22,1,.36,1); }
.report-paper.is-visible .report-track > span { width: var(--score); }
.report-verdict { margin-top: 43px; padding: 30px 0; border-top: 1px solid rgba(71,47,32,.18); border-bottom: 1px solid rgba(71,47,32,.18); }
.report-verdict > span { color: #927052; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.report-verdict p { margin-top: 16px; font-family: var(--font-serif); font-size: clamp(28px,3vw,42px); line-height: 1.3; }
.report-verdict p em { color: #9d6d4b; }
.report-paper-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 30px; color: #8b735f; font-size: 11px; letter-spacing: .12em; }
/* 03 — Interactive 3D complaint cards */
.complaints-section { padding: 145px 7%; background: #211713; }
.complaints-heading { max-width: 1050px; margin: 0 auto 70px; text-align: center; }
.complaints-heading .section-title { margin: 28px 0; }
.complaints-heading > p { max-width: 570px; margin: 0 auto; color: var(--cream-muted); font-size: 16px; line-height: 1.9; }
.complaints-instruction { display: block; margin-top: 35px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.complaints-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; max-width: 1350px; margin: 0 auto; perspective: 1200px; }
.flip-card { display: block; position: relative; width: 100%; height: 370px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; perspective: 1200px; }
.flip-card-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front,.flip-card-back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 35px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-card-front { border: 1px solid rgba(212,174,122,.25); background: #30231e; color: #f4ede3; }
.flip-card:nth-child(2) .flip-card-front { background: #3b2b24; }
.flip-card:nth-child(3) .flip-card-front { background: #2a211e; }
.flip-card-back { justify-content: center; background: #d4ae7a; color: #211713; transform: rotateY(180deg); }
.flip-index { font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.flip-symbol { display: block; margin: auto 0; color: var(--gold); font-size: 70px; font-weight: 400; }
.flip-card-front strong,.flip-card-back strong { display: block; font-family: var(--font-serif); font-size: clamp(29px,3vw,44px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.flip-hint { margin-top: 25px; color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.flip-card-back strong { margin: 25px 0; }
.flip-card-back > span:last-child { max-width: 290px; font-size: 16px; line-height: 1.8; }
.flip-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; }
.complaints-footer { margin-top: 45px; color: var(--cream-muted); font-family: var(--font-serif); font-style: italic; font-size: 19px; text-align: center; }
/* 04 — Birthday wishes */
.blessings-section { padding: 160px 7%; background: #eee4d7; color: #241b18; }
.blessings-inner { max-width: 1050px; margin: 0 auto; text-align: center; }
.blessings-section .section-index { color: #9b714e; }
.blessings-symbol { margin: 35px 0 10px; color: #ad8059; font-size: 65px; }
.blessings-inner .section-title { margin: 20px 0 35px; }
.blessings-inner .section-title em { color: #a87851; }
.blessings-lead { max-width: 560px; margin: 0 auto 75px; color: #71645a; font-size: 18px; line-height: 1.9; }
.blessings-list { border-top: 1px solid rgba(73,47,29,.18); }
.blessing-item { display: grid; grid-template-columns: 60px 1fr 40px; align-items: center; gap: 25px; padding: 34px 10px; border-bottom: 1px solid rgba(73,47,29,.18); text-align: left; }
.blessing-item > span:first-child { color: #a17b5a; font-size: 13px; font-weight: 700; }
.blessing-item p { font-family: var(--font-serif); font-size: clamp(23px,3vw,37px); line-height: 1.3; letter-spacing: -.035em; }
.blessing-item > span:last-child { color: #ad8059; font-size: 19px; text-align: right; }
.blessings-ending { max-width: 680px; margin: 70px auto 0; color: #8e684b; font-family: var(--font-serif); font-style: italic; font-size: clamp(21px,2.6vw,32px); line-height: 1.65; }
/* 05 — Between the jokes */
.between-section { position: relative; padding: 180px 7%; background: radial-gradient(ellipse at 50% 45%,rgba(133,81,51,.22),transparent 65%),#120e0d; text-align: center; }
.between-decoration { position: absolute; top: 50%; left: 50%; color: rgba(212,174,122,.035); font-family: var(--font-serif); font-size: clamp(300px,55vw,750px); line-height: 1; transform: translate(-50%,-50%); pointer-events: none; user-select: none; }
.between-inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.between-title { margin: 45px 0 60px; font-family: var(--font-serif); font-size: clamp(43px,6.2vw,95px); font-weight: 400; line-height: 1.22; letter-spacing: -.05em; }
.between-title em { color: var(--gold-light); font-weight: 400; }
.between-copy { max-width: 660px; margin: 0 auto 25px; color: var(--cream-muted); font-size: 18px; line-height: 2; }
.between-signature { margin-top: 60px; color: var(--gold-light); font-family: var(--font-serif); font-style: italic; font-size: clamp(22px,3vw,32px); }
/* Editorial story now ends after two photos */
.editorial-section { padding-bottom: 120px; }
.editorial-layout-two { margin-bottom: 0; }
@media (max-width: 1050px) {
  .experience-grid { gap: 12px; }
  .experience-card { min-height: 430px; padding: 25px; }
  .experience-stat { font-size: clamp(75px,10vw,120px); }
  .report-shell { gap: 5%; }
  .report-paper { padding: 35px; }
  .flip-card { height: 350px; }
  .flip-card-front,.flip-card-back { padding: 25px; }
}
@media (max-width: 700px) {
  .experience-section { padding: 105px 6% 90px; }
  .experience-intro { margin-bottom: 45px; }
  .experience-grid { grid-template-columns: 1fr; gap: 14px; }
  .experience-card { min-height: 380px; padding: 30px; }
  .experience-stat { font-size: clamp(110px,25vw,155px); }
  .experience-card h3 { font-size: 35px; }
  .experience-disclaimer { margin-top: 30px; }
  .report-section { padding: 105px 6%; }
  .report-shell { grid-template-columns: 1fr; gap: 45px; }
  .report-heading .section-title { font-size: clamp(42px,10vw,65px); }
  .report-paper { padding: 27px 23px; }
  .report-paper-top h3 { font-size: 45px; }
  .report-stamp { padding: 9px; font-size: 9px; }
  .report-line-head { font-size: 14px; }
  .report-paper-footer { font-size: 10px; }
  .complaints-section { padding: 105px 6%; }
  .complaints-heading { margin-bottom: 45px; }
  .complaints-grid { grid-template-columns: 1fr; gap: 15px; }
  .flip-card { height: 310px; }
  .flip-card-front,.flip-card-back { padding: 30px; }
  .flip-symbol { font-size: 55px; }
  .flip-card-front strong,.flip-card-back strong { font-size: 36px; }
  .complaints-footer { font-size: 16px; }
  .blessings-section { padding: 110px 6%; }
  .blessings-lead { margin-bottom: 45px; font-size: 16px; }
  .blessing-item { grid-template-columns: 30px 1fr 20px; gap: 12px; padding: 26px 0; }
  .blessing-item p { font-size: clamp(21px,5.3vw,30px); }
  .blessings-ending { margin-top: 50px; font-size: 22px; }
  .between-section { padding: 125px 6%; }
  .between-title { margin: 35px 0 40px; font-size: clamp(40px,9vw,65px); }
  .between-copy { font-size: 16px; line-height: 1.9; }
  .between-signature { margin-top: 45px; font-size: 23px; }
  .editorial-section { padding-bottom: 90px; }
  .editorial-layout-two { margin-bottom: 0; }
}
@media (max-width: 380px) {
  .experience-card { min-height: 350px; }
  .experience-stat { font-size: 105px; }
  .report-paper { padding: 22px 18px; }
  .flip-card { height: 320px; }
  .blessing-item { grid-template-columns: 25px 1fr 15px; gap: 9px; }
  .between-title { font-size: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner,.report-track > span,.experience-card { transition-duration: .01ms !important; }
  .report-track > span { width: var(--score); }
}
/* ==========================================
   FINAL COUNTDOWN VIEWPORT FIX + HERO SPACING
   26 OCT 2026 — preserve existing design
   ========================================== */
/* Keep the surprise locked, but let the countdown panel itself scroll. */
.countdown-screen {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 4vh, 40px) 20px 22px;
}
/* Auto margins centre the content when it fits, without clipping when tall. */
.countdown-inner {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}
/* Footer is part of the scrollable layout rather than overlapping it. */
.countdown-bottom {
  position: static;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 22px;
  padding: 0 0 3px;
  text-align: center;
}
/* Slightly more breathing room between Happy / Birthday / Laiba. */
.hero-title {
  line-height: 1.075;
}
/* Tighter countdown spacing on shorter laptop screens. */
@media (max-height: 800px) and (min-width: 701px) {
  .countdown-heading { margin-top: 15px; margin-bottom: 18px; }
  .countdown-timer { margin-top: 34px; margin-bottom: 24px; }
  .countdown-signature { margin-top: 25px; }
  .countdown-bottom { margin-top: 15px; }
}
@media (max-width: 700px) {
  .countdown-screen { padding: 24px 15px 20px; }
  .countdown-bottom { margin-top: 24px; }
  .hero-title { line-height: 1.08; }
}


/* =========================================================
   FOR LAIBA — THE IMPOSSIBLE QUESTION
   NEW ADDITION ONLY
   Countdown → YES/NO → Cinematic Intro
   Desktop + Tablet + Mobile Responsive
   ========================================================= */

/* Full-screen question screen */

.love-gate-screen {
  position: fixed;
  inset: 0;
  z-index: 190;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  padding: 40px 24px;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;

  background:
    radial-gradient(
      ellipse at 50% 42%,
      rgba(126, 77, 48, 0.25),
      transparent 65%
    ),
    #120e0d;

  color: var(--cream, #f4ede3);
  text-align: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

/* JavaScript will activate this class */

.love-gate-screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Keep screen inaccessible before activation */

.love-gate-screen[inert] {
  pointer-events: none;
}

/* Main content */

.love-gate-inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 32px 0;
}

/* Small heading */

.love-gate-eyebrow {
  display: inline-block;

  color: var(--gold, #d4ae7a);

  font-family: var(--font-sans, "DM Sans", sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.7;
  text-transform: uppercase;
}

/* Decorative heart */

.love-gate-heart {
  margin: 24px auto 16px;

  color: var(--gold-light, #f0d5aa);

  font-family: var(--font-serif, Georgia, serif);
  font-size: 68px;
  line-height: 1;

  animation: loveGateHeartbeat 3s ease-in-out infinite;
}

/* Introductory text */

.love-gate-pretitle {
  margin-bottom: 15px;

  color: var(--cream-muted, #c5b7a8);

  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(17px, 2vw, 23px);
  font-style: italic;
}

/* Main title */

.love-gate-title {
  margin: 0 auto 22px;

  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(43px, 6vw, 78px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.17;
}

.love-gate-title em {
  color: var(--gold-light, #f0d5aa);
  font-weight: 400;
}

/* Description */

.love-gate-description {
  max-width: 470px;
  margin: 0 auto 32px;

  color: var(--cream-muted, #c5b7a8);

  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.9;
}

/* The actual question */

.love-gate-question {
  margin: 0 auto 13px;

  color: var(--gold-light, #f0d5aa);

  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(28px, 4.2vw, 49px);
  font-weight: 400;
  line-height: 1.25;
}

/* Funny hint */

.love-gate-hint {
  max-width: 440px;
  min-height: 46px;
  margin: 0 auto 18px;

  color: var(--cream-muted, #c5b7a8);

  font-size: 13px;
  line-height: 1.7;
}

/* Button playground */

.love-gate-actions {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;

  width: 100%;
  max-width: 600px;
  height: 190px;

  margin: 0 auto;

  overflow: hidden;
  isolation: isolate;
}

/* Shared button styles */

.love-gate-yes,
.love-gate-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 155px;
  min-height: 54px;

  padding: 15px 22px;

  border-radius: 4px;

  font-family: var(--font-sans, "DM Sans", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;

  white-space: nowrap;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/* YES button — always accessible */

.love-gate-yes {
  position: relative;
  z-index: 3;

  border: 1px solid var(--gold, #d4ae7a);

  background: var(--gold, #d4ae7a);
  color: #120e0d;

  box-shadow: 0 10px 35px rgba(212, 174, 122, 0.13);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

@media (hover: hover) {
  .love-gate-yes:hover {
    background: var(--gold-light, #f0d5aa);
    box-shadow: 0 15px 45px rgba(212, 174, 122, 0.2);
    transform: translateY(-3px);
  }
}

.love-gate-yes:active {
  transform: scale(0.97);
}

/* NO button — movement controlled by JavaScript */

.love-gate-no {
  position: relative;
  z-index: 2;

  border: 1px solid rgba(240, 213, 170, 0.28);

  background: #302521;
  color: var(--cream, #f4ede3);

  transition:
    left 0.22s ease,
    top 0.22s ease,
    background 0.2s ease,
    border-color 0.2s ease;

  will-change: left, top;
}

/*
   JavaScript will add .is-running when NO moves.
   Absolute positioning allows movement inside
   the playground without moving the YES button.
*/

.love-gate-no.is-running {
  position: absolute;
  margin: 0;
}

/* Keyboard accessibility */

.love-gate-yes:focus-visible,
.love-gate-no:focus-visible {
  outline: 2px solid var(--gold-light, #f0d5aa);
  outline-offset: 5px;
}

/* Funny confirmation */

.love-gate-confirmation {
  max-width: 530px;
  margin: 18px auto 0;
  padding: 30px 25px;

  border: 1px solid rgba(212, 174, 122, 0.25);

  background:
    linear-gradient(
      145deg,
      rgba(212, 174, 122, 0.09),
      rgba(212, 174, 122, 0.02)
    );

  animation: loveGateAppear 0.65s ease both;
}

/* Respect the HTML hidden attribute */

.love-gate-confirmation[hidden] {
  display: none !important;
}

.love-gate-confirmation > span {
  display: block;
  margin-bottom: 17px;

  color: var(--gold, #d4ae7a);

  font-size: 26px;
  letter-spacing: 0.18em;
}

.love-gate-confirmation h3 {
  margin-bottom: 16px;

  color: var(--gold-light, #f0d5aa);

  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.2;
}

.love-gate-confirmation p {
  color: var(--cream-muted, #c5b7a8);

  font-size: 14px;
  line-height: 1.85;
}

.love-gate-confirmation-small {
  margin-top: 15px !important;

  color: var(--gold-light, #f0d5aa) !important;

  font-family: var(--font-serif, Georgia, serif);
  font-size: 19px !important;
  font-style: italic;
}

/* Bottom signature */

.love-gate-footer {
  margin-top: 25px;

  color: rgba(244, 237, 227, 0.43);

  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

/* Animations */

@keyframes loveGateHeartbeat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes loveGateAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   TABLET RESPONSIVENESS
   ========================================================= */

@media (max-width: 900px) {
  .love-gate-inner {
    max-width: 650px;
  }

  .love-gate-actions {
    max-width: 520px;
  }
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 700px) {
  .love-gate-screen {
    padding: 28px 18px;
  }

  .love-gate-inner {
    max-width: 100%;
    padding: 25px 0;
  }

  .love-gate-eyebrow {
    font-size: 9px;
    letter-spacing: 0.15em;
  }

  .love-gate-heart {
    margin: 15px auto 13px;
    font-size: 52px;
  }

  .love-gate-pretitle {
    font-size: 17px;
  }

  .love-gate-title {
    max-width: 440px;
    margin-bottom: 17px;
    font-size: clamp(38px, 9vw, 57px);
  }

  .love-gate-description {
    max-width: 350px;
    margin-bottom: 25px;
    font-size: 13px;
    line-height: 1.8;
  }

  .love-gate-question {
    font-size: clamp(27px, 7vw, 37px);
  }

  .love-gate-hint {
    max-width: 330px;
    min-height: 44px;
    margin-bottom: 12px;
    font-size: 12px;
  }

  .love-gate-actions {
    gap: 12px;
    max-width: 100%;
    height: 170px;
  }

  .love-gate-yes,
  .love-gate-no {
    min-width: 125px;
    min-height: 50px;
    padding: 13px 16px;
    font-size: 11px;
  }

  .love-gate-confirmation {
    margin-top: 10px;
    padding: 24px 18px;
  }

  .love-gate-confirmation p {
    font-size: 13px;
  }

  .love-gate-footer {
    margin-top: 15px;
    font-size: 9px;
  }
}

/* =========================================================
   SMALL MOBILE SCREENS
   ========================================================= */

@media (max-width: 380px) {
  .love-gate-screen {
    padding: 18px 12px;
  }

  .love-gate-title {
    font-size: 36px;
  }

  .love-gate-description {
    font-size: 12px;
  }

  .love-gate-question {
    font-size: 27px;
  }

  .love-gate-actions {
    gap: 10px;
    height: 160px;
  }

  .love-gate-yes,
  .love-gate-no {
    min-width: 115px;
    padding: 12px 10px;
    font-size: 10px;
  }
}

/* =========================================================
   SHORT SCREENS AND LANDSCAPE PHONES
   ========================================================= */

@media (max-height: 650px) {
  .love-gate-screen {
    align-items: flex-start;
  }

  .love-gate-inner {
    padding: 15px 0;
  }

  .love-gate-heart {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .love-gate-actions {
    height: 145px;
  }
}

/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .love-gate-heart,
  .love-gate-confirmation {
    animation: none;
  }

  .love-gate-screen,
  .love-gate-yes,
  .love-gate-no {
    transition-duration: 0.01ms;
  }
}

/* END — THE IMPOSSIBLE QUESTION */
