:root {
  --paper: #f7f3ec;
  --paper-2: #f1eadd;
  --ink: #2e2a24;
  --ink-soft: #5a5348;
  --sea: #2f6d74;
  --sea-deep: #21545a;
  --gold: #c9a24b;
  --sand: #e4d8c4;
  --olive: #7c7a4e;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Tangerine", "Playfair Display", cursive;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-weight: 300;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }

a { color: var(--sea); text-decoration: none; }
a:hover { color: var(--gold); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 20px;
  display: inline-block;
}

.rule { width: 54px; height: 1px; background: var(--gold); border: 0; margin: 26px 0; }
.rule.center { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--sea);
  color: var(--sea);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border-radius: 2px;
}
.btn:hover { background: var(--sea); color: #fff; }
.btn.solid { background: var(--sea); color: #fff; }
.btn.solid:hover { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; }
.btn.light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light.filled { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light.filled:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }

/* ---------- PASSWORD GATE ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(20,30,32,0.55), rgba(20,30,32,0.72)), url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
  padding: 24px;
}
.gate.hidden { opacity: 0; visibility: hidden; }

.gate-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.gate .monogram { font-family: var(--script); font-size: 96px; line-height: 0.8; color: #fff; }
.gate h1 { color: #fff; font-size: 40px; margin: 6px 0 4px; }
.gate .place { letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; color: rgba(255,255,255,0.82); margin-bottom: 30px; }
.gate p { color: rgba(255,255,255,0.85); font-size: 15px; }
.gate form { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.14em;
  border-radius: 2px;
  min-width: 220px;
  text-align: center;
  text-transform: uppercase;
}
.gate input::placeholder { color: rgba(255,255,255,0.6); letter-spacing: 0.1em; }
.gate input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.18); }
.gate-error { color: #ffd9c2; font-size: 13.5px; min-height: 20px; margin-top: 16px; letter-spacing: 0.02em; }
.gate .hint { margin-top: 24px; font-size: 12.5px; color: rgba(255,255,255,0.6); }
.gate form.shake { animation: shake 0.4s var(--ease); }
@keyframes shake { 10%,90%{transform:translateX(-2px);} 20%,80%{transform:translateX(4px);} 30%,50%,70%{transform:translateX(-8px);} 40%,60%{transform:translateX(8px);} }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s;
}
.nav.solid { background: rgba(247,243,236,0.92); backdrop-filter: blur(10px); padding: 14px 32px; box-shadow: 0 1px 0 rgba(46,42,36,0.08); }
.nav .brand { font-family: var(--script); font-size: 40px; color: #fff; line-height: 1; transition: color 0.5s; }
.nav.solid .brand { color: var(--ink); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  transition: color 0.3s;
}
.nav.solid .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 2px; background: #fff; transition: 0.3s; }
.nav.solid .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(20,30,32,0.28), rgba(20,30,32,0.5)), url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-inner { position: relative; z-index: 2; padding: 90px 24px; }
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero h1 { font-size: clamp(52px, 11vw, 128px); font-weight: 500; margin: 8px 0 4px; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero .amp { font-family: var(--script); font-size: clamp(56px, 12vw, 140px); font-weight: 400; display: inline-block; vertical-align: -0.08em; margin: 0 6px; color: var(--sand); }
.hero .place { letter-spacing: 0.3em; text-transform: uppercase; font-size: clamp(11px, 2vw, 14px); margin-top: 18px; }
.hero .date { font-family: var(--serif); font-size: clamp(20px, 3.4vw, 30px); font-style: italic; margin-top: 8px; }
.hero .sub { max-width: 560px; margin: 22px auto 0; font-size: 17px; color: rgba(255,255,255,0.92); }
.hero-btns { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.countdown { display: flex; gap: 26px; justify-content: center; margin-top: 46px; }
.countdown .unit { text-align: center; }
.countdown .num { font-family: var(--display); font-size: 40px; line-height: 1; }
.countdown .lbl { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 8px; }
.countdown.on-light { margin: 34px auto 4px; }
.countdown.on-light .num { color: var(--sea); }
.countdown.on-light .lbl { color: var(--ink-soft); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.8); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 8px);} }

/* ---------- SECTIONS ---------- */
section { position: relative; }
section[id] { scroll-margin-top: 72px; }
.section { padding: clamp(80px, 12vh, 150px) 0; }
.section.tint { background: var(--paper-2); }
.section-label { text-align: center; }
.section h2 { font-size: clamp(32px, 5.5vw, 60px); text-align: center; font-weight: 500; }
.lead { text-align: center; max-width: 640px; margin: 18px auto 0; color: var(--ink-soft); font-size: 18px; font-family: var(--serif); font-style: italic; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* welcome / letter */
.letter { max-width: 680px; margin: 40px auto 0; text-align: center; }
.letter p { font-family: var(--serif); font-size: 21px; line-height: 1.75; color: var(--ink); }
.letter .signoff { font-family: var(--script); font-size: 46px; color: var(--sea); line-height: 1; margin-top: 10px; }

/* two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 20px; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 3px; box-shadow: 0 30px 60px -30px rgba(46,42,36,0.45); width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.split-body h2 { text-align: left; }
.split-body .lead { text-align: left; margin-left: 0; }
.split-body .eyebrow { }
.split-body p { color: var(--ink-soft); }
.caption { font-size: 13px; color: var(--olive); font-style: italic; font-family: var(--serif); margin-top: 12px; }

/* timeline / schedule */
.schedule { max-width: 720px; margin: 46px auto 0; }
.day-tag { text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 40px 0 22px; }
.event { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(46,42,36,0.1); }
.event:last-child { border-bottom: 0; }
.event .time { font-family: var(--display); font-size: 20px; color: var(--sea); }
.event h4 { margin: 0 0 4px; font-family: var(--display); font-size: 21px; font-weight: 600; }
.event p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.tbc { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); border: 1px solid var(--sand); padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: 2px; }
.schedule-note { max-width: 620px; margin: 40px auto 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--olive); }

/* venue details */
.venue-details { display: flex; flex-wrap: wrap; gap: 30px 60px; margin-top: 30px; }
.venue-details .item .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sea); margin-bottom: 6px; }
.venue-details .item .v { font-family: var(--serif); font-size: 18px; }

/* info grid (travel) */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 44px; }
.info-card { background: var(--paper); border: 1px solid rgba(46,42,36,0.08); padding: 34px; border-radius: 3px; }
.section.tint .info-card { background: #fff; }
.info-card h3 { font-size: 24px; margin-bottom: 12px; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.info-card li { margin-bottom: 8px; }
.info-card p { color: var(--ink-soft); margin-bottom: 0; }

/* wedding-day transport highlight */
.transport-card { grid-column: 1 / -1; border-left: 3px solid var(--sea); display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 36px; align-items: center; }
.transport-card .lede { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sea); margin: 0 0 14px; }
.transport-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; box-shadow: 0 22px 44px -26px rgba(46,42,36,0.45); }

/* weather table */
.weather { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.weather th, .weather td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(46,42,36,0.1); }
.weather th { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea); }
.weather tr.hl td { background: rgba(201,162,75,0.12); font-weight: 500; }

/* hotels */
.hotels { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.hotel { background: var(--paper); border: 1px solid rgba(46,42,36,0.08); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.section.tint .hotel { background: #fff; }
.hotel img { height: 260px; object-fit: cover; width: 100%; }
.hotel .body { padding: 30px 32px 34px; flex: 1; display: flex; flex-direction: column; }
.hotel .tier { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.hotel h3 { font-size: 26px; margin-bottom: 12px; }
.hotel p { color: var(--ink-soft); font-size: 15.5px; }
.promo { margin-top: auto; padding-top: 18px; }
.promo .code { display: inline-block; font-family: var(--sans); letter-spacing: 0.18em; background: var(--sand); color: var(--ink); padding: 6px 14px; border-radius: 3px; font-size: 13px; font-weight: 500; }
.promo .book { margin-top: 14px; }

/* explore */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 3/4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile .tile-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,0.62)); color: #fff; }
.tile .tile-cap h4 { font-family: var(--display); font-size: 22px; margin: 0 0 4px; font-weight: 600; }
.tile .tile-cap p { font-size: 13.5px; margin: 0; color: rgba(255,255,255,0.88); }
.tile.wide { aspect-ratio: auto; grid-column: span 3; min-height: 220px; }

/* parallax breaker */
.breaker { height: 62vh; min-height: 380px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.breaker .breaker-bg { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
.breaker .quote { position: relative; z-index: 2; color: #fff; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 4vw, 40px); max-width: 760px; padding: 0 24px; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }

/* portrait feature */
.portrait-feature { padding-top: clamp(40px, 6vh, 80px); }
.portrait { max-width: 680px; margin: 0 auto; text-align: center; }
.portrait img {
  width: 100%; border-radius: 3px;
  box-shadow: 0 40px 80px -40px rgba(46,42,36,0.5);
}
.portrait figcaption {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  color: var(--olive); margin-top: 20px;
}

/* us gallery */
.us-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.us-shot { margin: 0; }
.us-shot img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: center 35%;
  border-radius: 3px; box-shadow: 0 30px 60px -30px rgba(46,42,36,0.45);
}
.us-shot-full img { object-fit: contain; background: var(--paper-2); }
.us-shot figcaption {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--olive); text-align: center; margin-top: 14px;
}

/* dress code */
.dress-list { margin-top: 30px; }
.dress-list .row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(46,42,36,0.1); }
.dress-list .row .k { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sea); padding-top: 3px; }
.dress-list .row .v { color: var(--ink-soft); }

/* rsvp */
.rsvp { max-width: 720px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 40px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: span 2; }
.field label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea); margin-bottom: 8px; }
.field-hint { font-size: 12.5px; color: var(--olive); margin-top: 7px; font-style: italic; font-family: var(--serif); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(46,42,36,0.22);
  padding: 13px 14px; border-radius: 3px; width: 100%;
}
.section.tint .field input, .section.tint .field select, .section.tint .field textarea { background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); }
.radio-row { display: flex; gap: 12px; }
.radio-row label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 15px; border: 1px solid rgba(46,42,36,0.22); padding: 12px 16px; border-radius: 3px; cursor: pointer; flex: 1; }
.radio-row input { width: auto; }
.rsvp-submit { text-align: center; margin-top: 34px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--olive); margin-top: 16px; }
.thankyou { text-align: center; padding: 40px 0; display: none; }
.thankyou.show { display: block; animation: fade 0.8s var(--ease); }
.thankyou h3 { font-size: 34px; margin-bottom: 12px; }
.thankyou p { font-family: var(--serif); font-size: 19px; color: var(--ink-soft); }
@keyframes fade { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none; } }

/* gifts / faq */
.gifts { max-width: 640px; margin: 30px auto 0; text-align: center; }
.gifts p { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.faq { max-width: 780px; margin: 40px auto 0; }
.qa { border-bottom: 1px solid rgba(46,42,36,0.12); }
.qa button { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; font-family: var(--display); font-size: 20px; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.qa button .plus { color: var(--gold); font-size: 22px; transition: transform 0.3s; flex-shrink: 0; }
.qa.open button .plus { transform: rotate(45deg); }
.qa .a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); color: var(--ink-soft); }
.qa .a p { padding-bottom: 22px; margin: 0; }
.qa.open .a { max-height: 480px; }

/* footer */
.footer { background: var(--sea-deep); color: rgba(255,255,255,0.85); text-align: center; padding: 80px 24px 60px; }
.footer .monogram { font-family: var(--script); font-size: 84px; color: #fff; line-height: 0.7; }
.footer h3 { color: #fff; font-size: 30px; margin: 10px 0 6px; }
.footer .f-place { letter-spacing: 0.24em; text-transform: uppercase; font-size: 11.5px; color: rgba(255,255,255,0.7); }
.footer .f-note { font-family: var(--serif); font-style: italic; font-size: 18px; margin: 26px 0 6px; color: rgba(255,255,255,0.9); }
.footer .hash { letter-spacing: 0.2em; font-size: 13px; color: var(--gold); }
.footer .contact { margin-top: 22px; font-size: 13.5px; }
.footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav { padding: 16px 20px; }
  .nav.solid { padding: 12px 20px; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(33,84,90,0.98);
    flex-direction: column; justify-content: center; gap: 26px;
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: #fff !important; font-size: 18px; }
  .nav-toggle { display: block; z-index: 110; }
  .split, .info-grid, .hotels, .form-grid { grid-template-columns: 1fr; gap: 30px; }
  .split { gap: 34px; }
  .transport-card { grid-template-columns: 1fr; gap: 24px; }
  .us-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .us-shot figcaption { font-size: 13.5px; }
  .split.reverse .split-media { order: 0; }
  .split-media img { max-height: 460px; }
  .field.full { grid-column: span 1; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .radio-row { flex-direction: column; }
  .event { grid-template-columns: 76px 1fr; gap: 16px; }
  .dress-list .row { grid-template-columns: 1fr; gap: 4px; }
  .letter { margin-top: 30px; }
  .letter p { font-size: 19px; }
  .info-card { padding: 28px; }
  .portrait figcaption { font-size: 16px; }
  .countdown { gap: 18px; }
  .countdown .num { font-size: 30px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .explore-grid { grid-template-columns: 1fr; }
  .us-grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
  .tile { aspect-ratio: 4/5; }
  .venue-details { gap: 22px 34px; }
  .info-card { padding: 24px; }
  .transport-card { padding: 24px; }
  .qa.open .a { max-height: 640px; }
  .qa button { font-size: 18px; padding: 20px 0; }
  .hotel img { height: 220px; }
  .footer { padding: 64px 20px 52px; }
  .footer .monogram { font-size: 72px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 46px; }
  .hero .amp { font-size: 50px; }
  .hero .sub { font-size: 15.5px; }
  .countdown { gap: 12px; }
  .countdown .num { font-size: 25px; }
  .countdown .lbl { font-size: 9.5px; letter-spacing: 0.18em; }
  .btn { padding: 14px 22px; }
  .gate .monogram { font-size: 78px; }
}
