:root {
  color-scheme: light;
  --bg: #fff8f7;
  --surface: #ffffff;
  --ink: #2f2730;
  --muted: #7d7079;
  --rose: #ff6f91;
  --peach: #ffb4a2;
  --mint: #9bd8c4;
  --butter: #ffe5a3;
  --line: rgba(47, 39, 48, 0.12);
  --shadow: 0 18px 50px rgba(100, 63, 75, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.is-gated {
  overflow: hidden;
}

body.is-gated .topbar,
body.is-gated .sidebar,
body.is-gated main,
body.is-gated .music-toggle {
  visibility: hidden;
}

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

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #fff5f7;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__mark {
  font-size: clamp(2.4rem, 12vw, 6rem);
  font-weight: 900;
  color: var(--rose);
  animation: pulse 1.15s ease-in-out infinite alternate;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(20, 12, 19, 0.28), rgba(20, 12, 19, 0.72)),
    url("media/IMG_2626.jpg") center / cover;
  color: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.access-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.access-gate__panel {
  width: min(100%, 680px);
  padding: clamp(22px, 7vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(47, 39, 48, 0.56);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.access-gate .eyebrow {
  color: #ffe5ed;
}

.access-gate h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 12vw, 5.8rem);
}

.access-countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.access-countdown div {
  min-height: 84px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.access-countdown strong {
  display: block;
  font-size: clamp(1.9rem, 10vw, 4rem);
  line-height: 0.95;
}

.access-countdown span {
  font-weight: 800;
}

.pin-form {
  display: grid;
  gap: 8px;
}

.pin-form label {
  font-weight: 900;
}

.pin-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.pin-form input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
}

.pin-form__message {
  min-height: 1.4em;
  margin-bottom: 0;
  color: #ffe5a3;
  font-weight: 800;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  background: rgba(255, 248, 247, 0.84);
  border-bottom: 1px solid rgba(255, 111, 145, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  color: var(--rose);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  font-size: 1.4rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle__line {
  width: 28px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(1) {
  transform: rotate(45deg) translate(11px, 12px);
}

.menu-toggle.is-active .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 280px;
  height: 100vh;
  z-index: 19;
  background: rgba(255, 248, 247, 0.98);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 111, 145, 0.16);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 80px;
  padding-bottom: 20px;
  overflow-y: auto;
}

.sidebar.is-open {
  transform: translateX(0);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.nav__link {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: block;
}

.nav__link:hover {
  background: rgba(255, 111, 145, 0.1);
  color: var(--rose);
}

.nav__link:active {
  background: rgba(255, 111, 145, 0.2);
  color: var(--rose);
}

.section {
  padding: 82px 18px;
}

.section-head {
  width: min(100%, 980px);
  margin: 0 auto 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 14vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.16rem;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  padding: 100px 18px 50px;
  overflow: hidden;
}

.hero__bg,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg {
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(180deg, rgba(20, 12, 19, 0.1), rgba(20, 12, 19, 0.72)),
    linear-gradient(90deg, rgba(255, 111, 145, 0.28), rgba(155, 216, 196, 0.1));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin: 0 auto;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.hero .eyebrow {
  color: #ffe5ed;
}

.counter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 560px);
  margin-bottom: 20px;
}

.counter div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(18px);
}

.counter strong {
  display: block;
  font-size: clamp(2rem, 10vw, 4.7rem);
  line-height: 0.95;
}

.counter span {
  font-weight: 700;
}

.hero__start {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.timeline {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 19px;
  width: 2px;
  background: linear-gradient(var(--rose), var(--mint));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline-card,
.stat-card,
.reason-card,
.future-card,
.date-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.timeline-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.timeline-card h3,
.date-card h3 {
  margin-bottom: 4px;
}

.timeline-card time,
.date-card time,
.reel-caption time {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline-media {
  height: 190px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1e7e8;
}

.timeline-media img,
.timeline-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-grid,
.date-grid {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.stat-card,
.date-card {
  padding: 18px;
}

.stat-card p,
.date-card p {
  margin-bottom: 9px;
  color: var(--muted);
}

.stat-card b {
  color: var(--ink);
}

.map {
  width: min(100%, 980px);
  height: min(76vh, 620px);
  min-height: 430px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-popup img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 8px;
}

.gallery {
  background: #111014;
  color: #fff;
}

.reels-page {
  background: #000;
  height: 100svh;
  overflow: hidden;
}

.reels-page main,
.reels-page .gallery {
  height: 100svh;
  overflow: hidden;
}

.gallery__intro {
  min-height: 36svh;
  display: grid;
  align-content: end;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 96px 18px 34px;
}

.gallery .eyebrow {
  color: #ffb4c8;
}

.reel {
  position: relative;
  height: 100svh;
  min-height: 0;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.reels {
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reels::-webkit-scrollbar {
  display: none;
}

.reel-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reel-track::-webkit-scrollbar {
  display: none;
}

.reel-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  background: #000;
}

.reel-slide img,
.reel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.reel-caption video {
  display: none;
}

.reel::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.reel-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: max(26px, env(safe-area-inset-bottom));
  z-index: 1;
  max-width: 680px;
}

.reel-caption p {
  margin-bottom: 6px;
}

.reel-music {
  min-height: 36px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.reel-music.is-playing {
  border-color: rgba(255, 111, 145, 0.85);
  background: rgba(255, 111, 145, 0.78);
}

.dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
}

.dots span.is-active {
  width: 22px;
  border-radius: 999px;
  background: #fff;
}

.reasons,
.future {
  display: grid;
  place-items: center;
  min-height: 70svh;
}

.reason-card,
.future-card {
  width: min(100%, 620px);
  padding: clamp(24px, 7vw, 50px);
  text-align: center;
}

.reason-card h2,
.future-card h2 {
  min-height: 2.4em;
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 7vw, 3.6rem);
}

.reason-card h2.is-changing {
  animation: softIn 0.45s ease;
}

.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 111, 145, 0.28);
  cursor: pointer;
}

.date-card {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.date-route {
  color: var(--rose);
  font-weight: 900;
}

.future-card.is-open {
  background: linear-gradient(135deg, #fff, #fff0f4 46%, #effbf6);
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 30;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.music-toggle.is-playing {
  background: var(--rose);
}

.heart {
  position: fixed;
  top: -24px;
  z-index: 80;
  color: var(--rose);
  pointer-events: none;
  animation: fall linear forwards;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  to {
    transform: scale(1.04);
  }
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift), 105vh, 0) rotate(720deg);
    opacity: 0;
  }
}

@media (min-width: 720px) {
  .section {
    padding: 110px 28px;
  }

  .access-countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .timeline::before {
    left: 50%;
  }

  .timeline-item {
    grid-template-columns: 1fr 42px 1fr;
  }

  .timeline-item:nth-child(odd) .timeline-card {
    grid-column: 1;
  }

  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 3;
  }

  .timeline-dot {
    grid-column: 2;
  }

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

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