/* ==========================================================================
   Design tokens — deep aubergine + gold
   ========================================================================== */
:root {
  --color-bg: #170b24;
  --color-bg-deep: #0f0819;
  --color-text: #f7ecd5;
  --color-text-strong: #fff4da;
  --color-text-muted: rgba(247, 236, 213, 0.72);
  --color-gold: #d9a34b;
  --color-gold-light: #f5d99d;
  --color-gold-pale: #ffe6b7;
  --color-plum: #a34d74;
  --color-amber: #cc9448;
  --color-line: rgba(245, 217, 157, 0.18);
  --color-line-strong: rgba(245, 217, 157, 0.34);
  --card-bg: linear-gradient(155deg, rgba(83, 35, 76, 0.52), rgba(31, 15, 43, 0.86));
  --btn-gradient: linear-gradient(135deg, #8c3c66, #986220);

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-caps: "Cinzel", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;

  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 238, 197, 0.08);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-bg-deep); }
body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0, rgba(137, 45, 97, 0.36), transparent 40%),
    radial-gradient(circle at 88% 14%, rgba(202, 133, 57, 0.24), transparent 42%),
    linear-gradient(#1c0e28, #12091e);
}
h1, h2, h6 { font-weight: 400; line-height: 1.12; margin: 0; }
h2 { font-family: var(--font-caps); color: var(--color-text-strong); letter-spacing: 0.04em; }
p { margin: 0 0 14px; }
a { color: var(--color-gold-light); text-underline-offset: 3px; }
a:hover { color: var(--color-gold-pale); }
img { display: block; max-width: 100%; }
.text-muted { color: var(--color-text-muted); }
.small { font-size: 16px; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
::selection { background: rgba(217, 163, 75, 0.35); color: var(--color-text-strong); }

h6 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 14px;
}

/* ==========================================================================
   Layout shell
   ========================================================================== */
.page { display: block; }
.card { width: 100%; }

/* ==========================================================================
   Floating petals
   ========================================================================== */
.petals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.petals span {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 1.3);
  border-radius: 70% 0 70% 0;
  background: radial-gradient(circle at 30% 30%, #f7bfd2, #c25f8c);
  opacity: 0;
  animation: petal-fall var(--d) linear var(--t) infinite;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.6; }
  50%  { transform: translate3d(46px, 55vh, 0) rotate(200deg); }
  92%  { opacity: 0.5; }
  100% { transform: translate3d(-34px, 112vh, 0) rotate(380deg); opacity: 0; }
}

/* ==========================================================================
   Sound toggle
   ========================================================================== */
.sound-toggle {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-pale);
  background: rgba(18, 9, 31, 0.78);
  border: 1px solid var(--color-line-strong);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: opacity 0.6s ease, background 0.2s ease, border-color 0.2s ease;
}
.sound-toggle[hidden] { display: none; }
html.gated .sound-toggle { opacity: 0; visibility: hidden; }
.sound-toggle:hover { background: rgba(217, 163, 75, 0.18); border-color: var(--color-gold); }
.sound-toggle.is-on svg { animation: note-bob 1.6s ease-in-out infinite; }
@keyframes note-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* ==========================================================================
   Opening gate
   ========================================================================== */
@property --iris {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}
html.gated { overflow: hidden; }
.gate { display: none; }
.js .gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 50% 44%, rgba(240, 193, 112, 0.14), transparent 46%),
    radial-gradient(circle at 15% 0, rgba(137, 45, 97, 0.34), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(202, 133, 57, 0.16), transparent 44%),
    linear-gradient(#1c0e28, #0f0819);
}
.js .gate[hidden] { display: none; }
.gate-rays {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.gate-rays::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 240vmax;
  height: 240vmax;
  margin: -120vmax 0 0 -120vmax;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(245, 217, 157, 0.055) 0 1.6deg, transparent 1.6deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 34%);
  mask-image: radial-gradient(circle, #000 0, transparent 34%);
  animation: gate-spin 240s linear infinite;
}
@keyframes gate-spin { to { transform: rotate(360deg); } }

.gate-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  margin: auto;
}
.js .gate-inner > * { opacity: 0; }
.js .gate.is-ready .gate-inner > * {
  opacity: 1;
  animation: gate-rise 1s cubic-bezier(0.22, 0.61, 0.36, 1) var(--gd, 0s) backwards;
}
.gate-kicker { --gd: 0.15s; }
.gate-emblem { --gd: 0.35s; }
.gate-names { --gd: 0.65s; }
.gate-divider { --gd: 0.9s; }
.gate-btn { --gd: 1.1s; }
@keyframes gate-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.gate-kicker {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--color-gold-pale);
  margin-bottom: 30px;
}
.gate-kicker-lg { font-size: 15px; }
.gate-emblem {
  position: relative;
  width: 210px;
  height: 210px;
}
.gate-emblem::before {
  content: "";
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 193, 112, 0.42), rgba(240, 193, 112, 0.1) 42%, transparent 68%);
  animation: gate-glow 4.5s ease-in-out infinite;
}
.gate-emblem svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(217, 163, 75, 0.5));
}
.emblem-rays, .emblem-star {
  transform-box: view-box;
  transform-origin: 50% 50%;
}
.emblem-rays { animation: gate-spin 90s linear infinite; }
.emblem-star { animation: gate-spin 70s linear infinite reverse; }
@keyframes gate-glow {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.06); }
}

.gate-names {
  margin: 34px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 11vw, 64px);
  line-height: 1.12;
  color: var(--color-text-strong);
  text-shadow: 0 2px 34px rgba(217, 163, 75, 0.3);
}
.gate-name { display: block; }
.gate-amp { display: block; margin: 4px 0; color: var(--color-gold); font-size: 0.8em; }

.gate-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(320px, 82vw);
  margin: 24px 0 30px;
  color: var(--color-gold);
}
.gate-line { flex: 1; height: 1px; }
.gate-line:first-child { background: linear-gradient(90deg, transparent, var(--color-gold)); }
.gate-line:last-child { background: linear-gradient(270deg, transparent, var(--color-gold)); }

.gate-btn {
  position: relative;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-strong);
  padding: 17px 40px;
  border: 1px solid rgba(255, 238, 197, 0.36);
  border-radius: 999px;
  background: var(--btn-gradient);
  box-shadow: 0 10px 30px rgba(163, 77, 116, 0.36);
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}
.gate-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--color-gold-light);
  opacity: 0;
  animation: gate-ring 2.8s ease-out 2.2s infinite;
  pointer-events: none;
}
@keyframes gate-ring {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.22, 1.5); }
}
.gate-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(204, 148, 72, 0.45); }
.gate-btn:active { transform: translateY(0); }
.gate-btn[aria-disabled="true"] { cursor: default; }

.gate.is-opening {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, transparent var(--iris), #000 calc(var(--iris) + 1.5%));
  mask-image: radial-gradient(circle at 50% 46%, transparent var(--iris), #000 calc(var(--iris) + 1.5%));
  animation: gate-iris 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}
.gate.is-opening .gate-inner { animation: gate-inner-out 0.7s ease forwards; }
html.js .gate.is-opening .gate-inner > * { animation-play-state: paused; }
@keyframes gate-iris {
  0%   { --iris: 0%; opacity: 1; }
  70%  { opacity: 1; }
  100% { --iris: 108%; opacity: 0; }
}
@keyframes gate-inner-out {
  to { opacity: 0; transform: scale(1.12); filter: blur(4px); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 110px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 193, 112, 0.2), transparent 46%),
    repeating-linear-gradient(45deg, transparent 0 58px, rgba(245, 217, 157, 0.06) 58px 59px),
    repeating-linear-gradient(-45deg, transparent 0 58px, rgba(245, 217, 157, 0.06) 58px 59px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 18%, transparent 72%);
}
.hero-frame, .hero-frame-inner { position: relative; }
.hero-frame-inner {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-icon {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(217, 163, 75, 0.4));
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-gold-pale);
  margin-top: 28px;
}
.eyebrow-rule {
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 18px 0 22px;
}
.subeyebrow {
  font-size: 22px;
  font-style: italic;
  color: rgba(247, 236, 213, 0.82);
}
.guardian-note {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--color-text-muted);
}
.person-parents {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--color-gold-light);
}
.name {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 76px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--color-text-strong);
  text-shadow: 0 2px 34px rgba(217, 163, 75, 0.3);
}
.and {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
  margin: 10px 0;
}
.date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.rule { height: 1px; width: 64px; flex: none; }
.rule:first-child { background: linear-gradient(90deg, transparent, var(--color-gold)); }
.rule:last-child { background: linear-gradient(270deg, transparent, var(--color-gold)); }
.date {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  color: #ff6a00;
  letter-spacing: 0.04em;
  font-feature-settings: 'lnum';
  white-space: nowrap;
  text-shadow: 0 0 26px rgba(255, 106, 0, 0.35);
}
.date-month {
  font-style: italic;
  font-weight: 400;
}
.venue-note {
  font-size: 24px;
  font-style: italic;
  margin-top: 14px;
  color: rgba(247, 236, 213, 0.8);
}
.hero:focus { outline: none; }
.js .hero-frame-inner > * { opacity: 0; }
.js.opened .hero-frame-inner > * {
  animation: hero-rise 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(0.5s + var(--i, 0) * 0.13s);
}
.hero-frame-inner > :nth-child(1) { --i: 0; }
.hero-frame-inner > :nth-child(2) { --i: 1; }
.hero-frame-inner > :nth-child(3) { --i: 2; }
.hero-frame-inner > :nth-child(4) { --i: 3; }
.hero-frame-inner > :nth-child(5) { --i: 4; }
.hero-frame-inner > :nth-child(6) { --i: 5; }
.hero-frame-inner > :nth-child(7) { --i: 6; }
.hero-frame-inner > :nth-child(8) { --i: 7; }
.hero-frame-inner > :nth-child(9) { --i: 8; }
.hero-frame-inner > :nth-child(10) { --i: 9; }
.hero-frame-inner > :nth-child(11) { --i: 10; }
.hero-frame-inner > :nth-child(12) { --i: 11; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left: -7px;
  color: var(--color-gold);
  opacity: 0.75;
  animation: cue-bounce 2.4s ease-in-out infinite;
}
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ==========================================================================
   Content
   ========================================================================== */
.content { max-width: 1040px; margin: 0 auto; padding: 40px 24px 0; }

.story { max-width: 700px; margin: 0 auto; text-align: center; }
.story p {
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(250, 236, 205, 0.92);
  text-wrap: pretty;
}

.kolam-divider {
  display: flex;
  justify-content: center;
  padding: 44px 0 36px;
  color: var(--color-gold);
  filter: drop-shadow(0 0 6px rgba(217, 163, 75, 0.45));
}

.memories {
  max-width: 1040px;
  margin: 56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  align-items: start;
}
.memory-frame {
  margin: 0;
  padding: 14px 14px 40px;
  background: linear-gradient(155deg, #4f2544, #241130);
  border: 1px solid var(--color-line-strong);
  border-radius: 5px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 238, 197, 0.1);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
}
.memory-frame-a { transform: rotate(-3.5deg); }
.memory-frame-b { transform: rotate(3deg); margin-top: 34px; }
.memory-frame-c { transform: rotate(-2.2deg); margin-top: 14px; }
.memory-frame:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.015);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 238, 197, 0.14);
}
.memory-photo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-deep);
}
.memory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: memory-kenburns 24s ease-in-out infinite alternate;
}
.memory-frame-b .memory-photo img { animation-delay: -9s; }
.memory-frame-c .memory-photo img { animation-delay: -16s; }
@keyframes memory-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2.5%, -2%, 0); }
}

.js .memory-frame[data-reveal] {
  opacity: 0;
  transform: translateY(44px) rotate(0deg) scale(0.92);
  transition: opacity 1.05s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1.05s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .memory-frame-b[data-reveal] { transition-delay: 0.12s; }
.js .memory-frame-c[data-reveal] { transition-delay: 0.24s; }
.js .memory-frame-a[data-reveal].is-visible { opacity: 1; transform: rotate(-3.5deg); }
.js .memory-frame-b[data-reveal].is-visible { opacity: 1; transform: rotate(3deg); }
.js .memory-frame-c[data-reveal].is-visible { opacity: 1; transform: rotate(-2.2deg); }

@media (max-width: 900px) {
  .memories { grid-template-columns: 1fr 1fr; max-width: 700px; }
  .memory-frame-c { grid-column: 1 / -1; justify-self: center; width: min(100%, 360px); margin-top: 20px; }
}

@media (max-width: 640px) {
  .memories { grid-template-columns: 1fr; max-width: 360px; gap: 40px; margin-top: 40px; }
  .memory-frame-a { transform: rotate(-2deg); }
  .memory-frame-b { transform: rotate(2deg); margin-top: 0; }
  .memory-frame-c { transform: rotate(-1.6deg); margin-top: 0; width: 100%; }
  .js .memory-frame-a[data-reveal].is-visible { transform: rotate(-2deg); }
  .js .memory-frame-b[data-reveal].is-visible { transform: rotate(2deg); }
  .js .memory-frame-c[data-reveal].is-visible { transform: rotate(-1.6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .js .memory-frame[data-reveal] { opacity: 1; transition: none; }
  .js .memory-frame-a[data-reveal] { transform: rotate(-3.5deg); }
  .js .memory-frame-b[data-reveal] { transform: rotate(3deg); }
  .js .memory-frame-c[data-reveal] { transform: rotate(-2.2deg); }
  .memory-photo img { animation: none; }
  .memory-frame:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) {
  .js .memory-frame-a[data-reveal] { transform: rotate(-2deg); }
  .js .memory-frame-b[data-reveal] { transform: rotate(2deg); }
  .js .memory-frame-c[data-reveal] { transform: rotate(-1.6deg); }
}

.section-heading { text-align: center; margin-bottom: 38px; }
.section-heading h2, .rsvp-title { font-weight: 400; font-size: 42px; }

.events {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.event {
  padding: 28px 28px 26px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-card);
}
@property --sheen {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.event-featured {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 36px 40px;
  border: 3px solid transparent;
  background:
    linear-gradient(155deg, #4f2544, #241130) padding-box,
    conic-gradient(from var(--sheen), #c8952b 0%, #ffeec3 9%, #e2b04f 20%, #a8741f 34%, #d9a34b 52%, #fff4da 62%, #d9a34b 74%, #b8862f 88%, #c8952b 100%) border-box;
  box-shadow:
    0 0 30px rgba(217, 163, 75, 0.3),
    0 18px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 238, 197, 0.22);
  animation: sheen-spin 9s linear infinite;
}
@keyframes sheen-spin { to { --sheen: 360deg; } }
@media (min-width: 721px) {
  .event-featured { margin-inline: -18px; }
}
.event-date {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ff6a00;
  font-feature-settings: 'lnum';
  margin-bottom: 10px;
}
.event-time {
  font-size: 15px;
  font-style: italic;
  color: var(--color-text-muted);
}
.event-name {
  font-family: var(--font-caps);
  font-size: 26px;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--color-text-strong);
  margin-bottom: 6px;
}
.event .small { font-size: 19px; font-style: italic; }
.event-featured .event-date { font-size: 23px; margin-bottom: 14px; }
.event-featured .event-name { font-size: 36px; margin-bottom: 10px; }
.event-featured .small { font-size: 23px; }
.event-dress {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
  font-size: 19px;
  line-height: 1.5;
  color: rgba(250, 236, 205, 0.88);
}
.event-dress-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}
.event-location {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
  font-size: 19px;
  line-height: 1.5;
  color: rgba(250, 236, 205, 0.88);
}
.event-map {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-line-strong);
}
.event-map-embed {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
  filter: sepia(0.22) saturate(0.85) brightness(0.95);
}

.two-col {
  max-width: 900px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.two-col > div:only-child { grid-column: 1 / -1; }
.two-col > div {
  padding: 30px 28px 18px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-card);
}
.two-col p { font-size: 19px; line-height: 1.55; color: rgba(250, 236, 205, 0.86); }

/* ==========================================================================
   Buttons & form
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--color-text-strong);
  background: transparent;
  border: 1px solid transparent;
  padding: 14px 26px;
  border-radius: 999px;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  color: var(--color-text-strong);
  background: var(--btn-gradient);
  border-color: rgba(255, 238, 197, 0.34);
  box-shadow: 0 8px 22px rgba(163, 77, 116, 0.28);
}
.btn-primary:hover { color: var(--color-text-strong); box-shadow: 0 10px 26px rgba(204, 148, 72, 0.4); }
.btn-primary:disabled { filter: saturate(0.6) brightness(0.85); cursor: default; }
.btn-secondary {
  color: var(--color-gold-light);
  background: rgba(18, 9, 31, 0.5);
  border-color: var(--color-line-strong);
}
.btn-secondary:hover { background: rgba(217, 163, 75, 0.14); color: var(--color-gold-pale); }
.btn-block { width: 100%; margin-top: 10px; }

.field { margin-bottom: 0; }
.field > label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 9px;
  color: var(--color-gold-light);
}
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-text-strong);
  caret-color: var(--color-gold);
  color-scheme: dark;
  background: rgba(10, 5, 18, 0.62);
  border: 1px solid rgba(245, 217, 157, 0.26);
  border-radius: var(--radius-md);
}
.input::placeholder { color: rgba(247, 236, 213, 0.4); }
.input:hover { border-color: rgba(245, 217, 157, 0.5); }
.input:focus-visible {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(217, 163, 75, 0.2);
  outline: none;
}
textarea.input { min-height: 110px; resize: vertical; }

.seg {
  display: inline-flex;
  width: 100%;
  gap: 10px;
}
.seg-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 8px;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(10, 5, 18, 0.5);
  border: 1px solid rgba(245, 217, 157, 0.26);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.seg-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.seg-opt:has(input:checked) {
  color: var(--color-text-strong);
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(163, 77, 116, 0.45), rgba(204, 148, 72, 0.3));
  box-shadow: inset 0 0 0 1px var(--color-gold);
}
.seg-opt:not(:has(input:checked)):hover { background: rgba(217, 163, 75, 0.1); border-color: rgba(245, 217, 157, 0.5); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-gold); outline-offset: 2px; }

.nights { display: flex; gap: 10px; flex-wrap: wrap; }
.night-btn { padding: 11px 22px; }

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp {
  max-width: 700px;
  margin: 72px auto 0;
  padding: 0 44px 48px;
  border: 1px solid var(--color-line-strong);
  border-radius: 28px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.rsvp-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.rsvp-inner .kolam-divider { padding: 40px 0 26px; }
.rsvp-title { margin-bottom: 6px; }
.rsvp-form {
  max-width: 560px;
  margin: 26px auto 0;
  display: grid;
  gap: 22px;
}
.rsvp-form[hidden], .rsvp-thanks[hidden] { display: none; }
.rsvp-thanks {
  max-width: 560px;
  margin: 26px auto 0;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  background: rgba(10, 5, 18, 0.45);
  padding: 28px;
  text-align: center;
}
.rsvp-thanks-title { font-family: var(--font-caps); font-size: 26px; letter-spacing: 0.06em; color: var(--color-text-strong); margin-bottom: 8px; }

.rsvp-error {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #ffb8aa;
  border: 1px solid rgba(255, 140, 120, 0.4);
  background: rgba(161, 58, 47, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: 72px;
  padding: 40px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--color-line);
  background: linear-gradient(rgba(10, 5, 18, 0), rgba(10, 5, 18, 0.55));
}
.footer .small { font-family: var(--font-ui); font-size: 13px; line-height: 1.8; }
.footer-phone { white-space: nowrap; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .petals { display: none; }
  .scroll-cue { animation: none; }
  .gate-rays::before, .gate-emblem::before, .emblem-rays, .emblem-star, .gate-btn::after, .event-featured, .sound-toggle.is-on svg { animation: none; }
  .js .gate-inner > *, .js .gate.is-ready .gate-inner > * { opacity: 1; animation: none; }
  .gate.is-opening {
    -webkit-mask-image: none;
    mask-image: none;
    animation: gate-fade 0.4s ease forwards;
  }
  .gate.is-opening .gate-inner { animation: none; }
  .js .hero-frame-inner > *, .js.opened .hero-frame-inner > * { opacity: 1; animation: none; }
}
@keyframes gate-fade { to { opacity: 0; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
  body { font-size: 18px; }
  .gate-emblem { width: 180px; height: 180px; }
  .gate-kicker { margin-bottom: 24px; }
  .gate-names { margin-top: 28px; }
  .gate-divider { margin: 20px 0 26px; }
  .hero { padding: 56px 20px 96px; }
  .hero-icon { width: 96px; }
  .content { padding: 24px 16px 0; }
  .name { font-size: 52px; }
  .and { font-size: 22px; }
  .date-row { gap: 10px; }
  .date { font-size: 21px; letter-spacing: 0.02em; }
  .rule { width: 28px; }
  .subeyebrow { font-size: 19px; }
  .venue-note { font-size: 19px; }
  .story p { font-size: 22px; }
  .section-heading h2, .rsvp-title { font-size: 30px; }
  .events, .two-col { grid-template-columns: 1fr; gap: 16px; }
  .two-col { margin-top: 16px; }
  .event { padding: 24px 22px 22px; }
  .event-name { font-size: 23px; }
  .event-featured { padding: 34px 20px 30px; }
  .event-featured .event-date { font-size: 20px; }
  .event-featured .event-name { font-size: 30px; }
  .event-featured .small { font-size: 20px; }
  .two-col > div { padding: 26px 22px 14px; }
  .rsvp { margin: 56px 16px 0; padding: 0 22px 36px; border-radius: 24px; }
  .seg { flex-direction: column; }
  .footer { margin-top: 56px; padding: 32px 20px 40px; }
}

/* Short screens (phone landscape, small windows): keep the whole gate in view */
@media (max-height: 640px) {
  .js .gate { padding: 16px 20px; }
  .gate-kicker { margin-bottom: 14px; }
  .gate-emblem { width: min(210px, 26vh); height: min(210px, 26vh); }
  .gate-names { margin-top: 18px; font-size: clamp(28px, min(11vw, 9vh), 64px); }
  .gate-divider { margin: 14px 0 18px; }
  .gate-btn { padding: 14px 32px; }
}
@media (max-height: 440px) {
  .gate-emblem { display: none; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .hero { padding: 36px 20px 56px; }
  .name { font-size: min(52px, 8.2svh); }
  .and { margin: 4px 0; }
}
