@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500&family=Jost:wght@300;400;500&family=Noto+Serif+SC:wght@300;400;500&display=swap');

:root {
  --vermilion:   #8b1a1a;
  --vermilion-dk:#6b1212;
  --vermilion-lt:#b52020;
  --gold:        #c9a96e;
  --gold-lt:     #e0c48a;
  --gold-dk:     #a07840;
  --cream:       #faf6ef;
  --cream-lt:    #fdf9f4;
  --ink:         #1a1208;
  --muted:       rgba(26,18,8,.55);
  --border:      rgba(201,169,110,.2);
  --border-lt:   rgba(201,169,110,.12);
  --white:       #ffffff;

  --serif:   "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans:    "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --max:  1200px;
  --pad:  clamp(20px, 4vw, 60px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.container {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

/* ── SECTIONS ── */
.section { padding: clamp(64px, 8vw, 120px) var(--pad); }
.section.cream    { background: var(--cream); }
.section.dark     { background: var(--ink); color: var(--white); }
.section.vermilion {
  background:
    linear-gradient(rgba(139,26,26,.92), rgba(139,26,26,.92)),
    url('') center / cover no-repeat;
  color: var(--cream-lt);
}

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.gold-text { color: var(--gold-lt) !important; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--cream-lt);
  margin: 0;
  line-height: 1;
}
.section-title.ink { color: var(--ink); }
.section-title.white { color: var(--white); }

.p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.85;
  color: rgba(250,246,239,.72);
  margin: 0;
}
.p.light { color: rgba(255,255,255,.65); }
.p.ink   { color: var(--muted); }

.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0;
  opacity: .8;
}
.gold-rule.center { margin: 20px auto; }

.section-header { margin-bottom: clamp(40px, 6vw, 72px); }
.section-header.center { text-align: center; }

/* ── SPLASH ANIMATIONS ── */
@keyframes splashFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes splashImgReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes splashBtnRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes splashBtnDesktopRise {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,169,110,0); }
  50%       { box-shadow: 0 0 18px 4px rgba(201,169,110,.18); }
}

/* ── SPLASH ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vermilion-dk);
  animation: splashFadeIn 0.6s ease forwards;
}

/* On mobile: image fills the whole screen */
.splash-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: splashImgReveal 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s both;
}

.splash-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(107,18,18,.0) 0%,
    rgba(107,18,18,.0) 60%,
    rgba(107,18,18,.6) 100%
  );
  z-index: 1;
}

.splash-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream-lt);
  background: rgba(107,18,18,.5);
  border: 1px solid rgba(201,169,110,.55);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(4px);
  align-self: flex-end;
  margin-bottom: clamp(40px, 8vw, 80px);
  animation: splashBtnRise 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 1.2s both,
             goldPulse 3s ease-in-out 2.5s infinite;
}
.splash-btn:hover {
  background: rgba(107,18,18,.85);
  border-color: var(--gold);
  color: var(--gold-lt);
}

/* On desktop: show image as a centered portrait card */
@media (min-width: 768px) {
  .splash {
    flex-direction: row;
    gap: 0;
  }
  .splash-img {
    position: relative;
    inset: auto;
    width: auto;
    height: 100vh;
    max-width: 50vw;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 0 80px rgba(0,0,0,.5);
    animation: splashImgReveal 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s both;
  }
  .splash-overlay {
    display: none;
  }
  .splash-btn {
    position: absolute;
    bottom: clamp(40px, 6vw, 72px);
    left: 50%;
    transform: translateX(-50%);
    align-self: auto;
    margin-bottom: 0;
    white-space: nowrap;
    animation: splashBtnDesktopRise 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 1.4s both,
               goldPulse 3s ease-in-out 2.8s infinite;
  }
}

/* ── MAIN SITE WRAPPER ── */
.main-site {
  opacity: 1;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--vermilion-dk);
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(107,18,18,.4) 0%,
    rgba(107,18,18,.25) 40%,
    rgba(107,18,18,.65) 100%
  );
  z-index: 1;
}

.hero-center {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--pad);
  color: var(--cream-lt);
}

.hero-xi {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--gold);
  opacity: .85;
  margin-bottom: 16px;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(201,169,110,.3);
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: clamp(9px, 1.2vw, 11px);
  font-weight: 400;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 16px;
  opacity: .85;
}

.hero-names {
  font-family: var(--serif);
  font-size: clamp(52px, 10vw, 120px);
  font-weight: 300;
  font-style: italic;
  line-height: .95;
  margin: 0 0 20px;
  color: var(--cream-lt);
  text-shadow: 0 2px 40px rgba(0,0,0,.3);
  letter-spacing: .02em;
}

.hero-ornament {
  width: 200px;
  margin: 0 auto 16px;
  color: var(--gold);
  opacity: .75;
}
.hero-ornament svg { width: 100%; height: auto; }

.hero-date {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 6px;
  opacity: .9;
}

.hero-venue {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: .12em;
  color: rgba(250,246,239,.65);
  margin-bottom: 28px;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250,246,239,.6);
}
.hero-nav a {
  color: rgba(250,246,239,.7);
  transition: color .2s;
}
.hero-nav a:hover { color: var(--gold-lt); }
.hero-nav span { color: var(--gold); opacity: .5; }

/* ── STORY ── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; } }

.story-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-circle {
  width: clamp(240px, 38vw, 400px);
  height: clamp(240px, 38vw, 400px);
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-circle::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(201,169,110,.2);
}

.story-circle-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.story-xi {
  font-family: var(--serif);
  font-size: clamp(60px, 10vw, 100px);
  color: var(--gold);
  opacity: .8;
  line-height: 1;
  margin-bottom: 12px;
}

.story-circle-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-lt);
  opacity: .7;
  margin: 0 0 6px;
}

.story-circle-date {
  font-family: var(--serif);
  font-size: clamp(14px, 2vw, 18px);
  font-style: italic;
  color: rgba(250,246,239,.6);
  margin: 0;
}

/* ── DETAILS ── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (max-width: 800px) { .details-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .details-grid { grid-template-columns: 1fr; } }

.detail-card {
  background: var(--cream-lt);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-icon {
  width: 26px;
  height: 26px;
  color: var(--vermilion);
}
.detail-icon svg { width: 100%; height: 100%; }

.detail-title {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

.detail-body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── PROGRAMME ── */
.programme-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
@media (max-width: 700px) { .programme-inner { grid-template-columns: 1fr; } }

.schedule { border-top: 1px solid rgba(201,169,110,.2); }
.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(201,169,110,.12);
}
.schedule-time {
  font-family: var(--sans);
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 72px;
}
.schedule-event {
  font-family: var(--serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: rgba(255,255,255,.85);
  text-align: right;
}

/* ── MEET THE COUPLE ── */
.meet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
@media (max-width: 700px) { .meet-grid { grid-template-columns: 1fr; } }

/* ── RSVP ── */
.rsvp-bg {
  background:
    linear-gradient(rgba(107,18,18,.94), rgba(107,18,18,.94)),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,169,110,.15) 0%, transparent 70%);
  color: var(--cream-lt);
  padding: clamp(64px, 8vw, 110px) var(--pad);
}

.rsvp-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.rsvp-xi {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--gold);
  opacity: .6;
  margin-bottom: 12px;
  line-height: 1;
}

.rsvp-eyebrow {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-lt);
  opacity: .7;
  margin-bottom: 12px;
  display: block;
}

.rsvp-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream-lt);
  margin: 0 0 8px;
  line-height: 1;
}

.rsvp-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(250,246,239,.6);
  margin-bottom: 40px;
}
.rsvp-sub strong { color: var(--gold-lt); font-weight: 400; }

.rsvp-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(201,169,110,.6);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  background: rgba(250,246,239,.06);
  border: 1px solid rgba(201,169,110,.25);
  color: var(--cream-lt);
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(250,246,239,.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: rgba(201,169,110,.6); }
.form-group select option { background: var(--vermilion-dk); color: var(--cream-lt); }
.form-group textarea { resize: vertical; min-height: 80px; }

.radio-group { display: flex; gap: 22px; align-items: center; padding: 10px 0; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 300; font-size: 14px;
  color: rgba(250,246,239,.8); cursor: pointer;
}
.radio-label input[type="radio"] { width: 16px; height: 16px; accent-color: var(--gold); }

.form-submit { margin-top: 8px; }
.btn-rsvp {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--vermilion-dk);
  border: none;
  padding: 16px 52px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-rsvp:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-rsvp:active { transform: translateY(0); }

.rsvp-success { padding: 32px 0; }
.rsvp-success .serif-lg {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-style: italic;
  color: var(--gold-lt);
  display: block;
  margin-bottom: 10px;
}
.rsvp-success p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  color: rgba(250,246,239,.6);
  margin: 0;
}

/* ── FOOTER ── */
.footerbar {
  background:
    linear-gradient(rgba(26,18,8,.97), rgba(26,18,8,.97)),
    url('') center / cover no-repeat;
  color: rgba(250,246,239,.45);
  font-family: var(--sans);
  font-size: 11px;
  border-top: 1px solid rgba(201,169,110,.12);
}
.footerbar .inner {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footerbar a { color: rgba(250,246,239,.38); margin-right: 18px; }
.footerbar a:hover { color: var(--gold-lt); }
.pill {
  background: rgba(201,169,110,.08);
  border: 1px solid rgba(201,169,110,.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--gold-lt);
}