:root {
  --bg-top: #84abd9;
  --bg-mid: #17375b;
  --bg-deep: #0d2542;
  --bg-night: #09182d;
  --surface: rgba(10, 27, 48, 0.82);
  --surface-soft: rgba(13, 34, 60, 0.86);
  --card: rgba(251, 253, 255, 0.96);
  --card-soft: rgba(237, 245, 255, 0.92);
  --card-warm: rgba(255, 247, 236, 0.96);
  --text: #f7fbff;
  --text-dark: #11233a;
  --muted: #c4d4e8;
  --line: rgba(189, 220, 255, 0.18);
  --accent: #ff7a59;
  --accent-2: #ff4f80;
  --gold: #ffd56c;
  --teal: #1bd1c2;
  --blue: #6cb6ff;
  --violet: #8b5cff;
  --shadow: 0 28px 80px rgba(5, 11, 25, 0.34);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 173, 112, 0.24), transparent 24%),
    radial-gradient(circle at 84% 12%, rgba(27, 209, 194, 0.18), transparent 20%),
    radial-gradient(circle at 54% 110%, rgba(108, 182, 255, 0.18), transparent 38%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 24%, var(--bg-deep) 62%, var(--bg-night) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 213, 108, 0.14), transparent 12%),
    radial-gradient(circle at 72% 22%, rgba(255, 122, 89, 0.12), transparent 14%),
    radial-gradient(circle at 48% 8%, rgba(255, 255, 255, 0.08), transparent 18%);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 62%);
}

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

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero,
.section,
.timeline-card,
.module-card,
.mini-card,
.rsvp-lead {
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  padding: 118px 40px 40px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 12px);
  background:
    linear-gradient(180deg, rgba(23, 55, 91, 0.82), rgba(9, 24, 44, 0.92)),
    linear-gradient(135deg, rgba(255, 122, 89, 0.08), transparent 48%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -14% -24% 10%;
  height: 280px;
  background: radial-gradient(circle, rgba(27, 209, 194, 0.14), transparent 60%);
}

.party-lights,
.section-lights {
  position: absolute;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.party-lights {
  top: 18px;
  left: 36px;
  right: 36px;
}

.party-lights-secondary {
  top: 56px;
  left: 72px;
  right: 72px;
  opacity: 0.92;
}

.party-lights::before,
.section-lights::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -6px;
  right: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 21, 35, 0.9), rgba(38, 54, 78, 0.9));
}

.section-lights {
  top: 16px;
  left: 24px;
  right: 24px;
}

.bulb {
  position: relative;
  width: 22px;
  height: 30px;
  border-radius: 50% 50% 46% 46%;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.03),
    0 0 26px currentColor,
    0 0 50px currentColor;
}

.bulb::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 4px;
  width: 14px;
  height: 12px;
  border-radius: 4px 4px 2px 2px;
  background: #1b2436;
}

.bulb::after {
  content: "";
  position: absolute;
  top: -19px;
  left: 10px;
  width: 2px;
  height: 10px;
  background: #1b2436;
}

.bulb-red {
  color: #ff6a4f;
  background: linear-gradient(180deg, #ff9866, #ff563b);
}

.bulb-green {
  color: #8cff63;
  background: linear-gradient(180deg, #b9ff57, #5bd25b);
}

.bulb-blue {
  color: #73a6ff;
  background: linear-gradient(180deg, #93cbff, #4c72ff);
}

.bulb-gold {
  color: #ffd15f;
  background: linear-gradient(180deg, #ffe58a, #ffba42);
}

.bulb-coral {
  color: #ff7e7e;
  background: linear-gradient(180deg, #ffa67e, #ff5f6e);
}

.bulb-teal {
  color: #41e4d5;
  background: linear-gradient(180deg, #8ef9ea, #18bcc0);
}

.hero-copy,
.hero-visual,
.section-heading,
.timeline,
.mini-grid,
.modules-grid,
.rsvp-lead {
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.section-heading h2,
.timeline-card h3,
.module-card h3,
.mini-card h3 {
  margin: 0;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: -0.035em;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 7vw, 6.1rem);
  line-height: 0.92;
  text-shadow: 0 10px 28px rgba(8, 15, 26, 0.35);
}

.eyebrow,
.panel-label,
.timeline-day,
.module-number,
.info-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow,
.panel-label {
  color: #aee4ff;
}

.timeline-day,
.info-kicker {
  color: #255fb7;
}

.js .section,
.js .timeline-card,
.js .mini-card,
.js .module-card,
.js .rsvp-lead {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition:
    opacity 720ms ease,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 900ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js .section {
  transform: translate3d(0, 42px, 0) scale(0.985);
  filter: saturate(0.86);
}

.js .section.is-visible,
.js .timeline-card.is-visible,
.js .mini-card.is-visible,
.js .module-card.is-visible,
.js .rsvp-lead.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.js .timeline-card,
.js .mini-card,
.js .module-card,
.js .rsvp-lead {
  transform: translate3d(0, 30px, 0) scale(0.98);
  filter: blur(8px);
}

.js .section .section-lights {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 520ms ease 140ms,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 140ms;
}

.js .section.is-visible .section-lights {
  opacity: 1;
  transform: none;
}

.lead,
.section-text,
.timeline-card p,
.module-card p,
.mini-card p,
label,
legend,
input,
textarea,
.hero-list,
.hero-note,
.mail-address,
.mail-note,
.tiny-note,
.rsvp-lead,
figcaption {
  font-size: 1rem;
  line-height: 1.6;
}

.lead {
  max-width: 48ch;
  margin: 20px 0 0;
  color: rgba(244, 248, 255, 0.86);
}

.hero-actions,
.mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fffdf7;
  background: linear-gradient(135deg, #ff8c52, #ff4f80 62%, #8b5cff 100%);
  box-shadow: 0 18px 42px rgba(255, 79, 128, 0.34);
}

.button.secondary {
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.button.copy {
  color: #fffdf7;
  background: linear-gradient(135deg, #1fb6a6, #2e80e9 58%, #255fb7 100%);
  box-shadow: 0 16px 36px rgba(37, 95, 183, 0.3);
}

.hero-note {
  margin: 16px 0 0;
  color: rgba(205, 220, 238, 0.9);
}

.deadline-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 11px 16px;
  border: 1px solid rgba(255, 213, 108, 0.3);
  border-radius: 999px;
  background: rgba(255, 213, 108, 0.12);
  color: #fff1bc;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 16px 34px rgba(5, 12, 26, 0.18);
}

.deadline-note::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 10px rgba(255, 213, 108, 0.92),
    0 0 22px rgba(255, 213, 108, 0.44);
}

.hero-visual {
  display: grid;
  align-content: start;
}

.hero-collage,
.timeline-card,
.module-card,
.mini-card,
.rsvp-lead,
.section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-collage {
  position: relative;
  display: grid;
  gap: 18px;
  align-items: start;
  margin: 0;
  padding: 22px;
  overflow: hidden;
  box-shadow: 0 22px 46px rgba(4, 12, 24, 0.28);
  background:
    radial-gradient(circle at top left, rgba(255, 213, 108, 0.18), transparent 22%),
    radial-gradient(circle at 70% 12%, rgba(255, 122, 89, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(27, 209, 194, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(11, 32, 58, 0.92), rgba(8, 22, 40, 0.9));
}

.hero-collage::before,
.hero-collage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-collage::before {
  inset: 14px 18px auto 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.hero-collage::after {
  inset: auto 10% -20% 34%;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 213, 108, 0.16), transparent 70%);
}

.hero-collage-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  align-items: start;
}

.hero-collage-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.collage-snap {
  --snap-rotate: 0deg;
  --snap-shift: 0px;
  --snap-scale: 1;
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 252, 0.96));
  box-shadow: 0 18px 38px rgba(1, 8, 18, 0.32);
  transform: translate3d(0, var(--snap-shift), 0) rotate(var(--snap-rotate))
    scale(var(--snap-scale));
  transition:
    opacity 720ms ease,
    transform 950ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 900ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.collage-snap::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe58a, #ffba42);
  box-shadow:
    0 0 10px rgba(255, 213, 108, 0.76),
    0 4px 10px rgba(5, 12, 26, 0.16);
  z-index: 2;
}

.collage-snap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(222, 232, 246, 0.84), rgba(244, 248, 252, 0.92));
  filter: saturate(1.02) contrast(1.01);
}

.js .collage-snap {
  opacity: 0;
  --snap-shift: 22px;
  --snap-scale: 0.94;
  filter: blur(8px);
  will-change: transform, opacity, filter;
}

.js .collage-snap.is-visible {
  opacity: 1;
  --snap-shift: 0px;
  --snap-scale: 1;
  filter: none;
}

.snap-gitarr {
  --snap-rotate: -2.4deg;
  transform-origin: top right;
  z-index: 4;
}

.snap-axlar {
  width: min(100%, 300px);
  justify-self: start;
  --snap-rotate: 2.5deg;
  transform-origin: bottom left;
  z-index: 5;
}

.snap-solglasogon {
  width: min(88%, 260px);
  justify-self: end;
  --snap-rotate: -1.4deg;
  transform-origin: top left;
  z-index: 3;
}

.section {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 72px 34px 34px;
  background:
    linear-gradient(180deg, rgba(10, 28, 50, 0.8), rgba(8, 22, 40, 0.8)),
    linear-gradient(135deg, rgba(255, 122, 89, 0.08), transparent 46%);
  box-shadow: var(--shadow);
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  color: #fbfdff;
}

.section-text {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.osa-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.osa-photo {
  width: min(100%, 420px);
  justify-self: end;
  padding: 14px;
  --snap-rotate: -1.3deg;
  z-index: 2;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.timeline-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.94), rgba(235, 244, 255, 0.88));
  color: var(--text-dark);
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -34% 36%;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 122, 89, 0.22), transparent 68%);
}

.timeline-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 12px rgba(255, 213, 109, 0.9),
    0 0 28px rgba(255, 213, 109, 0.58);
}

.timeline-card.highlight {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(255, 235, 214, 0.9));
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.time-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(35, 99, 183, 0.1);
  color: #235db6;
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.timeline-card p {
  position: relative;
  z-index: 1;
}

.timeline-detail {
  margin-top: 14px;
  font-weight: 800;
  color: #1e5eb2;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.mini-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.94), rgba(237, 246, 255, 0.9));
  color: var(--text-dark);
}

.mini-card h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.mini-section .bulb {
  transform: scale(0.9);
}

.rsvp-lead {
  margin-top: 22px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(11, 32, 58, 0.92), rgba(8, 22, 40, 0.84));
  color: #f3f8ff;
}

.rsvp-lead p {
  margin: 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.96), rgba(235, 244, 255, 0.9));
  color: var(--text-dark);
  box-shadow: 0 18px 40px rgba(2, 9, 22, 0.18);
}

.module-card.accent {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 89, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(255, 238, 220, 0.94));
}

.module-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.module-number {
  margin: 0;
  color: #2e80e9;
}

.module-card h3 {
  font-size: 1.7rem;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 800;
}

.field-note {
  margin: -2px 0 12px;
  color: rgba(17, 35, 58, 0.74);
  font-size: 0.96rem;
  line-height: 1.5;
}

label {
  display: block;
  font-weight: 700;
}

.option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 500;
}

.option + .option {
  margin-top: 10px;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid rgba(28, 70, 117, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-dark);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #ff5e77;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus {
  outline: 2px solid rgba(108, 182, 255, 0.52);
  outline-offset: 2px;
}

.mail-note,
.tiny-note {
  margin: 0;
  color: rgba(15, 33, 54, 0.74);
}

.mail-address {
  margin: 0;
  font-weight: 800;
  color: #1c5fb6;
}

.mail-actions-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  color: rgba(15, 33, 54, 0.64);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.summary-box {
  min-height: 300px;
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 213, 109, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(8, 22, 40, 0.96), rgba(10, 30, 54, 0.96));
  color: #f5f9ff;
  white-space: pre-wrap;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

  .page-shell {
    width: min(100% - 18px, 1200px);
    padding-top: 18px;
  }

  .hero,
  .timeline,
  .mini-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .section {
    padding: 104px 22px 22px;
  }

  .section {
    padding-top: 64px;
  }

  .party-lights {
    left: 22px;
    right: 22px;
    top: 14px;
  }

  .party-lights-secondary {
    left: 42px;
    right: 42px;
    top: 48px;
  }

  .section-lights {
    left: 16px;
    right: 16px;
    top: 12px;
  }

  .bulb {
    width: 18px;
    height: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 14vw, 4.9rem);
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    gap: 12px;
    padding: 16px;
  }

  .hero-collage-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-collage-stack {
    gap: 12px;
  }

  .osa-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #osa,
  #osa .section-heading,
  #osa .rsvp-lead,
  #osa .module-card {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .collage-snap {
    padding: 10px;
  }

  .collage-snap::before {
    top: 10px;
    right: 10px;
  }

  .snap-gitarr,
  .snap-axlar,
  .snap-solglasogon,
  .osa-photo {
    width: 100%;
    justify-self: stretch;
  }

  .osa-photo {
    order: -1;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .section,
  .js .timeline-card,
  .js .mini-card,
  .js .module-card,
  .js .rsvp-lead {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .js .collage-snap {
    opacity: 1;
    --snap-shift: 0px;
    --snap-scale: 1;
    filter: none;
    transition: none;
  }

  .js .section .section-lights {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
