/* Phase 4 — ceremony arch and countdown. */
.wedding {
  isolation: isolate;
  background: radial-gradient(ellipse at 45% 40%, var(--color-maroon), #35121c);
  color: var(--color-ivory);
}
.wedding__mandala {
  position: absolute;
  z-index: -1;
  width: min(90%, 850px);
  height: 850px;
  max-height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-gold);
  opacity: 0.08;
  pointer-events: none;
}
.wedding__border { position: absolute; inset-inline: 6%; height: 26px; display: flex; align-items: center; gap: 16px; color: var(--color-gold); }
.wedding__border--top { top: 18px; }
.wedding__border--bottom { bottom: 18px; }
.wedding__border::before, .wedding__border::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }
.wedding__border svg { width: 48px; height: 26px; }
.section-header--dark .section-header__eyebrow { color: var(--color-gold-light); }
.section-header--dark .section-header__title { color: var(--color-ivory); }
.section-header--dark .divider__gem { box-shadow: 0 0 0 3px var(--color-maroon), 0 0 0 4px var(--color-gold); }
.wedding__layout { display: grid; gap: 48px; align-items: center; }
.ceremony { width: min(100%, 440px); margin-inline: auto; color: var(--color-text); position: relative; }
.ceremony__cap { width: 100%; height: auto; aspect-ratio: 400 / 105; overflow: visible; fill: none; stroke: var(--color-gold); stroke-width: 1; }
.ceremony__cap-fill { fill: var(--color-ivory); stroke: none; }
.ceremony__body { position: relative; background: var(--color-ivory); padding: 0 26px 28px; border-radius: 0 0 12px 12px; text-align: center; display: flow-root; }
.ceremony__body::before { content: ''; position: absolute; inset: 0 3% 12px; border: 1px solid var(--color-gold); border-top: 0; border-radius: 0 0 6px 6px; pointer-events: none; }
.ceremony__lotus { width: 50px; height: 34px; margin: -28px auto 20px; color: var(--color-gold-deep); }
.ceremony h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 26px; }
.ceremony__detail { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; font-size: var(--fs-sm); }
.ceremony__detail svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--color-gold-deep); stroke-width: 1.5; }
.ceremony__detail a { color: var(--color-maroon); display: inline-flex; align-items: center; min-height: 44px; }
.ceremony__detail:last-of-type { margin-bottom: 0; }
.ceremony__dress { margin: 8px 0 0; font-size: var(--fs-sm); font-style: italic; }
/* Countdown: four arched windows (outline = shared #orn-arch-window symbol) */
.countdown__tiles { display: flex; align-items: center; justify-content: center; width: 100%; margin-inline: auto; padding-top: 14px; /* room for the apex lotus */ }
.countdown__window { position: relative; flex: 0 1 150px; min-width: 0; aspect-ratio: 3 / 4; }
.countdown__arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; stroke: var(--color-gold); }
.countdown__lotus { position: absolute; left: 50%; top: 1%; width: 24px; height: 16px; transform: translate(-50%, -92%); color: var(--color-gold); }
.countdown__window::after { content: ''; position: absolute; left: -10px; right: -10px; bottom: 0; height: 1.5px; background: var(--color-gold); } /* sill */
.countdown__sweep { position: absolute; inset: 0; overflow: hidden; clip-path: url(#arch-clip-bbox); pointer-events: none; }
.countdown__sweep i { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(232, 213, 163, 0.22) 50%, transparent 65%); transform: translateX(-110%); }
.countdown__body { position: absolute; inset: 24% 6% 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.countdown__value { position: relative; overflow: hidden; /* odometer mask: exactly one line of numerals */ width: 100%; height: 1.1em; line-height: 1.1; font-family: var(--font-heading); font-weight: 600; font-size: clamp(2.4rem, 4.5vw, 3.8rem); color: var(--color-ivory); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.countdown__digit { display: block; }
.countdown__digit--old { position: absolute; inset: 0; }
.countdown__gem { display: block; width: 8px; height: 8px; margin: 8px 0 6px; color: var(--color-gold); }
.countdown__gem svg, .countdown__sep svg { display: block; width: 100%; height: 100%; }
.countdown__label { padding-left: 0.2em; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-gold-light); }
.countdown__sep { flex: 0 0 auto; width: 10px; height: 10px; margin-inline: clamp(2px, 0.5vw, 7px); color: var(--color-gold); }
@media (max-width: 599.98px) {
  .countdown__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 132px)); justify-content: center; gap: 24px 16px; }
  .countdown__window { flex: none; }
  .countdown__sep { display: none; }
}
#countdown { min-width: 0; text-align: center; margin: 0; min-height: 220px; display: grid; align-content: center; }
.countdown__today { color: var(--color-gold-light); border: 1px solid var(--color-gold); border-radius: var(--radius-pill); padding: 6px 16px; width: fit-content; margin: 0 auto 24px; font-size: var(--fs-sm); }
.countdown__today::before { content: '✨ Today · '; }
.countdown__message { position: relative; padding: 32px 12px; overflow: hidden; }
.countdown__heading { font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.3; color: var(--color-gold-light); margin: 0; }
.countdown__sub { margin: 18px 0 0; font-size: var(--fs-sm); }
[data-state="after"] .countdown__heading { font-family: var(--font-script); font-size: clamp(2.6rem, 14vw, 3.5rem); }
@media (min-width: 600px) { [data-state="after"] .countdown__heading { font-size: clamp(3.5rem, 6vw, 5rem); } }
[data-state="during"] .countdown__message::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(232, 213, 163, 0.12) 50%, transparent 65%); transform: translateX(-100%); animation: weddingShimmer 4s ease-in-out infinite; pointer-events: none; }
@keyframes weddingShimmer { to { transform: translateX(100%); } }
@media (min-width: 1024px) { .wedding__layout { grid-template-columns: 0.8fr 1.2fr; gap: 32px; } }
@media (prefers-reduced-motion: reduce) { [data-state="during"] .countdown__message::after { animation: none; display: none; } }
/* Deep gold stays visible against ivory (venue link focus outline). */
.ceremony :focus-visible { outline-color: var(--color-gold-deep); }

.countdown__lead { font-family: var(--font-script); color: var(--color-gold-light); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 26px; }
