:root {
  --navy: #071a2d;
  --navy-2: #0b263d;
  --ink: #102435;
  --ivory: #f8f3e8;
  --gold: #d7b66d;
  --gold-bright: #ead391;
  --cream: #fffaf0;
  --line: rgba(215, 182, 109, .34);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ivory); background: var(--navy); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body.language-pending { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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"); }
.language-gate { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; min-height: 100svh; padding: 24px; text-align: center; background: linear-gradient(rgba(3,17,29,.76), rgba(3,17,29,.9)), url("hero-arch.png") center / cover no-repeat; transition: opacity .55s ease, visibility .55s ease; }
.language-gate.is-opened { opacity: 0; visibility: hidden; pointer-events: none; }
.language-gate-card { width: min(100%, 720px); padding: clamp(34px, 7vw, 68px); border: 1px solid var(--line); background: rgba(5,22,37,.88); box-shadow: 0 30px 90px rgba(0,0,0,.4); backdrop-filter: blur(12px); }
.language-gate-monogram { margin: 0 0 22px; color: var(--ivory); font-family: var(--serif); font-size: 2.2rem; letter-spacing: .08em; }
.language-gate-monogram span { color: var(--gold); font-style: italic; }
.language-gate h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 500; line-height: 1; }
.language-gate-prompt { margin: 14px 0 30px; color: rgba(255,255,255,.65); }
.language-gate-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.language-gate-options button { min-height: 82px; padding: 14px 10px; border: 1px solid rgba(215,182,109,.5); color: var(--ivory); background: rgba(255,255,255,.035); cursor: pointer; transition: transform .2s ease, color .2s ease, background .2s ease; }
.language-gate-options button:hover, .language-gate-options button:focus-visible { transform: translateY(-3px); color: var(--navy); background: var(--gold-bright); outline: none; }
.language-gate-options b, .language-gate-options span { display: block; }
.language-gate-options b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.language-gate-options span { margin-top: 2px; font-size: .62rem; font-weight: 600; letter-spacing: .18em; opacity: .7; }
.topbar { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(22px, 5vw, 72px); }
.monogram { text-decoration: none; color: var(--ivory); font-family: var(--serif); font-size: 1.7rem; letter-spacing: .06em; }
.monogram span { color: var(--gold); font-style: italic; font-size: .72em; padding: 0 2px; }
.language-switcher { display: flex; padding: 4px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; backdrop-filter: blur(12px); background: rgba(3,17,29,.28); }
.language-switcher button { min-width: 48px; min-height: 34px; padding: 5px 12px; border: 0; border-radius: 99px; background: transparent; color: rgba(255,255,255,.67); cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: .06em; transition: .25s ease; }
.language-switcher button.active { color: var(--navy); background: var(--gold-bright); }
.hero { min-height: 100svh; position: relative; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--navy); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 5%, rgba(3,14,26,.13) 55%, rgba(3,12,22,.65) 100%), linear-gradient(to bottom, rgba(3,13,25,.2), transparent 35%, rgba(3,13,25,.35)); }
.hero-art { position: absolute; inset: 0; background: url("hero-arch.png") center / cover no-repeat; animation: breathe 14s ease-in-out infinite alternate; }
.hero-content { position: relative; z-index: 2; width: min(88vw, 820px); padding: 110px 0 70px; }
.eyebrow { margin: 0 0 18px; color: var(--gold-bright); font-size: .73rem; font-weight: 600; letter-spacing: .28em; }
.hero h1 { margin: 0; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 28px); font-family: var(--serif); font-weight: 500; font-size: clamp(4.5rem, 12vw, 9.8rem); line-height: .74; letter-spacing: -.04em; text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hero h1 span:first-child { transform: translateY(-8px); }
.hero h1 span:last-child { transform: translateY(18px); }
.hero h1 b { color: var(--gold); font-size: .48em; font-style: italic; font-weight: 500; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 35px auto 24px; color: var(--gold); }
.ornament i { width: 62px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament i:last-child { transform: rotate(180deg); }
.invitation { max-width: 490px; margin: 0 auto 27px; color: rgba(255,255,255,.8); font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.75rem); font-style: italic; line-height: 1.35; }
.date-lockup { display: flex; width: min(100%, 440px); margin: 0 auto 30px; padding: 13px 0; align-items: center; justify-content: center; gap: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.date-lockup span { width: 100px; font-size: .72rem; letter-spacing: .18em; }
.date-lockup strong { color: var(--gold-bright); font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1; }
.primary-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; text-decoration: none; color: var(--navy); background: var(--gold-bright); font-size: .73rem; font-weight: 600; letter-spacing: .11em; transition: transform .25s, background .25s; box-shadow: 0 12px 35px rgba(0,0,0,.25); }
.primary-cta:hover { transform: translateY(-2px); background: #f7df9e; }
.scroll-cue { position: absolute; z-index: 3; bottom: 22px; left: 50%; width: 24px; height: 38px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 9px; background: var(--gold); transform: translateX(-50%); animation: scroll 1.8s infinite; }
.details { position: relative; padding: clamp(85px, 11vw, 150px) clamp(20px, 6vw, 90px); color: var(--ink); background: var(--cream); }
.details::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: repeating-linear-gradient(45deg, transparent 0 18px, rgba(23,72,85,.08) 18px 19px), repeating-linear-gradient(-45deg, transparent 0 18px, rgba(23,72,85,.08) 18px 19px); }
.section-heading { position: relative; text-align: center; }
.section-heading .eyebrow { color: #8b6a25; }
.section-heading h2, .rsvp h2, .adults-only h2 { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 500; line-height: .95; }
.detail-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 1000px; margin: 64px auto 0; background: rgba(15,42,57,.15); border: 1px solid rgba(15,42,57,.15); }
.detail-card { position: relative; min-height: 300px; padding: 54px 40px 40px; text-align: center; background: rgba(255,250,240,.9); }
.card-number { position: absolute; top: 15px; left: 20px; color: #a7863c; font-family: var(--serif); font-size: 1rem; }
.line-icon { margin-bottom: 15px; color: #9b7935; font-size: 2.1rem; }
.label, .form-kicker { margin: 0 0 12px; color: #8b6a25; font-size: .7rem; font-weight: 600; letter-spacing: .22em; }
.detail-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.75rem; font-weight: 600; }
.detail-card p:not(.label) { margin: 0 0 18px; color: #65707a; }
.detail-card a { color: #7a5d21; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: .82rem; font-weight: 600; }
.countdown { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 780px; margin: 72px auto 0; }
.countdown div { text-align: center; border-right: 1px solid rgba(16,36,53,.16); }
.countdown div:last-child { border: 0; }
.countdown strong { display: block; color: #0b2d42; font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500; line-height: 1; }
.countdown span { color: #8b6a25; font-size: .64rem; font-weight: 600; letter-spacing: .18em; }
.adults-only { padding: 18px 20px; color: var(--ivory); background: #9a302a; }
.notice-inner { display: flex; align-items: center; gap: 18px; max-width: 820px; margin: auto; }
.notice-mark { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-family: var(--serif); font-size: 1.8rem; }
.adults-only .eyebrow { margin-bottom: 3px; color: #ffddaa; font-size: .58rem; }
.adults-only h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.adults-only p:last-child { max-width: 700px; margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: .84rem; line-height: 1.4; }
.rsvp { position: relative; padding: clamp(80px, 10vw, 140px) 20px; background: #081d31; }
.rsvp::before { content: ""; position: absolute; inset: 0; opacity: .12; background: url("hero-arch.png") center 22% / cover no-repeat; filter: blur(2px); }
.rsvp-shell { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 7vw, 110px); max-width: 1100px; margin: auto; padding: clamp(35px, 6vw, 72px); border: 1px solid var(--line); background: rgba(5,22,37,.9); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.rsvp-intro { padding-top: 12px; }
.rsvp-intro p:last-child { max-width: 340px; color: rgba(255,255,255,.67); }
.rsvp h2 { margin-bottom: 24px; }
.attendance-choice { display: grid; gap: 10px; margin: 0 0 32px; padding: 0; border: 0; }
.attendance-choice legend { margin-bottom: 12px; font-family: var(--serif); font-size: 1.45rem; }
.attendance-choice label { position: relative; cursor: pointer; }
.attendance-choice input { position: absolute; opacity: 0; }
.attendance-choice label span { display: block; padding: 15px 18px 15px 52px; border: 1px solid rgba(255,255,255,.16); transition: .2s; }
.attendance-choice label span::before { content: ""; position: absolute; top: 50%; left: 18px; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; transform: translateY(-50%); }
.attendance-choice input:checked + span { border-color: var(--gold); background: rgba(215,182,109,.08); }
.attendance-choice input:checked + span::before { border: 5px solid var(--gold-bright); }
.attendance-choice b, .attendance-choice small { display: block; }
.attendance-choice b { font-size: .9rem; }
.attendance-choice small { color: rgba(255,255,255,.55); font-size: .75rem; }
.guest-list-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.guest-list-head p { margin: 0; }
.guest-list-head p:last-child { color: rgba(255,255,255,.52); font-size: .75rem; }
#guestCount { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-bright); font-family: var(--serif); font-size: 1.25rem; }
.guest-rows { display: grid; gap: 10px; }
.guest-row { display: grid; grid-template-columns: 30px 1fr 38px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); }
.row-number { color: var(--gold); font-family: var(--serif); }
.guest-row input { width: 100%; padding: 13px 6px; border: 0; outline: 0; color: white; background: transparent; }
.guest-row input::placeholder, textarea::placeholder { color: rgba(255,255,255,.35); }
.guest-row input:focus { box-shadow: inset 0 -1px var(--gold); }
.remove-guest { border: 0; color: rgba(255,255,255,.45); background: transparent; cursor: pointer; font-size: 1.3rem; }
.remove-guest:disabled { opacity: .15; cursor: default; }
.add-guest { display: flex; align-items: center; gap: 8px; margin: 16px 0 30px; padding: 0; border: 0; color: var(--gold-bright); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 600; }
.add-guest span:first-child { font-size: 1.2rem; }
.message-field { display: block; color: rgba(255,255,255,.62); font-size: .75rem; }
.message-field textarea { width: 100%; margin-top: 8px; padding: 14px; resize: vertical; border: 1px solid rgba(255,255,255,.18); outline: 0; color: white; background: rgba(255,255,255,.025); }
.message-field textarea:focus { border-color: var(--gold); }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; margin-top: 18px; padding: 0 22px; border: 0; color: var(--navy); background: var(--gold-bright); cursor: pointer; font-size: .78rem; font-weight: 600; letter-spacing: .12em; transition: .25s; }
.submit-button:hover { background: white; }
.submit-button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 26px; margin: 12px 0 0; color: #f0d995; font-size: .82rem; }
.closing { padding: 90px 20px; text-align: center; color: var(--ink); background: var(--cream); }
.closing > p:first-child { font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.closing h2 { margin: 12px 0; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 500; line-height: 1; }
.closing h2 span { color: #a57d2f; font-style: italic; }
.closing-date { color: #8b6a25; font-size: .72rem; font-weight: 600; letter-spacing: .2em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

[dir="rtl"] body { font-family: "Amiri", var(--sans); }
[dir="rtl"] .eyebrow, [dir="rtl"] .label, [dir="rtl"] .form-kicker { letter-spacing: .08em; }
[dir="rtl"] .attendance-choice label span { padding: 15px 52px 15px 18px; }
[dir="rtl"] .attendance-choice label span::before { left: auto; right: 18px; }
[dir="rtl"] .submit-button span:last-child { transform: rotate(180deg); }
[dir="rtl"] .card-number { left: auto; right: 20px; }

@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes scroll { 0% { transform: translate(-50%, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, 14px); opacity: 0; } }

@media (max-width: 760px) {
  .language-gate-card { padding: 32px 18px; }
  .language-gate-options { grid-template-columns: 1fr; }
  .language-gate-options button { min-height: 62px; }
  .topbar { padding: 17px 17px; }
  .language-switcher button { min-width: 42px; padding-inline: 9px; }
  .hero { min-height: 860px; }
  .hero-content { padding-top: 115px; }
  .hero-art { background-size: auto 100%; }
  .hero h1 { flex-direction: column; gap: 2px; font-size: clamp(4rem, 24vw, 6.7rem); }
  .hero h1 span:first-child, .hero h1 span:last-child { transform: none; }
  .hero h1 b { position: absolute; font-size: 3rem; transform: translate(69px, 2px); }
  .invitation { max-width: 310px; font-size: 1.25rem; }
  .date-lockup { gap: 10px; }
  .date-lockup span { width: 82px; }
  .scroll-cue { display: none; }
  .detail-grid { grid-template-columns: 1fr; margin-top: 42px; }
  .detail-card { min-height: 255px; padding-top: 44px; }
  .countdown { gap: 3px; margin-top: 50px; }
  .countdown span { font-size: .52rem; letter-spacing: .1em; }
  .notice-inner { align-items: center; gap: 12px; }
  .adults-only { padding: 14px 16px; }
  .notice-mark { width: 36px; height: 36px; font-size: 1.5rem; }
  .adults-only h2 { font-size: 1.25rem; }
  .adults-only p:last-child { font-size: .76rem; }
  .rsvp-shell { grid-template-columns: 1fr; gap: 30px; padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
