/* ==========================================================================
   Leonard & Mona — Wedding Invitation
   Design tokens
   ========================================================================== */
:root {
  --cream: #fbf7ee;
  --cream-deep: #f1e8d4;
  --navy: #1b3a6b;
  --navy-deep: #0e2748;
  --navy-ink: #101d33;
  --gold: #c7a252;
  --gold-soft: #e8d9ae;
  --gold-bright: #e3bf6b;
  --ink: #22262b;
  --white: #ffffff;
  --shadow: 0 20px 60px -20px rgba(14, 39, 72, 0.35);
  --shadow-soft: 0 10px 30px -12px rgba(14, 39, 72, 0.25);
  --radius: 2px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lock-scroll { overflow: hidden; height: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-top: 14px;
}

.section-lede {
  max-width: 620px;
  font-size: 1.08rem;
  color: #454b55;
  font-weight: 300;
}

.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.section-head .section-lede { margin: 18px auto 0; }

section { position: relative; padding: clamp(72px, 12vw, 132px) 0; }

.btn {
  --btn-fg: var(--white);
  --btn-bg: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.5s var(--ease), background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }
.btn-outline {
  --btn-fg: var(--navy);
  --btn-bg: transparent;
  border-color: var(--navy);
}
.btn-outline:hover { --btn-fg: var(--white); --btn-bg: var(--navy); }
.btn-gold { --btn-fg: var(--navy-deep); --btn-bg: var(--gold); border-color: var(--gold); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }

/* Olive-branch divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 28px auto;
  color: var(--gold);
  width: 100%;
}
.divider svg { width: 120px; height: 22px; }
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  max-width: 90px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.divider::after { background: linear-gradient(90deg, currentColor, transparent); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: 0.12s; }
.reveal-delay-2.visible { transition-delay: 0.24s; }
.reveal-delay-3.visible { transition-delay: 0.36s; }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 44px);
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
  color: var(--white);
}
.site-nav.solid {
  background: rgba(251, 247, 238, 0.94);
  backdrop-filter: blur(10px);
  color: var(--navy-deep);
  box-shadow: 0 2px 24px rgba(14, 39, 72, 0.08);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: inherit;
}
.nav-links {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.86;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.nav-links a:hover { opacity: 1; border-color: var(--gold); }
.nav-links a[aria-current="page"] { opacity: 1; border-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* Dropdown nav items */
.has-dropdown { position: relative; }
.dropdown-toggle {
  background: none; border: none; cursor: pointer; font: inherit; color: inherit;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.86; padding-bottom: 4px; border-bottom: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 5px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.dropdown-toggle:hover, .dropdown-toggle[aria-expanded="true"] { opacity: 1; border-color: var(--gold); }
.dropdown-toggle::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(225deg) translateY(2px); }
.dropdown-menu { list-style: none; margin: 0; padding: 0; }

@media (min-width: 1081px) {
  .dropdown-menu {
    position: absolute; top: calc(100% + 18px); left: 50%;
    background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 10px 0; min-width: 200px;
    opacity: 0; visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 50;
  }
  .has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .dropdown-menu a {
    display: block; padding: 10px 22px; color: var(--navy-deep);
    font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; opacity: 0.8; border-bottom: none !important;
  }
  .dropdown-menu a:hover { opacity: 1; background: rgba(199, 162, 82, 0.14); }
}

@media (max-width: 1080px) {
  .has-dropdown { width: 100%; }
  .dropdown-toggle {
    color: inherit; font-size: 0.95rem; width: 100%; text-align: left;
    justify-content: space-between; padding: 0; border: none; opacity: 1;
  }
  .dropdown-menu {
    max-height: 0; overflow: hidden; width: 100%; padding-left: 16px;
    transition: max-height 0.35s ease;
  }
  .has-dropdown.open .dropdown-menu { max-height: 320px; }
  .dropdown-menu li { margin-top: 18px; }
  .dropdown-menu a { color: inherit; opacity: 0.75; font-size: 0.88rem; text-decoration: none; }
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: inherit;
  padding: 7px 14px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  opacity: 0.7;
  transition: background 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--navy-deep);
  opacity: 1;
}
.nav-toggle-burger {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle-burger svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav-links {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    height: 100vh;
    width: min(78vw, 340px);
    background: var(--navy-deep);
    color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
    z-index: 410;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--white); font-size: 0.95rem; }
  .nav-toggle-burger { display: inline-flex; z-index: 420; }
  .nav-close { position: fixed; inset: 0; background: rgba(10,20,35,0.4); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 405; }
  .nav-close.open { opacity: 1; pointer-events: auto; }
}

/* ==========================================================================
   Envelope intro
   ========================================================================== */
#envelope-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at 50% 30%, var(--navy) 0%, var(--navy-deep) 72%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
#envelope-intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5) 0, transparent 60%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.4) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(255,255,255,.5) 0, transparent 60%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.35) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 65%, rgba(255,255,255,.4) 0, transparent 60%);
  opacity: 0.7;
}
.intro-hint {
  position: absolute;
  bottom: 8%;
  left: 0; right: 0;
  text-align: center;
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.95; } }

.intro-skip {
  position: absolute;
  top: 26px; right: 26px;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.intro-skip:hover { border-color: var(--gold); color: var(--gold-soft); }

.envelope-scene {
  perspective: 1800px;
  width: min(88vw, 460px);
  cursor: pointer;
}
.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2.05;
}
.env-back {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #f4ecd8, #e9dcbb);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.env-card {
  position: absolute;
  left: 6%; right: 6%; top: 6%;
  height: 92%;
  background: var(--cream);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px 16px;
  overflow: hidden;
  transform: translateY(0);
  opacity: 0;
  transition: transform 1.4s var(--ease) 0.55s, opacity 0.9s var(--ease) 0.55s,
    left 1.1s var(--ease), right 1.1s var(--ease), top 1.1s var(--ease), height 1.1s var(--ease),
    gap 1.1s var(--ease), padding 1.1s var(--ease);
  z-index: 1;
}
.env-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
}
.env-card .card-photo {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 6px 16px rgba(14,39,72,0.25);
  transition: width 1.1s var(--ease), height 1.1s var(--ease);
}
.env-card .card-photo img,
.env-card .card-photo picture { width: 100%; height: 100%; }
.env-card .card-photo img { object-fit: cover; }
.env-card .card-photo-logo {
  width: 92px; height: 92px;
  border: none;
  box-shadow: none;
  background: transparent;
}
.env-card .card-photo-logo img { object-fit: contain; }
.env-card .card-frame-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.env-card .card-frame-rule-top { display: none; }
.env-card .card-frame-rule-top.show { display: flex; }
.env-card .card-divider-line {
  width: 22px;
  height: 1px;
  background: var(--gold-soft);
}
.env-card .card-divider-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  background: var(--gold);
  transform: rotate(45deg);
}
.env-card .card-greeting-block { display: none; }
.env-card .card-greeting-block.show { display: block; }
.env-card .card-greeting-label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 4px;
}
.env-card .card-greeting-name {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 6.5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 12px;
  background-image: linear-gradient(100deg, var(--navy-deep) 42%, var(--gold-bright) 50%, var(--navy-deep) 58%);
  background-size: 280% 100%;
  background-position: 5% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.env-card .card-greeting-name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}
.env-card .card-welcome-msg {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 2.6vw, 0.85rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 300px;
  margin: 0 auto;
}
.env-card .card-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0;
}
.env-card .card-names {
  font-family: "Parisienne", var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(2rem, 6.8vw, 2.6rem);
  line-height: 1.4;
  color: var(--navy);
}
.env-card .card-date {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Unfolding-letter reveal: text lines appear one at a time, like reading a
   letter as it unfolds, instead of popping in all at once. */
.env-card .card-frame-rule-top,
.env-card .card-greeting-label,
.env-card .card-greeting-name,
.env-card .card-welcome-msg,
.env-card .card-divider,
.env-card .card-names,
.env-card .card-date {
  opacity: 0;
  transform: translateY(10px);
}
.envelope-scene.opened .env-card .card-frame-rule-top {
  animation: cardLineIn 0.6s var(--ease) forwards 0.85s;
}
.envelope-scene.opened .env-card .card-greeting-label {
  animation: cardLineIn 0.6s var(--ease) forwards 0.95s;
}
.envelope-scene.opened .env-card .card-greeting-name {
  animation: cardLineIn 0.6s var(--ease) forwards 1.1s,
    nameShimmer 1.2s ease-out forwards 1.75s;
}
.envelope-scene.opened .env-card .card-greeting-name::after {
  animation: underlineDraw 0.7s var(--ease) forwards 1.75s;
}
.envelope-scene.opened .env-card .card-welcome-msg {
  animation: cardLineIn 0.6s var(--ease) forwards 1.35s;
}
.envelope-scene.opened .env-card .card-divider {
  animation: cardLineIn 0.6s var(--ease) forwards 1.5s;
}
.envelope-scene.opened .env-card .card-names {
  animation: cardLineIn 0.6s var(--ease) forwards 1.65s;
}
.envelope-scene.opened .env-card .card-date {
  animation: cardLineIn 0.6s var(--ease) forwards 1.8s;
}
/* Browsers supporting :has() get tighter timing when there's no personal
   greeting preceding the names (unmatched/no-slug visits). Browsers
   without :has() support fall back to the timing above, which still
   reveals everything correctly, just with a longer pause in that case. */
.envelope-scene.opened:not(:has(.card-greeting-block.show)) .env-card .card-names {
  animation-delay: 0.95s;
}
.envelope-scene.opened:not(:has(.card-greeting-block.show)) .env-card .card-date {
  animation-delay: 1.1s;
}
@keyframes cardLineIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes underlineDraw {
  to { transform: scaleX(1); }
}
@keyframes nameShimmer {
  from { background-position: 5% 0; }
  to { background-position: 112% 0; }
}

.env-card .card-enter-btn {
  margin-top: 6px;
  flex: 0 0 auto;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--navy-deep);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s ease;
}
.env-card .card-enter-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.env-front-flap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 62%;
  background: linear-gradient(160deg, #f7f0dd, #ecdfbe);
  clip-path: polygon(0 100%, 100% 100%, 100% 18%, 50% 62%, 0 18%);
  border-radius: 0 0 4px 4px;
  z-index: 3;
}
.env-top-flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 58%;
  background: linear-gradient(200deg, #efe1bd, #e2cf9d);
  clip-path: polygon(0 0, 100% 0, 50% 88%);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 1s var(--ease);
  z-index: 4;
  backface-visibility: hidden;
  border-radius: 4px 4px 0 0;
}
.seal {
  position: absolute;
  left: 50%; top: 44%;
  width: 66px; height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 60%, #9a7a34 100%);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  z-index: 6;
  transition: transform 0.6s var(--ease) 0.05s, opacity 0.5s ease 0.05s;
  cursor: pointer;
}

.envelope-scene.opening .env-top-flap { transform: rotateX(178deg); }
.envelope-scene.opening .seal {
  transform: scale(1.15) rotate(-14deg) translateY(-6px);
  opacity: 0;
}
.envelope-scene.opening .env-card { transform: translateY(-64%); opacity: 1; }

#envelope-intro.opening .intro-skip,
#envelope-intro.opening .intro-hint {
  opacity: 0;
  animation: none;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.envelope-scene.opened .envelope { transition: transform 1s var(--ease), opacity 1s var(--ease); }
.envelope-scene.opened .env-back,
.envelope-scene.opened .env-front-flap,
.envelope-scene.opened .env-top-flap { opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.envelope-scene.opened .env-card {
  left: -12%; right: -12%;
  top: -55%;
  height: 210%;
  gap: 12px;
  padding: 30px 24px;
  transform: translateY(0);
  transition: left 1.1s var(--ease), right 1.1s var(--ease), top 1.1s var(--ease), height 1.1s var(--ease),
    gap 1.1s var(--ease), padding 1.1s var(--ease), transform 1.1s var(--ease);
}
.envelope-scene.opened .env-card .card-photo { width: 108px; height: 108px; }
.envelope-scene.opened .env-card .card-photo-logo { width: 150px; height: 150px; }
.envelope-scene.opened .env-card .card-enter-btn {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.5s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
#home {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  transform: scale(1.06);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,39,72,0.55) 0%, rgba(14,39,72,0.35) 38%, rgba(14,39,72,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 6vw, 48px) 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-eyebrow {
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--gold-soft);
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.2rem);
  line-height: 0.98;
  font-weight: 500;
}
.hero-names .amp { font-style: italic; color: var(--gold-soft); padding: 0 0.12em; }
.hero-sub {
  font-size: 1rem;
  letter-spacing: 0.08em;
  max-width: 480px;
  color: rgba(255,255,255,0.92);
}
.hero-sub strong { color: var(--gold-soft); font-weight: 500; }

.countdown {
  display: flex;
  gap: clamp(14px, 4vw, 30px);
  margin-top: 10px;
}
.countdown .cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
}
.countdown .cd-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.countdown .cd-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 4px;
}

.add-to-cal {
  margin-top: 14px;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.65);
}
.add-to-cal a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; margin: 0 2px; }
.add-to-cal a:hover { color: var(--gold-bright); }
.add-to-cal.on-light { color: #6b7078; }
.add-to-cal.on-light a { color: var(--navy); }
.add-to-cal.on-light a:hover { color: var(--gold); }

.hero-scroll {
  margin-top: 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
}
.hero-scroll .line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold-soft), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* On shorter browser windows the bottom-anchored hero content can grow
   taller than the viewport and creep up underneath the fixed nav.
   Compact the stack so the eyebrow always clears the nav bar. */
@media (max-height: 820px) {
  .hero-content { gap: 10px; padding-bottom: 40px; }
  .countdown { margin-top: 0; }
  .add-to-cal { margin-top: 6px; }
  .hero-scroll { display: none; }
}
@media (max-height: 620px) {
  .hero-sub { display: none; }
  .hero-names { font-size: clamp(2.2rem, 8vw, 4rem); }
}

/* ==========================================================================
   Story
   ========================================================================== */
#story { background: var(--cream); }
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.story-copy p { margin: 0 0 20px; color: #454b55; }
.story-copy p:last-child { margin-bottom: 0; }
.story-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.story-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
}
.story-media .tall { aspect-ratio: 3/4.2; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { order: -1; }
}

/* ==========================================================================
   Proposal
   ========================================================================== */
#proposal {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.92);
}
#proposal .eyebrow { color: var(--gold-soft); }
#proposal .eyebrow::before, #proposal .eyebrow::after { background: var(--gold-soft); }
#proposal h2 { color: var(--white); }
.proposal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.proposal-grid img {
  width: 100%;
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.proposal-copy p { color: rgba(255,255,255,0.82); margin: 0 0 18px; }
.proposal-loc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin-bottom: 6px !important;
}
@media (max-width: 860px) {
  .proposal-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Schedule
   ========================================================================== */
#schedule { background: var(--cream-deep); }
.schedule-list {
  display: grid;
  gap: 18px;
}
.schedule-item {
  display: grid;
  grid-template-columns: 130px 1px 1fr;
  gap: 28px;
  align-items: start;
  background: var(--white);
  padding: 30px clamp(20px, 4vw, 40px);
  border-radius: 3px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.schedule-item .sch-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}
.schedule-item .sch-date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.schedule-item .sch-rule { background: var(--gold-soft); height: 100%; min-height: 60px; }
.schedule-item h3 { font-size: 1.4rem; margin-bottom: 8px; }
.schedule-item p { margin: 0; color: #4c525c; }
.sch-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 999px;
}
.sch-tag.main { background: var(--navy); border-color: var(--navy); color: var(--white); }
.sch-note { margin-top: 10px; font-size: 0.82rem; font-style: italic; color: #6b7078; }
.sch-note a { color: var(--gold); font-style: normal; white-space: nowrap; }
@media (max-width: 620px) {
  .schedule-item { grid-template-columns: 74px 1px 1fr; gap: 16px; padding: 22px; }
  .schedule-item .sch-day { font-size: 1.1rem; }
}

/* ==========================================================================
   Dress code
   ========================================================================== */
#dresscode { background: var(--navy); color: rgba(255,255,255,0.92); }
#dresscode .eyebrow, #dresscode .eyebrow::before, #dresscode .eyebrow::after { color: var(--gold-soft); background: var(--gold-soft); }
#dresscode .eyebrow { background: none; }
#dresscode h2 { color: var(--white); }
.dresscode-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--gold-soft);
  line-height: 1.4;
}
.dresscode-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.dc-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(232, 217, 174, 0.25);
  border-radius: 3px;
  padding: 30px 26px;
  text-align: center;
}
.dc-card svg { width: 34px; height: 34px; color: var(--gold-soft); margin-bottom: 14px; }
.dc-card h4 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.dc-card p { color: rgba(255,255,255,0.75); font-size: 0.93rem; margin: 0; }
@media (max-width: 760px) { .dresscode-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Dress code — lookbook photo wall
   ========================================================================== */
.lookbook-section { padding: 70px 0; }
.lookbook-section:nth-child(even) { background: var(--cream); }
.lookbook-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.lookbook-inner .eyebrow { display: block; }
.lookbook-inner p { margin: 18px auto 34px; max-width: 520px; color: var(--ink); opacity: 0.85; line-height: 1.75; }
.lookbook-img {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: block;
}
.lookbook-img-wide { max-width: 600px; }
#dressexample-wall .lookbook-inner { max-width: 860px; }
#dressexample-wall .lookbook-img { max-width: 820px; }
.lookbook-note {
  max-width: 520px;
  margin: 22px auto 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #6b7078;
  text-align: center;
}
@media (max-width: 600px) {
  .lookbook-section { padding: 50px 0; }
  .lookbook-img { max-width: 340px; }
}

/* ==========================================================================
   Venue / travel
   ========================================================================== */
#venue { background: var(--cream); }
.venue-hero {
  background: linear-gradient(rgba(14,39,72,0.5), rgba(14,39,72,0.72)), url("../img/travel-sunset.jpg") center/cover;
  border-radius: 4px;
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 60px);
  color: var(--white);
  text-align: center;
  margin-bottom: 60px;
}
.venue-hero h3 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.venue-hero p { max-width: 640px; margin: 16px auto 0; color: rgba(255,255,255,0.88); }
.venue-hero a.btn { margin-top: 24px; }

.travel-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.travel-card {
  background: var(--white);
  border-radius: 3px;
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}
.travel-card svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; }
.travel-card h4 { font-size: 1.25rem; margin-bottom: 10px; }
.travel-card p { color: #4c525c; margin: 0 0 8px; }
.travel-card .travel-time { color: var(--navy); font-weight: 500; }
.travel-note {
  grid-column: 1 / -1;
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  color: #4c525c;
  font-style: italic;
}
@media (max-width: 760px) { .travel-cols { grid-template-columns: 1fr; } }

.weather-card {
  background: var(--white);
  border-radius: 3px;
  padding: 40px 36px;
  box-shadow: var(--shadow-soft);
  margin-top: 30px;
  text-align: center;
}
.weather-card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-deep); margin: 0 0 16px; }
.weather-card > p { color: #4c525c; max-width: 620px; margin: 0 auto 26px; line-height: 1.75; }
.weather-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-bottom: 22px; }
.weather-stat { display: flex; flex-direction: column; align-items: center; }
.weather-stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--navy); }
.weather-stat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.weather-note { font-style: italic; font-size: 0.82rem; color: #8a8f97; margin: 0 !important; }
@media (max-width: 500px) { .weather-stats { gap: 28px; } }

/* ==========================================================================
   Accommodation
   ========================================================================== */
#stay { background: var(--cream-deep); }
.stay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stay-card {
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.stay-card .stay-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.stay-card h4 { font-size: 1.12rem; }
.stay-card .stay-meta { display: flex; gap: 10px; align-items: center; font-size: 0.76rem; color: var(--navy); }
.stay-card .stay-meta .rating { color: var(--gold); font-weight: 500; }
.stay-card p { margin: 0; font-size: 0.88rem; color: #565c66; flex: 1; }
.stay-card .price { font-size: 0.72rem; letter-spacing: 0.1em; color: #8a8f97; text-transform: uppercase; }
.stay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.stay-badge {
  align-self: flex-start;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 3px 10px;
}
.stay-badge-price { color: var(--gold); border-color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
@media (max-width: 960px) { .stay-grid { grid-template-columns: 1fr 1fr; } }

.stay-share-note {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 18px 26px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
}
.stay-share-note strong { color: var(--navy-deep); }
.stay-price-legend { text-align: center; font-size: 0.8rem; color: #6b7078; font-style: italic; max-width: 640px; margin: 34px auto 0; line-height: 1.6; }
@media (max-width: 620px) { .stay-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   RSVP
   ========================================================================== */
#rsvp {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.92);
}
#rsvp .eyebrow { color: var(--gold-soft); }
#rsvp .eyebrow::before, #rsvp .eyebrow::after { background: var(--gold-soft); }
#rsvp h2 { color: var(--white); }
#rsvp .section-lede { color: rgba(255,255,255,0.78); margin-left: auto; margin-right: auto; }
.rsvp-deadline {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 14px;
}

.rsvp-form {
  max-width: 720px;
  margin: 50px auto 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,217,174,0.22);
  border-radius: 4px;
  padding: clamp(26px, 5vw, 52px);
}
.form-row { margin-bottom: 26px; }
.form-row label, .form-legend {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--white);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}
.form-row textarea { resize: vertical; min-height: 90px; }

.choice-group { display: flex; flex-wrap: wrap; gap: 12px; }
.choice-pill { position: relative; }
.choice-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; }
.choice-pill span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 0.86rem;
  transition: all 0.3s ease;
  user-select: none;
}
.choice-pill input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  font-weight: 500;
}
.choice-pill input:focus-visible + span { outline: 2px solid var(--gold-soft); outline-offset: 2px; }

.day-options { display: grid; gap: 12px; }
.day-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.day-option:has(input:checked) { border-color: var(--gold); background: rgba(232,217,174,0.08); }
.day-option input { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; }
.day-option .day-info strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--white); font-weight: 500; }
.day-option .day-info span { font-size: 0.82rem; color: rgba(255,255,255,0.68); }
.day-option .day-optional-tag {
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--gold-soft);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.attend-fields { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.6s var(--ease), opacity 0.5s ease; }
.attend-fields.show { max-height: 1400px; opacity: 1; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp-submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { font-size: 0.85rem; }
.form-msg.error { color: #ff9a9a; }
.form-msg.success { color: var(--gold-soft); }

.rsvp-success {
  display: none;
  text-align: center;
  padding: 30px 10px 6px;
}
.rsvp-success.show { display: block; }
.rsvp-success .seal-mini {
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 60%, #9a7a34 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  box-shadow: var(--shadow);
  animation: sealPop 0.7s var(--ease);
}
@keyframes sealPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rsvp-success h3 { color: var(--white); margin-bottom: 10px; }
.rsvp-success p { color: rgba(255,255,255,0.78); max-width: 440px; margin: 0 auto; }

@media (max-width: 640px) {
  .form-two { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer / cats
   ========================================================================== */
#cats-footer {
  background: var(--cream);
  text-align: center;
  padding-bottom: 40px;
}
#cats-footer img { width: 130px; margin: 0 auto 18px; }
#cats-footer p { max-width: 460px; margin: 0 auto; color: #6b7078; font-size: 0.9rem; font-style: italic; }

footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.62);
  text-align: center;
  padding: 46px 20px 36px;
  font-size: 0.8rem;
}
footer.site-footer .footer-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-soft);
  margin-bottom: 10px;
}
footer.site-footer a { color: var(--gold-soft); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
footer.site-footer .footer-villa-link { margin-top: 4px; opacity: 0.7; font-size: 0.82rem; }

/* ==========================================================================
   Greek Mythology page
   ========================================================================== */
#mythology { background: var(--cream); }
.myth-copy { max-width: 760px; margin: 0 auto 56px; }
.myth-copy p { margin: 0 0 20px; color: var(--ink); line-height: 1.75; }
.myth-copy p:last-child { margin-bottom: 0; }
.myth-copy h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-deep); margin: 40px 0 14px; }
.myth-note { font-size: 0.85rem; font-style: italic; color: #6b7078; margin-top: -8px; }

.myth-figure { max-width: 720px; margin: 32px auto; text-align: center; }
.myth-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; }
.myth-figure figcaption { margin-top: 10px; font-size: 0.8rem; color: #6b7078; font-style: italic; }
.myth-figure.small { max-width: 340px; }
.myth-figure.wide { max-width: 900px; }

/* ==========================================================================
   Photo gallery (Our Story / Proposal)
   ========================================================================== */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.photo-gallery figure { margin: 0; }
.photo-gallery img.fit-contain { object-fit: contain; background: var(--navy-deep); }
.photo-gallery img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: block;
}
.photo-gallery figcaption {
  margin-top: 8px;
  font-size: 0.76rem;
  color: #6b7078;
  font-style: italic;
  text-align: center;
}
#proposal .photo-gallery figcaption { color: rgba(255, 255, 255, 0.65); }
@media (max-width: 760px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photo-gallery { grid-template-columns: 1fr 1fr; gap: 12px; } }

.photo-gallery-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.photo-gallery-compact figure { margin: 0; }
.photo-gallery-compact img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.6);
  box-shadow: var(--shadow-soft);
  display: block;
}
.photo-gallery-compact figcaption {
  margin-top: 6px;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #6b7078;
  font-style: italic;
  text-align: center;
}
@media (max-width: 900px) { .photo-gallery-compact { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .photo-gallery-compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .photo-gallery-compact { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.myth-tree-wrap { max-width: 900px; margin: 32px auto; overflow-x: auto; }
.myth-tree-svg { display: block; min-width: 640px; width: 100%; height: auto; }
.myth-tree-svg .node-box { fill: var(--gold-soft); }
.myth-tree-svg .node-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  fill: var(--navy-deep);
  text-anchor: middle;
}
.myth-tree-svg .line-offspring { stroke: var(--navy); stroke-width: 2; fill: none; }
.myth-tree-svg .line-relation { stroke: var(--navy); stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.myth-tree-svg .line-label {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  fill: var(--navy);
  text-anchor: middle;
}
.myth-tree-svg .legend-text {
  font-family: var(--font-body);
  font-size: 16px;
  fill: var(--ink);
  text-anchor: start;
}

.pilates-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 6vw, 60px); align-items: start; margin-bottom: 40px; }
.pilates-grid figure { margin: 0; }
.pilates-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; }
.pilates-grid figcaption { margin-top: 10px; font-size: 0.8rem; color: #6b7078; font-style: italic; text-align: center; }
@media (max-width: 760px) { .pilates-grid { grid-template-columns: 1fr; } }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.review-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 28px 30px; }
.review-stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.15em; margin-bottom: 12px; }
.review-quote { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--navy-deep); line-height: 1.6; margin: 0 0 14px; }
.review-author { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0; }
@media (max-width: 700px) { .review-grid { grid-template-columns: 1fr; } }
.pilates-back { text-align: center; margin-top: 40px; }
.pilates-back a { color: var(--navy); font-size: 0.9rem; }

#mythology-crete { background: var(--navy-deep); color: rgba(255, 255, 255, 0.92); }
#mythology-crete .eyebrow { color: var(--gold-soft); }
#mythology-crete .eyebrow::before, #mythology-crete .eyebrow::after { background: var(--gold-soft); }
#mythology-crete h2 { color: var(--white); }
#mythology-crete .myth-copy p { color: rgba(255, 255, 255, 0.82); }
#mythology-crete .myth-figure figcaption { color: rgba(255, 255, 255, 0.65); }
#mythology-aphrodite { background: var(--cream); }

#book-recs { background: var(--cream-deep); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .book-grid { grid-template-columns: 1fr; } }
.book-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 24px 24px 28px; }
.book-cover { width: 96px; height: auto; display: block; margin: 0 auto 18px; border-radius: 2px; box-shadow: var(--shadow-soft); }
.book-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-deep); margin: 0 0 4px; text-align: center; }
.book-card .book-author { display: block; text-align: center; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.book-card p { font-size: 0.87rem; color: var(--ink); opacity: 0.85; line-height: 1.65; margin: 0; }
.book-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.book-link:hover { color: var(--gold); border-color: var(--navy-deep); }

/* ==========================================================================
   Crete Travel Guide page
   ========================================================================== */
#history { background: var(--cream); }
.history-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; }
.history-cols p { margin: 0 0 18px; color: var(--ink); opacity: 0.85; line-height: 1.7; font-size: 0.93rem; }
@media (max-width: 760px) { .history-cols { grid-template-columns: 1fr; } }

.travel-hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto 56px; }
.travel-hero-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; }
@media (max-width: 620px) { .travel-hero-photos { grid-template-columns: 1fr; } }

#walking-tour { background: var(--navy); color: rgba(255, 255, 255, 0.92); }
#walking-tour .eyebrow, #walking-tour .eyebrow::before, #walking-tour .eyebrow::after { color: var(--gold-soft); background: var(--gold-soft); }
#walking-tour .eyebrow { background: none; }
#walking-tour h2, #walking-tour h3 { color: var(--white); }
#walking-tour .section-lede { color: rgba(255, 255, 255, 0.8); }
#walking-tour .myth-figure figcaption { color: rgba(255, 255, 255, 0.65); }
.tour-stop { max-width: 760px; margin: 0 auto 44px; }
.tour-stop:last-child { margin-bottom: 0; }
.tour-stop h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 12px; }
.tour-stop p { color: rgba(255, 255, 255, 0.8); line-height: 1.7; margin: 0 0 14px; font-size: 0.93rem; }
.tour-stop p:last-child { margin-bottom: 0; }
.tour-stop .myth-figure { margin: 20px auto 0; max-width: 420px; }
.tour-route { text-align: center; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 40px; }

.tour-logistics { max-width: 700px; margin: 0 auto 44px; background: rgba(255,255,255,0.06); border: 1px solid rgba(232, 217, 174, 0.25); border-radius: 3px; padding: 28px 32px; }
.tour-logistics li { color: rgba(255, 255, 255, 0.85); line-height: 1.7; font-size: 0.93rem; margin-bottom: 14px; }
.tour-logistics li:last-child { margin-bottom: 0; }
.tour-link { color: var(--gold-soft); border-bottom: 1px solid var(--gold); text-decoration: none; font-weight: 600; }
.tour-link:hover { color: var(--white); border-color: var(--white); }
.tour-map-figure { max-width: 480px; margin: 0 auto 48px; text-align: center; }
.tour-map-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; border: 4px solid rgba(255,255,255,0.9); }
.tour-map-figure figcaption { margin-top: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.65); font-style: italic; }
.tour-map-figure p { margin-top: 14px; }
.tour-group-figure { max-width: 480px; margin: 48px auto 0; text-align: center; }
.tour-group-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; }
.tour-group-figure figcaption { margin-top: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.65); font-style: italic; }

#more-crete { background: var(--cream-deep); }
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .place-grid { grid-template-columns: 1fr; } }
.place-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; padding: 0; }
.place-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.place-card-body { padding: 18px 22px 26px; }
.place-card .place-distance { display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-deep); background: var(--gold-soft); padding: 5px 12px; border-radius: 999px; margin: 0 0 14px; }
.place-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-deep); margin: 0 0 8px; }
.place-card p { font-size: 0.87rem; color: var(--ink); opacity: 0.85; line-height: 1.6; margin: 0; }

/* ==========================================================================
   Villa guests-only page
   ========================================================================== */
.villa-back-btn { padding: 9px 18px; font-size: 0.72rem; letter-spacing: 0.08em; white-space: nowrap; }
.villa-hero {
  padding: clamp(120px, 20vw, 180px) 0 clamp(56px, 8vw, 80px);
  background: radial-gradient(circle at 50% 20%, var(--navy) 0%, var(--navy-deep) 75%);
  color: var(--white);
  text-align: center;
}
.villa-hero .hero-eyebrow { color: var(--gold-soft); }
.villa-hero .hero-names { color: var(--white); margin: 14px 0; }
.villa-hero .hero-sub { max-width: 680px; margin: 0 auto; color: rgba(255, 255, 255, 0.82); }

#wednesday { background: var(--cream); }
#good-to-know { background: var(--navy-deep); color: rgba(255, 255, 255, 0.92); }
#good-to-know .eyebrow, #good-to-know .eyebrow::before, #good-to-know .eyebrow::after { color: var(--gold-soft); background: var(--gold-soft); }
#good-to-know .eyebrow { background: none; }
#good-to-know h2 { color: var(--white); }
#good-to-know .myth-copy p { color: rgba(255, 255, 255, 0.85); }
#good-to-know .myth-copy a { color: var(--gold-soft); }
#packing { background: var(--cream-deep); }

.packing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
@media (max-width: 700px) { .packing-grid { grid-template-columns: 1fr; } }
.packing-col h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-deep); margin: 0 0 16px; }
.packing-list { list-style: none; margin: 0; padding: 0; }
.packing-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.85;
  border-bottom: 1px solid rgba(14, 39, 72, 0.08);
}
.packing-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 600; }

/* Back to top */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Password gate
   ========================================================================== */
#site-content { display: none; }
html.gate-unlocked #site-content { display: block; }
html.gate-unlocked #password-gate { display: none !important; }

/* On Home, keep the gate hidden until the envelope has been opened —
   the "we're getting married" reveal should happen before the password
   prompt, not after. main.js adds "show-gate" once the envelope finishes. */
html.is-home #password-gate { display: none; }
html.is-home.show-gate #password-gate { display: flex; }

#password-gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, var(--navy) 0%, var(--navy-deep) 72%);
}
.gate-card { max-width: 420px; width: 100%; text-align: center; color: var(--white); }
.gate-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.gate-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 500;
  color: var(--white);
  margin: 0 0 10px;
}
.gate-subtitle { font-family: var(--font-body); font-size: 0.95rem; opacity: 0.8; margin: 0 0 28px; line-height: 1.6; }
.gate-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gate-form input {
  flex: 1 1 220px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.gate-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.gate-form input:focus { outline: none; border-color: var(--gold); }
.gate-msg { min-height: 20px; margin-top: 14px; color: var(--gold-bright); font-size: 0.85rem; }

/* ==========================================================================
   Wedding party (Ody & Karl page)
   ========================================================================== */
#wedding-party { background: var(--cream); }
.order-line { text-align: center; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-deep); margin: -12px 0 10px; }
.order-note { text-align: center; font-size: 0.82rem; color: #6b7078; font-style: italic; max-width: 520px; margin: 0 auto 44px; }
.party-list { display: flex; flex-direction: column; gap: 24px; }
.party-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 40px 44px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
  text-align: left;
}
.party-card svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 16px; }
.party-avatar {
  width: 104px; height: 104px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0;
  overflow: hidden;
}
.party-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.party-card-body { flex: 1; min-width: 0; }
.party-card h4 { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy-deep); margin: 0 0 8px; }
.party-card .party-role { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.party-card p { font-size: 0.96rem; color: var(--ink); opacity: 0.85; margin: 0 0 14px; line-height: 1.75; }
.party-card p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .party-card { flex-direction: column; align-items: center; text-align: center; padding: 34px 28px; gap: 18px; }
  .party-avatar { width: 88px; height: 88px; font-size: 2rem; margin: 0 auto; }
}

#pets { background: var(--cream-deep); }
.pets-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.pets-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.pets-tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-deep); background: var(--gold-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.pets-copy h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy-deep); margin: 0 0 10px; }
.pets-copy p { margin: 0 0 26px; color: var(--ink); opacity: 0.85; }
@media (max-width: 760px) { .pets-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Song wishes page
   ========================================================================== */
#songs { background: var(--cream); }
.songs-embed { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.songs-embed iframe { width: 100%; height: 1000px; border: 0; display: block; }
.songs-fallback { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--ink); opacity: 0.75; }
.songs-fallback a { color: var(--navy-deep); }
@media (max-width: 600px) { .songs-embed iframe { height: 1300px; } }

/* ==========================================================================
   The Venue page
   ========================================================================== */
#the-venue { background: var(--cream); }
.venue-hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 64px; }
.venue-hero-photo img { width: 100%; display: block; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.feature-row:last-of-type { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); display: block; }
.feature-copy h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-deep); margin: 0 0 14px; }
.feature-copy p { color: var(--ink); opacity: 0.85; margin: 0; line-height: 1.7; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; margin-bottom: 48px; }
  .feature-row.reverse .feature-media { order: 0; }
}

.venue-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 72px 0 44px; }
.venue-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; border-radius: var(--radius); display: block; }
@media (max-width: 700px) { .venue-gallery { grid-template-columns: repeat(2, 1fr); } }

.venue-credit { text-align: center; font-size: 0.78rem; color: #6b7078; font-style: italic; margin-top: 8px; }
.venue-cta-row { text-align: center; margin-top: 40px; }

.venue-address { text-align: center; margin-top: 22px; }
.venue-address-text { font-size: 0.98rem; color: var(--ink); opacity: 0.85; margin: 0 0 16px; user-select: all; }
.venue-address-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.venue-address-actions .btn { min-width: 168px; }
@media (max-width: 480px) { .venue-address-actions { flex-direction: column; align-items: center; } }

.schedule-teaser-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 0; }
.sch-pill {
  font-size: 0.78rem; letter-spacing: 0.06em; padding: 9px 18px;
  border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--navy-deep);
}
.sch-pill.main { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Home page venue teaser */
#venue-teaser { background: var(--cream-deep); }
.venue-teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.venue-teaser-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.venue-teaser-copy p { color: var(--ink); opacity: 0.85; margin: 18px 0 26px; line-height: 1.7; }
@media (max-width: 760px) { .venue-teaser-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Accommodation: booking links + map
   ========================================================================== */
.stay-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.stay-link:hover { color: var(--gold); border-color: var(--navy-deep); }

#accommodation-map, #venue-map {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  box-shadow: 0 0 0 2px var(--white), var(--shadow-soft);
}
.map-pin-venue {
  background: var(--gold);
  color: var(--navy-deep);
  width: 30px;
  height: 30px;
  font-size: 16px;
}
.map-popup a { color: var(--navy-deep); }
