/* =========================================================
   NIKHIL & SUPRIYA
   WEDDING WEBSITE
   CINZEL + MANROPE
========================================================= */

:root {
  --cream: #fffaf5;
  --cream-2: #f9efe7;
  --blush: #f3ddd7;
  --blush-2: #ead0ca;
  --champagne: #ead8b7;
  --gold: #a4773e;
  --gold-light: #c6a66d;
  --brown: #49332d;
  --brown-2: #684b42;
  --text: #5d4942;
  --muted: #8a736b;
  --white: #ffffff;

  --serif: "Cinzel", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;

  --shadow: 0 20px 60px rgba(76, 50, 42, 0.13);
  --soft-shadow: 0 10px 35px rgba(76, 50, 42, 0.09);

  --radius: 28px;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.gate-open,
body.invite-open {
  overflow: hidden;
}

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

button,
input,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}


/* =========================================================
   GENERAL
========================================================= */

.section-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.section-inner.narrow {
  width: min(780px, calc(100% - 40px));
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-kicker.light {
  color: #f4ddbd;
}

.section-copy {
  max-width: 610px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
  padding: 0 28px;
  border: 1px solid rgba(73, 51, 45, 0.22);
  border-radius: 999px;
  background: var(--brown);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #35231f;
}


/* =========================================================
   GUEST ENTRANCE
========================================================= */

.guest-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(255, 255, 255, 0.98),
      rgba(255, 247, 240, 0.93) 34%,
      rgba(242, 220, 211, 0.96) 100%
    );
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.guest-gate::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(164, 119, 62, 0.2);
  border-radius: 34px;
  pointer-events: none;
}

.guest-gate.gate-leaving {
  opacity: 0;
  visibility: hidden;
}

.gate-decoration {
  position: absolute;
  color: rgba(164, 119, 62, 0.32);
  font-size: 2rem;
  animation: gateFloat 4s ease-in-out infinite;
}

.gate-decoration-left {
  left: 7%;
  top: 12%;
}

.gate-decoration-right {
  right: 7%;
  bottom: 13%;
  animation-delay: -2s;
}

@keyframes gateFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-8px) rotate(8deg);
  }
}

.gate-panel {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  padding: 45px 38px;
  border: 1px solid rgba(164, 119, 62, 0.16);
  border-radius: 34px;
  background: rgba(255, 252, 248, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.gate-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border: 1px solid rgba(164, 119, 62, 0.58);
  border-radius: 50%;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.gate-date,
.gate-eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.gate-title {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
}

.gate-copy {
  margin: 17px 0 25px;
  color: var(--text);
  font-size: 1rem;
}

.guest-name-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.guest-name-input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 20px;
  outline: none;
  border: 1px solid rgba(73, 51, 45, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brown);
}

.guest-name-input:focus {
  border-color: rgba(164, 119, 62, 0.72);
  box-shadow: 0 0 0 4px rgba(164, 119, 62, 0.08);
}

.gate-button {
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gate-small {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.guest-side-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 30px;
}

.side-choice {
  min-height: 112px;
  padding: 20px 15px;
  border: 1px solid rgba(164, 119, 62, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--brown);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.side-choice:hover {
  transform: translateY(-3px);
  border-color: rgba(164, 119, 62, 0.55);
  background: white;
}

.side-choice-wide {
  grid-column: 1 / -1;
}

.side-choice-title,
.side-choice-copy {
  display: block;
}

.side-choice-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.side-choice-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.gate-welcome-message {
  max-width: 430px;
  margin: 22px auto 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.gate-sparkle {
  margin-top: 25px;
  color: var(--gold);
  font-size: 1.4rem;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #f6e6dc;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      circle at 50% 43%,
      rgba(255, 252, 247, 0.91) 0%,
      rgba(255, 248, 241, 0.76) 26%,
      rgba(255, 244, 234, 0.38) 52%,
      rgba(77, 48, 38, 0.08) 100%
    );
}

.hero-banana {
  position: absolute;
  z-index: -1;
  bottom: -7%;
  width: min(38vw, 470px);
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(59, 69, 31, 0.1));
}

.hero-banana-left {
  left: -10%;
}

.hero-banana-right {
  right: -10%;
  transform: scaleX(-1);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 80px 0 125px;
  text-align: center;
}

.monogram-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0 0 25px;
  border: 1px solid rgba(111, 77, 56, 0.55);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.3);
  color: var(--brown);
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.hero-kicker {
  margin: 0 0 15px;
  color: #8d693f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(3.3rem, 10vw, 6.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 30px rgba(255, 247, 237, 0.75);
}

.hero-names b {
  margin: 6px 0;
  color: var(--gold);
  font-size: 0.55em;
  font-weight: 400;
  line-height: 1;
}

.hero-spark {
  margin: 22px 0 15px;
  color: var(--gold);
  font-size: 1.05rem;
}

.hero-date {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero-place {
  margin: 12px 0 0;
  color: var(--brown-2);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.14em;
}

.hero-tagline {
  margin: 22px 0 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-personal {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.enter-celebration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 250px;
  min-height: 52px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid rgba(73, 51, 45, 0.25);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.7);
  color: var(--brown);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  white-space: nowrap;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.enter-celebration span {
  font-size: 1rem;
}

.change-guest {
  margin-top: 14px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: rgba(73, 51, 45, 0.7);
  font-size: 0.68rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   SAVE THE DATE
========================================================= */

.save-date-section {
  position: relative;
  padding: 88px 20px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 20%,
      white 0%,
      var(--cream) 46%,
      #f9eee7 100%
    );
  text-align: center;
}

.save-date-inner {
  position: relative;
}

.save-date-title {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.save-date-copy {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

.date-ornament {
  margin: 35px 0 16px;
  color: var(--gold);
  font-size: 1.25rem;
}

.big-date {
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(4.8rem, 16vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.date-month {
  margin: 18px 0 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.date-venue {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown-section {
  padding: 82px 20px;
  background:
    linear-gradient(
      145deg,
      #38251f 0%,
      #513831 50%,
      #2e1f1b 100%
    );
  color: white;
  text-align: center;
}

.countdown-heading {
  max-width: 700px;
  margin: 0 auto;
  color: white;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.12;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.countdown-unit {
  padding: 24px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.countdown-unit strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}

.countdown-unit span {
  display: block;
  margin-top: 10px;
  color: #dcc5b8;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.countdown-message {
  max-width: 610px;
  margin: 35px auto 0;
  color: #e8d8cf;
  font-size: 0.9rem;
  line-height: 1.75;
}


/* =========================================================
   OUR STORY
========================================================= */

.story-section {
  padding: 82px 0 76px;
  overflow: hidden;
  background: var(--cream);
}

.story-heading {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto 45px;
  text-align: center;
}

.story-heading h2 {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
}

.story-heading > p:last-child {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-scroller {
  display: flex;
  gap: 20px;
  width: 100%;
  padding:
    10px max(22px, calc((100vw - 1100px) / 2))
    28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.story-scroller::-webkit-scrollbar {
  display: none;
}

.story-card {
  position: relative;
  flex: 0 0 min(650px, 82vw);
  height: min(72vh, 700px);
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  isolation: isolate;
}

.story-card img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.story-card:hover img {
  transform: scale(1.025);
}

.story-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      to top,
      rgba(26, 16, 13, 0.86) 0%,
      rgba(36, 21, 17, 0.42) 42%,
      rgba(36, 21, 17, 0.04) 75%
    );
}

.story-number {
  position: absolute;
  top: 28px;
  right: 28px;
  color: rgba(255, 240, 214, 0.84);
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1;
}

.story-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px;
  color: white;
}

.story-location {
  margin: 0 0 10px;
  color: #efd4a9;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.story-content h3 {
  max-width: 520px;
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.story-content > p:last-child {
  max-width: 500px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.7;
}

.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.story-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d9c5bc;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.story-dot.active {
  width: 27px;
  background: var(--gold);
}


/* =========================================================
   EVENTS
========================================================= */

.events-section {
  padding: 84px 20px;
  background: var(--cream);
}

.events-heading {
  width: min(760px, 100%);
  margin: 0 auto 50px;
  text-align: center;
}

.events-heading h2 {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
}

.events-heading > p:last-child {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.event-card {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.event-card img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      to top,
      rgba(31, 18, 15, 0.88),
      rgba(31, 18, 15, 0.1) 70%
    );
}

.event-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  color: white;
}

.event-number {
  margin: 0 0 18px;
  color: #f2d7a8;
  font-family: var(--serif);
  font-size: 2.5rem;
}

.event-label {
  margin: 0;
  color: #f0d9b7;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.event-content h3 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
}

.event-time {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.event-place {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.calendar-button {
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: white;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}


/* =========================================================
   VENUE
========================================================= */

.venue-section {
  position: relative;
  padding-bottom: 82px;
  background: #f4e2dc;
}

.venue-visual {
  position: relative;
  width: 100%;
  height: min(68vh, 650px);
  min-height: 470px;
  overflow: hidden;
}

.venue-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(38, 22, 18, 0.66),
      rgba(38, 22, 18, 0.03) 65%
    );
}

.venue-image-title {
  position: absolute;
  left: 50%;
  bottom: 95px;
  width: min(900px, calc(100% - 40px));
  transform: translateX(-50%);
  text-align: center;
}

.venue-image-title h2 {
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1;
}

.venue-card {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 40px));
  margin: -55px auto 0;
  padding: 40px;
  border: 1px solid rgba(164, 119, 62, 0.15);
  border-radius: 30px;
  background: rgba(255, 250, 245, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.venue-small {
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.venue-card h3 {
  margin: 10px 0 15px;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
}

.venue-card > p:not(.venue-small) {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
}

.venue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 25px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--brown);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}


/* =========================================================
   CLOSING
========================================================= */

.closing-section {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 82px 20px 128px;
}

.closing-section > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      to top,
      rgba(31, 18, 15, 0.82),
      rgba(42, 26, 21, 0.28)
    );
}

.closing-content {
  width: min(720px, 100%);
  color: white;
  text-align: center;
}

.closing-content h2 {
  margin: 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1.03;
}

.closing-content > p:not(.section-kicker):not(.closing-ps) {
  max-width: 580px;
  margin: 25px auto 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.closing-signature {
  margin-top: 35px;
  color: #f1d6aa;
  font-family: var(--serif);
  font-size: 1.5rem;
}


/* =========================================================
   CLOSING — BLR × CHENNAI OPTIONAL EXPERIENCE
========================================================= */

.closing-chaos-card {
  position: relative;
  width: min(620px, 100%);
  margin: 42px auto 0;
  padding: 30px 28px 27px;
  overflow: hidden;
  border: 1px solid rgba(241, 214, 170, 0.38);
  border-radius: 26px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 250, 245, 0.14),
      rgba(255, 255, 255, 0.06)
    );
  box-shadow:
    0 18px 50px rgba(20, 12, 10, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.closing-chaos-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 110px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(241, 214, 170, 0.9),
    transparent
  );
}

.closing-chaos-kicker {
  margin: 0;
  color: #f1d6aa;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.closing-chaos-card h3 {
  margin: 11px 0 0;
  color: white;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.015em;
}

.closing-chaos-card h3 span {
  color: #f1d6aa;
  font-weight: 400;
}

.closing-chaos-copy {
  margin: 15px auto 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 0.86rem;
  line-height: 1.65 !important;
}

.closing-chaos-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 21px;
  padding: 0 26px;
  border: 1px solid rgba(241, 214, 170, 0.48);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.94);
  color: var(--brown);
  box-shadow: 0 10px 30px rgba(20, 12, 10, 0.16);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.closing-chaos-button:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 14px 36px rgba(20, 12, 10, 0.22);
}

.closing-chaos-small {
  max-width: 500px !important;
  margin: 16px auto 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 0.64rem;
  line-height: 1.65 !important;
}

.closing-ps {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}


/* =========================================================
   FLOATING NAV
========================================================= */

.floating-nav {
  position: fixed;
  z-index: 9000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(520px, calc(100% - 26px));
  min-height: 72px;
  padding: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(164, 119, 62, 0.13);
  border-radius: 25px;
  background: rgba(255, 250, 244, 0.9);
  box-shadow: 0 12px 40px rgba(62, 40, 32, 0.17);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 18px;
  color: #8b756d;
  font-size: 0.62rem;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link.active {
  background: #f1ddd7;
  color: var(--brown);
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
  position: fixed;
  z-index: 8500;
  right: 18px;
  bottom: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  border: 1px solid rgba(73, 51, 45, 0.12);
  border-radius: 50%;
  background: rgba(255, 250, 245, 0.9);
  color: var(--brown);
  box-shadow: var(--soft-shadow);
  transition: 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* =========================================================
   PERSONALISED INVITE FLOATING BUTTON
========================================================= */

.invite-float {
  position: fixed;
  z-index: 8600;
  right: 18px;
  bottom: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(164, 119, 62, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.94);
  color: var(--brown);
  box-shadow: var(--soft-shadow);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.invite-float:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: var(--shadow);
}

.invite-float-icon {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.invite-float-label {
  white-space: nowrap;
}


/* =========================================================
   PERSONALISED INVITE MODAL
========================================================= */

.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.invite-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.invite-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 23, 19, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.invite-dialog {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 34px;
  overflow-y: auto;
  border: 1px solid rgba(164, 119, 62, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(
      circle at 50% 0%,
      #fffdf9 0%,
      #fff8f2 42%,
      #f6e8e0 100%
    );
  box-shadow: 0 30px 90px rgba(30, 18, 14, 0.32);
  text-align: center;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.32s ease;
}

.invite-modal.open .invite-dialog {
  transform: translateY(0) scale(1);
}

.invite-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(73, 51, 45, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brown);
  font-size: 1.45rem;
  line-height: 1;
}

.invite-dialog > h2 {
  max-width: 560px;
  margin: 0 auto;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
}

.invite-modal-copy {
  max-width: 540px;
  margin: 15px auto 25px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}


/* =========================================================
   INVITE PREVIEW
========================================================= */

.invite-preview {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(164, 119, 62, 0.24);
  border-radius: 26px;
  background: #f6e5dc;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.invite-preview-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.invite-preview-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 253, 249, 0.96) 0%,
      rgba(255, 248, 240, 0.86) 38%,
      rgba(255, 242, 232, 0.55) 65%,
      rgba(58, 35, 27, 0.16) 100%
    );
}

.invite-preview-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.invite-preview-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border: 1px solid rgba(164, 119, 62, 0.6);
  border-radius: 50%;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.invite-preview-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.invite-preview-content h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.invite-preview-content h3 span {
  margin: 7px 0;
  color: var(--gold);
  font-size: 0.52em;
  font-weight: 400;
}

.invite-preview-line {
  width: 70px;
  height: 1px;
  margin: 22px 0;
  background: rgba(164, 119, 62, 0.55);
}

.invite-preview-guest {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 500;
}

.invite-preview-date {
  margin: 20px 0 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.invite-preview-place {
  margin: 9px 0 0;
  color: var(--brown-2);
  font-size: 0.57rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.12em;
}


/* =========================================================
   INVITE ACTIONS
========================================================= */

.invite-actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.invite-primary,
.invite-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
}

.invite-primary {
  border: 1px solid var(--brown);
  background: var(--brown);
  color: white;
}

.invite-secondary {
  border: 1px solid rgba(73, 51, 45, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brown);
}

.invite-save-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
}


/* =========================================================
   SECRET TOAST
========================================================= */

.secret-toast {
  position: fixed;
  z-index: 999999;
  left: 50%;
  top: 25px;
  width: min(420px, calc(100% - 30px));
  padding: 18px 20px;
  transform: translateX(-50%);
  border: 1px solid rgba(164, 119, 62, 0.2);
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.97);
  color: var(--brown);
  box-shadow: var(--shadow);
  text-align: center;
}

.secret-toast strong,
.secret-toast span {
  display: block;
}

.secret-toast span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}


/* =========================================================
   REVEALS
========================================================= */

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

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


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .event-grid {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
  }

  .event-card {
    min-height: 600px;
  }

  .hero-banana {
    width: 48vw;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .guest-gate {
    align-items: center;
    padding: 16px;
  }

  .guest-gate::before {
    inset: 10px;
    border-radius: 25px;
  }

  .gate-panel {
    padding: 35px 20px;
    border-radius: 28px;
  }

  .gate-monogram {
    width: 70px;
    height: 70px;
    margin-bottom: 19px;
  }

  .guest-name-form {
    flex-direction: column;
  }

  .gate-button,
  .guest-name-input {
    width: 100%;
  }

  .guest-side-options {
    grid-template-columns: 1fr;
  }

  .side-choice-wide {
    grid-column: auto;
  }

  .side-choice {
    min-height: 92px;
  }


  /* HERO */

  .hero-content {
    width: calc(100% - 32px);
    padding-top: 62px;
    padding-bottom: 125px;
  }

  .monogram-seal {
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
  }

  .hero-names {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero-banana {
    width: 67vw;
    bottom: -2%;
  }

  .hero-banana-left {
    left: -32%;
  }

  .hero-banana-right {
    right: -32%;
  }

  .enter-celebration {
    width: min(310px, 100%);
    min-width: 0;
    padding: 0 18px;
    font-size: 0.64rem;
  }


  /* SAVE DATE */

  .save-date-section {
    padding: 68px 20px;
  }

  .big-date {
    font-size: clamp(4.5rem, 22vw, 7rem);
  }


  /* COUNTDOWN */

  .countdown-section {
    padding: 68px 18px;
  }

  .countdown-grid {
    gap: 7px;
    margin-top: 38px;
  }

  .countdown-unit {
    padding: 19px 5px;
    border-radius: 17px;
  }

  .countdown-unit strong {
    font-size: clamp(1.7rem, 9vw, 2.6rem);
  }

  .countdown-unit span {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }


  /* STORY */

  .story-section {
    padding: 68px 0 62px;
  }

  .story-heading {
    margin-bottom: 26px;
  }

  .story-scroller {
    gap: 13px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .story-card {
    flex-basis: 88vw;
    height: 62vh;
    min-height: 470px;
    border-radius: 27px;
  }

  .story-content {
    padding: 28px;
  }

  .story-number {
    top: 23px;
    right: 23px;
  }

  .story-content h3 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }


  /* EVENTS */

  .events-section {
    padding: 68px 16px;
  }

  .events-heading {
    margin-bottom: 34px;
    padding: 0 8px;
  }

  .event-card {
    min-height: 535px;
    border-radius: 27px;
  }

  .event-content {
    padding: 26px;
  }


  /* VENUE */

  .venue-section {
    padding-bottom: 68px;
  }

  .venue-visual {
    height: 62vh;
    min-height: 430px;
  }

  .venue-image-title {
    bottom: 72px;
  }

  .venue-card {
    padding: 30px 22px;
  }


  /* CLOSING */

  .closing-section {
    min-height: 72vh;
    padding: 72px 20px 125px;
  }

  .closing-chaos-card {
    margin-top: 34px;
    padding: 25px 18px 23px;
    border-radius: 23px;
  }

  .closing-chaos-card h3 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .closing-chaos-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
  }

  .closing-chaos-small {
    font-size: 0.61rem;
  }


  /* NAV */

  .floating-nav {
    width: calc(100% - 22px);
    min-height: 68px;
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 23px;
  }

  .back-to-top {
    right: 13px;
    bottom: 94px;
  }


  /* INVITE FLOAT */

  .invite-float {
    right: 13px;
    bottom: 143px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
  }

  .invite-float-label {
    display: none;
  }


  /* INVITE MODAL */

  .invite-modal {
    align-items: flex-start;
    padding: 10px;
    overflow-y: auto;
  }

  .invite-dialog {
    width: 100%;
    max-height: none;
    margin: 8px auto 90px;
    padding: 29px 16px 22px;
    border-radius: 27px;
  }

  .invite-close {
    top: 11px;
    right: 11px;
    width: 38px;
    height: 38px;
  }

  .invite-modal-copy {
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .invite-preview {
    width: min(390px, 100%);
    border-radius: 22px;
  }

  .invite-preview-content {
    padding: 25px 20px;
  }

  .invite-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .invite-primary,
  .invite-secondary {
    width: 100%;
    min-height: 50px;
  }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
