:root {
  --bg: #f4eff6;
  --paper: #faf7fb;
  --ink: #26192e;
  --muted: #756b7c;
  --violet-1000: #13091d;
  --violet-950: #1b0d28;
  --violet-900: #241133;
  --violet-800: #341845;
  --violet-700: #48245d;
  --violet-600: #623779;
  --violet-500: #80599a;
  --violet-400: #a183b6;
  --violet-300: #c2afd0;
  --violet-200: #ddd1e4;
  --violet-100: #eee7f2;
  --cream: #fbf7f3;
  --line: rgba(60, 36, 72, 0.14);
  --line-light: rgba(248, 241, 250, 0.16);
  --shadow: 0 28px 90px rgba(34, 14, 46, 0.16);
  --radius: 34px;
  --container: min(1180px, calc(100% - 48px));
  --display: "Prata", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(153, 114, 179, 0.35);
  outline-offset: 4px;
}

::selection {
  background: var(--violet-700);
  color: white;
}

[hidden] {
  display: none !important;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(92px, 11vw, 150px) 0;
  overflow: hidden;
}

.section-light {
  background: var(--paper);
}

.section-soft {
  background: #eee7f1;
}

.section-dark {
  background:
    radial-gradient(circle at 72% 18%, rgba(154, 113, 183, 0.15), transparent 30%),
    linear-gradient(145deg, #231031 0%, #160a20 60%, #100717 100%);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--violet-600);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(243, 232, 249, 0.62);
}

.display-title {
  margin: 0;
  max-width: 920px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.display-title--light {
  color: #f8f1fa;
}

.body-copy {
  margin: 0;
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.17rem);
  line-height: 1.82;
}

.body-copy--light {
  color: rgba(244, 236, 248, 0.62);
}

.section-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--violet-600);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-index--light {
  border-color: var(--line-light);
  color: rgba(244, 236, 248, 0.74);
}

.scroll-progress {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #8a5fa2, #d6c1df);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* =========================================================
   COVER
   ========================================================= */
.cover {
  --mx: 0px;
  --my: 0px;
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: hidden;
  perspective: 1400px;
  background:
    radial-gradient(circle at 50% 0%, rgba(181, 145, 203, 0.2), transparent 34%),
    linear-gradient(145deg, #2a123b 0%, #170a22 58%, #0f0715 100%);
  color: #f8f0fa;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

.cover__grain {
  position: absolute;
  inset: 0;
  z-index: 15;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cover__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  will-change: transform;
}

.cover__halo--a {
  top: -20%;
  left: 50%;
  width: min(70vw, 920px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(169, 123, 198, 0.22), transparent 66%);
  transform: translate(calc(-50% + var(--mx)), var(--my));
  animation: haloBreath 7s ease-in-out infinite;
}

.cover__halo--b {
  right: -25%;
  bottom: -35%;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(102, 57, 128, 0.2), transparent 68%);
  animation: haloFloat 10s ease-in-out infinite alternate;
}

.silk-field {
  position: absolute;
  inset: -10%;
  overflow: hidden;
}

.silk {
  position: absolute;
  display: block;
  border-radius: 48% 52% 60% 40% / 48% 42% 58% 52%;
  filter: blur(2px);
  opacity: 0.82;
  mix-blend-mode: screen;
  will-change: transform;
}

.silk--1 {
  top: -8%;
  left: -18%;
  width: 66%;
  height: 118%;
  background:
    linear-gradient(110deg, rgba(52, 21, 72, 0.1), rgba(132, 80, 162, 0.36) 45%, rgba(43, 16, 59, 0.08) 70%),
    radial-gradient(ellipse at 60% 30%, rgba(210, 176, 228, 0.17), transparent 55%);
  transform: rotate(9deg) skewX(-8deg);
  animation: silkOne 10s ease-in-out infinite alternate;
}

.silk--2 {
  top: -15%;
  right: -20%;
  width: 70%;
  height: 122%;
  background:
    linear-gradient(250deg, rgba(53, 20, 74, 0.06), rgba(114, 68, 145, 0.31) 46%, rgba(38, 15, 51, 0.1) 72%),
    radial-gradient(ellipse at 35% 50%, rgba(210, 176, 228, 0.13), transparent 58%);
  transform: rotate(-10deg) skewX(9deg);
  animation: silkTwo 11s ease-in-out infinite alternate;
}

.silk--3 {
  left: 18%;
  bottom: -46%;
  width: 74%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(128, 78, 158, 0.2), transparent 62%);
  transform: rotate(-5deg);
  animation: silkThree 8s ease-in-out infinite alternate;
}

.silk--4 {
  top: 16%;
  left: 34%;
  width: 34%;
  height: 68%;
  border: 1px solid rgba(226, 205, 237, 0.08);
  opacity: 0.4;
  transform: rotate(24deg);
  animation: silkFour 14s linear infinite;
}

.cover__split {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 50.15%;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(145deg, rgba(86, 47, 108, 0.28), rgba(20, 8, 29, 0.76)),
    radial-gradient(circle at 50% 30%, rgba(190, 151, 212, 0.11), transparent 40%);
  backdrop-filter: blur(10px);
  will-change: transform, opacity;
}

.cover__split--left {
  left: 0;
}

.cover__split--right {
  right: 0;
}

.cover-card {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(560px, 86vw);
  min-height: min(690px, 76svh);
  padding: clamp(38px, 6vw, 70px) clamp(28px, 6vw, 70px);
  border: 1px solid rgba(239, 224, 247, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    rgba(42, 20, 57, 0.32);
  box-shadow:
    0 45px 120px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  transform-style: preserve-3d;
  backdrop-filter: blur(18px) saturate(125%);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease;
  will-change: transform, opacity;
}

.cover-card::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(238, 224, 246, 0.1);
  pointer-events: none;
}

.cover-card__micro {
  position: absolute;
  top: 34px;
  color: rgba(244, 235, 248, 0.5);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.cover-card__line {
  width: 1px;
  height: 64px;
  margin-bottom: 26px;
  background: linear-gradient(transparent, rgba(235, 219, 243, 0.55));
  animation: linePulse 2.8s ease-in-out infinite;
}

.cover-card__date {
  margin: 0 0 22px;
  color: rgba(244, 235, 248, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

.cover-card__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 7.3rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.82;
}

.cover-card__names em {
  margin: 4px 0;
  color: #cbb4d8;
  font-size: 0.5em;
  font-weight: 400;
}

.cover-card__copy {
  max-width: 330px;
  margin: 30px 0 0;
  color: rgba(244, 235, 248, 0.52);
  font-size: 0.84rem;
  line-height: 1.65;
}

.cover-card__corners span {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}

.cover-card__corners span:nth-child(1) {
  top: 20px;
  left: 20px;
  border-top: 1px solid rgba(237, 220, 246, 0.28);
  border-left: 1px solid rgba(237, 220, 246, 0.28);
}

.cover-card__corners span:nth-child(2) {
  top: 20px;
  right: 20px;
  border-top: 1px solid rgba(237, 220, 246, 0.28);
  border-right: 1px solid rgba(237, 220, 246, 0.28);
}

.cover-card__corners span:nth-child(3) {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid rgba(237, 220, 246, 0.28);
  border-bottom: 1px solid rgba(237, 220, 246, 0.28);
}

.cover-card__corners span:nth-child(4) {
  bottom: 20px;
  left: 20px;
  border-bottom: 1px solid rgba(237, 220, 246, 0.28);
  border-left: 1px solid rgba(237, 220, 246, 0.28);
}

.bloom {
  position: absolute;
  z-index: 2;
  bottom: 61px;
  left: 50%;
  width: 126px;
  height: 126px;
  pointer-events: none;
  transform: translateX(-50%);
}

.bloom__petal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 72px;
  margin: -66px 0 0 -19px;
  border: 1px solid rgba(220, 197, 232, 0.28);
  border-radius: 70% 70% 48% 48%;
  background: linear-gradient(180deg, rgba(197, 162, 216, 0.18), rgba(70, 35, 89, 0.04));
  transform-origin: 50% 66px;
  backdrop-filter: blur(4px);
  animation: petalBreath 4.5s ease-in-out infinite;
}

.bloom__petal--1 { transform: rotate(0deg) scaleY(0.96); }
.bloom__petal--2 { transform: rotate(45deg) scaleY(0.96); animation-delay: -0.45s; }
.bloom__petal--3 { transform: rotate(90deg) scaleY(0.96); animation-delay: -0.9s; }
.bloom__petal--4 { transform: rotate(135deg) scaleY(0.96); animation-delay: -1.35s; }
.bloom__petal--5 { transform: rotate(180deg) scaleY(0.96); animation-delay: -1.8s; }
.bloom__petal--6 { transform: rotate(225deg) scaleY(0.96); animation-delay: -2.25s; }
.bloom__petal--7 { transform: rotate(270deg) scaleY(0.96); animation-delay: -2.7s; }
.bloom__petal--8 { transform: rotate(315deg) scaleY(0.96); animation-delay: -3.15s; }

.seal-button {
  position: absolute;
  z-index: 5;
  bottom: 71px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(237, 220, 246, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(94, 52, 118, 0.98), rgba(38, 18, 52, 0.98));
  color: #f8f0fa;
  box-shadow:
    0 0 0 10px rgba(151, 109, 178, 0.06),
    0 0 42px rgba(151, 109, 178, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease;
  animation: sealPulse 3s ease-in-out infinite;
}

.seal-button:hover {
  background: linear-gradient(145deg, #7f5797, #412552);
  box-shadow:
    0 0 0 15px rgba(151, 109, 178, 0.08),
    0 0 64px rgba(185, 146, 208, 0.32),
    0 22px 50px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%) scale(1.06);
}

.seal-button__monogram {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.seal-button__label {
  margin-top: 7px;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

.cover__hint {
  position: absolute;
  z-index: 10;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  margin: 0;
  color: rgba(244, 235, 248, 0.42);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: hintFloat 2.6s ease-in-out infinite;
}

.cover__spark {
  position: absolute;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f8eefe;
  box-shadow: 0 0 18px rgba(248, 238, 254, 0.9);
  opacity: 0.68;
  animation: sparkle 3.3s ease-in-out infinite;
}

.cover__spark--1 { top: 19%; left: 18%; }
.cover__spark--2 { top: 29%; right: 16%; animation-delay: -1.1s; }
.cover__spark--3 { bottom: 24%; left: 14%; animation-delay: -2.2s; }
.cover__spark--4 { right: 21%; bottom: 17%; animation-delay: -0.7s; }

@keyframes haloBreath {
  0%, 100% { opacity: 0.65; transform: translate(calc(-50% + var(--mx)), var(--my)) scale(1); }
  50% { opacity: 1; transform: translate(calc(-50% + var(--mx)), var(--my)) scale(1.08); }
}

@keyframes haloFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-8%, -6%, 0) scale(1.08); }
}

@keyframes silkOne {
  from { transform: translate3d(-2%, -1%, 0) rotate(9deg) skewX(-8deg) scale(1); }
  to { transform: translate3d(5%, 2%, 0) rotate(5deg) skewX(-4deg) scale(1.06); }
}

@keyframes silkTwo {
  from { transform: translate3d(2%, -1%, 0) rotate(-10deg) skewX(9deg) scale(1); }
  to { transform: translate3d(-5%, 3%, 0) rotate(-6deg) skewX(4deg) scale(1.05); }
}

@keyframes silkThree {
  from { transform: translateY(0) rotate(-5deg) scale(1); }
  to { transform: translateY(-9%) rotate(3deg) scale(1.08); }
}

@keyframes silkFour {
  to { transform: rotate(384deg); }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1.05); }
}

@keyframes petalBreath {
  0%, 100% { opacity: 0.54; filter: brightness(0.94); }
  50% { opacity: 0.95; filter: brightness(1.2); }
}

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(151, 109, 178, 0.06), 0 0 42px rgba(151, 109, 178, 0.22), 0 18px 40px rgba(0, 0, 0, 0.26); }
  50% { box-shadow: 0 0 0 15px rgba(151, 109, 178, 0.08), 0 0 60px rgba(177, 134, 202, 0.28), 0 18px 40px rgba(0, 0, 0, 0.26); }
}

@keyframes hintFloat {
  0%, 100% { opacity: 0.38; transform: translate(-50%, 0); }
  50% { opacity: 0.72; transform: translate(-50%, -5px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.12; transform: scale(0.5); }
  45% { opacity: 0.9; transform: scale(1.35); }
  55% { opacity: 0.35; transform: scale(0.75); }
}

/* Cover opening choreography */
.cover.is-opening .cover__split {
  opacity: 1;
}

.cover.is-opening .cover__split--left {
  animation: splitLeft 1.4s 0.65s var(--ease) forwards;
}

.cover.is-opening .cover__split--right {
  animation: splitRight 1.4s 0.65s var(--ease) forwards;
}

.cover.is-opening .seal-button {
  animation: sealOpen 0.75s var(--ease) forwards;
}

.cover.is-opening .bloom__petal--1 { animation: bloomOpen1 1s 0.1s var(--ease) forwards; }
.cover.is-opening .bloom__petal--2 { animation: bloomOpen2 1s 0.12s var(--ease) forwards; }
.cover.is-opening .bloom__petal--3 { animation: bloomOpen3 1s 0.14s var(--ease) forwards; }
.cover.is-opening .bloom__petal--4 { animation: bloomOpen4 1s 0.16s var(--ease) forwards; }
.cover.is-opening .bloom__petal--5 { animation: bloomOpen5 1s 0.18s var(--ease) forwards; }
.cover.is-opening .bloom__petal--6 { animation: bloomOpen6 1s 0.2s var(--ease) forwards; }
.cover.is-opening .bloom__petal--7 { animation: bloomOpen7 1s 0.22s var(--ease) forwards; }
.cover.is-opening .bloom__petal--8 { animation: bloomOpen8 1s 0.24s var(--ease) forwards; }

.cover.is-opening .cover-card {
  animation: cardLift 1.55s 0.45s var(--ease) forwards;
}

.cover.is-opening .silk--1 {
  animation: silkLeaveLeft 1.65s 0.55s var(--ease) forwards;
}

.cover.is-opening .silk--2 {
  animation: silkLeaveRight 1.65s 0.55s var(--ease) forwards;
}

.cover.is-opening .silk--3,
.cover.is-opening .silk--4,
.cover.is-opening .cover__hint,
.cover.is-opening .cover__spark {
  animation: fadeAway 0.55s ease forwards;
}

.cover.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes sealOpen {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  45% { transform: translateX(-50%) scale(1.18); box-shadow: 0 0 90px rgba(223, 196, 238, 0.78); background: #d6c0e1; color: #2d1739; }
  100% { transform: translateX(-50%) scale(0.2); opacity: 0; }
}

@keyframes bloomOpen1 { to { transform: rotate(0deg) translateY(-38px) scaleY(1.2); opacity: 0; } }
@keyframes bloomOpen2 { to { transform: rotate(45deg) translateY(-38px) scaleY(1.2); opacity: 0; } }
@keyframes bloomOpen3 { to { transform: rotate(90deg) translateY(-38px) scaleY(1.2); opacity: 0; } }
@keyframes bloomOpen4 { to { transform: rotate(135deg) translateY(-38px) scaleY(1.2); opacity: 0; } }
@keyframes bloomOpen5 { to { transform: rotate(180deg) translateY(-38px) scaleY(1.2); opacity: 0; } }
@keyframes bloomOpen6 { to { transform: rotate(225deg) translateY(-38px) scaleY(1.2); opacity: 0; } }
@keyframes bloomOpen7 { to { transform: rotate(270deg) translateY(-38px) scaleY(1.2); opacity: 0; } }
@keyframes bloomOpen8 { to { transform: rotate(315deg) translateY(-38px) scaleY(1.2); opacity: 0; } }

@keyframes cardLift {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotateX(0); }
  55% { opacity: 1; transform: translate3d(0, -5vh, 110px) scale(1.04) rotateX(-2deg); }
  100% { opacity: 0; transform: translate3d(0, -12vh, 170px) scale(1.12) rotateX(-4deg); }
}

@keyframes splitLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-105%); }
}

@keyframes splitRight {
  from { transform: translateX(0); }
  to { transform: translateX(105%); }
}

@keyframes silkLeaveLeft {
  to { transform: translate3d(-80%, 0, 0) rotate(18deg) scale(1.15); opacity: 0; }
}

@keyframes silkLeaveRight {
  to { transform: translate3d(80%, 0, 0) rotate(-18deg) scale(1.15); opacity: 0; }
}

@keyframes fadeAway {
  to { opacity: 0; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  --hx: 0px;
  --hy: 0px;
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  color: #f8f1fa;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 90%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

.hero__glow--1 {
  top: -14%;
  right: -10%;
  width: min(50vw, 680px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(153, 106, 180, 0.19), transparent 68%);
  transform: translate(var(--hx), var(--hy));
}

.hero__glow--2 {
  bottom: -22%;
  left: -18%;
  width: min(55vw, 760px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(91, 51, 115, 0.19), transparent 68%);
  transform: translate(calc(var(--hx) * -0.5), calc(var(--hy) * -0.5));
}

.hero-ribbon {
  position: absolute;
  border: 1px solid rgba(220, 198, 233, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ribbon--1 {
  top: 12%;
  right: -10%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  transform: rotate(18deg);
  animation: heroOrbit 18s linear infinite;
}

.hero-ribbon--2 {
  left: 18%;
  bottom: -28%;
  width: min(50vw, 680px);
  aspect-ratio: 1;
  transform: rotate(-20deg);
  animation: heroOrbitReverse 24s linear infinite;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  width: var(--container);
  min-height: 100svh;
  padding: max(32px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(244, 235, 248, 0.5);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__content {
  align-self: center;
  padding: 72px 0 86px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  max-width: 960px;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 12.8rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.68;
}

.hero__title span:last-child {
  margin-left: clamp(48px, 12vw, 170px);
}

.hero__title em {
  align-self: center;
  margin: 5px 0;
  color: #bfa8cc;
  font-size: 0.46em;
  font-weight: 400;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 42px;
}

.hero__lead {
  max-width: 560px;
  margin: 0;
  color: rgba(244, 235, 248, 0.62);
  font-size: clamp(0.98rem, 1.5vw, 1.13rem);
  line-height: 1.76;
}

.circle-link {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(242, 231, 247, 0.22);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s var(--ease);
  animation: circleFloat 3s ease-in-out infinite;
}

.circle-link:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-5px);
}

.hero-date-card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: absolute;
  right: 0;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(170px, 18vw, 245px);
  aspect-ratio: 0.78;
  border: 1px solid rgba(238, 224, 246, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.14), transparent 38%),
    rgba(255,255,255,0.045);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  text-align: center;
  backdrop-filter: blur(12px);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out;
}

.hero-date-card__small {
  margin-bottom: 14px;
  color: rgba(244, 235, 248, 0.5);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-date-card strong {
  font-family: var(--display);
  font-size: clamp(4.8rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.85;
}

.hero-date-card > span:not(.hero-date-card__small) {
  margin-top: 8px;
  color: rgba(244, 235, 248, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-date-card i {
  width: 54%;
  height: 1px;
  margin: 18px 0;
  background: rgba(242, 231, 247, 0.14);
}

.hero-date-card b {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

@keyframes heroOrbit {
  to { transform: rotate(378deg); }
}

@keyframes heroOrbitReverse {
  to { transform: rotate(-380deg); }
}

@keyframes circleFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* =========================================================
   INTRO
   ========================================================= */
.intro-grid {
  display: grid;
  grid-template-columns: 70px 1.3fr 0.72fr;
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.intro-grid__copy {
  padding-top: 104px;
}

.signature {
  margin-top: 54px;
  color: var(--violet-600);
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  letter-spacing: -0.05em;
}

.running-line {
  margin-top: 110px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.running-line__track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.running-line__track span {
  display: block;
  padding: 22px 20px;
  color: var(--violet-600);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   DATE ART
   ========================================================= */
.date-section {
  background:
    radial-gradient(circle at 83% 23%, rgba(174, 130, 200, 0.13), transparent 28%),
    linear-gradient(145deg, #2a143b, #160a21 64%, #100717);
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.52fr);
  gap: 80px;
  align-items: end;
}

.split-heading--dark {
  color: var(--ink);
}

.date-art {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 160px;
  gap: clamp(18px, 5vw, 68px);
  align-items: end;
  margin-top: clamp(72px, 11vw, 124px);
  padding-top: 42px;
  border-top: 1px solid var(--line-light);
  color: #f7effa;
}

.date-art__month {
  align-self: center;
  color: rgba(245, 236, 249, 0.44);
  font-size: 0.9rem;
  letter-spacing: 0.56em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.date-art__number {
  font-family: var(--display);
  font-size: clamp(11rem, 30vw, 27rem);
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 0.68;
  text-shadow: 0 24px 80px rgba(0,0,0,0.18);
}

.date-art__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
  padding-bottom: 16px;
  color: rgba(245, 236, 249, 0.56);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.date-art__meta span:first-child {
  color: #d7c2e1;
  font-family: var(--display);
  font-size: 2.9rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* =========================================================
   PROGRAM
   ========================================================= */
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
}

.program-card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  min-height: 340px;
  padding: clamp(26px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(70, 42, 83, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.72), transparent 34%),
    rgba(255,255,255,0.52);
  box-shadow: 0 18px 56px rgba(62, 35, 76, 0.055);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out, box-shadow 0.35s ease, background 0.35s ease;
}

.program-card:hover {
  box-shadow: 0 28px 80px rgba(62, 35, 76, 0.1);
}

.program-card--wide {
  grid-column: span 2;
  min-height: 300px;
}

.program-card__num {
  position: absolute;
  top: 34px;
  right: 36px;
  color: rgba(93, 56, 112, 0.35);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.program-card time {
  display: block;
  color: var(--violet-600);
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.program-card h3 {
  margin: 58px 0 14px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.program-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.program-card__orb {
  position: absolute;
  top: -35%;
  right: -9%;
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid rgba(99, 58, 119, 0.12);
  border-radius: 50%;
  animation: cardOrb 11s linear infinite;
}

.program-card__orb::before,
.program-card__orb::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(99, 58, 119, 0.1);
  border-radius: 50%;
}

.program-card__orb::before { inset: 32px; }
.program-card__orb::after { inset: 68px; }

.program-card__wave {
  position: absolute;
  right: -8%;
  bottom: -40%;
  width: 330px;
  height: 210px;
  border: 1px solid rgba(99, 58, 119, 0.12);
  border-radius: 50%;
  transform: rotate(-14deg);
  animation: cardWave 7s ease-in-out infinite alternate;
}

@keyframes cardOrb {
  to { transform: rotate(360deg); }
}

@keyframes cardWave {
  from { transform: translateX(0) rotate(-14deg) scale(1); }
  to { transform: translateX(-14px) rotate(-7deg) scale(1.08); }
}

/* =========================================================
   VENUE
   ========================================================= */
.venue-section {
  background:
    radial-gradient(circle at 75% 18%, rgba(169, 124, 194, 0.11), transparent 30%),
    linear-gradient(145deg, #22102f, #13091d);
}

.venue-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(50px, 9vw, 120px);
  align-items: center;
}

.glass-link {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  margin-top: 34px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 236, 249, 0.24);
  color: #f7effa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease), border-color 0.3s ease;
}

.glass-link:hover {
  gap: 42px;
  border-color: rgba(245, 236, 249, 0.6);
}

.glass-link b {
  font-size: 1.1rem;
  font-weight: 400;
}

.venue-visual {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(236, 219, 245, 0.16);
  border-radius: 300px 300px 36px 36px;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.09), transparent 32%),
    linear-gradient(180deg, rgba(87, 48, 108, 0.52), rgba(27, 13, 37, 0.94));
  box-shadow: 0 38px 100px rgba(0,0,0,0.26);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out;
}

.venue-visual::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(235, 218, 244, 0.11);
  border-radius: 280px 280px 28px 28px;
}

.venue-visual__moon {
  position: absolute;
  top: 12%;
  right: 15%;
  width: 16%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #eee4f2, #bca3ca);
  box-shadow: 0 0 54px rgba(219, 199, 231, 0.3);
  animation: moonGlow 5s ease-in-out infinite;
}

.venue-visual__arch {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(231, 213, 241, 0.19);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.venue-visual__arch--1 {
  top: 16%;
  width: 62%;
  height: 62%;
}

.venue-visual__arch--2 {
  top: 24%;
  width: 43%;
  height: 48%;
}

.venue-visual__floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(179, 143, 199, 0.17), transparent 66%);
}

.venue-visual__table {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 48%;
  height: 18%;
  border-radius: 50% 50% 18px 18px;
  background: linear-gradient(180deg, #d9cadf, #a690b2);
  transform: translateX(-50%);
  box-shadow: 0 22px 44px rgba(0,0,0,0.22);
}

.venue-visual__candle {
  position: absolute;
  z-index: 3;
  bottom: 29%;
  width: 6px;
  border-radius: 5px;
  background: #e6dbe9;
}

.venue-visual__candle::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 8px;
  height: 15px;
  content: "";
  border-radius: 70% 30% 70% 30%;
  background: #d9a473;
  box-shadow: 0 0 18px rgba(227, 171, 109, 0.58);
  transform: translateX(-50%) rotate(45deg);
  animation: flame 1.7s ease-in-out infinite alternate;
}

.venue-visual__candle--1 { left: 35%; height: 20%; }
.venue-visual__candle--2 { right: 35%; height: 15%; }

.venue-visual__light {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 176, 225, 0.18), transparent 68%);
  filter: blur(8px);
  animation: venueLight 6s ease-in-out infinite alternate;
}

.venue-visual__light--1 {
  top: 26%;
  left: 10%;
  width: 180px;
  aspect-ratio: 1;
}

.venue-visual__light--2 {
  right: 7%;
  bottom: 12%;
  width: 220px;
  aspect-ratio: 1;
  animation-delay: -2.4s;
}

@keyframes moonGlow {
  0%,100% { box-shadow: 0 0 42px rgba(219, 199, 231, 0.22); transform: scale(1); }
  50% { box-shadow: 0 0 76px rgba(219, 199, 231, 0.42); transform: scale(1.04); }
}

@keyframes flame {
  from { transform: translateX(-50%) rotate(40deg) scale(0.9); }
  to { transform: translateX(-50%) rotate(49deg) scale(1.08); }
}

@keyframes venueLight {
  from { opacity: 0.45; transform: translate3d(0, 0, 0) scale(0.94); }
  to { opacity: 0.95; transform: translate3d(10px, -8px, 0) scale(1.08); }
}

/* =========================================================
   MOOD
   ========================================================= */
.mood-title {
  max-width: 1000px;
}

.mood-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.86fr 0.96fr;
  gap: 16px;
  margin-top: 72px;
}

.mood-card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border-radius: 28px;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.25s ease-out, box-shadow 0.35s ease;
}

.mood-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,0.16), transparent 32%);
  pointer-events: none;
}

.mood-card > * {
  position: relative;
  z-index: 2;
}

.mood-card > span {
  margin-bottom: auto;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  opacity: 0.58;
}

.mood-card h3 {
  margin: 0 0 15px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.mood-card p {
  margin: 0;
  max-width: 350px;
  line-height: 1.72;
  opacity: 0.72;
}

.mood-card--violet {
  background: linear-gradient(155deg, #5d3673, #2c1739);
  color: #f6eef8;
  box-shadow: 0 28px 76px rgba(64, 33, 79, 0.16);
}

.mood-card--cream {
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #f8f3f1, #e8dfe9);
  color: var(--ink);
}

.mood-card--dark {
  background: linear-gradient(155deg, #21102e, #100717);
  color: #f6eef8;
}

/* =========================================================
   DRESS CODE
   ========================================================= */
.dress-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(177, 139, 198, 0.11), transparent 28%),
    linear-gradient(145deg, #281238, #160a20 64%, #0f0716);
}

.dress-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(54px, 9vw, 130px);
  align-items: end;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.palette span {
  display: block;
  width: clamp(56px, 7vw, 80px);
  aspect-ratio: 1;
  border: 7px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  animation: paletteFloat 4.8s ease-in-out infinite;
  transition: transform 0.3s var(--ease);
}

.palette span:nth-child(2) { animation-delay: -0.6s; }
.palette span:nth-child(3) { animation-delay: -1.2s; }
.palette span:nth-child(4) { animation-delay: -1.8s; }
.palette span:nth-child(5) { animation-delay: -2.4s; }
.palette span:nth-child(6) { animation-delay: -3s; }

.palette span:hover {
  transform: translateY(-8px) scale(1.05);
}

@keyframes paletteFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =========================================================
   NOTES
   ========================================================= */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}

.note-card {
  min-height: 290px;
  padding: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.18);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.note-card:hover {
  background: rgba(255,255,255,0.48);
  transform: translateY(-4px);
}

.note-card > span {
  color: var(--violet-500);
  font-size: 0.66rem;
}

.note-card h3 {
  margin: 74px 0 16px;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 400;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown-section {
  position: relative;
  background: linear-gradient(145deg, #291339, #14091e);
  text-align: center;
}

.countdown-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(72vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 119, 186, 0.17), transparent 65%);
  filter: blur(14px);
  transform: translate(-50%, -50%);
  animation: countdownGlow 7s ease-in-out infinite;
}

.countdown-wrap {
  position: relative;
  z-index: 2;
}

.countdown-wrap .display-title {
  margin-inline: auto;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 58px auto 0;
}

.countdown > div {
  padding: 30px 10px;
  border: 1px solid rgba(240, 227, 247, 0.14);
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
}

.countdown strong {
  display: block;
  color: #f6eef8;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 1;
  transform-origin: 50% 55%;
}

.countdown strong.is-changing {
  animation: numberFlip 0.38s var(--ease);
}

.countdown span {
  display: block;
  margin-top: 12px;
  color: rgba(243, 232, 249, 0.46);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes countdownGlow {
  0%,100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes numberFlip {
  0% { opacity: 0.4; transform: translateY(7px) rotateX(-18deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* =========================================================
   RSVP
   ========================================================= */
.rsvp-section {
  background:
    radial-gradient(circle at 15% 18%, rgba(139, 97, 163, 0.08), transparent 24%),
    var(--paper);
}

.rsvp-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.18fr;
  gap: clamp(46px, 9vw, 118px);
  align-items: start;
}

.rsvp-copy {
  position: sticky;
  top: 38px;
}

.rsvp-form {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.64);
  box-shadow: 0 28px 84px rgba(61, 35, 74, 0.08);
  backdrop-filter: blur(14px);
}

.form-row {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-row > label,
.form-row > legend {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-row input[type="text"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(72, 40, 87, 0.15);
  border-radius: 14px;
  background: #fcf9fd;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.form-row input[type="text"],
.form-row select {
  height: 54px;
  padding: 0 16px;
}

.form-row textarea {
  min-height: 120px;
  padding: 15px 16px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #aa9cae;
}

.form-row input[type="text"]:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(108, 63, 132, 0.46);
  background: white;
  box-shadow: 0 0 0 4px rgba(105, 64, 127, 0.07);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

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

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

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid rgba(72, 40, 87, 0.14);
  border-radius: 13px;
  background: #fbf8fc;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.choice:hover span {
  transform: translateY(-2px);
  border-color: rgba(91, 51, 111, 0.28);
}

.choice input:checked + span {
  border-color: var(--violet-700);
  background: linear-gradient(145deg, var(--violet-700), var(--violet-900));
  color: white;
  box-shadow: 0 10px 26px rgba(75, 39, 93, 0.16);
  transform: translateY(-2px);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(153, 114, 179, 0.24);
  outline-offset: 2px;
}

.form-error {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  color: #8b3b58;
  font-size: 0.7rem;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5a2f70, #2a1538);
  color: white;
  box-shadow: 0 16px 38px rgba(67, 34, 82, 0.17);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, filter 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(67, 34, 82, 0.24);
  filter: brightness(1.07);
}

.submit-button:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.submit-button__loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.32);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-button.is-loading .submit-button__text {
  display: none;
}

.submit-button.is-loading .submit-button__loader {
  display: block;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
  animation: statusIn 0.45s var(--ease);
}

.form-status.is-success {
  background: #eef6ef;
  color: #315f39;
}

.form-status.is-error {
  background: #faecef;
  color: #87354b;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: 90px 0;
  overflow: hidden;
  background: #100717;
  color: #f7eff9;
  text-align: center;
}

.footer::before,
.footer::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(237, 219, 246, 0.07);
  border-radius: 50%;
}

.footer::before {
  top: -210px;
  left: 50%;
  width: 440px;
  height: 440px;
  transform: translateX(-50%);
}

.footer::after {
  right: -120px;
  bottom: -190px;
  width: 360px;
  height: 360px;
}

.footer__inner {
  position: relative;
  z-index: 2;
}

.footer p {
  margin: 0;
  color: rgba(244, 235, 248, 0.42);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer h2 {
  margin: 24px 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 9vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.footer h2 span {
  color: #b89dc7;
}

/* =========================================================
   REVEALS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s ease;
  will-change: transform, opacity;
}

.reveal--fade {
  transform: none;
}

.reveal--left {
  transform: translateX(-42px);
}

.reveal--right {
  transform: translateX(42px);
}

.reveal--up {
  transform: translateY(42px);
}

.reveal--scale {
  transform: scale(0.92);
  filter: blur(5px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 980px) {
  :root {
    --container: min(100% - 36px, 860px);
  }

  .hero-date-card {
    right: 2%;
    bottom: 4%;
    opacity: 0.72;
  }

  .intro-grid {
    grid-template-columns: 52px 1fr;
  }

  .intro-grid__copy {
    grid-column: 2;
    padding-top: 0;
  }

  .venue-grid,
  .rsvp-grid,
  .dress-grid {
    grid-template-columns: 1fr;
  }

  .venue-grid {
    gap: 64px;
  }

  .rsvp-copy {
    position: static;
  }

  .venue-visual {
    min-height: 560px;
  }

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

  .mood-card--violet {
    grid-column: span 2;
  }

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

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 720px) {
  :root {
    --container: calc(100% - 28px);
    --radius: 26px;
  }

  .section {
    padding: 82px 0;
  }

  .cover-card {
    width: min(430px, 88vw);
    min-height: min(620px, 72svh);
    padding: 48px 24px;
  }

  .cover-card__micro {
    top: 26px;
  }

  .cover-card__line {
    height: 44px;
    margin-bottom: 18px;
  }

  .cover-card__names {
    font-size: clamp(3.7rem, 17vw, 5.5rem);
  }

  .cover-card__copy {
    margin-top: 22px;
    font-size: 0.77rem;
  }

  .bloom {
    bottom: 44px;
    transform: translateX(-50%) scale(0.84);
  }

  .seal-button {
    bottom: 54px;
    width: 92px;
    height: 92px;
  }

  .cover__hint {
    display: none;
  }

  .hero__top {
    flex-direction: column;
    gap: 7px;
  }

  .hero__content {
    padding: 58px 0 128px;
  }

  .hero__title {
    font-size: clamp(4.3rem, 21vw, 7rem);
  }

  .hero__title span:last-child {
    margin-left: 34px;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .circle-link {
    width: 56px;
    height: 56px;
  }

  .hero-date-card {
    right: -16px;
    bottom: 24px;
    width: 138px;
    opacity: 0.54;
  }

  .hero-date-card strong {
    font-size: 4.5rem;
  }

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

  .intro-grid__copy {
    grid-column: 1;
  }

  .running-line {
    margin-top: 72px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .date-art {
    grid-template-columns: 42px 1fr;
  }

  .date-art__number {
    font-size: clamp(10rem, 43vw, 16rem);
  }

  .date-art__meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
  }

  .date-art__meta span:first-child {
    font-size: 2.2rem;
  }

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

  .program-card,
  .program-card--wide {
    grid-column: auto;
    min-height: 290px;
  }

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

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

  .mood-card,
  .mood-card--violet {
    grid-column: auto;
    min-height: 330px;
  }

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

  .note-card {
    min-height: 220px;
  }

  .note-card h3 {
    margin-top: 44px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-grid--3,
  .choice-grid--2 {
    grid-template-columns: 1fr;
  }

  .rsvp-form {
    padding: 22px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media (max-width: 460px) {
  .section {
    padding: 70px 0;
  }

  .display-title {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .cover-card {
    min-height: min(560px, 70svh);
    border-radius: 4px;
  }

  .cover-card__date {
    margin-bottom: 18px;
  }

  .cover-card__copy {
    max-width: 250px;
  }

  .bloom {
    bottom: 34px;
    transform: translateX(-50%) scale(0.72);
  }

  .seal-button {
    bottom: 44px;
    width: 82px;
    height: 82px;
  }

  .seal-button__monogram {
    font-size: 1.5rem;
  }

  .hero__content {
    padding-bottom: 110px;
  }

  .hero-date-card {
    width: 118px;
  }

  .venue-visual {
    min-height: 350px;
  }

  .date-art__meta {
    gap: 10px;
    font-size: 0.56rem;
  }

  .palette span {
    width: 52px;
  }

  .countdown > div {
    padding: 24px 8px;
  }

  .countdown span {
    font-size: 0.56rem;
  }
}

/* =========================================================
   SHORT SCREENS
   ========================================================= */
@media (max-height: 720px) {
  .cover-card {
    min-height: 78svh;
    width: min(500px, 72vw);
  }

  .cover-card__micro {
    top: 22px;
  }

  .cover-card__line {
    height: 34px;
    margin-bottom: 12px;
  }

  .cover-card__names {
    font-size: clamp(3.2rem, 9vh, 5.2rem);
  }

  .cover-card__copy {
    margin-top: 16px;
  }

  .bloom {
    bottom: 26px;
    transform: translateX(-50%) scale(0.7);
  }

  .seal-button {
    bottom: 36px;
    width: 78px;
    height: 78px;
  }

  .seal-button__label {
    display: none;
  }
}

/* =========================================================
   TOUCH
   ========================================================= */
@media (hover: none) {
  .seal-button:hover,
  .circle-link:hover,
  .program-card:hover,
  .note-card:hover,
  .palette span:hover,
  .choice:hover span,
  .submit-button:hover {
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* =========================================================
   PHOTO LAYERS — WEDDING EDITORIAL
   ========================================================= */
.site-photo {
  opacity: 0;
  transition: opacity 0.8s ease, transform 1.2s var(--ease), filter 0.8s ease;
}

.site-photo.is-loaded {
  opacity: 1;
}

/* HERO PHOTO */
.hero__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__photo::before,
.hero__photo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero__photo::before {
  background:
    linear-gradient(90deg, rgba(16, 7, 23, 0.97) 0%, rgba(22, 10, 32, 0.83) 38%, rgba(22, 10, 32, 0.42) 68%, rgba(16, 7, 23, 0.72) 100%),
    linear-gradient(180deg, rgba(19, 9, 29, 0.18), rgba(19, 9, 29, 0.82));
}

.hero__photo::after {
  background: radial-gradient(circle at 68% 38%, rgba(167, 126, 193, 0.22), transparent 36%);
  mix-blend-mode: screen;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.62) contrast(1.08) brightness(0.7) hue-rotate(8deg);
  transform: scale(1.075) translate(calc(var(--hx) * 0.12), calc(var(--hy) * 0.12));
  will-change: transform;
}

.hero__mesh,
.hero__glow,
.hero-ribbon {
  z-index: 1;
}

/* VENUE PHOTO */
.venue-visual {
  margin: 0;
  isolation: isolate;
  background: #1b0d28;
}

.venue-visual__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* filter: saturate(0.72) contrast(1.06) brightness(0.62) hue-rotate(7deg);
  transform: scale(1.03); */
}

.venue-visual__veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 13, 40, 0.16), rgba(16, 7, 23, 0.68)),
    radial-gradient(circle at 70% 22%, rgba(190, 151, 212, 0.18), transparent 35%);
  pointer-events: none;
}

.venue-visual::before {
  z-index: 4;
}

.venue-visual__arch,
.venue-visual__light {
  z-index: 2;
}

.venue-visual__caption {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 28px;
  padding: 10px 13px;
  border: 1px solid rgba(245, 236, 249, 0.18);
  border-radius: 999px;
  background: rgba(20, 9, 30, 0.42);
  color: rgba(248, 241, 250, 0.68);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.venue-visual:hover .venue-visual__photo {
  transform: scale(1.075);
}

/* MOOD PHOTO CARDS */
.mood-card {
  isolation: isolate;
}

.mood-card::before {
  z-index: 1;
}

.mood-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.mood-card__photo {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

/* .mood-card--violet .mood-card__photo {
  filter: saturate(0.7) contrast(1.04) brightness(0.68) hue-rotate(5deg);
} */

.mood-card--violet::after {
  background: linear-gradient(180deg, rgba(60, 31, 75, 0.18), rgba(35, 17, 47, 0.88));
}

.mood-card--cream .mood-card__photo {
  filter: saturate(0.64) contrast(0.94) brightness(1.08);
  opacity: 0.68;
}

.mood-card--cream::after {
  background: linear-gradient(180deg, rgba(250, 247, 248, 0.18), rgba(244, 237, 244, 0.86));
}

.mood-card--dark .mood-card__photo {
  filter: saturate(0.58) contrast(1.06) brightness(0.62) hue-rotate(8deg);
}

.mood-card--dark::after {
  background: linear-gradient(180deg, rgba(16, 7, 23, 0.12), rgba(16, 7, 23, 0.88));
}

.mood-card:hover .mood-card__photo {
  transform: scale(1.085);
}

/* Graceful fallback if a remote image cannot be loaded */
.has-photo-error .site-photo {
  display: none;
}

@media (max-width: 980px) {
  .hero__photo img {
    object-position: 67% center;
  }

  .venue-visual__caption {
    right: 22px;
    bottom: 22px;
  }
}

@media (max-width: 720px) {
  .hero__photo::before {
    background:
      linear-gradient(90deg, rgba(16, 7, 23, 0.92), rgba(22, 10, 32, 0.58)),
      linear-gradient(180deg, rgba(19, 9, 29, 0.26), rgba(19, 9, 29, 0.88));
  }

  .hero__photo img {
    object-position: 60% center;
    filter: saturate(0.58) contrast(1.06) brightness(0.62) hue-rotate(8deg);
  }

  .venue-visual__caption {
    right: 18px;
    bottom: 18px;
    font-size: 0.52rem;
  }
}

@media (hover: none) {
  .venue-visual:hover .venue-visual__photo,
  .mood-card:hover .mood-card__photo {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-photo {
    opacity: 1;
    transition: none;
  }

  .hero__photo img,
  .venue-visual__photo,
  .mood-card__photo {
    transform: none !important;
  }
}

/* =========================================================
   HERO PHOTO — ORIGINAL COLORS
   ========================================================= */

.hero__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Убираем затемнение и цветные слои */
.hero__photo::before,
.hero__photo::after {
  display: none;
}

/* Оригинальный цвет фотографии */
.hero__photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 62% center;

  filter: none;

  transform:
    scale(1.075)
    translate(
      calc(var(--hx) * 0.12),
      calc(var(--hy) * 0.12)
    );

  will-change: transform;
}


/* Убираем декоративный цвет поверх фотографии */
.hero__mesh,
.hero__glow,
.hero-ribbon {
  display: none;
}


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

@media (max-width: 980px) {

  .hero__photo img {
    object-position: 67% center;
    filter: none;
  }

}


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

@media (max-width: 720px) {

  .hero__photo img {
    object-position: 60% center;
    filter: none;
  }

}


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

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

  .hero__photo img {
    transform: none !important;
    filter: none;
  }

}

/* =========================================================
   FINAL HERO MOBILE — CENTER ARCHES
   ========================================================= */

@media (max-width: 720px) {

  .hero__photo {
    inset: 0;
    overflow: hidden;
  }


  .hero__photo img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
      центрируем арки,
      показываем верх и низ композиции
    */
    object-position: 50% 42%;


    /*
      небольшой zoom,
      чтобы убрать края
      и сохранить эффект фотографии
    */
    transform: scale(1.18);


    filter: none;
  }


  .hero__photo::before,
  .hero__photo::after {
    display:none;
  }

}


@media (max-width:460px){

  .hero__photo img {

    object-fit: cover;

    /*
      для маленьких телефонов
      арки остаются по центру
    */
    object-position: 50% 40%;

    transform: scale(1);

    filter:none;
  }

}
