/* ============================================================
   Devatha Vishnu & Adithya Soman — Reception invitation
   Palette taken from the printed card: ivory, gold, maroon, olive
   ============================================================ */

:root {
  --cream: #fbf4e3;
  --cream-2: #fdfaf1;
  --cream-deep: #f2e5c6;
  --maroon: #6d1f2b;
  --maroon-deep: #45131c;
  --olive: #5c6b3c;
  --olive-deep: #3f4a27;
  --gold: #c2a05a;
  --gold-deep: #a8832f;
  --gold-light: #eddbb0;
  --ink: #4a3b2a;
  --ink-soft: #6f5f4a;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --leaf-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='76' viewBox='0 0 56 76'%3E%3Cpath d='M28 0v76' fill='none' stroke='%23b08a3e' stroke-width='.9' opacity='.55'/%3E%3Cg fill='%237d8a4a' opacity='.5'%3E%3Cpath d='M28 6c12 5 19 14 19 24C35 26 28 18 28 6Z'/%3E%3Cpath d='M28 30c-12 5-19 14-19 24 12-4 19-12 19-24Z'/%3E%3Cpath d='M28 54c12 5 19 14 19 24-12-4-19-12-19-24Z'/%3E%3C/g%3E%3Cg fill='%23c2a05a' opacity='.6'%3E%3Ccircle cx='28' cy='18' r='1.5'/%3E%3Ccircle cx='28' cy='42' r='1.5'/%3E%3Ccircle cx='28' cy='66' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
  height: 100vh;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 4px;
  border-radius: 4px;
}

/* The invite title receives programmatic focus on open for screen readers;
   keep the default outline off it so it doesn't read as a decoration. */
#inviteTitle:focus {
  outline: none;
}

/* ------------------------------------------------------------
   Shared bits
   ------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow--gold {
  color: var(--gold-light);
}

.corner {
  position: absolute;
  width: clamp(44px, 6.5vw, 86px);
  height: clamp(44px, 6.5vw, 86px);
  color: var(--gold);
  opacity: 0.9;
  pointer-events: none;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-right: 0;
  border-bottom: 0;
}

.corner::after {
  inset: 7px;
  opacity: 0.45;
}

.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; transform: rotate(90deg); }
.corner.br { bottom: 0; right: 0; transform: rotate(180deg); }
.corner.bl { bottom: 0; left: 0; transform: rotate(270deg); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.1rem auto 0;
  color: var(--gold);
}

.ornament span {
  display: block;
  width: clamp(48px, 12vw, 96px);
  height: 1px;
  background: linear-gradient(to right, transparent, currentColor);
}

.ornament span:last-child {
  background: linear-gradient(to left, transparent, currentColor);
}

.ornament svg {
  width: 34px;
  height: 21px;
  flex: none;
}

.ornament--small {
  margin: 1.4rem auto;
  color: var(--gold);
}

.ornament--small svg {
  width: 26px;
  height: 16px;
}

/* ------------------------------------------------------------
   Opening cover
   ------------------------------------------------------------ */

.cover {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

/* --- the two ivory doors --- */

.cover__door {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 50.3%;
  background-image:
    radial-gradient(circle at 50% 46%, rgba(194, 160, 90, 0.15), transparent 46%),
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(168, 131, 47, 0.022) 0deg 1deg,
      transparent 1deg 13deg),
    radial-gradient(120% 80% at 50% 0%, #fffdf7 0%, #fbf2dd 42%, #f1e0bd 100%);
  background-size: 200% 100%, 200% 100%, 200% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
  transition: transform 1.15s cubic-bezier(0.7, 0, 0.22, 1) 0.38s;
}

.cover__door--l {
  left: 0;
  background-position: left center, left center, left center;
  box-shadow: inset -22px 0 46px -26px rgba(69, 19, 28, 0.45);
  transform-origin: 0 50%;
}

.cover__door--r {
  right: 0;
  background-position: right center, right center, right center;
  box-shadow: inset 22px 0 46px -26px rgba(69, 19, 28, 0.45);
  transform-origin: 100% 50%;
}

.cover.is-open .cover__door--l { transform: translate3d(-104%, 0, 0) rotate(-1.6deg); }
.cover.is-open .cover__door--r { transform: translate3d(104%, 0, 0) rotate(1.6deg); }

/* --- frame split across the two doors --- */

.cover__half {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  will-change: transform;
  transition: transform 1.15s cubic-bezier(0.7, 0, 0.22, 1) 0.38s;
}

.cover__half--l { left: 0; }
.cover__half--r { right: 0; }

.cover.is-open .cover__half--l { transform: translate3d(-104%, 0, 0) rotate(-1.6deg); }
.cover.is-open .cover__half--r { transform: translate3d(104%, 0, 0) rotate(1.6deg); }

.cover__half-frame {
  position: absolute;
  top: clamp(10px, 2.2vw, 30px);
  bottom: clamp(10px, 2.2vw, 30px);
}

.cover__half--l .cover__half-frame {
  left: clamp(10px, 2.2vw, 30px);
  right: calc(50% - clamp(10px, 2.2vw, 30px));
  border: 1px solid rgba(194, 160, 90, 0.55);
  border-right: 0;
}

.cover__half--r .cover__half-frame {
  right: clamp(10px, 2.2vw, 30px);
  left: calc(50% - clamp(10px, 2.2vw, 30px));
  border: 1px solid rgba(194, 160, 90, 0.55);
  border-left: 0;
}

.cover__half-frame::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  border: 1px solid rgba(194, 160, 90, 0.22);
}

.cover__half--l .cover__half-frame::before {
  left: 6px;
  right: -1px;
  border-right: 0;
}

.cover__half--r .cover__half-frame::before {
  right: 6px;
  left: -1px;
  border-left: 0;
}

.cover__corner--tl { top: clamp(10px, 2.2vw, 30px); left: clamp(10px, 2.2vw, 30px); }
.cover__corner--tr { top: clamp(10px, 2.2vw, 30px); right: clamp(10px, 2.2vw, 30px); }
.cover__corner--bl { bottom: clamp(10px, 2.2vw, 30px); left: clamp(10px, 2.2vw, 30px); }
.cover__corner--br { bottom: clamp(10px, 2.2vw, 30px); right: clamp(10px, 2.2vw, 30px); }

.cover__half .corner {
  width: clamp(34px, 5vw, 62px);
  height: clamp(34px, 5vw, 62px);
}

/* --- the seam between the doors --- */

.cover__seam {
  position: absolute;
  z-index: 1;
  top: clamp(14px, 2.6vw, 36px);
  bottom: clamp(14px, 2.6vw, 36px);
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg,
    transparent,
    rgba(237, 219, 176, 0.95) 18%,
    rgba(201, 162, 83, 0.95) 50%,
    rgba(237, 219, 176, 0.95) 82%,
    transparent);
  box-shadow: 0 0 26px 3px rgba(201, 162, 83, 0.4);
  opacity: 0;
  pointer-events: none;
}

.cover.is-open .cover__seam {
  animation: seamOpen 1.2s ease 0.12s forwards;
}

@keyframes seamOpen {
  0% { opacity: 0; transform: scaleY(0.1); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1.05); }
}

.cover.is-open {
  pointer-events: none;
}

.cover__inner {
  position: relative;
  z-index: 2;
  width: min(90vw, 520px);
  text-align: center;
  animation: coverIn 1200ms ease both;
  transition: opacity 0.45s ease 0.12s, transform 0.55s cubic-bezier(0.5, 0, 0.8, 0.4) 0.12s, filter 0.5s ease 0.12s;
}

.cover.is-open .cover__inner {
  opacity: 0;
  transform: translateY(-28px) scale(0.96);
  filter: blur(5px);
  visibility: hidden;
}

.cover-photo {
  position: relative;
  width: clamp(126px, 38vw, 172px);
  aspect-ratio: 4 / 4.6;
  margin: 0 auto 1.05rem;
  padding: 5px;
  background: #fffdf7;
  border: 1px solid rgba(194, 160, 90, 0.55);
  border-radius: 50% 50% 4px 4px / 46% 46% 4px 4px;
  box-shadow: 0 10px 26px -18px rgba(69, 19, 28, 0.55);
  animation: photoIn 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) 0.15s both;
}

.cover-photo::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(194, 160, 90, 0.32);
  border-radius: 50% 50% 3px 3px / 44% 44% 3px 3px;
  pointer-events: none;
}

.cover-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 50% 50% 3px 3px / 44% 44% 3px 3px;
  animation: kenburns 16s ease-in-out 0s infinite alternate;
}

@keyframes photoIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes kenburns {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.14) translateY(-2.6%); }
}

.cover .eyebrow {
  margin-bottom: 1.6rem;
  color: var(--ink-soft);
  letter-spacing: 0.42em;
  font-size: 0.66rem;
}

/* --- wax seal button --- */

.seal {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: clamp(132px, 32vw, 166px);
  height: clamp(132px, 32vw, 166px);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fdf7e8 0%, #f6e9ca 52%, #e9d5a4 100%);
  box-shadow:
    0 0 0 1px rgba(168, 131, 47, 0.55),
    0 0 0 6px rgba(194, 160, 90, 0.14),
    0 18px 40px -18px rgba(109, 31, 43, 0.5),
    inset 0 1px 10px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 400ms ease;
  -webkit-tap-highlight-color: transparent;
}

.seal:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(168, 131, 47, 0.7),
    0 0 0 10px rgba(194, 160, 90, 0.12),
    0 24px 46px -20px rgba(109, 31, 43, 0.55),
    inset 0 1px 10px rgba(255, 255, 255, 0.9);
}

.seal:active {
  transform: scale(0.985);
}

.seal::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 162, 83, 0.85);
  border-radius: 50%;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.cover.is-open .seal::after {
  animation: shockwave 0.85s cubic-bezier(0.16, 0.84, 0.24, 1) 0.05s forwards;
}

@keyframes shockwave {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.4); }
}

.cover.is-open .seal {
  animation: sealPop 0.55s cubic-bezier(0.5, 0, 0.7, 0.4) forwards;
}

@keyframes sealPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.18); }
  100% { transform: scale(0.08) rotate(-25deg); opacity: 0; }
}

.seal__ring {
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(168, 131, 47, 0.55);
  border-radius: 50%;
  animation: spin 34s linear infinite;
}

.seal__face {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.seal__monogram {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--maroon);
  line-height: 1;
}

.seal__amp {
  display: inline-block;
  margin: 0 0.12em;
  font-family: var(--script);
  font-size: 0.78em;
  color: var(--gold-deep);
  transform: translateY(1px);
}

.seal__leaf {
  position: absolute;
  bottom: 13%;
  width: 34px;
  height: 54px;
  color: var(--olive);
  opacity: 0.55;
}

.seal__leaf--l { left: 15%; transform: scaleX(-1); }
.seal__leaf--r { right: 15%; }

.cover__names {
  margin: 1.8rem 0 0.2rem;
  font-family: var(--script);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.25;
  color: var(--maroon);
}

.cover__tap {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-deep);
  animation: breathe 3.2s ease-in-out infinite;
}

.cover__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 2.2rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(111, 95, 74, 0.75);
}

.cover__hint svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* gold flecks thrown out when the seal is broken */
.fleck {
  position: fixed;
  z-index: 95;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f7e2ab, #c2a05a 70%);
  pointer-events: none;
  opacity: 0;
  animation: fleck 1000ms cubic-bezier(0.16, 0.8, 0.3, 1) forwards;
}

@keyframes fleck {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(0.15); }
}

/* sparks that scatter from the seam as the doors part */
.spark {
  position: fixed;
  z-index: 95;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3d0, #c9a253 75%);
  box-shadow: 0 0 8px rgba(240, 207, 124, 0.8);
  opacity: 0;
  pointer-events: none;
  animation: sparkFly 0.95s cubic-bezier(0.17, 0.84, 0.3, 1) var(--d, 0ms) forwards;
}

@keyframes sparkFly {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) scale(0.1); }
}

/* ------------------------------------------------------------
   Music toggle
   ------------------------------------------------------------ */

.music {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(194, 160, 90, 0.7);
  border-radius: 50%;
  background: rgba(253, 249, 240, 0.9);
  color: var(--gold-deep);
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px -10px rgba(69, 19, 28, 0.5);
  transition: transform 300ms ease, background 300ms ease;
}

.music:hover {
  transform: translateY(-2px);
  background: #fffdf6;
}

.music__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music__bars i {
  display: block;
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  animation: bar 1.15s ease-in-out infinite;
}

.music__bars i:nth-child(2) { animation-delay: 0.18s; }
.music__bars i:nth-child(3) { animation-delay: 0.36s; }
.music__bars i:nth-child(4) { animation-delay: 0.54s; }

.music.is-paused .music__bars i {
  animation-play-state: paused;
  transform: scaleY(0.35);
}

@keyframes bar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ------------------------------------------------------------
   Invitation
   ------------------------------------------------------------ */

main {
  position: relative;
  z-index: 1;
  transition: transform 1.3s cubic-bezier(0.2, 0.8, 0.3, 1) 0.5s, opacity 0.9s ease 0.5s;
}

body.is-locked main {
  opacity: 0;
  transform: scale(0.96) translateY(16px);
}

.invite {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 4vw, 40px) clamp(64px, 10vw, 120px);
  background:
    radial-gradient(90% 60% at 50% 0%, #fffdf6 0%, rgba(251, 244, 227, 0) 60%),
    linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 55%, var(--cream-deep) 100%);
}

.invite__frame {
  position: absolute;
  inset: clamp(10px, 2vw, 26px);
  border: 1px solid rgba(194, 160, 90, 0.38);
  pointer-events: none;
}

.invite__frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(194, 160, 90, 0.16);
}

.invite__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.garland {
  position: absolute;
  top: clamp(18px, 3vw, 40px);
  z-index: 1;
  width: 56px;
  height: min(52%, 460px);
  background-image: var(--leaf-tile);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 56px 76px;
  opacity: 0.6;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.garland--l { left: clamp(22px, 4.5vw, 62px); }
.garland--r { right: clamp(22px, 4.5vw, 62px); transform: scaleX(-1); }

.medallion {
  position: relative;
  width: clamp(118px, 24vw, 176px);
  margin: 0 auto 1.4rem;
  aspect-ratio: 1;
}

.medallion__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 207, 124, 0.55), transparent 66%);
  filter: blur(10px);
}

.medallion__art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.invite__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--maroon);
}

.of {
  margin: 1.15rem 0 0.7rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* --- arched couple portrait --- */

.portrait {
  position: relative;
  width: min(100%, 500px);
  margin: 1.8rem auto 0;
  padding: 12px 12px 10px;
  background: #fffdf7;
  border: 1px solid rgba(194, 160, 90, 0.5);
  border-radius: 4px;
  box-shadow:
    0 1px 0 #fff inset,
    0 28px 54px -36px rgba(69, 19, 28, 0.45);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(194, 160, 90, 0.22);
  border-radius: 2px;
  pointer-events: none;
}

.portrait__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50% 50% 4px 4px / 44% 44% 4px 4px;
  filter: sepia(0.06) saturate(0.97);
}

.portrait__mark {
  position: relative;
  margin: 0.65rem 0 0.1rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-deep);
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.names__bride,
.names__groom {
  font-size: clamp(1.85rem, 6vw, 3.2rem);
}

.names__bride { color: var(--maroon); }
.names__groom { color: var(--olive); }

.names__amp {
  display: block;
  margin: 0.35rem 0;
  font-family: var(--script);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--gold-deep);
}

.invite__lead {
  max-width: 34em;
  margin: 1.7rem auto 0;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-style: italic;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --- event card --- */

.event-card {
  position: relative;
  max-width: 470px;
  margin: clamp(2rem, 5vw, 2.9rem) auto 0;
  padding: clamp(26px, 5vw, 38px) clamp(20px, 5vw, 38px) clamp(10px, 3vw, 18px);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.94), rgba(250, 242, 223, 0.94));
  border: 1px solid rgba(194, 160, 90, 0.55);
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 22px 46px -30px rgba(69, 19, 28, 0.4);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(194, 160, 90, 0.22);
  border-radius: 1px;
  pointer-events: none;
}

.event-card__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 20px);
  padding: 0.55rem 0;
  text-align: left;
}

.event-card__row + .event-card__row {
  border-top: 1px solid rgba(194, 160, 90, 0.24);
  margin-top: 0.55rem;
  padding-top: 1.05rem;
}

.event-card__row strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.06rem, 2.6vw, 1.24rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--maroon);
}

.event-card__row span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ico {
  flex: none;
  width: clamp(26px, 6vw, 30px);
  height: clamp(26px, 6vw, 30px);
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.palace {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0.6rem auto -0.2rem;
  color: var(--gold-deep);
  opacity: 0.72;
}

.invite__note {
  margin: 1.6rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  color: var(--gold-deep);
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, currentColor, transparent);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.9; transform: scaleY(1); }
}

/* ------------------------------------------------------------
   Countdown band
   ------------------------------------------------------------ */

.countdown {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 104px) clamp(18px, 4vw, 40px);
  background: linear-gradient(155deg, #4b1622 0%, #6d1f2b 52%, #45131c 100%);
  color: var(--cream);
  text-align: center;
}

.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 46% at 50% 16%, rgba(240, 207, 124, 0.17), transparent 72%),
    radial-gradient(80% 60% at 50% 108%, rgba(0, 0, 0, 0.22), transparent 62%);
  pointer-events: none;
}

.countdown__frame {
  position: absolute;
  inset: clamp(10px, 2vw, 24px);
  border: 1px solid rgba(237, 219, 176, 0.28);
  pointer-events: none;
}

.countdown__frame .corner {
  color: rgba(237, 219, 176, 0.7);
}

.countdown__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.countdown__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--gold-light);
}

.clock {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2.4vw, 22px);
  margin: clamp(2rem, 5vw, 2.8rem) 0 clamp(1.8rem, 4vw, 2.4rem);
}

.clock__cell {
  min-width: clamp(58px, 16vw, 96px);
}

.clock__cell strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 7.5vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  text-shadow: 0 1px 12px rgba(240, 207, 124, 0.18);
}

.clock__cell span {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 244, 227, 0.66);
}

.clock__sep {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.55;
  color: rgba(237, 219, 176, 0.4);
}

.countdown__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease, color 250ms ease;
}

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

.btn--gold {
  background: linear-gradient(180deg, #e6c988 0%, #c2a05a 100%);
  border-color: rgba(255, 255, 255, 0.25);
  color: #40121a;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.7);
}

.btn--gold:hover {
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.75);
}

.btn--ghost {
  border-color: rgba(194, 160, 90, 0.75);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(194, 160, 90, 0.12);
}

/* ------------------------------------------------------------
   Venue
   ------------------------------------------------------------ */

.venue {
  position: relative;
  padding: clamp(64px, 10vw, 116px) clamp(18px, 4vw, 40px);
  background:
    radial-gradient(70% 50% at 50% 10%, #fffdf6, rgba(251, 244, 227, 0) 70%),
    var(--cream);
  text-align: center;
}

.venue__inner {
  max-width: 680px;
  margin: 0 auto;
}

.venue__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.6vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--maroon);
}

.venue__sub {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.venue__address {
  margin: 1.7rem 0 0;
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(1.02rem, 2.6vw, 1.15rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.venue__when {
  margin: 1.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--maroon);
}

.venue__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.9rem 0 2.4rem;
}

.venue__map {
  position: relative;
  border: 1px solid rgba(194, 160, 90, 0.5);
  border-radius: 3px;
  padding: 6px;
  background: #fffdf7;
  box-shadow: 0 24px 50px -34px rgba(69, 19, 28, 0.5);
}

.venue__map iframe {
  display: block;
  width: 100%;
  height: clamp(230px, 42vw, 330px);
  border: 0;
  border-radius: 1px;
  filter: sepia(0.16) saturate(0.92);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  position: relative;
  padding: clamp(52px, 8vw, 84px) 24px clamp(42px, 6vw, 60px);
  background: linear-gradient(180deg, var(--cream-deep), #efe0c0);
  text-align: center;
  border-top: 1px solid rgba(194, 160, 90, 0.4);
}

.footer__inner {
  max-width: 560px;
  margin: 0 auto;
}

.footer__seal {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border: 1px solid rgba(168, 131, 47, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(194, 160, 90, 0.13);
}

.footer__seal span {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--maroon);
}

.footer__names {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.3;
  color: var(--maroon);
}

.footer__date {
  margin: 0.35rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer__seal + .footer__names {
  margin-top: 0.2rem;
}

.btn--share {
  color: var(--maroon);
  border-color: rgba(168, 131, 47, 0.65);
}

.footer__contact {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

.footer__copy {
  margin: 1.2rem 0 0;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(111, 95, 74, 0.6);
}

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  max-width: min(88vw, 380px);
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(194, 160, 90, 0.5);
  border-radius: 2px;
  background: #45131c;
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------
   Scroll reveal (added by JS)
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Animations
   ------------------------------------------------------------ */

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

@keyframes breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes coverIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 640px) {
  .br-lg { display: none; }

  .cover-photo {
    width: clamp(108px, 36vw, 138px);
    margin-bottom: 0.55rem;
  }

  .cover .eyebrow {
    margin-bottom: 0.8rem;
  }

  .cover__names {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .cover__hint {
    margin-top: 1.2rem;
  }

  .invite__frame,
  .countdown__frame {
    inset: 8px;
  }

  .garland {
    width: 36px;
    height: 36%;
    background-size: 36px 49px;
    opacity: 0.42;
  }

  .garland--l { left: 14px; }
  .garland--r { right: 14px; }

  .clock { gap: 4px; }
  .clock__sep { display: none; }
  .clock__cell { min-width: 62px; }

  .footer__date {
    font-size: 0.56rem;
    letter-spacing: 0.15em;
  }

  .invite {
    padding-bottom: clamp(48px, 8vw, 72px);
  }

  .countdown__actions .btn,
  .venue__actions .btn {
    flex: 1 1 auto;
  }

  .btn {
    padding: 0.78rem 1.15rem;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }
}

@media (max-width: 380px) {
  .clock__cell { min-width: 54px; }
  .clock__cell strong { font-size: 1.9rem; }
  .clock__cell span { font-size: 0.52rem; letter-spacing: 0.18em; }
}

@media (min-width: 900px) {
  .names__bride,
  .names__groom { font-size: clamp(2.6rem, 4.4vw, 3.4rem); }
}

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

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

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

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

  .cover.is-open {
    transition-duration: 200ms !important;
  }
}

/* ------------------------------------------------------------
   Print — a clean card-sized keepsake
   ------------------------------------------------------------ */

@media print {
  .cover,
  .music,
  .toast,
  .scroll-cue,
  .countdown__actions,
  .venue__map,
  .venue__actions,
  .btn--share,
  .footer__copy {
    display: none !important;
  }

  body { background: #fff; color: #333; }
  .invite, .countdown, .venue, .footer { background: #fff !important; color: #333 !important; }
  .names__bride, .names__groom, .invite__title, .countdown__title, .venue__title { color: #000 !important; }
}
