:root {
  --sky-deep: #0f4c81;
  --sky-mid: #3d7eb0;
  --sky-soft: #8ebfd9;
  --sky-mist: #d4ebf5;
  --sky-pearl: #f2f8fb;
  --navy: #131936;
  --sand: #dfd1bb;
  --ink: #131936;
  --ink-soft: #4a5d72;
  --gold: #c5b08a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --paper: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --silk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 1200'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%235a87a8'/%3E%3Cstop offset='1' stop-color='%233d6a8a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='800' height='1200'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.06' d='M-40,200 C120,80 280,320 460,180 S780,40 860,200 L860,0 L-40,0 Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M-40,520 C160,400 300,620 520,480 S820,360 860,520 L860,1200 L-40,1200 Z'/%3E%3Cpath fill='%23000000' fill-opacity='0.08' d='M-40,800 C200,680 340,920 560,780 S840,700 860,860 L860,1200 L-40,1200 Z'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #071218;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
}

.phone-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  isolation: isolate;
  background: var(--sky-pearl);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: var(--paper);
  background-size: 160px 160px;
  animation: grainShift 0.5s steps(2) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 1%); }
  100% { transform: translate(0, 0); }
}

@media (min-width: 480px) {
  body {
    display: grid;
    place-items: center;
    padding: 1.5rem 1rem;
    background:
      radial-gradient(ellipse 60% 50% at 50% 30%, #1a3d52 0%, transparent 70%),
      #071218;
  }

  .phone-shell {
    min-height: min(920px, 94dvh);
    border-radius: 2.6rem;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 0 0 11px #122530,
      0 0 0 13px #2a4555,
      0 50px 100px rgba(0, 0, 0, 0.55);
  }
}

/* ========== VEIL ========== */
.veil {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.35rem 2.4rem;
  text-align: center;
  overflow: hidden;
  transition:
    opacity 1.15s var(--ease-out),
    visibility 1.15s,
    filter 1.15s var(--ease-out),
    transform 1.4s var(--ease-out);
}

.veil-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 32%, rgba(120, 180, 220, 0.28) 0%, transparent 60%),
    linear-gradient(175deg, #040b16 0%, #0a2440 24%, #134a76 48%, #4f8fb5 72%, #b9d7e8 100%);
}

.veil-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  pointer-events: none;
}

.veil-nebula.n1 {
  width: 18rem;
  height: 18rem;
  top: 8%;
  left: 50%;
  margin-left: -9rem;
  background: radial-gradient(circle, rgba(180, 220, 245, 0.55), rgba(15, 76, 129, 0.1) 55%, transparent 70%);
  animation: glowBreath 6s ease-in-out infinite;
}

.veil-nebula.n2 {
  width: 12rem;
  height: 12rem;
  bottom: 12%;
  right: -1rem;
  background: radial-gradient(circle, rgba(223, 209, 187, 0.28), transparent 70%);
  animation: glowBreath 8s 1.2s ease-in-out infinite;
}

.veil-rays {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 160%;
  height: 70%;
  margin-left: -80%;
  pointer-events: none;
  background:
    conic-gradient(from 210deg at 50% 55%,
      transparent 0deg,
      rgba(255, 255, 255, 0.045) 8deg,
      transparent 16deg,
      transparent 28deg,
      rgba(223, 209, 187, 0.07) 36deg,
      transparent 48deg,
      transparent 70deg,
      rgba(255, 255, 255, 0.04) 82deg,
      transparent 95deg,
      transparent 360deg);
  mask-image: radial-gradient(ellipse 55% 70% at 50% 45%, #000 10%, transparent 72%);
  animation: raysPulse 9s ease-in-out infinite;
  opacity: 0.85;
}

.veil-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(207, 230, 242, 0.35) 55%, rgba(232, 243, 250, 0.55));
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.veil-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 10% 14%, #fff, transparent),
    radial-gradient(1px 1px at 18% 36%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.6px 1.6px at 76% 12%, #fff, transparent),
    radial-gradient(1px 1px at 88% 30%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 62% 8%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 34% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.8px 1.8px at 48% 5%, #fff, transparent),
    radial-gradient(1px 1px at 14% 58%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.1px 1.1px at 92% 58%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 6% 72%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.3px 1.3px at 70% 42%, rgba(255, 255, 255, 0.55), transparent);
  animation: starTwinkle 4.8s ease-in-out infinite;
}

.veil-shoot {
  position: absolute;
  top: 16%;
  left: -20%;
  width: 7rem;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(223, 209, 187, 0.4), transparent);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  transform: rotate(18deg);
  animation: shootStar 7.5s 2.2s ease-in-out infinite;
  pointer-events: none;
  opacity: 0;
}

.veil-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.veil.is-gone {
  opacity: 0;
  visibility: hidden;
  filter: blur(12px);
  transform: scale(1.06);
  pointer-events: none;
}

.veil-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22rem;
}

.veil-script {
  margin-bottom: 0.55rem;
  font-family: "Bad Script", cursive;
  font-size: clamp(1.85rem, 7.5vw, 2.25rem);
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 28px rgba(7, 21, 38, 0.35);
  animation: fadeUp 1.15s var(--ease-out) both;
}

.veil-monogram {
  position: relative;
  z-index: 1;
  width: 10.2rem;
  height: 10.2rem;
  margin: 0.35rem 0 1.2rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  animation: sealIn 1.6s 0.1s var(--ease-out) both;
  transition: transform 0.45s var(--ease);
}

.veil-monogram.is-press { transform: scale(0.95); }

.mono-bloom {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(142, 191, 217, 0.18) 35%, transparent 68%);
  filter: blur(6px);
  animation: glowBreath 5s ease-in-out infinite;
  pointer-events: none;
}

.mono-orbit-wrap {
  position: absolute;
  inset: -8%;
  perspective: 520px;
  pointer-events: none;
}

.mono-elli {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.55);
  border-right-color: rgba(223, 209, 187, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(142, 191, 217, 0.35);
  transform: rotateX(72deg);
  box-shadow: 0 0 12px rgba(223, 209, 187, 0.12);
}

.mono-elli.e1 {
  inset: 2%;
  animation: elliSpin 18s linear infinite;
}

.mono-elli.e2 {
  inset: 12%;
  border-top-color: rgba(223, 209, 187, 0.65);
  animation: elliSpin 26s linear infinite reverse;
}

.mono-elli.e3 {
  inset: 22%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
  transform: rotateX(0deg);
  animation: ringPulseSoft 4.5s ease-in-out infinite;
}

.mono-traveler {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 10px #fff,
    0 0 22px rgba(223, 209, 187, 0.9),
    -10px 0 16px rgba(142, 191, 217, 0.35);
  animation: travelOrbit 18s linear infinite;
  pointer-events: none;
}

.mono-core {
  position: absolute;
  inset: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.85), transparent 38%),
    radial-gradient(circle at 72% 78%, rgba(15, 40, 70, 0.65), transparent 48%),
    linear-gradient(155deg, #d7ebf5 0%, #6aa3c4 38%, #0f4c81 68%, #0a1a2e 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -14px 28px rgba(7, 21, 38, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0 40px rgba(142, 191, 217, 0.35),
    0 22px 55px rgba(7, 21, 38, 0.5);
}

.mono-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 48%, transparent 56%);
  animation: sheenSweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.mono-letter {
  position: relative;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 4px 18px rgba(19, 25, 54, 0.4);
  line-height: 1;
}

.mono-and {
  position: relative;
  font-family: "Italianno", cursive;
  font-size: 1.65rem;
  color: var(--sand);
  line-height: 1;
  transform: translateY(0.1rem);
  text-shadow: 0 0 16px rgba(223, 209, 187, 0.55);
}

.veil-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.7rem;
}

.veil-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 12vw, 3.45rem);
  line-height: 0.92;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(7, 21, 38, 0.45);
  opacity: 0;
  animation: nameRise 1.25s var(--ease-out) both;
}

.veil-name.n-a { animation-delay: 0.28s; }
.veil-name.n-v { animation-delay: 0.48s; }

.veil-amp {
  font-family: "Italianno", cursive;
  font-size: clamp(2.1rem, 8.5vw, 2.7rem);
  line-height: 0.65;
  margin: 0.08rem 0 0.02rem;
  color: var(--sand);
  text-shadow: 0 0 24px rgba(223, 209, 187, 0.55);
  opacity: 0;
  animation: nameRise 1.1s 0.38s var(--ease-out) both, ampGlow 4.5s 1.8s ease-in-out infinite;
}

.veil-tagline {
  margin-bottom: 0.95rem;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: fadeUp 1s 0.55s var(--ease-out) both;
}

.veil-divider {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  animation: fadeUp 1s 0.62s var(--ease-out) both;
}

.veil-divider span {
  width: 2.8rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 209, 187, 0.9));
}

.veil-divider span:last-child {
  background: linear-gradient(90deg, rgba(223, 209, 187, 0.9), transparent);
}

.veil-divider svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: var(--sand);
  filter: drop-shadow(0 0 8px rgba(223, 209, 187, 0.7));
  animation: sparkPulse 2.8s ease-in-out infinite;
}

.veil-date {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.55rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.84);
  animation: fadeUp 1s 0.7s var(--ease-out) both;
}

.veil-date i {
  font-style: normal;
  opacity: 0.45;
  letter-spacing: 0;
}

.veil-open {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.08rem 1.9rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #12324a;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(223, 209, 187, 0.62));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 16px 44px rgba(19, 25, 54, 0.28),
    0 0 0 4px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: fadeUp 1s 0.82s var(--ease-out) both;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.veil-open-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shineSweep 3.5s 1.4s ease-in-out infinite;
}

@keyframes shineSweep {
  0%, 40% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

.veil-open:active { transform: scale(0.96); }

@keyframes sealIn {
  from { opacity: 0; transform: scale(0.62) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nameRise {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes elliSpin {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to { transform: rotateX(72deg) rotateZ(360deg); }
}

@keyframes ringPulseSoft {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

@keyframes sparkPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes raysPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.04); }
}

@keyframes sheenSweep {
  0%, 55% { transform: translateX(-130%) rotate(12deg); opacity: 0; }
  65% { opacity: 1; }
  80%, 100% { transform: translateX(130%) rotate(12deg); opacity: 0; }
}

@keyframes shootStar {
  0%, 78% { opacity: 0; transform: translate3d(0, 0, 0) rotate(18deg); }
  80% { opacity: 1; }
  92% { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(24rem, 8rem, 0) rotate(18deg); }
}

@keyframes travelOrbit {
  0% { transform: rotate(0deg) translateX(4.55rem) rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) translateX(4.55rem) rotate(-180deg) scale(0.75); opacity: 0.7; }
  100% { transform: rotate(360deg) translateX(4.55rem) rotate(-360deg) scale(1); }
}

/* ========== WORLD ========== */
.world {
  position: relative;
  z-index: 1;
  min-height: 100%;
  animation: worldIn 1.3s 0.1s var(--ease-out) both;
}

.world[hidden] { display: none; }
.world.is-ready { animation: none; }

@keyframes worldIn {
  from { opacity: 0; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); }
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0f4c81 0%, #3d7eb0 18%, #9ecfe4 42%, #e4f3fa 68%, #f2f8fb 100%);
  opacity: 0.35;
}

.caustics {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background:
    radial-gradient(ellipse 40% 20% at 20% 30%, rgba(255, 255, 255, 0.7), transparent 50%),
    radial-gradient(ellipse 35% 25% at 75% 25%, rgba(255, 255, 255, 0.5), transparent 50%);
  filter: blur(20px);
  animation: causticMove 16s ease-in-out infinite alternate;
}

@keyframes causticMove {
  from { transform: translate(-3%, -2%) scale(1); }
  to { transform: translate(4%, 3%) scale(1.08); }
}

.aurora {
  position: absolute;
  width: 150%;
  height: 40%;
  left: -25%;
  top: 0;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.35;
  mix-blend-mode: soft-light;
  animation: auroraShift 14s ease-in-out infinite alternate;
}

.a1 { background: radial-gradient(ellipse, #8ebfd9, transparent 65%); }
.a2 {
  top: 10%;
  background: radial-gradient(ellipse, #dfd1bb, transparent 60%);
  opacity: 0.15;
  animation-duration: 18s;
}

@keyframes auroraShift {
  from { transform: translate(-4%, 0) scale(1); }
  to { transform: translate(6%, 4%) scale(1.08); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 22s var(--ease) infinite alternate;
}

.o1 {
  width: 240px; height: 240px; top: 30%; left: -90px;
  background: radial-gradient(circle, rgba(143, 191, 217, 0.5), transparent 70%);
}
.o2 {
  width: 200px; height: 200px; top: 55%; right: -70px;
  background: radial-gradient(circle, rgba(223, 209, 187, 0.35), transparent 70%);
  animation-duration: 26s;
}
.o3 {
  width: 280px; height: 280px; bottom: 5%; left: -60px;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.2), transparent 70%);
  animation-duration: 30s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(28px, 36px) scale(1.1); }
}

.dust, .petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100dvh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  color: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img,
.hero-photo .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease-out) both;
}

.hero-photo .hero-video {
  display: block;
  pointer-events: none;
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.04); }
}

.hero-photo-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 25, 54, 0.2) 0%, transparent 28%, transparent 42%, rgba(19, 25, 54, 0.55) 68%, rgba(19, 25, 54, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 76, 129, 0.15), transparent 40%);
}

.hero-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem 3.5rem;
}

.hero-kicker {
  margin-bottom: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: rgba(223, 209, 187, 0.9);
  opacity: 0;
  animation: heroIn 1s 0.35s var(--ease-out) both;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.85rem;
}

.hero-names .name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 14vw, 4.5rem);
  line-height: 0.92;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: heroIn 1.1s 0.5s var(--ease-out) both;
}

.hero-names .name:last-of-type { animation-delay: 0.7s; }

.hero-names .amp {
  font-family: "Italianno", cursive;
  font-size: clamp(2.5rem, 10vw, 3.2rem);
  line-height: 0.8;
  margin: 0.05rem 0;
  color: var(--sand);
  opacity: 0;
  animation: heroIn 1s 0.6s var(--ease-out) both, ampGlow 4.5s 1.6s ease-in-out infinite;
}

@keyframes ampGlow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.38em;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  animation: heroIn 1s 0.85s var(--ease-out) both;
}

.hero-date i {
  font-style: normal;
  opacity: 0.45;
  letter-spacing: 0;
}

.hero-line {
  max-width: 16.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  animation: heroIn 1s 1s var(--ease-out) both;
}

.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--sand);
  opacity: 0;
  animation: heroIn 1s 1.15s var(--ease-out) both;
}

.cta span {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cta svg {
  width: 1.1rem;
  height: 1.1rem;
  animation: bounceY 2.2s ease-in-out infinite;
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(7px); opacity: 1; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== SECTIONS ========== */
main {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(223, 209, 187, 0.18), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #eef5f9 28%, #e4f0f6 58%, #d5e6f0 100%);
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: var(--paper);
  background-size: 200px;
  mix-blend-mode: multiply;
}

.section {
  position: relative;
  padding: 3.75rem 1.7rem;
}

.section-ornament {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.section-ornament span {
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-mid));
}

.section-ornament span:last-child {
  background: linear-gradient(90deg, var(--sky-mid), transparent);
}

.section-ornament i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky-mid);
  box-shadow: 0 0 12px rgba(61, 126, 176, 0.7);
}

.eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--sky-mid);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 8.5vw, 2.65rem);
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 0.95rem;
}

.section-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 21rem;
  font-weight: 300;
}

.ghost-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sky-deep);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(15, 76, 129, 0.35);
}

.place-card {
  padding: 2.1rem 1.55rem 2.2rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 22px 50px rgba(15, 76, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.place-card .section-title {
  margin-bottom: 0.7rem;
}

/* celestial planet */
.date-sky {
  text-align: center;
  padding-top: 3.6rem;
  padding-bottom: 3.2rem;
  overflow: visible;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, rgba(15, 76, 129, 0.16), transparent 62%);
}

.date-sky .eyebrow {
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}

.planet-stage {
  position: relative;
  width: min(88vw, 21.5rem);
  height: min(88vw, 21.5rem);
  margin: 0 auto 0.4rem;
  perspective: 920px;
  transform-style: preserve-3d;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  animation: stageFloat 9s ease-in-out infinite;
}

.starfield {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(1.4px 1.4px at 14% 24%, #fff, transparent),
    radial-gradient(1px 1px at 80% 18%, #dfd1bb, transparent),
    radial-gradient(1.2px 1.2px at 88% 58%, #fff, transparent),
    radial-gradient(1px 1px at 10% 62%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 48% 8%, #fff, transparent),
    radial-gradient(1px 1px at 72% 88%, #dfd1bb, transparent),
    radial-gradient(1px 1px at 22% 86%, #fff, transparent);
  opacity: 0.75;
  animation: starDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.planet-halo {
  position: absolute;
  inset: 8%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 48%,
    rgba(90, 168, 210, 0.28) 58%,
    rgba(223, 209, 187, 0.2) 68%,
    transparent 78%
  );
  filter: blur(2px);
  animation: haloPulse 7s ease-in-out infinite;
  pointer-events: none;
}

.orbit-svg {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  pointer-events: none;
  overflow: visible;
}

.orbit-back { z-index: 3; opacity: 0.7; }
.orbit-front {
  z-index: 6;
  /* drop-shadow filter breaks Safari compositing over the date label while scrolling */
  filter: none;
  opacity: 0.95;
}

.planet {
  position: absolute;
  inset: 16%;
  z-index: 4;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: #041018;
  transform: rotateX(calc(8deg + var(--tilt-x))) rotateY(var(--tilt-y));
  -webkit-transform: rotateX(calc(8deg + var(--tilt-x))) rotateY(var(--tilt-y));
  box-shadow:
    0 24px 50px rgba(19, 25, 54, 0.4),
    0 0 60px rgba(15, 76, 129, 0.28);
}

.planet-photo {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}

.planet-clouds {
  position: absolute;
  inset: -20%;
  background: url("planet-clouds.png") repeat;
  background-size: 140% 140%;
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: cloudDrift 72s linear infinite;
  pointer-events: none;
}

.planet-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, transparent 18%, rgba(6, 10, 22, 0.12) 46%, rgba(6, 10, 22, 0.62) 100%);
  pointer-events: none;
}

.planet-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 18px 6px rgba(150, 210, 235, 0.22),
    inset -16px -20px 26px rgba(6, 10, 22, 0.28);
  pointer-events: none;
}

.planet-vignette {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(6, 12, 24, 0.38) 0%, rgba(6, 12, 24, 0.18) 42%, transparent 68%);
  pointer-events: none;
}

.planet-label {
  position: absolute;
  inset: 16%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  /* Own compositor layer so Safari doesn't clip digits under rings while scrolling */
  transform: translate3d(0, 0, 40px);
  -webkit-transform: translate3d(0, 0, 40px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.portal-weekday {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.2rem;
}

.portal-day {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(5.2rem, 23vw, 6.5rem);
  line-height: 1;
  padding: 0.02em 0;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(8, 12, 28, 0.25),
    0 10px 28px rgba(8, 12, 28, 0.55);
  -webkit-font-smoothing: antialiased;
}

.portal-month {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.45rem;
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.06em;
}

.moon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.62rem;
  height: 0.62rem;
  margin: -0.31rem 0 0 -0.31rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #dfd1bb 48%, #b8a078);
  box-shadow:
    0 0 12px rgba(223, 209, 187, 0.85),
    0 0 22px rgba(223, 209, 187, 0.35);
  z-index: 7;
  animation: moonOrbit 16s linear infinite;
}

.sky-year {
  margin-top: 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.sky-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.6rem;
  color: var(--sky-mid);
}

.sky-divider span {
  width: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sky-mid));
}

.sky-divider span:last-child {
  background: linear-gradient(90deg, var(--sky-mid), transparent);
}

.sky-divider svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: var(--sand);
  opacity: 0.9;
}

@keyframes stageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes starDrift {
  from { opacity: 0.55; }
  to { opacity: 0.9; }
}

@keyframes haloPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes cloudDrift {
  from { background-position: 0 0; }
  to { background-position: 140% 18%; }
}

@keyframes moonOrbit {
  0% { transform: rotate(0deg) translateX(8.8rem) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(8.8rem) rotate(-360deg); }
}

/* countdown */
.countdown { text-align: center; overflow: hidden; }

.count-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 280px;
  height: 280px;
  margin-left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
  pointer-events: none;
  animation: breatheGlow 6s ease-in-out infinite;
}

@keyframes breatheGlow {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.12); opacity: 1; }
}

.timer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-top: 2.2rem;
}

.tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 0.25rem 0.95rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.08);
}

.tick-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 7vw, 2.15rem);
  font-weight: 500;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tick-num.is-flip { animation: numFlip 0.45s var(--ease-out); }

@keyframes numFlip {
  0% { transform: translateY(6px); opacity: 0.35; }
  100% { transform: translateY(0); opacity: 1; }
}

.tick-label {
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* story / kids */
.story {
  text-align: center;
  padding-bottom: 2.2rem;
  background:
    radial-gradient(ellipse 90% 62% at 50% 72%, rgba(15, 76, 129, 0.1), transparent 68%),
    radial-gradient(ellipse 70% 40% at 50% 18%, rgba(223, 209, 187, 0.22), transparent 70%);
}

.story .section-text {
  margin-inline: auto;
  margin-bottom: 0.4rem;
}

.album {
  position: relative;
  height: 22.6rem;
  margin: 0.6rem auto 0;
  max-width: 22.5rem;
}

.polaroid {
  position: absolute;
  width: 10.6rem;
  padding: 0.52rem 0.52rem 0;
  background:
    linear-gradient(180deg, #fffcf7 0%, #f4efe6 100%);
  border-radius: 0.18rem;
  box-shadow:
    0 18px 36px rgba(19, 25, 54, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.polaroid img {
  display: block;
  width: 100%;
  height: 12.6rem;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.04) sepia(0.06);
}

.polaroid figcaption {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--navy);
  padding: 0.55rem 0 0.7rem;
}

.polaroid.is-lera {
  left: 0.15rem;
  top: 1.1rem;
  z-index: 2;
  transform: rotate(-7.5deg);
}

.polaroid.is-artem {
  right: 0.1rem;
  top: 3.6rem;
  z-index: 3;
  transform: rotate(6.5deg);
}

.polaroid-tape {
  position: absolute;
  top: -0.55rem;
  left: 28%;
  width: 2.7rem;
  height: 1.05rem;
  background: linear-gradient(180deg, rgba(223, 209, 187, 0.72), rgba(223, 209, 187, 0.38));
  transform: rotate(-9deg);
  z-index: 4;
  box-shadow: 0 1px 2px rgba(19, 25, 54, 0.08);
}

.polaroid-tape.tape-b {
  left: auto;
  right: 22%;
  background: linear-gradient(180deg, rgba(142, 191, 217, 0.55), rgba(142, 191, 217, 0.28));
  transform: rotate(11deg);
}

.album-eq {
  position: absolute;
  left: 50%;
  bottom: 0.05rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transform: translateX(-50%);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.55rem;
  color: var(--sky-deep);
}

.album-eq i {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.album-heart {
  width: 1.55rem;
  height: 1.35rem;
  margin-left: 0.05rem;
}

/* story bridge + now photo (sample layout) */
.story-now {
  padding: 2.6rem 1.35rem 3.2rem;
  text-align: center;
  background: #fff;
}

.bridge-copy {
  max-width: 19.5rem;
  margin: 0 auto;
  font-family: "Bad Script", cursive;
  color: #1a2b4c;
}

.bridge-lead {
  margin-bottom: 1.15rem;
  font-size: clamp(1.85rem, 7.4vw, 2.25rem);
  line-height: 1.25;
}

.bridge-body {
  font-size: clamp(1.28rem, 5.1vw, 1.5rem);
  line-height: 1.55;
}

.bridge-accent {
  margin-top: 0.15rem;
  font-family: "Bad Script", cursive;
  font-size: clamp(1.28rem, 5.1vw, 1.5rem);
  line-height: 1.55;
  color: #e34234;
}

.bridge-stroke {
  display: block;
  width: min(11.5rem, 52%);
  height: 0.95rem;
  margin: 1.55rem auto 1.9rem;
}

.now-photo {
  margin: 0 auto;
  width: min(100%, 22.5rem);
  overflow: hidden;
}

.now-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 42%;
}

.dear-block {
  margin-top: 2.35rem;
  padding: 0 0.35rem;
}

.dear-title {
  margin-bottom: 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 4.6vw, 1.35rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: #2a2a2a;
}

.dear-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  line-height: 1.55;
  color: #2a2a2a;
}

/* music controls */
.bg-music {
  position: fixed;
  right: max(0.9rem, calc(50% - 215px + 0.9rem));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.85rem);
  z-index: 80;
}

.bg-music button {
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(223, 209, 187, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(19, 25, 54, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(7, 18, 24, 0.28);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.bg-music button:active {
  transform: scale(0.94);
}

.bg-music svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hide-btn {
  display: none !important;
}

.bg-music.is-hidden {
  display: none;
}

/* timeline */
.timeline {
  overflow: hidden;
}

.flow {
  list-style: none;
  margin-top: 2.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.flow::before {
  display: none;
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 0.72rem 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 6.4rem;
}

.flow-item::before { display: none; }

.flow-ribbon {
  border-radius: 999px;
  box-shadow:
    0 10px 22px rgba(19, 25, 54, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.55),
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.12)
    ),
    linear-gradient(180deg, #f4f1ec, #c0c3c6 40%, #86888b);
}

.flow-item[data-tone="azure"] .flow-ribbon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 32%),
    linear-gradient(180deg, #5aa0c8, #0f4c81 55%, #0a355c);
}

.flow-item[data-tone="sand"] .flow-ribbon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 32%),
    linear-gradient(180deg, #f3ead8, #dfd1bb 50%, #c4b08c);
}

.flow-item[data-tone="night"] .flow-ribbon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #2c355c, #131936 58%, #070914);
}

.flow-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 18px 40px rgba(15, 76, 129, 0.1),
    inset 0 1px 0 #fff;
  overflow: hidden;
}

.flow-copy::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -40%;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 209, 187, 0.28), transparent 68%);
  pointer-events: none;
}

.flow-time {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: var(--sky-mid);
  margin-bottom: 0.15rem;
}

.flow-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 8vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.flow-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 18rem;
}

.flow-item.is-peak .flow-copy {
  background:
    linear-gradient(155deg, rgba(15, 76, 129, 0.92), rgba(19, 25, 54, 0.92));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 22px 48px rgba(15, 76, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.flow-item.is-peak .flow-time { color: var(--sand); }
.flow-item.is-peak .flow-title { color: #fff; }
.flow-item.is-peak .flow-desc { color: rgba(255, 255, 255, 0.78); }
.flow-item.is-peak .flow-copy::after {
  background: radial-gradient(circle, rgba(223, 209, 187, 0.22), transparent 68%);
}

/* dress — silk samples */
.dress {
  text-align: center;
  overflow: hidden;
}

.dress .section-text {
  margin-inline: auto;
}

.silk-ribbon {
  height: 0.55rem;
  width: min(88%, 20rem);
  margin: 2rem auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #dfd1bb 0%,
    #cfc3b0 18%,
    #b0b3b6 32%,
    #f0f2f3 42%,
    #86888b 52%,
    #0f4c81 72%,
    #131936 100%
  );
  box-shadow:
    0 8px 20px rgba(19, 25, 54, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.palette {
  position: relative;
  height: 17.5rem;
  margin-top: 1.2rem;
  padding-bottom: 1.15rem;
}

.silk {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  width: 5.15rem;
  height: 13.6rem;
  margin-left: -2.57rem;
  border-radius: 1.35rem 1.35rem 0.4rem 0.4rem;
  overflow: hidden;
  transform: rotate(0deg);
  transform-origin: 50% 100%;
  box-shadow:
    0 22px 40px rgba(19, 25, 54, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 1.25s var(--ease-out);
}

.silk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    rgba(255, 255, 255, 0.07) 10px 12px
  );
  pointer-events: none;
}

.palette.is-in .silk:nth-child(1) { transform: rotate(-42deg); z-index: 1; }
.palette.is-in .silk:nth-child(2) { transform: rotate(-14deg); z-index: 2; }
.palette.is-in .silk:nth-child(3) { transform: rotate(14deg); z-index: 3; }
.palette.is-in .silk:nth-child(4) { transform: rotate(42deg); z-index: 4; }

.silk-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 28%,
    transparent 58%,
    rgba(255, 255, 255, 0.2) 72%,
    transparent 100%
  );
  animation: silkGlint 5.5s ease-in-out infinite;
  pointer-events: none;
}

.fan-pivot {
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: -0.52rem;
  border-radius: 50%;
  z-index: 6;
  background:
    radial-gradient(circle at 35% 30%, #fff, var(--sand) 42%, #8a7350 100%);
  box-shadow:
    0 6px 16px rgba(19, 25, 54, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.6),
    0 0 22px rgba(223, 209, 187, 0.55);
}

.silk-sand {
  background: linear-gradient(180deg, #f3ead8 0%, #dfd1bb 42%, #c9b89a 100%);
}

.silk-silver {
  background-image: linear-gradient(
    145deg,
    #121415 0%,
    #4a4d50 14%,
    #b0b3b6 28%,
    #f0f2f3 38%,
    #888b8e 48%,
    #323338 60%,
    #c0c3c6 72%,
    #ffffff 82%,
    #7b7d80 92%,
    #1a1c1f 100%
  );
}

.silk-azure {
  background: linear-gradient(180deg, #3d7eb0 0%, #0f4c81 55%, #0a3a64 100%);
}

.silk-night {
  background: linear-gradient(180deg, #2a3358 0%, #131936 60%, #0a0d1c 100%);
}

@keyframes silkGlint {
  0%, 100% { transform: translateX(-18%); opacity: 0.55; }
  50% { transform: translateX(18%); opacity: 1; }
}

/* ========== ANKETA ========== */
.anketa {
  padding: 2.5rem 0 0;
}

.anketa-panel {
  position: relative;
  padding: 3rem 1.6rem 3.25rem;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(58, 107, 138, 0.55), rgba(19, 25, 54, 0.25)),
    var(--silk);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.anketa-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: var(--paper);
  background-size: 180px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.anketa-note {
  position: relative;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.22rem, 4.8vw, 1.4rem);
  line-height: 1.65;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  max-width: 20rem;
  margin: 0 auto 3.1rem;
}

.anketa-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.45rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border: none;
}

.field-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.field input[type="text"] {
  width: 100%;
  padding: 0.55rem 0;
  font: inherit;
  font-size: 1.05rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s ease;
}

.field input[type="text"]:focus {
  border-bottom-color: #fff;
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.18rem 0;
}

.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt i {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.opt.radio i { border-radius: 50%; }
.opt.check i { border-radius: 2px; }

.opt.radio input:checked + i {
  box-shadow: inset 0 0 0 3.5px transparent;
  background: radial-gradient(circle, #fff 0 38%, transparent 40%);
}

.opt.check input:checked + i::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: #fff;
}

.anketa-submit {
  align-self: center;
  margin-top: 0.75rem;
  min-width: 11rem;
  padding: 0.85rem 2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.anketa-submit:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.1);
}

.anketa-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-ok {
  text-align: center;
  font-family: "Bad Script", cursive;
  font-size: 2.1rem;
  color: #fff;
  padding: 1rem 0;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.form-err {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #ffd7d7;
  padding: 0.35rem 0 0;
}

/* contacts */
.contacts { text-align: center; }

.contacts .section-text {
  margin-inline: auto;
}

.phone-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: var(--sky-deep);
  text-decoration: none;
  letter-spacing: 0.04em;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 76, 129, 0.1);
}

.tg-block {
  margin-top: 2.5rem;
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: left;
  box-shadow: 0 14px 34px rgba(15, 76, 129, 0.08);
}

.tg-date {
  margin-top: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sky-deep);
}

/* farewell closing photo */
.farewell {
  padding: 1.35rem 1.15rem 0;
  text-align: center;
  background: transparent;
}

.farewell-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 0.15rem;
  box-shadow:
    0 18px 40px rgba(15, 76, 129, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65);
}

.farewell-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 3.85;
  object-fit: cover;
  object-position: center 22%;
}

.farewell-copy {
  padding: 1.85rem 0.55rem 0.15rem;
}

.farewell-text {
  margin: 0 auto;
  max-width: 17rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 5.6vw, 1.65rem);
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.farewell-text span {
  font-style: normal;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--sky-deep);
  letter-spacing: 0.04em;
}

/* footer */
.footer {
  text-align: center;
  padding: 1.35rem 1.7rem 3.75rem;
  background: linear-gradient(180deg, transparent, rgba(15, 76, 129, 0.18));
}

.footer-mark {
  width: 72px;
  height: auto;
  color: var(--sky-mid);
  margin-bottom: 0.55rem;
  opacity: 0.75;
}

.footer-script {
  font-family: "Bad Script", cursive;
  font-size: 2.35rem;
  color: var(--sky-mid);
  margin-bottom: 0.15rem;
}

.footer-names {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  color: var(--navy);
}

.footer-date {
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--ink-soft);
}

/* reveals */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain, .orb, .aurora, .caustics, .silk, .silk-shine, .cta svg,
  .hero-names .amp, .veil-nebula, .veil-rays, .veil-stars, .veil-shoot, .veil-open-shine,
  .mono-bloom, .mono-elli, .mono-traveler, .mono-sheen, .veil-amp, .veil-divider svg,
  .count-glow, .portal-glow, .portal-ring,
  .spark, .hero-photo img, .hero-photo .hero-video, .planet-clouds,
  .starfield, .planet-halo, .moon, .planet-stage {
    animation: none !important;
  }
  .veil, .world, .hero-kicker, .hero-names .name, .hero-names .amp,
  .hero-date, .hero-line, .cta, .veil-script, .veil-name, .veil-amp, .veil-tagline,
  .veil-date, .veil-open, .veil-divider, .veil-monogram {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
