/* ==========================================================================
   Shaquil & Chelsea — Convite
   Palette: pure white · gold letters and deep gold foil (2026-10: the couple asked for white with gold)
   Type: Great Vibes (names) · Cormorant Garamond (display/body)
         Cinzel (numerals/caps) · Jost (labels) · Amiri (Arabic)
   ========================================================================== */

/* Animatable theme colours (smooth day/night morph between sections) */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #7A5A22; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #8C6C33; }

:root {
  /* The emerald is gone (2026-10). The old names are kept so every rule still resolves:
     --night = deep brown ink (text on gold), --night-2/3 = ivory card tones. */
  --night: #2E2414;
  --night-2: #FBF6EC;
  --night-3: #FBF7EE;
  --ivory: #FBF6EC;
  --paper: #F4ECDD;          /* vintage cream (2026-10), same as css/vintage.css */
  --ink: #3D3128;           /* sepia ink */
  --ink-soft: #6A5A47;
  --gold: #B8913F;
  --gold-light: #8A6524;   /* gold used as TEXT: deep enough to read on ivory */
  --gold-hi: #EBD7A2;      /* pale gold: highlights inside gradients only */
  --gold-deep: #7A5A22;
  --terracotta: #B4664A;
  --danger: #A8432B;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #6A5A47;
  --line: color-mix(in srgb, var(--gold) 45%, transparent);

  --f-script: 'Great Vibes', cursive;
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-caps: 'Cinzel', serif;
  --f-ui: 'Jost', system-ui, sans-serif;
  --f-ar: 'Amiri', serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 6vw, 48px);
  --maxw: 640px;
}

body.theme-light, body.theme-dark { --bg: var(--paper); --fg: var(--ink); --muted: #6A5A47; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
main { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: --bg 1.1s var(--ease-out), --fg 1.1s var(--ease-out), --muted 1.1s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; height: 100svh; }

img, svg { display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--night); }

/* ─────────────── Typography ─────────────── */
.eyebrow {
  font-family: var(--f-ui);
  font-size: 11.5px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 400;
}
.display {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(38px, 10vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.display--sm { font-size: clamp(30px, 8vw, 44px); }
.lead { font-size: clamp(21px, 5.4vw, 26px); line-height: 1.4; margin: 0 0 20px; }
.italic { font-style: italic; }
.body-text { font-size: clamp(17px, 4.4vw, 19px); color: var(--muted); margin: 0 auto 24px; max-width: 34em; }
.body-text strong { color: var(--fg); }
.script { font-family: var(--f-script); font-weight: 400; }

.gold-text {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 25%, #D9B566 45%, #EED9A0 50%, #D9B566 55%, var(--gold) 75%, var(--gold-deep) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* split-text helpers */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; will-change: transform; }

/* ─────────────── Layout primitives ─────────────── */
.scene { position: relative; isolation: isolate; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.container {
  position: relative; z-index: 4;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.section { padding: clamp(72px, 12vh, 120px) 0; }

.paper-pattern {
  background-image:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C9A45C' stroke-width='.7' opacity='.35'%3E%3Cpath d='M48 20 L56 40 L76 48 L56 56 L48 76 L40 56 L20 48 L40 40Z'/%3E%3Crect x='34' y='34' width='28' height='28' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0 V20 M48 76 V96 M0 48 H20 M76 48 H96'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .32;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.hero__pattern, .verse__pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C9A45C' stroke-width='.8'%3E%3Crect x='38' y='38' width='44' height='44'/%3E%3Crect x='38' y='38' width='44' height='44' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3Cpath d='M60 0 V29 M60 91 V120 M0 60 H29 M91 60 H120 M0 0 L22 22 M120 0 L98 22 M0 120 L22 98 M120 120 L98 98'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: .07;
  inset: -20% 0;
}

/* ─────────────── Global FX ─────────────── */
#dust {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 50; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%; z-index: 51; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi), var(--gold));
  box-shadow: 0 0 12px var(--gold);
}

.cursor { position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none; display: none; mix-blend-mode: difference; }
.cursor span {
  display: block; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border: 1px solid var(--gold-light); border-radius: 50%;
  transition: transform .35s var(--ease-out), background .35s;
}
.cursor.is-hover span { transform: scale(2.1); background: color-mix(in srgb, var(--gold-light) 30%, transparent); }
@media (pointer: fine) { .cursor { display: block; } }

.music-btn {
  position: fixed; right: 16px; top: calc(14px + env(safe-area-inset-top)); z-index: 65;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--night) 55%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.6);
  transition: opacity .6s, transform .6s var(--ease-out);
}
.music-btn.is-shown { opacity: 1; transform: none; }
.music-btn .bars { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.music-btn .bars i { width: 2.5px; height: 4px; background: var(--gold-light); border-radius: 2px; transition: height .3s; }
.music-btn.is-playing .bars i { animation: eq 1s ease-in-out infinite; }
.music-btn.is-playing .bars i:nth-child(2) { animation-delay: -.3s; }
.music-btn.is-playing .bars i:nth-child(3) { animation-delay: -.6s; }
.music-btn.is-playing .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }

.float-cta {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 64;
  transform: translate(-50%, 140%);
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-ui); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  color: var(--night);
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, var(--gold-deep));
  background-size: 220% 100%;
  animation: shimmerBg 5s linear infinite;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.2) inset;
  transition: transform .7s var(--ease-out);
  white-space: nowrap;
}
.float-cta.is-shown { transform: translate(-50%, 0); }
@keyframes shimmerBg { from { background-position: 100% 0; } to { background-position: -120% 0; } }

.toast {
  position: fixed; left: 50%; top: calc(20px + env(safe-area-inset-top)); z-index: 90;
  transform: translate(-50%, -150%);
  padding: 10px 20px; border-radius: 999px;
  background: var(--night); color: var(--gold-light);
  border: 1px solid var(--line);
  font-family: var(--f-ui); font-size: 13px; letter-spacing: .08em;
  transition: transform .5s var(--ease-out), opacity .3s;
  pointer-events: none;
  opacity: 0;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ─────────────── Buttons ─────────────── */
.btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-ui); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: transparent;
  transition: transform .4s var(--ease-out), box-shadow .4s, background .4s, color .4s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--ghost { color: var(--fg); }
.btn--ghost:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.btn--gold {
  color: var(--night); border-color: transparent;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, var(--gold-deep));
  background-size: 220% 100%;
  animation: shimmerBg 5s linear infinite;
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--gold-deep) 90%, transparent);
}
.btn--gold:hover { box-shadow: 0 18px 40px -12px var(--gold-deep); }
.btn--block { width: 100%; }
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.45); transform: scale(0);
  animation: ripple .7s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.link-btn {
  background: none; border: 0; padding: 8px 0;
  font-family: var(--f-ui); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--line);
  margin-top: 18px;
}

/* ═══════════════════════ GATE ═══════════════════════ */
.gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  background: radial-gradient(120% 80% at 50% 40%, var(--night-3) 0%, var(--night) 60%, #06120F 100%);
  color: var(--ivory);
  padding: 24px;
  overflow: hidden;
}
.gate__pattern { position: absolute; inset: 0; opacity: .08; background-image: inherit; }
.gate__pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C9A45C' stroke-width='.8'%3E%3Crect x='38' y='38' width='44' height='44'/%3E%3Crect x='38' y='38' width='44' height='44' transform='rotate(45 60 60)'/%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3Cpath d='M60 0 V29 M60 91 V120 M0 60 H29 M91 60 H120 M0 0 L22 22 M120 0 L98 22 M0 120 L22 98 M120 120 L98 98'/%3E%3C/g%3E%3C/svg%3E");
  animation: drift 60s linear infinite;
}
@keyframes drift { to { background-position: 120px 240px; } }
.gate__glow {
  position: absolute; width: 90vmax; height: 90vmax; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 26%, transparent) 0%, transparent 55%);
  filter: blur(30px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; transform: translate(-50%, -50%) scale(1.08); } }

.gate__top { position: relative; text-align: center; min-height: 80px; }
.gate__to { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.gate__to-label { font-style: italic; color: #CFC4AE; font-size: 17px; }
.gate__to-name { font-family: var(--f-script); font-size: clamp(34px, 10vw, 48px); line-height: 1.1; color: var(--gold-light); }

.envelope {
  position: relative;
  width: min(84vw, 420px);
  aspect-ratio: 1.42;
  perspective: 1200px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.5));
}
.env__back, .env__front, .env__flap, .env__letter { position: absolute; inset: 0; }
.env__back {
  border-radius: 6px;
  background: linear-gradient(160deg, #EFE5D1, #E2D4B8);
}
.env__letter {
  inset: 6% 6% 4% 6%;
  z-index: 2;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  display: grid; place-items: center;
  overflow: hidden;
}
.env__letter::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 2px;
}
.env__letter-inner { text-align: center; color: var(--ink); padding-top: 10%; }
.env__mono { width: 56px; height: 56px; margin: 0 auto 8px; color: var(--gold-deep); }
.env__letter-names { font-family: var(--f-script); font-size: clamp(26px, 7vw, 34px); margin: 0; line-height: 1.2; }
.env__letter-names em { font-family: var(--f-display); font-style: italic; color: var(--gold-deep); font-size: .7em; }
.env__letter-date { font-family: var(--f-caps); font-size: 11px; letter-spacing: .3em; margin: 6px 0 0; color: var(--ink-soft); }

.env__front {
  z-index: 3;
  border-radius: 6px;
  background:
    linear-gradient(to top right, #E9DDC4 49.6%, transparent 50%) left bottom / 50.5% 100% no-repeat,
    linear-gradient(to top left,  #E4D6BA 49.6%, transparent 50%) right bottom / 50.5% 100% no-repeat,
    linear-gradient(to top, #F1E7D3 0%, #EADFC8 100%);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}
.env__front::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(201,164,92,.05) 0 2px, transparent 2px 6px);
}
.env__flap {
  z-index: 4;
  height: 62%;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.env__flap-inner {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #F4ECDC, #E6D9BE);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 6px 6px 0 0;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.12));
  backface-visibility: hidden;
}
.env__flap::after { /* flap inner face */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, #D9CAA9, #CDBB95);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: rotateX(180deg);
  backface-visibility: hidden;
}

.seal {
  position: absolute; z-index: 6;
  left: 50%; top: 62%;
  width: clamp(78px, 22vw, 104px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0; padding: 0; background: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  animation: sealPulse 2.4s ease-in-out infinite;
}
.seal::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid var(--gold-light); opacity: 0;
  animation: sealRing 2.4s ease-out infinite;
}
@keyframes sealPulse { 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes sealRing { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.seal__half { position: absolute; inset: 0; }
.seal__half svg { width: 100%; height: 100%; }
.seal__half--l { clip-path: polygon(0 0, 52% 0, 46% 22%, 55% 40%, 45% 58%, 54% 78%, 48% 100%, 0 100%); }
.seal__half--r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%, 54% 78%, 45% 58%, 55% 40%, 46% 22%); }

.gate__hint {
  position: relative;
  font-family: var(--f-ui); font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-light); margin: 0;
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint { 50% { opacity: .35; } }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  height: 100svh; min-height: 560px;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero__glow {
  background:
    radial-gradient(50% 40% at 50% 55%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, var(--night-3), transparent 70%);
}

.lanterns { z-index: 2; }
.lantern { position: absolute; top: 0; transform-origin: 50% 0; }
.lantern svg { width: 100%; height: auto; overflow: visible; }
.lantern__rope { display: block; width: 1px; margin: 0 auto; background: linear-gradient(var(--gold-deep), var(--gold)); }
.lantern--1 { left: 9%;  width: clamp(34px, 9vw, 58px); animation: swing 5.5s ease-in-out infinite; }
.lantern--1 .lantern__rope { height: 12vh; }
.lantern--2 { right: 10%; width: clamp(40px, 11vw, 70px); animation: swing 6.5s ease-in-out -2s infinite; }
.lantern--2 .lantern__rope { height: 6vh; }
.lantern--3 { left: 76%; width: clamp(24px, 6vw, 40px); animation: swing 4.8s ease-in-out -1s infinite; opacity: .6; filter: blur(1px); }
.lantern--3 .lantern__rope { height: 20vh; }
@keyframes swing { 0%,100% { transform: rotate(3.5deg); } 50% { transform: rotate(-3.5deg); } }
.lantern__flame { animation: flicker 2.2s ease-in-out infinite; transform-origin: 30px 60px; }
@keyframes flicker { 0%,100% { opacity: 1; transform: scale(1); } 30% { opacity: .75; transform: scale(.92, .96); } 60% { opacity: .95; transform: scale(1.05); } }

.arch-wrap { display: grid; place-items: center; z-index: 3; }
.arch {
  width: min(80vw, 480px, 60svh);
  height: auto;
  overflow: visible;
  transform-origin: 50% 58%;
  will-change: transform;
}
.arch__fill { fill: url(#dawnGrad); opacity: 0; }
.arch__line { fill: none; stroke: url(#goldGrad); vector-effect: non-scaling-stroke; }
.arch__line--outer { stroke-width: 1.6; }
.arch__line--inner { stroke-width: .8; opacity: .8; }
.arch__line--deco { stroke-width: .5; opacity: 0; }
.arch__key { fill: url(#goldGrad); }

.hero__content { position: relative; inset: auto; z-index: 4; text-align: center; padding: 0 var(--gutter); pointer-events: auto; margin-top: 8svh; }
.bismillah {
  font-family: var(--f-ar); font-size: clamp(22px, 6vw, 30px);
  color: var(--gold-light); margin: 0 0 22px; line-height: 1.6;
}
.hero__eyebrow { margin-bottom: 4px; }
.hero__names { margin: 0; font-weight: 400; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.hero__names .script {
  font-size: clamp(64px, 19vw, 118px);
  line-height: 1.15;
  padding: 0 .15em;
  color: var(--ivory);
  text-shadow: 0 0 40px color-mix(in srgb, var(--gold) 35%, transparent);
}
.hero__amp {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(34px, 9vw, 56px);
  color: var(--gold); margin: -.15em 0 -.25em;
}
/* "ink" writing reveal — a soft mask sweeps left → right */
.ink {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
          mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.ink.is-written { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 2s var(--ease-out), mask-position 2s var(--ease-out); }

.hero__date { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.hero__date .rule { width: 42px; height: 1px; background: var(--gold); transform-origin: center; }
.hero__date-text { font-family: var(--f-caps); letter-spacing: .3em; font-size: clamp(14px, 3.8vw, 18px); color: var(--gold-light); }
.hero__city { margin-top: 12px; color: #CFC4AE; }

.scroll-hint {
  position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-ui); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-light);
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after {
  content: ""; position: absolute; left: -1px; top: -16px; width: 3px; height: 16px;
  background: var(--gold-light); border-radius: 2px;
  animation: drip 1.8s var(--ease-out) infinite;
}
@keyframes drip { to { transform: translateY(66px); } }

.hero__after {
  position: absolute; z-index: 6; left: 0; right: 0; top: 64%;
  padding: 0 var(--gutter);
  text-align: center; color: var(--ink);
  visibility: hidden;
}
.hero__after .display { font-style: italic; }
.hero__after .lead { color: var(--ink-soft); }

/* ═══════════════════════ BÊNÇÃO ═══════════════════════ */
.ornament { width: 34px; height: 34px; margin: 0 auto 26px; fill: var(--gold); }
.ornament svg, .floaty svg { width: 100%; height: 100%; }
.floaty { inset: auto; fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .45; }
.floaty svg { overflow: visible; }
.floaty--a { width: 80px; height: 80px; top: 12%; left: -20px; }
.floaty--b { width: 50px; height: 50px; bottom: 14%; right: 6%; }
.floaty--c { width: 110px; height: 110px; top: 6%; right: -30px; }
.bencao .display { font-style: italic; }

.bencao { padding-top: 8px; }
.parents {
  display: grid; grid-template-columns: 1fr; gap: 26px;
  margin: 0 0 40px;
}
.parents__col .eyebrow { margin-bottom: 10px; }
.parents__name { font-size: clamp(21px, 5.6vw, 25px); margin: 0; line-height: 1.35; }
.parents__divider { display: flex; align-items: center; justify-content: center; gap: 12px; }
.parents__divider span { width: 60px; height: 1px; background: var(--line); }
.parents__divider svg { width: 14px; height: 14px; fill: var(--gold); }
@media (min-width: 640px) {
  .parents { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .parents__divider { flex-direction: column; }
  .parents__divider span { width: 1px; height: 50px; }
}
.couple-full {
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(42px, 12vw, 66px); line-height: 1.2;
}
.couple-full__amp { font-family: var(--f-display); font-style: italic; font-size: .5em; color: var(--gold); }

/* ═══════════════════════ VERSE ═══════════════════════ */
.verse { min-height: 100svh; }
.verse__pin { min-height: 100svh; display: grid; place-items: center; padding: 80px 0; }
.verse__glow { background: radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%); }
.verse__ar {
  font-family: var(--f-ar); font-size: clamp(30px, 8vw, 44px); line-height: 2;
  color: var(--gold-light); margin: 0 0 30px; opacity: .9;
}
.verse__pt {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(38px, 11vw, 64px); line-height: 1.2;
  margin: 0 0 28px;
}
.verse__pt .w { opacity: .14; transition: none; }
.verse__ref { color: var(--gold); }

/* ═══════════════════════ DATE ═══════════════════════ */
.date-sec { overflow: hidden; }
.date-sec__bignum {
  display: grid; place-items: center;
  font-family: var(--f-caps);
  font-size: clamp(260px, 90vw, 620px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--gold) 28%, transparent);
  opacity: .8;
}
.bigdate { margin: 18px 0 40px; }
.bigdate__weekday { display: block; font-style: italic; font-size: clamp(22px, 6vw, 28px); color: var(--muted); }
.bigdate__row { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 28px); }
.bigdate__side {
  font-family: var(--f-caps); font-size: clamp(13px, 3.6vw, 17px); letter-spacing: .28em; text-transform: uppercase;
  padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 5.6em;
}
.bigdate__day { font-family: var(--f-caps); font-size: clamp(96px, 30vw, 170px); line-height: 1; font-weight: 400; display: inline-flex; overflow: hidden; }
.odo-digit { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; }
.odo-strip span { height: 1em; line-height: 1; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 440px; margin: 0 auto; }
.cd {
  position: relative;
  padding: 16px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 60%, #fff);
  box-shadow: 0 16px 30px -22px rgba(60,40,10,.4);
  perspective: 300px;
}
.cd__num {
  font-family: var(--f-caps); font-size: clamp(28px, 8vw, 40px); line-height: 1.1; color: var(--ink);
  overflow: hidden; height: 1.1em; position: relative;
}
.cd__num span { position: absolute; inset: 0; }
.cd__lbl { font-family: var(--f-ui); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin-top: 4px; }

/* ═══════════════════════ PROGRAM ═══════════════════════ */
.timeline { position: relative; margin-top: 50px; padding: 10px 0; }
.timeline__line { position: absolute; left: 50%; top: 40px; bottom: 60px; width: 1px; margin-left: -.5px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; width: 2px; left: -.5px; background: linear-gradient(var(--gold-hi), var(--gold), var(--gold-deep)); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 10px var(--gold); }
.tl-item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 20px 0 60px; }
.tl-item:last-child { padding-bottom: 10px; }
.tl-node {
  position: relative; z-index: 2;
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--line);
}
.tl-node svg { width: 40px; height: 40px; overflow: visible; }
.tl-node::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.tl-node.is-drawn::after { animation: sealRing 2.6s ease-out infinite; }
.tl-node svg { stroke-dasharray: 200; stroke-dashoffset: 200; }
.tl-node.is-drawn svg { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-out); }
.tl-card {
  position: relative; z-index: 2;
  margin-top: 22px; padding: 26px 24px 24px;
  width: 100%;
  background: color-mix(in srgb, var(--paper) 70%, #fff);
  border: 1px solid var(--line);
  border-radius: 180px 180px 18px 18px;   /* arch-topped card */
  box-shadow: 0 30px 50px -40px rgba(60,40,10,.6);
}
.tl-time { font-family: var(--f-caps); font-size: clamp(44px, 13vw, 64px); line-height: 1; margin: 18px 0 6px; }
.tl-title { font-family: var(--f-display); font-style: italic; font-size: clamp(26px, 7vw, 32px); margin: 0 0 8px; }
.tl-desc { color: var(--muted); margin: 0 0 12px; font-size: 17px; }
.tl-place { font-family: var(--f-ui); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); display: inline-flex; gap: 6px; align-items: center; }
.tl-place svg { width: 14px; height: 14px; }

/* ═══════════════════════ VENUES ═══════════════════════ */
.venues__glow { background: radial-gradient(70% 50% at 50% 40%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%); }
.venue-list { display: grid; gap: 64px; margin-top: 40px; }
.venue__tag { font-family: var(--f-ui); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.venue__name { font-family: var(--f-display); font-size: clamp(28px, 8vw, 38px); font-weight: 400; margin: 6px 0 4px; line-height: 1.15; }
.venue__addr { color: var(--muted); margin: 0 0 20px; font-style: italic; }
.venue__map {
  position: relative; display: block;
  width: 100%;
  aspect-ratio: 3 / 3.6;
  max-height: 64svh;
  margin: 0 auto;
  border-radius: 999px 999px 18px 18px;       /* map inside an arch */
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px var(--night), 0 0 0 7px var(--line), 0 40px 60px -30px #000;
  background: var(--night-2);
  clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px);
}
.venue__map iframe {
  position: absolute; inset: -10% 0; width: 100%; height: 120%;
  border: 0;
  filter: grayscale(.85) sepia(.35) contrast(1.05) brightness(.9);
}
.venue__map-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--night) 55%, transparent), transparent 30%, transparent 75%, color-mix(in srgb, var(--night) 45%, transparent));
}
.venue__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.venue__btns .btn { min-height: 44px; padding: 0 18px; font-size: 11px; }

/* ═══════════════════════ GIFTS ═══════════════════════ */
.gift-box { width: 160px; margin: 30px auto 30px; }
.gift-env { width: 100%; height: auto; overflow: visible; }
.ge-back { fill: #E9DDC4; stroke: var(--gold); stroke-width: 1.2; }
.ge-card rect { fill: var(--night-2); stroke: var(--gold); stroke-width: 1; }
.ge-card path { stroke: var(--gold-light); stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
.ge-card circle { fill: none; stroke: var(--gold-light); stroke-width: 1.2; }
.ge-front { fill: color-mix(in srgb, var(--paper) 50%, #fff); stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }
.ge-flap { fill: #EFE4CD; stroke: var(--gold); stroke-width: 1.2; stroke-linejoin: round; }
.ge-seal { fill: var(--night-2); stroke: var(--gold); stroke-width: 1; }

.accounts { display: grid; gap: 14px; margin-top: 30px; text-align: left; }
.acct {
  position: relative; overflow: hidden;
  padding: 20px 20px 16px;
  border-radius: 18px;
  color: var(--ivory);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 55%),
    linear-gradient(145deg, var(--night-3), var(--night) 70%);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 24px 40px -26px rgba(0,0,0,.7);
}
.acct::after { /* sheen */
  content: ""; position: absolute; inset: -50%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: sheen 5s ease-in-out infinite;
  pointer-events: none;
}
.acct:nth-child(2)::after { animation-delay: 1.2s; }
.acct:nth-child(3)::after { animation-delay: 2.4s; }
@keyframes sheen { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.acct__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.acct__bank { font-family: var(--f-caps); font-size: 18px; letter-spacing: .12em; color: var(--gold-light); }
.acct__holder { font-style: italic; font-size: 15px; color: #CFC4AE; text-align: right; }
.acct__row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid rgba(201,164,92,.22);
}
.acct__k { font-family: var(--f-ui); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: block; }
.acct__v { font-family: var(--f-ui); font-size: 16px; letter-spacing: .06em; font-variant-numeric: tabular-nums; word-break: break-all; }
.copy {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(201,164,92,.5); background: rgba(255,255,255,.04);
  display: grid; place-items: center; color: var(--gold-light);
  transition: background .3s, transform .3s var(--ease-out);
}
.copy svg { width: 17px; height: 17px; }
.copy:active { transform: scale(.9); }
.copy.is-done { background: var(--gold); color: var(--night); }

/* ═══════════════════════ RSVP ═══════════════════════ */
.rsvp__glow { background: radial-gradient(70% 45% at 50% 20%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%); }
.rsvp .display { font-style: italic; }
.rsvp__seats { font-style: italic; color: var(--gold-light); font-size: 19px; margin: -8px 0 24px; }
.notice {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  padding: 18px 20px; margin: 0 0 34px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.notice__icon { flex: none; width: 34px; height: 34px; fill: var(--gold); animation: spin 24s linear infinite; }
.notice__icon svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice__title { font-family: var(--f-ui); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin: 2px 0 6px; }
.notice__text { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--muted); }

.rsvp-form { display: grid; gap: 18px; text-align: left; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  padding: 24px 18px 10px;
  font: inherit; font-size: 18px; color: var(--fg);
  background: color-mix(in srgb, var(--ivory) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 14px;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
  resize: vertical;
}
.field textarea { min-height: 110px; }
.field label {
  position: absolute; left: 19px; top: 17px;
  font-family: var(--f-ui); font-size: 14px; letter-spacing: .04em; color: var(--muted);
  pointer-events: none; transform-origin: 0 0;
  transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 16%, transparent); background: color-mix(in srgb, var(--ivory) 8%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--gold); }

.choice { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.choice legend { font-family: var(--f-ui); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; padding: 0; }
.choice__opt { position: relative; display: block; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  font-size: 19px;
  transition: background .35s, border-color .35s, color .35s;
}
.choice__opt span::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 10px transparent;
  transition: box-shadow .35s var(--ease-out);
}
.choice__opt input:checked + span { background: color-mix(in srgb, var(--gold) 16%, transparent); border-color: var(--gold); }
.choice__opt input:checked + span::before { box-shadow: inset 0 0 0 5px var(--night), inset 0 0 0 10px var(--gold); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.stepper-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 18px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.stepper-wrap.is-off { opacity: .35; pointer-events: none; }
.stepper__label { font-family: var(--f-ui); font-size: 14px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--gold); background: none; color: var(--gold-light); font-size: 20px; line-height: 1;
}
.stepper button:disabled { opacity: .3; }
.stepper output { min-width: 36px; text-align: center; font-family: var(--f-caps); font-size: 24px; }

.form-error { color: #F0A58F; font-family: var(--f-ui); font-size: 14px; margin: 0; min-height: 1em; }

.rsvp-done { text-align: center; padding: 20px 0; }
.rsvp-done__check { width: 90px; height: 90px; margin: 0 auto 20px; }
.rsvp-done__check circle, .rsvp-done__check path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-done__check circle { stroke-dasharray: 227; stroke-dashoffset: 227; }
.rsvp-done__check path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.rsvp-done.is-anim circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-out); }
.rsvp-done.is-anim path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s .7s var(--ease-out); }

/* ═══════════════════════ FOOTER ═══════════════════════ */
.footer { padding: 120px 0 calc(110px + env(safe-area-inset-bottom)); text-align: center; overflow: hidden; }
.footer__mono { width: 120px; height: 120px; margin: 0 auto 26px; color: var(--gold); }
.footer__insha { font-size: clamp(44px, 12vw, 64px); margin: 0 0 16px; line-height: 1.2; }
.footer__hash { font-family: var(--f-caps); letter-spacing: .12em; font-size: 18px; margin: 12px 0 10px; display: inline-block; }

/* ═══════════════════════ Desktop niceties ═══════════════════════ */
@media (min-width: 900px) {
  body { font-size: 19px; }
  .timeline__line { left: 50%; }
}

/* ═══════════════════════ GOLD-FORWARD LAYER ═══════════════════════
   Gold leads; emerald and ivory support it. */
:root {
  --foil: linear-gradient(110deg, #5E4312 0%, #8A6524 14%, #C9A24E 26%, #E6CC8C 33%, #B8913F 42%, #7A5818 58%, #B38A3E 74%, #D2AE62 86%, #6E4E17 100%);
  --foil-soft: linear-gradient(135deg, #F6E6B4 0%, #E3C47E 30%, #C9A45C 55%, #EBD39A 80%, #B8913F 100%);
  --photo-filter: none;
}
.foil {
  background-image: var(--foil);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: foil 9s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 0; } to { background-position: 100% 0; } }
/* per-character foil (split text): each char shows its own slice of one continuous gradient */
.foil-c {
  background-image: var(--foil);
  background-size: var(--fw, 100%) 100%;
  background-position: var(--fx, 0%) 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__names .script.foil { color: transparent; text-shadow: none; filter: drop-shadow(0 6px 18px rgba(184, 145, 63, .22)); }
/* (One deep foil everywhere now that every section is ivory paper.) */
.couple-full .script, .footer__insha { padding: 0 .12em; }

/* Gold frame around the viewport, like a foil-pressed card edge */
.frame {
  position: fixed; z-index: 58; pointer-events: none;
  inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  border-radius: 3px;
}
.frame::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.frame i {
  position: absolute; width: 9px; height: 9px;
  background: var(--foil-soft);
  transform: rotate(45deg);
  box-shadow: 0 0 8px color-mix(in srgb, var(--gold) 60%, transparent);
}
.frame i:nth-child(1) { top: -5px; left: -5px; }
.frame i:nth-child(2) { top: -5px; right: -5px; }
.frame i:nth-child(3) { bottom: -5px; left: -5px; }
.frame i:nth-child(4) { bottom: -5px; right: -5px; }

/* Gold envelope, emerald liner */
.env__back { background: linear-gradient(160deg, #C9A452, #8E6A27); }
.env__letter { background: var(--ivory); box-shadow: 0 -4px 20px rgba(0,0,0,.25); }
.env__letter::before { border: 1.5px solid transparent; background: var(--foil) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.env__front {
  background:
    linear-gradient(to top right, #D8B866 49.6%, transparent 50%) left bottom / 50.5% 100% no-repeat,
    linear-gradient(to top left,  #CBA955 49.6%, transparent 50%) right bottom / 50.5% 100% no-repeat,
    linear-gradient(to top, #E9CF88 0%, #D9BA6C 100%);
}
.env__front::after {
  background: linear-gradient(115deg, transparent 35%, rgba(255, 248, 220, .45) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat,
              repeating-linear-gradient(45deg, rgba(120, 90, 30, .08) 0 2px, transparent 2px 6px);
  animation: envSheen 4.5s ease-in-out infinite;
}
@keyframes envSheen { 0%, 40% { background-position: -200% 0, 0 0; } 100% { background-position: 300% 0, 0 0; } }
.env__flap-inner { background: linear-gradient(to bottom, #F3DE9F, #C9A452 90%); filter: drop-shadow(0 3px 3px rgba(60, 40, 10, .35)); }
.env__flap::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4 L24 16 L36 20 L24 24 L20 36 L16 24 L4 20 L16 16Z' fill='none' stroke='%23C9A45C' stroke-width='.8' opacity='.6'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, var(--night-3), var(--night));
}

/* Light sections: champagne paper with stronger gold geometry */
.paper-pattern { opacity: .5; }

/* Countdown: emerald tiles with foil edges and foil numerals */
.cd {
  background: linear-gradient(160deg, var(--night-3), var(--night)) padding-box, var(--foil) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 20px 34px -22px rgba(60, 40, 10, .8);
}
.cd__num span { background-image: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd__lbl { color: var(--gold-light); }
.bigdate__side { border-color: var(--gold); color: var(--gold-deep); font-weight: 500; }
.bigdate__weekday { color: var(--gold-deep); }

/* Program: foil-edged arch cards, gold medallions */
.tl-card {
  background: linear-gradient(color-mix(in srgb, var(--ivory) 80%, #fff), var(--ivory)) padding-box, var(--foil) border-box;
  border: 1.5px solid transparent;
}
.tl-node {
  background: var(--foil-soft); border: 0; color: var(--night);
  box-shadow: 0 0 0 7px var(--paper), 0 0 0 8.5px var(--gold), 0 10px 30px -6px rgba(154, 116, 48, .8);
}
.tl-place { color: var(--gold-deep); font-weight: 500; }
.timeline__line { background: color-mix(in srgb, var(--gold) 60%, transparent); }

/* Venues */
.venue__map { border: 0; box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px var(--night), 0 0 0 8.5px color-mix(in srgb, var(--gold) 60%, transparent), 0 40px 60px -30px #000; }

/* Gift cards become gold cards */
.acct {
  color: var(--night);
  background: var(--foil-soft);
  border: 0;
  box-shadow: 0 24px 40px -24px rgba(90, 60, 10, .9), inset 0 0 0 1px rgba(255, 245, 210, .6);
}
.acct::after { background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%); }
.acct__bank { color: var(--night); font-weight: 600; }
.acct__holder { color: #3C3016; }
.acct__row { border-top-color: rgba(7, 19, 15, .18); }
.acct__k { color: #5A4516; }
.acct__v { color: var(--night); font-weight: 500; }
.copy { border-color: rgba(7, 19, 15, .35); background: rgba(255, 255, 255, .25); color: var(--night); }
.copy.is-done { background: var(--night); color: var(--gold-light); }
.ge-front, .ge-back { fill: #E6C97F; }
.ge-flap { fill: #F1DB9C; }

/* RSVP */
.notice { background: color-mix(in srgb, var(--gold) 12%, transparent); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.field input, .field textarea, .choice__opt span, .stepper-wrap { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }

/* ─────────────── Photo backgrounds ─────────────── */
.photos { overflow: hidden; }
.photos img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--photo-filter);
  opacity: 0;
}
.photos img.is-on { opacity: 1; }
.verse__photo, .rsvp__photo { inset: -12% 0; }
.verse, .rsvp { overflow: hidden; }
.photo-veil {
  background:
    radial-gradient(90% 70% at 50% 50%, rgba(7, 19, 15, .15), rgba(7, 19, 15, .8) 80%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.photo-veil::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201, 164, 92, .35), transparent 55%, rgba(201, 164, 92, .2));
  mix-blend-mode: overlay;
}
.hero__veil { background: radial-gradient(75% 60% at 50% 50%, rgba(7, 19, 15, .3), rgba(7, 19, 15, .78) 90%), linear-gradient(to bottom, rgba(7,19,15,.5), transparent 28%, transparent 72%, var(--night) 100%); }
.verse__photo img, .rsvp__photo img { transform: scale(1.05); }
.rsvp__photo img { --photo-filter: sepia(.4) saturate(.8) brightness(.35); }

/* ─────────────── Day-of teaser ─────────────── */
.dayof__glow { background: radial-gradient(60% 45% at 50% 60%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%); }
.dayof__cards { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 640px) { .dayof__cards { grid-template-columns: 1fr 1fr; } }
.dayof-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 44px 22px 26px;
  border-radius: 200px 200px 20px 20px;
  text-decoration: none; color: var(--fg);
  background: linear-gradient(170deg, var(--night-3), var(--night) 75%) padding-box, var(--foil) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 50px -30px #000;
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.dayof-card__icon { width: 66px; height: 66px; color: var(--gold-light); transition: opacity .6s, filter .6s; }
.dayof-card__icon svg { width: 100%; height: 100%; }
.dayof-card__title { font-family: var(--f-display); font-style: italic; font-size: 27px; line-height: 1.2; transition: opacity .6s; }
.dayof-card__sub { font-size: 16px; color: var(--muted); line-height: 1.45; max-width: 18em; transition: opacity .6s; }
.dayof-card__badge {
  margin-top: 10px; padding: 7px 16px; border-radius: 999px;
  font-family: var(--f-ui); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--night); background: var(--foil-soft);
}
.dayof-card__lock { position: absolute; top: 20px; right: 50%; margin-right: -12px; width: 24px; color: var(--gold); display: none; }
.dayof-card__lock svg { width: 100%; height: auto; }
.dayof-card.is-locked { cursor: pointer; }
.dayof-card.is-locked .dayof-card__icon { opacity: .35; filter: blur(1px); }
.dayof-card.is-locked .dayof-card__lock { display: block; animation: lockNudge 4s ease-in-out infinite; }
.dayof-card.is-locked .dayof-card__icon { margin-top: 18px; }
@keyframes lockNudge { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }
.dayof-card.is-open { box-shadow: 0 0 0 0 rgba(201, 164, 92, .6), 0 30px 50px -30px #000; animation: openGlow 2.4s ease-out infinite; }
.dayof-card.is-open:hover { transform: translateY(-4px); }
@keyframes openGlow { 0% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .55), 0 30px 50px -30px #000; } 100% { box-shadow: 0 0 0 18px rgba(201, 164, 92, 0), 0 30px 50px -30px #000; } }

/* ═══════════════════════ IVORY LAYER (2026-10) ═══════════════════════
   Everything that used to paint emerald: the gate, photo veils, cards, map frame, form fields.
   Matches the Nikkah invite (v3): clear ivory paper, deep gold foil, gold wax seal with the C&S. */
.eyebrow { color: var(--gold-deep); }
.link-btn { color: var(--gold-deep); }
.form-error { color: var(--danger); }

/* Gate: ivory room, cream envelope with a gold liner, gold wax seal */
.gate {
  background: radial-gradient(120% 80% at 50% 40%, #FFFDF8 0%, var(--paper) 55%, #EFE5CF 100%);
  color: var(--ink);
}
.gate__pattern { opacity: .13; }
.gate__glow { background: radial-gradient(circle, color-mix(in srgb, var(--gold) 18%, transparent) 0%, transparent 55%); }
.gate__to-label { color: var(--ink-soft); }
.envelope { filter: drop-shadow(0 30px 34px rgba(90, 64, 20, .28)); }
.env__back { background: linear-gradient(160deg, #EADFC6, #D9C9A6); }
.env__letter { background: #FFFDF8; box-shadow: 0 -4px 20px rgba(90, 64, 20, .14); }
.env__front {
  background:
    linear-gradient(to top right, #F1E8D6 49.6%, transparent 50%) left bottom / 50.5% 100% no-repeat,
    linear-gradient(to top left,  #ECE1CB 49.6%, transparent 50%) right bottom / 50.5% 100% no-repeat,
    linear-gradient(to top, #F7F0E2 0%, #EFE5D1 100%);
}
.env__front::after {
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat,
              repeating-linear-gradient(45deg, rgba(184, 145, 63, .05) 0 2px, transparent 2px 6px);
}
.env__flap-inner { background: linear-gradient(to bottom, #FAF4E6, #E9DDC2 90%); filter: drop-shadow(0 3px 3px rgba(90, 64, 20, .22)); }
.env__flap::after {   /* liner: gold foil with the khatam pattern */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4 L24 16 L36 20 L24 24 L20 36 L16 24 L4 20 L16 16Z' fill='none' stroke='%237A5818' stroke-width='.8' opacity='.45'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, #E9CF88, #B8913F);
}
.seal { filter: drop-shadow(0 6px 10px rgba(90, 64, 20, .35)); }
.seal::before { border-color: var(--gold); }

/* Fixed UI */
.music-btn { background: color-mix(in srgb, #FFFDF8 70%, transparent); }
.music-btn .bars i { background: var(--gold-deep); }
.cursor { mix-blend-mode: normal; }
.cursor span { border-color: var(--gold); }
.cursor.is-hover span { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.toast { background: var(--night); color: var(--gold-hi); }
.grain { opacity: .045; }

/* Photo sections: photos washed into the paper instead of darkened */
.photo-veil {
  background:
    radial-gradient(90% 70% at 50% 50%, rgba(251, 247, 238, .55), rgba(251, 247, 238, .9) 80%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.photo-veil::after { background: linear-gradient(135deg, rgba(201, 164, 92, .22), transparent 55%, rgba(201, 164, 92, .14)); }
.hero__veil {
  background:
    radial-gradient(75% 60% at 50% 50%, rgba(251, 247, 238, .6), rgba(251, 247, 238, .9) 90%),
    linear-gradient(to bottom, rgba(251, 247, 238, .7), transparent 28%, transparent 72%, var(--paper) 100%);
}
.hero__pattern, .verse__pattern { opacity: .1; }
.hero__glow {
  background:
    radial-gradient(50% 40% at 50% 55%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%);
}

/* Hero + verse text */
.bismillah, .verse__ar { color: var(--gold-deep); }
.hero__amp { color: var(--gold); }
.hero__date-text { color: var(--gold-deep); }
.hero__city { color: var(--ink-soft); }
.scroll-hint { color: var(--gold-deep); }
.scroll-hint i::after { background: var(--gold); }

/* Countdown tiles: ivory with a foil edge */
.cd {
  background: linear-gradient(165deg, #FFFDF8, #F5EDDC) padding-box, var(--foil) border-box;
  box-shadow: 0 20px 34px -24px rgba(90, 64, 20, .55);
}
.cd__lbl { color: var(--gold-deep); }

/* Venue map in its arch, framed by paper instead of night */
.venue__tag { color: var(--gold-deep); }
.venue__map {
  background: var(--night-3);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px var(--paper), 0 0 0 8.5px color-mix(in srgb, var(--gold) 60%, transparent), 0 40px 60px -34px rgba(90, 64, 20, .45);
}
.venue__map iframe { filter: grayscale(.8) sepia(.3) contrast(.95) brightness(1.04); }
.venue__map-veil { background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 45%, transparent), transparent 30%, transparent 78%, color-mix(in srgb, var(--paper) 35%, transparent)); }

/* Gift envelope illustration */
.ge-card rect { fill: #FFFDF8; }
.ge-card path, .ge-card circle { stroke: var(--gold); }
.ge-seal { fill: url(#waxGrad); stroke: var(--gold-deep); }

/* RSVP */
.rsvp__seats { color: var(--gold-deep); }
.notice__title { color: var(--gold-deep); }
.field input, .field textarea { background: color-mix(in srgb, #FFFFFF 65%, transparent); }
.field input:focus, .field textarea:focus { background: #FFFFFF; }
.choice__opt input:checked + span::before { box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 10px var(--gold); }
.stepper button { color: var(--gold-deep); }

/* Day-of teaser cards */
.dayof-card {
  background: linear-gradient(170deg, #FFFDF8, #F5EDDC 75%) padding-box, var(--foil) border-box;
  box-shadow: 0 30px 50px -34px rgba(90, 64, 20, .5);
}
.dayof-card__icon { color: var(--gold-deep); }
.dayof-card.is-open { animation-name: openGlowIvory; }
@keyframes openGlowIvory {
  0% { box-shadow: 0 0 0 0 rgba(184, 145, 63, .5), 0 30px 50px -34px rgba(90, 64, 20, .5); }
  100% { box-shadow: 0 0 0 18px rgba(184, 145, 63, 0), 0 30px 50px -34px rgba(90, 64, 20, .5); }
}

/* ═══════════════════════ WHITE & GOLD LAYER (2026-10) ═══════════════════════
   Pure white page, gold letters. Photos appear only where they are the subject:
   behind the opening envelope, in the arch after Location, and under the thank-you. */
.bencao { padding-top: clamp(72px, 12vh, 120px); }
.bencao__head { margin-bottom: 40px; }
.bencao__head .display { font-style: italic; }
.hero__mono { width: clamp(70px, 18vw, 96px); height: clamp(70px, 18vw, 96px); margin: 0 auto 6px; color: var(--gold); }

/* Floating CTA fades instead of sliding in from below the screen: on iPhone, Safari's
   collapsing toolbar could freeze the slide halfway and leave the button cut in half. */
.float-cta {
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .6s;
  will-change: opacity, transform;
}
.float-cta.is-shown {
  transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility 0s;
}

/* Map in full colour */
.venue__map iframe { filter: saturate(1.1) contrast(1.03); }
.venue__map-veil { background: linear-gradient(to bottom, rgba(255, 255, 255, .16), transparent 20%, transparent 86%, rgba(255, 255, 255, .1)); }

/* ── Gate: the couple's photo, white monogram above, names + date below ── */
.gate { background: #1C1710; color: #fff; gap: clamp(14px, 3svh, 26px); }
.gate > * { position: relative; z-index: 1; }
.gate > .gate__photo, .gate > .gate__veil { position: absolute; inset: 0; z-index: 0; }
.gate__veil {
  background:
    radial-gradient(85% 65% at 50% 50%, rgba(20, 14, 6, .1), rgba(20, 14, 6, .5)),
    linear-gradient(to bottom, rgba(20, 14, 6, .45), transparent 32%, transparent 62%, rgba(20, 14, 6, .62));
}
.gate__top { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 0; }
.gate__mono { width: clamp(76px, 21vw, 106px); height: clamp(76px, 21vw, 106px); color: #fff; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .4)); }
.gate__to-label { color: rgba(255, 255, 255, .85); }
.gate__to-name { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.gate__names { text-align: center; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.gate__couple { font-family: var(--f-script); font-size: clamp(42px, 11.5vw, 62px); line-height: 1.1; margin: 0; padding: 0 .15em; }
.gate__couple em { font-family: var(--f-display); font-style: italic; font-size: .5em; }
.gate__date { font-family: var(--f-caps); font-size: clamp(13px, 3.6vw, 16px); letter-spacing: .34em; margin: 6px 0 0; }
.gate__hint { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* ── Photoreal envelope: one cotton-paper texture, each panel lit and shadowed on its own ── */
.envelope {
  --tex: url("../assets/gate/paper.jpg");
  width: min(80vw, 400px);
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .45)) drop-shadow(0 4px 6px rgba(0, 0, 0, .28));
}
.env__back {
  border-radius: 4px;
  background: linear-gradient(to bottom, rgba(90, 66, 30, .3), rgba(90, 66, 30, .1) 45%, rgba(90, 66, 30, .03)), var(--tex) 0 0 / 420px;
}
.env__letter {
  background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, .6)), var(--tex) 37px 11px / 420px;
  box-shadow: 0 -3px 14px rgba(70, 50, 20, .18);
}
.env__front { background: none; clip-path: none; box-shadow: none; border-radius: 4px; overflow: hidden; }
.env__front::after { display: none; }
.env__panel { position: absolute; inset: 0; }
.env__panel i { position: absolute; inset: 0; display: block; }
.env__panel--l { filter: drop-shadow(1.5px 0 1.6px rgba(70, 50, 20, .3)); }
.env__panel--l i {
  clip-path: polygon(0 0, 53% 54%, 0 100%);
  background: linear-gradient(100deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 65%), var(--tex) 0 0 / 420px;
}
.env__panel--r { filter: drop-shadow(-1.5px 0 1.6px rgba(70, 50, 20, .3)); }
.env__panel--r i {
  clip-path: polygon(100% 0, 47% 54%, 100% 100%);
  background: linear-gradient(260deg, rgba(60, 40, 10, .08), rgba(60, 40, 10, .02) 65%), var(--tex) 170px 60px / 420px;
}
.env__panel--b { filter: drop-shadow(0 -2px 2.2px rgba(70, 50, 20, .32)); }
.env__panel--b i {
  clip-path: polygon(0 100%, 0 96%, 50% 45%, 100% 96%, 100% 100%);
  background: linear-gradient(to top, rgba(60, 40, 10, .06), rgba(255, 255, 255, .16)), var(--tex) 90px 200px / 420px;
}
.env__flap { height: 58%; }
.env__flap-inner {
  clip-path: polygon(0 0, 100% 0, 52% 97%, 50% 100%, 48% 97%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .28), rgba(60, 40, 10, .07)), var(--tex) 250px 0 / 420px;
  filter: none;
}
.env__flap-shade {   /* soft shadow the closed flap casts on the pocket; hidden once the flap turns over */
  position: absolute; inset: 0; transform: translateY(4px); filter: blur(3px); opacity: .5;
  backface-visibility: hidden;
}
.env__flap-shade i { position: absolute; inset: 0; display: block; background: rgba(50, 35, 10, .7); clip-path: polygon(0 0, 100% 0, 52% 97%, 50% 100%, 48% 97%); }
.env__flap::after {  /* liner: textured gold */
  clip-path: polygon(0 0, 100% 0, 52% 97%, 50% 100%, 48% 97%);
  background: linear-gradient(165deg, #EED69A, #C9A24E 45%, #9C7630), var(--tex) 0 0 / 420px;
  background-blend-mode: multiply;
}
.seal { top: 57%; width: clamp(86px, 24vw, 112px); filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .42)); }
.seal::before { border-color: rgba(255, 255, 255, .7); }
.seal__half img { width: 100%; height: 100%; display: block; }
.seal.is-broken::before { display: none; }
.footer .link-btn { display: table; margin: 18px auto 0; }

/* ── Our photo, in a gold arch ── */
.nos { padding-top: 10px; }
.nos__frame {
  position: relative; margin: 0 auto;
  width: min(100%, 420px); aspect-ratio: 4 / 5;
  border-radius: 999px 999px 22px 22px; overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 8px #fff, 0 0 0 9.5px color-mix(in srgb, var(--gold) 55%, transparent), 0 40px 60px -34px rgba(90, 64, 20, .45);
}
.nos__photo { position: absolute; inset: 0; }

/* ── Thank-you over our photo ── */
.obrigado { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: #fff; }
.obrigado__photo { position: absolute; inset: 0; }
.obrigado__veil { background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 16%, rgba(20, 14, 6, 0) 42%, rgba(20, 14, 6, .6) 100%); }
.obrigado__content { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.obrigado__title {
  font-size: clamp(76px, 23vw, 140px); line-height: 1.05; margin: 0; padding: 0 .15em;
  color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.obrigado__text { font-style: italic; font-size: clamp(20px, 5.4vw, 27px); color: rgba(255, 255, 255, .94); margin: 6px 0 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }

/* ═══════════════════════ Reduced motion ═══════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .ink { -webkit-mask-image: none; mask-image: none; }
  .verse__pt .w { opacity: 1; }
  .venue__map { clip-path: none; }
  .tl-node svg * { stroke-dashoffset: 0; }
  .timeline__line i { transform: none; }
  .grain { display: none; }
}
