.hero-media { inset: 0; transform: none; background: #6764a8; }
.hero-media picture { z-index: 0; }
.hero-canvas { z-index: 2; display: block; opacity: 0; transition: opacity 900ms cubic-bezier(.16,1,.3,1); }
.hero-canvas.ready { opacity: 1; }
.hero-copy { z-index: 3; transition: opacity .2s linear, transform .2s linear; }
.hero::before, .hero::after { z-index: 2; }
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 56% 59%, transparent 36%, rgb(21 12 42 / 13%) 100%);
  mix-blend-mode: multiply;
}

@media (min-width: 801px) {
  .hero-media { inset: -2.5%; }
}

@media (max-width: 800px) {
  .hero-canvas { object-fit: fill; }
  .hero-media {
    --v5-plate-top: calc(100% - 129.375vw);
    background: linear-gradient(180deg,
      #6461a6 0,
      #6461a6 calc(var(--v5-plate-top) - 220px),
      #6d6ab6 var(--v5-plate-top),
      #8a82c4 calc(var(--v5-plate-top) + 56px),
      #bb9dcb calc(var(--v5-plate-top) + 112px),
      #e0acc9 calc(var(--v5-plate-top) + 168px),
      #f4b2bf calc(var(--v5-plate-top) + 224px),
      #b486b1 calc(var(--v5-plate-top) + 310px),
      #2a203f 100%);
  }
  .hero-media picture { display: block; }
  .hero-vignette { background: linear-gradient(180deg, rgb(30 20 62 / 10%), transparent 46%, rgb(22 12 42 / 18%)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none !important; }
  .hero-media picture { display: block !important; }
}

.hero-media > picture { inset: auto; transform: none; aspect-ratio: auto; }
.hero-media > picture .hero-poster { width: 100%; height: 100%; object-fit: fill; }
.hero-canvas { pointer-events: none; }

@media (max-width: 800px) {
  .hero-media > picture .hero-poster {
    mask-image: linear-gradient(180deg, transparent 0, #000 240px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 240px);
  }
}

/* mobile-fix: keep header + hero copy legible even if the canvas/sky misrenders */
@media (max-width: 800px) {
  .site-header:not(.scrolled) { background: linear-gradient(180deg, rgb(26 20 48 / 55%), rgb(26 20 48 / 0)); }
  .hero-copy { text-shadow: 0 1px 14px rgb(26 20 48 / 45%); }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .5rem; }
  .hero .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-actions .button { min-height: 48px; }
  .hero-copy > .hero-eyebrow { font-size: .75rem; }
  footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

  /* mobile-fix: hamburger toggle + slide-down nav panel */
  .site-header nav { margin-left: auto; margin-right: .35rem; }
  .menu-toggle {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ivory);
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-toggle::before,
  .menu-toggle::after {
    content: "";
    position: absolute;
    left: 11px;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: top .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .menu-toggle::before { top: 18px; }
  .menu-toggle::after { top: 25px; }
  .menu-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    inset: 4.5rem 0 auto;
    z-index: 29;
    display: flex;
    flex-direction: column;
    padding: .25rem var(--gutter) 1rem;
    color: var(--ivory);
    background: rgb(26 20 48 / 94%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgb(246 239 230 / 18%);
    transition: top .45s ease;
  }
  .site-header.scrolled ~ .mobile-menu { top: 3.65rem; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    text-transform: uppercase;
    font: 500 .78rem/1 var(--ui);
    letter-spacing: .18em;
    border-bottom: 1px solid rgb(246 239 230 / 12%);
  }
  .mobile-menu a:last-child { border-bottom: 0; }
}

@media (min-width: 801px) {
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* Floating Book pill: clear the iOS home indicator / browser toolbar. */
.sticky-book { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, calc(env(safe-area-inset-bottom) + .75rem)); }

/* Mobile: the fixed header already carries Book, so drop the floating pill that covered content. */
@media (max-width: 800px) { .sticky-book { display: none !important; } }

/* Mobile headline spacing: keep descenders clear of the next line. */
@media (max-width: 800px) {
  .closing h2 { font-size: clamp(4rem, 18vw, 6.5rem); line-height: 1.1; }
  .closing h2 em { display: inline-block; margin-top: .08em; }
  .hero h1 { line-height: .92; }
}

/* Type harmony (2026-11-14): two voices only. Serif (Cormorant) for the
   headline and its deck line, Inter caps for small labels. More air between
   headline and deck, and a soft shadow so the deck reads over the sky. */
.hero-copy > .hero-eyebrow { letter-spacing: .26em; opacity: .92; }
.hero-copy > .hero-deck {
  margin-top: 1.1rem;
  font: italic 300 clamp(1.2rem, 1.55vw, 1.55rem)/1.3 var(--serif);
  letter-spacing: .005em;
  text-shadow: 0 1px 18px rgb(26 20 48 / 55%);
}
.hero-actions { margin-top: 1.6rem; }
@media (max-width: 800px) {
  .hero-copy > .hero-deck { font-size: 1.15rem; max-width: 20rem; }
}
@media (max-width: 800px) {
  .hero h1 { max-width: none; font-size: clamp(2.7rem, 11.2vw, 3.5rem); }
  .hero-copy > .hero-deck { text-wrap: balance; }
}

/* Design pass 2 (2026-11-14): one type scale with the hero as the largest step.
   Section heads were up to 10rem (bigger than the hero); cap them at 4.75rem and
   keep line-heights >= .94 so Cormorant italics don't clip. */
.hero h1 { font-size: clamp(3.25rem, 2.1rem + 4.2vw, 5.25rem); line-height: .94; }
.stay h2, .notes h2 { font-size: clamp(2.75rem, 1.9rem + 3.4vw, 4.75rem); line-height: .96; }
.closing h2 { font-size: clamp(2.75rem, 1.9rem + 3.4vw, 4.75rem); line-height: .96; }
.hero-actions { align-items: center; gap: 1.5rem; }
.hero .hero-actions .text-link { color: var(--ivory); font: italic 400 1.15rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; border-bottom: 1px solid rgb(247 240 232 / 45%); text-shadow: 0 1px 14px rgb(26 20 48 / 55%); }
.rendering-note { text-transform: none !important; letter-spacing: .01em !important; font-size: .8rem !important; color: rgb(247 240 232 / 72%); }
@media (max-width: 800px) {
  .hero h1 { font-size: clamp(2.7rem, 11.2vw, 3.5rem); }
  .stay h2, .notes h2, .closing h2 { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .hero .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .hero-actions .text-link { align-self: center; }
}

/* Hero vs nav (2026-11-14): the eyebrow was the same Inter caps as the nav and
   sat ~30px under it, reading as a second nav row. Drop the copy into the sky
   and frame the eyebrow with hairlines so it reads as a label, not a link. */
@media (min-width: 801px) {
  .hero-copy { padding-top: clamp(7.75rem, 14vh, 9rem); }
}
.hero-copy > .hero-eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  margin-bottom: 1.6rem; font-size: .62rem; letter-spacing: .34em; opacity: .85;
}
.hero-copy > .hero-eyebrow::before,
.hero-copy > .hero-eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .55; }
@media (max-width: 800px) {
  .hero-copy > .hero-eyebrow { justify-content: flex-start; }
  .hero-copy > .hero-eyebrow::before { display: none; }
}

/* v6 hero (2026-11-14): one painted dusk scene of Lucky Villa's backyard, no WebGL.
   Desktop keeps the calm sky on top for the headline; mobile uses a portrait crop. */
.hero-media { inset: 0; transform: none; background: #3d3470; }
.hero .hero-media > picture { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }
.hero .hero-media > picture .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
  -webkit-mask-image: none; mask-image: none;
}
.hero::before {
  inset: 0 0 35%;
  background:
    radial-gradient(ellipse 40% 66% at 50% 38%, rgb(27 22 48 / 52%), transparent 74%),
    linear-gradient(180deg, rgb(27 22 48 / 40%) 0%, rgb(27 22 48 / 8%) 75%, transparent 100%);
}
@media (max-width: 800px) {
  .hero { background: #3d3470; }
  .hero::before { inset: 0 0 30%; background: linear-gradient(180deg, rgb(27 22 48 / 62%) 0%, rgb(27 22 48 / 38%) 65%, transparent 100%); }
  .hero .hero-media > picture .hero-poster { object-position: center bottom; }
}
.hero .hero-actions .text-link { text-shadow: 0 1px 3px rgb(20 14 40 / 85%), 0 0 18px rgb(20 14 40 / 70%); border-bottom-color: rgb(247 240 232 / 60%); }
.hero-copy > .hero-deck { text-shadow: 0 1px 3px rgb(20 14 40 / 70%), 0 1px 18px rgb(26 20 48 / 60%); }

/* Closing image: the same painted evening, later — dinner on the covered patio. */
.closing-photo { background-image: url("/home-v6/img/lucky-dinner-night-v2.webp"); background-position: center 60%; }
