/* =========================================================
  MIDHUN & ASWATHI — TRADITIONAL WEDDING WEBSITE
   Warm parchment + hand-drawn Kerala wedding aesthetic
   ========================================================= */

:root {
  --paper: #f4e4c4;
  --paper-light: #fbefd6;
  --paper-dark: #e7cfaa;
  --ink: #4d281b;
  --brown: #71341f;
  --red: #8c2f1c;
  --gold: #a67839;
  --line: rgba(77, 40, 27, 0.42);
  --shadow: rgba(58, 30, 17, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Caveat", "Brush Script MT", cursive;
}

.page-light-rays {
  position: fixed;
  z-index: 5;
  inset: -45%;
  pointer-events: none;
  opacity: 0.38;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 15%,
    rgba(214, 165, 82, 0.18) 17%,
    rgba(255, 236, 177, 0.38) 19%,
    transparent 23% 38%
  );
  filter: blur(26px);
  mix-blend-mode: screen;
  animation: goldenRays 30s ease-in-out infinite alternate;
}

.floating-dust {
  position: fixed;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.dust {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(166, 120, 57, 0.85);
  will-change: transform, opacity;
  animation: dustFloatA 7s ease-in-out infinite;
}

.dust:nth-child(4n + 2) {
  animation-name: dustFloatB;
  animation-duration: 8.5s;
}

.dust:nth-child(4n + 3) {
  animation-name: dustFloatC;
  animation-duration: 6.4s;
}

.dust:nth-child(4n + 4) {
  animation-name: dustFloatD;
  animation-duration: 9.2s;
}

.dust-one {
  left: 12%;
  top: 18%;
  animation-delay: -2s;
}
.dust-two {
  left: 27%;
  top: 66%;
  width: 3px;
  height: 3px;
  animation-delay: -8s;
}
.dust-three {
  left: 42%;
  top: 34%;
  width: 5px;
  height: 5px;
  animation-delay: -5s;
}
.dust-four {
  left: 58%;
  top: 76%;
  width: 3px;
  height: 3px;
  animation-delay: -10s;
}
.dust-five {
  left: 71%;
  top: 22%;
  animation-delay: -1s;
}
.dust-six {
  left: 83%;
  top: 51%;
  width: 5px;
  height: 5px;
  animation-delay: -7s;
}
.dust-seven {
  left: 36%;
  top: 88%;
  width: 3px;
  height: 3px;
  animation-delay: -4s;
}
.dust-eight {
  left: 91%;
  top: 81%;
  width: 3px;
  height: 3px;
  animation-delay: -11s;
}

.dust-nine {
  left: 6%;
  top: 42%;
  width: 4px;
  height: 4px;
  animation-delay: -3s;
}
.dust-ten {
  left: 18%;
  top: 79%;
  width: 7px;
  height: 7px;
  animation-delay: -6s;
}
.dust-eleven {
  left: 34%;
  top: 12%;
  width: 3px;
  height: 3px;
  animation-delay: -1s;
}
.dust-twelve {
  left: 49%;
  top: 57%;
  width: 6px;
  height: 6px;
  animation-delay: -4s;
}
.dust-thirteen {
  left: 63%;
  top: 9%;
  width: 4px;
  height: 4px;
  animation-delay: -2s;
}
.dust-fourteen {
  left: 74%;
  top: 70%;
  width: 7px;
  height: 7px;
  animation-delay: -5s;
}
.dust-fifteen {
  left: 87%;
  top: 31%;
  width: 4px;
  height: 4px;
  animation-delay: -7s;
}
.dust-sixteen {
  left: 96%;
  top: 62%;
  width: 6px;
  height: 6px;
  animation-delay: -3.5s;
}
.dust-seventeen {
  left: 23%;
  top: 49%;
  width: 3px;
  height: 3px;
  animation-delay: -5.5s;
}
.dust-eighteen {
  left: 39%;
  top: 73%;
  width: 5px;
  height: 5px;
  animation-delay: -1.5s;
}
.dust-nineteen {
  left: 54%;
  top: 21%;
  width: 7px;
  height: 7px;
  animation-delay: -6.5s;
}
.dust-twenty {
  left: 68%;
  top: 91%;
  width: 3px;
  height: 3px;
  animation-delay: -2.5s;
}
.dust-twenty-one {
  left: 81%;
  top: 13%;
  width: 5px;
  height: 5px;
  animation-delay: -4.5s;
}
.dust-twenty-two {
  left: 94%;
  top: 44%;
  width: 7px;
  height: 7px;
  animation-delay: -0.5s;
}
.dust-twenty-three {
  left: 47%;
  top: 93%;
  width: 4px;
  height: 4px;
  animation-delay: -6s;
}
.dust-twenty-four {
  left: 3%;
  top: 86%;
  width: 5px;
  height: 5px;
  animation-delay: -3.2s;
}

* {
  box-sizing: border-box;
}

@keyframes goldenRays {
  from {
    transform: translate(-8%, -4%) rotate(-3deg);
  }
  to {
    transform: translate(8%, 5%) rotate(4deg);
  }
}

@keyframes dustFloatA {
  0% {
    opacity: 0.1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.68);
  }
  24% {
    opacity: 0.78;
    transform: translate3d(12px, -16px, 0) rotate(32deg) scale(0.92);
  }
  58% {
    opacity: 0.46;
    transform: translate3d(-7px, -39px, 0) rotate(78deg) scale(1.08);
  }
  82% {
    opacity: 0.9;
    transform: translate3d(17px, -58px, 0) rotate(124deg) scale(0.82);
  }
  100% {
    opacity: 0.1;
    transform: translate3d(3px, -72px, 0) rotate(165deg) scale(0.62);
  }
}

@keyframes dustFloatB {
  0% {
    opacity: 0.12;
    transform: translate3d(0, 0, 0) rotate(-10deg) scale(0.7);
  }
  30% {
    opacity: 0.84;
    transform: translate3d(-16px, -11px, 0) rotate(-42deg) scale(1);
  }
  64% {
    opacity: 0.35;
    transform: translate3d(-29px, -34px, 0) rotate(-106deg) scale(0.76);
  }
  100% {
    opacity: 0.12;
    transform: translate3d(-8px, -64px, 0) rotate(-172deg) scale(0.58);
  }
}

@keyframes dustFloatC {
  0% {
    opacity: 0.08;
    transform: translate3d(0, 0, 0) rotate(18deg) scale(0.64);
  }
  22% {
    opacity: 0.92;
    transform: translate3d(8px, -14px, 0) rotate(62deg) scale(1.08);
  }
  48% {
    opacity: 0.5;
    transform: translate3d(24px, -28px, 0) rotate(118deg) scale(0.86);
  }
  76% {
    opacity: 0.8;
    transform: translate3d(3px, -51px, 0) rotate(186deg) scale(1);
  }
  100% {
    opacity: 0.08;
    transform: translate3d(-13px, -70px, 0) rotate(240deg) scale(0.6);
  }
}

@keyframes dustFloatD {
  0% {
    opacity: 0.14;
    transform: translate3d(0, 0, 0) rotate(-20deg) scale(0.72);
  }
  35% {
    opacity: 0.7;
    transform: translate3d(18px, -20px, 0) rotate(26deg) scale(0.9);
  }
  70% {
    opacity: 0.32;
    transform: translate3d(-13px, -43px, 0) rotate(94deg) scale(1.12);
  }
  100% {
    opacity: 0.1;
    transform: translate3d(-4px, -78px, 0) rotate(151deg) scale(0.64);
  }
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  overflow-x: hidden;
}

body.splash-active {
  overflow: hidden;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #5d2419;
  color: var(--paper-light);
  isolation: isolate;
}

.splash-screen::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18%;
  background:
    radial-gradient(
      circle at 22% 28%,
      rgba(224, 182, 111, 0.22),
      transparent 24%
    ),
    radial-gradient(
      circle at 78% 70%,
      rgba(140, 47, 28, 0.42),
      transparent 28%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 236, 194, 0.12),
      transparent 42%
    );
  background-size: 175% 175%;
  filter: blur(16px);
  transform-origin: 50% 50%;
  animation: splashFlow 12s ease-in-out infinite alternate;
}

.splash-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -35%;
  background:
    linear-gradient(
      105deg,
      transparent 24%,
      rgba(238, 213, 170, 0.07) 38%,
      transparent 52%
    ),
    linear-gradient(
      105deg,
      transparent 46%,
      rgba(140, 47, 28, 0.14) 57%,
      transparent 70%
    ),
    linear-gradient(
      105deg,
      transparent 68%,
      rgba(238, 213, 170, 0.06) 78%,
      transparent 88%
    );
  background-size:
    135% 100%,
    150% 100%,
    165% 100%;
  filter: blur(24px);
  transform-origin: 50% 50%;
  animation: splashFabric 8s ease-in-out infinite alternate;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: splashReveal 1.1s 0.2s both ease-out;
}

.splash-content img {
  width: clamp(125px, 22vw, 185px);
  display: block;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1) sepia(0.12);
}

.splash-content p {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.9;
}

.splash-content p span {
  color: #e0b66f;
}

.splash-content small {
  display: block;
  margin-top: 18px;
  color: #e5c58d;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
}

.splash-ribbon {
  position: absolute;
  z-index: 1;
  width: 145vw;
  height: 22vh;
  min-height: 150px;
  border-radius: 50%;
  opacity: 0.52;
  filter: blur(4px);
  mix-blend-mode: screen;
  pointer-events: none;
  transform-origin: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 231, 187, 0.05) 18%,
    rgba(255, 219, 151, 0.36) 44%,
    rgba(126, 34, 24, 0.28) 58%,
    transparent 100%
  );
}

.ribbon-one {
  left: -24%;
  top: 6%;
  transform: rotate(17deg) skewY(-7deg);
  animation: ribbonWaveOne 7s ease-in-out infinite alternate;
}

.ribbon-two {
  left: -12%;
  top: 31%;
  opacity: 0.62;
  transform: rotate(-12deg) skewY(8deg);
  animation: ribbonWaveTwo 8.5s ease-in-out -2s infinite alternate;
}

.ribbon-three {
  left: -20%;
  bottom: 24%;
  opacity: 0.46;
  transform: rotate(10deg) skewY(-9deg);
  animation: ribbonWaveThree 9s ease-in-out -4s infinite alternate;
}

.ribbon-four {
  left: -28%;
  bottom: -4%;
  opacity: 0.58;
  transform: rotate(-16deg) skewY(6deg);
  animation: ribbonWaveFour 7.8s ease-in-out -1s infinite alternate;
}

.splash-smoke {
  position: absolute;
  z-index: 1;
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  border-radius: 43% 57% 62% 38%;
  background: rgba(238, 213, 170, 0.18);
  filter: blur(38px);
  opacity: 0.8;
  animation: smokeDrift 7s ease-in-out infinite alternate;
}

.smoke-one {
  left: -18%;
  top: 8%;
  transform: rotate(25deg);
}
.smoke-two {
  right: -20%;
  bottom: 0;
  animation-delay: -2s;
  transform: rotate(-35deg);
}
.smoke-three {
  left: 25%;
  bottom: -35%;
  animation-delay: -4s;
  transform: rotate(60deg);
}

.splash-screen.is-leaving {
  pointer-events: none;
  animation: splashDiffuse 1.45s 0s both ease-in;
}

.splash-screen.is-leaving::before,
.splash-screen.is-leaving::after {
  animation: backdropExit 1.45s both ease-in;
}

.splash-screen.is-leaving .splash-content {
  animation: splashDisappear 0.75s both ease-in;
}

.splash-screen.is-leaving .splash-ribbon,
.splash-screen.is-leaving .splash-smoke {
  animation: none !important;
}

.splash-screen.is-leaving .smoke-one {
  animation: smokeExitOne 1.5s both ease-out;
}

.splash-screen.is-leaving .smoke-two {
  animation: smokeExitTwo 1.5s 0.08s both ease-out;
}

.splash-screen.is-leaving .smoke-three {
  animation: smokeExitThree 1.5s 0.14s both ease-out;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(60, 35, 20, 0.16) 0 1px,
      transparent 1px 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0 1px,
      transparent 1px 7px
    );
  mix-blend-mode: multiply;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.07;
  background-image: radial-gradient(
    rgba(60, 30, 10, 0.8) 0.5px,
    transparent 0.7px
  );
  background-size: 5px 5px;
  animation: grainDrift 18s steps(2) infinite;
}

.page-light-wash {
  position: fixed;
  z-index: 4;
  inset: -35%;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(
      ellipse at 18% 28%,
      rgba(224, 182, 111, 0.42),
      transparent 28%
    ),
    radial-gradient(
      ellipse at 82% 68%,
      rgba(140, 47, 28, 0.2),
      transparent 30%
    ),
    linear-gradient(
      115deg,
      transparent 32%,
      rgba(255, 240, 202, 0.18) 48%,
      transparent 63%
    );
  filter: blur(42px);
  mix-blend-mode: multiply;
  animation: lightWash 24s ease-in-out infinite alternate;
}

.floating-leaves {
  position: fixed;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.falling-leaf {
  position: absolute;
  display: block;
  width: 24px;
  height: 38px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #68703b, #a67839 72%);
  box-shadow: inset 3px 2px 0 rgba(255, 237, 187, 0.2);
  opacity: 0.78;
}

.falling-leaf::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: 1px;
  height: 86%;
  background: rgba(77, 40, 27, 0.4);
  transform: rotate(35deg);
}

.falling-leaf {
  z-index: 2;
  width: 18px;
  height: 29px;
  opacity: 0.82;
  will-change: transform;
}

.falling-leaf-one {
  left: 18%;
  top: -8%;
  animation: leafFallOne 17s linear infinite;
}

.falling-leaf-two {
  left: 43%;
  top: -16%;
  width: 14px;
  height: 23px;
  animation: leafFallTwo 24s linear 4s infinite;
}

.falling-leaf-three {
  left: 66%;
  top: -12%;
  width: 22px;
  height: 35px;
  animation: leafFallThree 21s linear 9s infinite;
}

.falling-leaf-four {
  left: 79%;
  top: -13%;
  width: 15px;
  height: 25px;
  animation: leafFallFour 28s linear 1.5s infinite;
}

.falling-leaf-five {
  left: 91%;
  top: -20%;
  width: 12px;
  height: 20px;
  animation: leafFallFive 19s linear 12s infinite;
}

a {
  color: inherit;
}

.section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5vw;
  background: rgba(244, 228, 196, 0.86);
  border-bottom: 1px solid rgba(77, 40, 27, 0.18);
  backdrop-filter: blur(8px);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    transform 0.2s;
}

.nav a:hover {
  color: var(--red);
  transform: translateY(-1px);
}

.mobile-bottom-nav {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  width: 42px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  background: #ead4ad;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("assets/wedding-courtyard.jpg");
  background-size: cover;
  background-position: center;
  filter: sepia(0.15) saturate(0.82) contrast(0.92);
  transform: scale(1.03);
  animation: gentleZoom 16s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(250, 237, 209, 0.28),
      rgba(250, 237, 209, 0.55)
    ),
    radial-gradient(
      circle at center,
      transparent 20%,
      rgba(85, 44, 25, 0.24) 100%
    );
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 4% 12%;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 239, 214, 0.42) 0%,
    rgba(251, 239, 214, 0.24) 42%,
    rgba(251, 239, 214, 0) 76%
  );
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: radial-gradient(
    ellipse 52% 56% at center,
    #000 0%,
    rgba(0, 0, 0, 0.82) 45%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 52% 56% at center,
    #000 0%,
    rgba(0, 0, 0, 0.82) 45%,
    transparent 100%
  );
  pointer-events: none;
  animation: heroVeilFade 1.2s 0.15s both ease-out;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 90%);
  text-align: center;
  text-shadow: 0 2px 14px rgba(251, 239, 214, 0.62);
  padding: 100px 20px 50px;
}

.hero-logo {
  width: 130px;
  max-width: 35vw;
  margin-bottom: 10px;
  filter: sepia(0.35);
}

.eyebrow,
.small-caps {
  margin: 5px 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.eyebrow {
  color: var(--red);
  font-weight: 600;
}

.small-caps {
  font-size: 0.66rem;
  margin-top: 14px;
}

h1,
h2,
h3,
p {
  position: relative;
}

h1 {
  margin: 15px 0 0;
  color: var(--red);
  font-family: var(--script);
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 500;
  line-height: 0.9;
}

h1 span,
h2 span {
  color: var(--gold);
}

.hero-name,
.hero-amp {
  display: block;
}

.hero-name {
  color: var(--red);
}

.hero-amp {
  font-size: 0.72em;
  line-height: 0.7;
  margin: 0.12em 0;
}

.date {
  margin: 8px 0 5px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--red);
  text-shadow: 0 2px 10px rgba(251, 239, 214, 0.8);
}

.tagline {
  margin-top: 10px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 2px 11px rgba(251, 239, 214, 0.85);
}

.tagline em {
  font-family: var(--script);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--red);
  text-transform: none;
  letter-spacing: 0.05em;
}

.ornament,
.footer-ornament {
  margin: 12px auto;
  color: var(--red);
  font-size: 1.35rem;
}

.scroll-cue {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding: 9px 13px 8px;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(77, 40, 27, 0.28);
  background: rgba(251, 239, 214, 0.38);
  box-shadow: 0 5px 16px rgba(58, 30, 17, 0.12);
  text-shadow: 0 1px 5px rgba(251, 239, 214, 0.8);
}

.scroll-cue span {
  animation: bob 1.4s ease-in-out infinite;
}

.paper-section {
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(169, 121, 62, 0.1),
      transparent 18%
    ),
    radial-gradient(
      circle at 86% 78%,
      rgba(140, 47, 28, 0.08),
      transparent 22%
    ),
    var(--paper-light);
}

.paper-section::before,
.paper-section::after {
  content: "❧";
  position: absolute;
  color: rgba(113, 52, 31, 0.18);
  font-size: 9rem;
  line-height: 1;
}

.paper-section::before {
  left: -35px;
  top: 15%;
  transform: rotate(-35deg);
}
.paper-section::after {
  right: -35px;
  bottom: 12%;
  transform: rotate(145deg);
}

.countdown {
  background:
    linear-gradient(
      90deg,
      rgba(244, 228, 196, 0.88) 0%,
      rgba(244, 228, 196, 0.34) 24%,
      rgba(77, 40, 27, 0.18) 50%,
      rgba(244, 228, 196, 0.38) 76%,
      rgba(244, 228, 196, 0.9) 100%
    ),
    linear-gradient(180deg, rgba(251, 239, 214, 0.76), rgba(140, 47, 28, 0.22));
  background-blend-mode: normal, multiply;
}

.countdown-photo {
  position: absolute;
  z-index: 0;
  inset: -5%;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, var(--countdown-parallax, 0px), 0);
  transition: transform 0.18s ease-out;
}

.countdown-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(244, 228, 196, 0.8),
      rgba(244, 228, 196, 0.16) 34%,
      rgba(77, 40, 27, 0.2) 50%,
      rgba(244, 228, 196, 0.2) 68%,
      rgba(244, 228, 196, 0.84)
    ),
    linear-gradient(180deg, rgba(251, 239, 214, 0.64), rgba(140, 47, 28, 0.2)),
    url("assets/ring-hands.jpg") center / cover;
  background-blend-mode: normal, multiply, normal;
  filter: sepia(0.18) saturate(0.78) contrast(0.9);
  animation: countdownCinematicZoom 24s ease-in-out infinite alternate;
}

.countdown::before {
  z-index: 0;
  inset: 0;
  color: transparent;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 239, 214, 0.32),
    rgba(251, 239, 214, 0.05) 48%,
    rgba(77, 40, 27, 0.2) 100%
  );
  pointer-events: none;
}

.countdown .section-inner {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(45, 24, 16, 0.55);
}

.countdown .eyebrow,
.countdown h2,
.countdown .quote {
  color: var(--paper-light);
}

.countdown h2 em {
  color: #e5bd70;
}

.countdown .quote {
  text-shadow: 0 2px 10px rgba(45, 24, 16, 0.7);
}

.countdown .count-grid > div {
  background: rgba(251, 239, 214, 0.68);
  backdrop-filter: blur(3px);
}

.details-section {
  background:
    linear-gradient(
      90deg,
      rgba(244, 228, 196, 0.9) 0%,
      rgba(244, 228, 196, 0.46) 24%,
      rgba(77, 40, 27, 0.18) 50%,
      rgba(244, 228, 196, 0.48) 76%,
      rgba(244, 228, 196, 0.92) 100%
    ),
    linear-gradient(180deg, rgba(251, 239, 214, 0.82), rgba(140, 47, 28, 0.26));
  background-blend-mode: normal, multiply;
}

.details-section::before {
  z-index: 1;
  inset: 0;
  content: "";
  color: transparent;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 239, 214, 0.62),
    rgba(251, 239, 214, 0.22) 48%,
    rgba(77, 40, 27, 0.12) 100%
  );
  pointer-events: none;
}

.details-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18px;
  background: url("assets/weddingartog.png") center / cover;
  filter: sepia(0.18) saturate(0.72) contrast(0.86) blur(7px);
  opacity: 0.78;
  transform: scale(1.035);
  pointer-events: none;
}

.details-section .section-inner {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 5px rgba(251, 239, 214, 0.9);
}

.details-section .eyebrow,
.details-section h2,
.details-section .bottom-quote {
  text-shadow: 0 2px 12px rgba(251, 239, 214, 0.95);
}

.details-section .event-card h3,
.details-section .event-card p:not(.event-label) {
  color: var(--ink);
  text-shadow: 0 1px 4px rgba(251, 239, 214, 0.9);
}

.details-section .event-card {
  padding-left: 18px;
  padding-right: 18px;
  border: 1px solid rgba(77, 40, 27, 0.24);
  background: rgba(251, 239, 214, 0.8);
  box-shadow: 0 6px 18px rgba(58, 30, 17, 0.12);
  backdrop-filter: blur(6px);
}

.section-inner {
  width: min(1100px, 90%);
  padding: 110px 0 80px;
  text-align: center;
}

.section-inner.narrow {
  width: min(760px, 90%);
}

h2 {
  margin: 8px 0 0;
  font-family: var(--script);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--red);
}

h2 em {
  font-weight: 400;
}

.subheading {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.count-grid {
  width: min(720px, 100%);
  margin: 45px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.count-grid > div {
  padding: 20px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 248, 229, 0.35);
  box-shadow: 3px 4px 0 rgba(77, 40, 27, 0.08);
}

.count-grid strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
}

.count-grid span {
  display: block;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
}

.quote {
  margin: 32px auto 0;
  font-family: var(--script);
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--brown);
}

.timeline {
  position: relative;
  margin-top: 55px;
}

.event-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  align-items: start;
  text-align: left;
  padding: 22px 0;
}

.event-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.7rem;
  color: var(--red);
}

.event-label {
  margin: 0;
  font-family: var(--script);
  color: var(--red);
  font-size: 2.3rem;
}

.event-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
}

.event-card p {
  margin: 4px 0;
  line-height: 1.35;
}

.event-time {
  color: var(--red);
  letter-spacing: 0.08em;
}

.timeline-line {
  position: absolute;
  left: 32px;
  top: 88px;
  bottom: 88px;
  border-left: 1px dashed var(--line);
  z-index: -1;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-top: 45px;
}

.family-card {
  padding: 30px;
  border: 1px solid rgba(77, 40, 27, 0.28);
  background: rgba(255, 247, 225, 0.36);
}

.family-sketch {
  font-size: 4rem;
  color: var(--brown);
  opacity: 0.7;
}

.family-card h3,
.location-item h3 {
  font-family: var(--script);
  color: var(--red);
  font-size: 2rem;
  font-weight: 500;
  margin: 4px 0;
}

.family-card p {
  line-height: 1.45;
}

.family-divider {
  font-size: 2rem;
  color: var(--gold);
}

.family-note {
  margin-top: 35px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  line-height: 1.7;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 25px;
  margin: 55px auto 0;
  width: min(900px, 100%);
}

.person {
  text-align: center;
}

.portrait {
  width: min(290px, 75vw);
  aspect-ratio: 3/4;
  margin: auto;
  border: 1px solid var(--line);
  position: relative;
  background:
    linear-gradient(135deg, rgba(140, 47, 28, 0.08), transparent), #e7cfaa;
  box-shadow: 9px 9px 0 rgba(77, 40, 27, 0.08);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(77, 40, 27, 0.35);
  pointer-events: none;
}

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--script);
  font-size: 2.2rem;
  color: rgba(77, 40, 27, 0.42);
  z-index: 1;
}

.person h3 {
  font-family: var(--script);
  color: var(--red);
  font-size: 2.7rem;
  font-weight: 500;
  margin: 18px 0 0;
}

.person p {
  line-height: 1.45;
}

.mini-ornament {
  color: var(--gold);
}

.couple-heart {
  font-family: var(--script);
  font-size: 4rem;
  color: var(--red);
  animation: heartbeat 2s ease-in-out infinite;
}

.location-grid {
  margin: 50px auto 0;
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.location-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  margin-bottom: 20px;
}

.line-icon {
  font-size: 2rem;
  color: var(--red);
}

.location-item h3 {
  margin-top: 0;
}

.location-item p {
  line-height: 1.45;
  margin-top: 2px;
}

.button {
  display: inline-block;
  padding: 12px 19px;
  border: 1px solid var(--brown);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 0.2s ease;
  margin: 0 0 28px 58px;
}

.button:hover {
  background: var(--brown);
  color: var(--paper-light);
}

.map-sketch {
  height: 400px;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(
      25deg,
      transparent 48%,
      rgba(77, 40, 27, 0.2) 49% 50%,
      transparent 51%
    ),
    linear-gradient(
      150deg,
      transparent 45%,
      rgba(77, 40, 27, 0.14) 46% 47%,
      transparent 48%
    ),
    #ecd8b4;
}

.map-road {
  position: absolute;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

.road-a {
  width: 115%;
  left: -5%;
  top: 55%;
  transform: rotate(-15deg);
}
.road-b {
  width: 95%;
  left: 10%;
  top: 25%;
  transform: rotate(45deg);
}
.road-c {
  width: 75%;
  left: 5%;
  top: 76%;
  transform: rotate(8deg);
}

.map-tree {
  position: absolute;
  font-size: 4rem;
  opacity: 0.45;
}

.tree-a {
  left: 12%;
  top: 10%;
}
.tree-b {
  right: 8%;
  bottom: 7%;
}

.map-temple {
  position: absolute;
  right: 18%;
  top: 16%;
  font-size: 5rem;
  color: var(--brown);
  opacity: 0.75;
}

.map-pin {
  position: absolute;
  left: 52%;
  top: 54%;
  width: 36px;
  height: 48px;
  border: 2px solid var(--red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
}

.map-label {
  position: absolute;
  left: calc(52% + 35px);
  top: 62%;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}

.gallery-grid {
  margin: 50px auto;
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.gallery-grid figure {
  margin: 0;
  transform: rotate(-1.5deg);
}

.gallery-grid figure:nth-child(2n) {
  transform: rotate(1.8deg);
}
.gallery-grid figure:nth-child(3n) {
  transform: rotate(-0.5deg);
}

.photo-placeholder {
  aspect-ratio: 1/1.12;
  display: grid;
  place-items: center;
  font-family: var(--script);
  font-size: 2rem;
  color: rgba(77, 40, 27, 0.38);
  border: 8px solid #f8e9ca;
  outline: 1px solid rgba(77, 40, 27, 0.35);
  box-shadow: 4px 7px 10px var(--shadow);
  background:
    radial-gradient(circle at 30% 25%, rgba(140, 47, 28, 0.1), transparent 30%),
    #ddc39a;
}

.p2 {
  background: linear-gradient(135deg, #dfc8a0, #ead6b4);
}
.p3 {
  background: linear-gradient(160deg, #e9d4aa, #d5b78a);
}
.p4 {
  background: linear-gradient(45deg, #d5b98d, #ead7b6);
}
.p5 {
  background: linear-gradient(120deg, #ead8b8, #d3b587);
}
.p6 {
  background: linear-gradient(30deg, #d8bf94, #efdcbd);
}

.gallery-grid figcaption {
  font-family: var(--script);
  font-size: 1.35rem;
  margin-top: 8px;
}

.footer {
  text-align: center;
  padding: 65px 20px;
  background: #e5cda7;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 80px;
}

.footer p {
  font-family: var(--script);
  font-size: 2.3rem;
  margin: 5px;
  color: var(--red);
}

.footer span {
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}

.footer small {
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

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

@keyframes gentleZoom {
  from {
    transform: scale(1.03);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes countdownCinematicZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes heroVeilFade {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes smokeDrift {
  from {
    transform: translate(-3%, -2%) rotate(25deg) scale(0.92);
  }
  to {
    transform: translate(5%, 4%) rotate(55deg) scale(1.08);
  }
}

@keyframes splashDiffuse {
  0% {
    opacity: 1;
    transform: scale(1);
    background-color: #5d2419;
  }
  38% {
    opacity: 1;
    transform: scale(1.03);
    background-color: var(--red);
  }
  68% {
    opacity: 0.92;
    background-color: var(--paper-dark);
  }
  86% {
    opacity: 0.55;
    background-color: var(--paper);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
    background-color: var(--paper);
    visibility: hidden;
  }
}

@keyframes backdropExit {
  to {
    opacity: 0;
    transform: scale(1.25) translate(8%, -4%);
    filter: blur(34px);
  }
}

@keyframes ribbonWaveOne {
  to {
    transform: translate(13%, 9%) rotate(22deg) skewY(-13deg) scaleY(1.24);
  }
}

@keyframes ribbonWaveTwo {
  to {
    transform: translate(-10%, -8%) rotate(-19deg) skewY(13deg) scaleY(0.76);
  }
}

@keyframes ribbonWaveThree {
  to {
    transform: translate(15%, 7%) rotate(16deg) skewY(-14deg) scaleY(1.2);
  }
}

@keyframes ribbonWaveFour {
  to {
    transform: translate(-13%, -8%) rotate(-23deg) skewY(12deg) scaleY(0.78);
  }
}

@keyframes ribbonExitOne {
  0% {
    transform: rotate(17deg) skewY(-7deg) scaleY(1);
  }
  55% {
    transform: translate(-8%, -3%) rotate(23deg) skewY(-14deg) scaleY(1.35);
  }
  100% {
    opacity: 0;
    transform: translate(-52%, -18%) rotate(35deg) skewY(-22deg) scaleY(1.7);
    filter: blur(22px);
  }
}

@keyframes ribbonExitTwo {
  0% {
    transform: rotate(-12deg) skewY(8deg) scaleY(1);
  }
  55% {
    transform: translate(6%, 4%) rotate(-18deg) skewY(14deg) scaleY(0.72);
  }
  100% {
    opacity: 0;
    transform: translate(44%, 18%) rotate(-30deg) skewY(24deg) scaleY(0.45);
    filter: blur(22px);
  }
}

@keyframes ribbonExitThree {
  0% {
    transform: rotate(10deg) skewY(-9deg) scaleY(1);
  }
  55% {
    transform: translate(-6%, 5%) rotate(18deg) skewY(-15deg) scaleY(1.25);
  }
  100% {
    opacity: 0;
    transform: translate(-40%, 28%) rotate(32deg) skewY(-24deg) scaleY(1.6);
    filter: blur(22px);
  }
}

@keyframes ribbonExitFour {
  0% {
    transform: rotate(-16deg) skewY(6deg) scaleY(1);
  }
  55% {
    transform: translate(8%, -5%) rotate(-24deg) skewY(12deg) scaleY(0.75);
  }
  100% {
    opacity: 0;
    transform: translate(52%, -24%) rotate(-38deg) skewY(22deg) scaleY(0.45);
    filter: blur(22px);
  }
}

@keyframes smokeExitOne {
  to {
    opacity: 0;
    transform: translate(-34%, -22%) rotate(-20deg) scale(2.1);
    filter: blur(68px);
  }
}

@keyframes smokeExitTwo {
  to {
    opacity: 0;
    transform: translate(34%, 22%) rotate(28deg) scale(2.15);
    filter: blur(68px);
  }
}

@keyframes smokeExitThree {
  to {
    opacity: 0;
    transform: translate(8%, 34%) rotate(75deg) scale(2.25);
    filter: blur(72px);
  }
}

@keyframes splashFlow {
  from {
    background-position:
      0% 20%,
      100% 80%,
      45% 50%;
    transform: translate(-4%, -2%) scale(0.94, 1) skewX(-4deg) rotate(-5deg);
  }
  to {
    background-position:
      100% 70%,
      0% 20%,
      60% 45%;
    transform: translate(4%, 3%) scale(1.08, 0.96) skewX(5deg) rotate(5deg);
  }
}

@keyframes splashFabric {
  from {
    background-position:
      -25% 0,
      20% 0,
      55% 0;
    transform: translate(-12%, -2%) skewX(-7deg) scaleX(0.96) rotate(-8deg);
  }
  50% {
    background-position:
      15% 0,
      55% 0,
      90% 0;
    transform: translate(2%, 3%) skewX(5deg) scaleX(1.08) rotate(-5deg);
  }
  to {
    background-position:
      55% 0,
      95% 0,
      135% 0;
    transform: translate(16%, -1%) skewX(-4deg) scaleX(0.98) rotate(-2deg);
  }
}

@keyframes splashDisappear {
  to {
    opacity: 0;
    transform: translateY(-14px) scale(0.88);
    filter: blur(7px);
  }
}

@keyframes smokeDiffuse {
  to {
    opacity: 0;
    transform: translate(18%, -12%) scale(2.2) rotate(120deg);
    filter: blur(65px);
  }
}

/* Mobile navigation */
@media (max-width: 850px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    min-height: 64px;
    padding: 7px 5vw;
    justify-content: center;
    border-bottom: 0;
    background: linear-gradient(
      to bottom,
      rgba(244, 228, 196, 0.94) 0%,
      rgba(244, 228, 196, 0.72) 58%,
      rgba(244, 228, 196, 0) 100%
    );
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
    transition:
      transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.35s ease;
  }

  .site-header.mobile-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .brand img {
    width: 50px;
    height: 50px;
  }
  .menu-toggle {
    display: none;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 18px 7vw 22px;
    background: rgba(244, 228, 196, 0.97);
    border-bottom: 1px solid var(--line);
    display: none !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
  }

  .nav.open {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 120;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px 7px;
    border: 1px solid rgba(77, 40, 27, 0.24);
    background: rgba(251, 239, 214, 0.94);
    box-shadow: 0 8px 24px rgba(58, 30, 17, 0.18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    padding: 5px 2px 4px;
    color: rgba(77, 40, 27, 0.62);
    text-decoration: none;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition:
      color 0.2s ease,
      transform 0.2s ease;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav a:focus-visible {
    color: var(--red);
  }

  .mobile-bottom-nav a.active {
    transform: translateY(-2px);
  }

  .mobile-nav-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
    font-size: 1.1rem;
    line-height: 1;
  }

  h1 {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .hero-content {
    top: -5vh;
  }

  .section-inner {
    padding-top: 100px;
  }

  .family-grid,
  .couple-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .family-divider,
  .couple-heart {
    display: none;
  }

  .family-card {
    padding: 25px 18px;
  }

  .couple-grid {
    margin-top: 35px;
  }

  .person {
    margin-bottom: 35px;
  }

  .location-grid {
    text-align: left;
    width: 100%;
    gap: 32px;
  }

  .location-info {
    width: 100%;
  }

  .location-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }

  .location-item p {
    overflow-wrap: anywhere;
  }

  .location-info .button {
    display: block;
    width: max-content;
    margin: 0 auto 28px;
  }

  .map-sketch {
    width: 100%;
    height: min(72vw, 300px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-top: 100px;
  }
  .hero-logo {
    width: 100px;
  }

  .small-caps {
    font-size: 0.57rem;
    letter-spacing: 0.18em;
  }

  .count-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 32px auto;
  }

  .count-grid > div {
    padding: 15px 5px;
  }

  .event-card {
    grid-template-columns: 55px 1fr;
    gap: 12px;
  }

  .event-icon {
    width: 50px;
    height: 50px;
  }

  .timeline-line {
    left: 25px;
  }

  .button {
    margin-left: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .paper-section::before,
  .paper-section::after {
    font-size: 6rem;
  }

  .map-sketch {
    height: 280px;
  }
}

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

  .splash-screen {
    animation: none;
  }
  .splash-content {
    animation: none;
  }

  .page-light-wash,
  .page-light-rays,
  .page-noise,
  .falling-leaf,
  .dust,
  .countdown-photo::before {
    animation-play-state: paused !important;
  }
}
