/* ==========================================================================
   Madhavam — The Luxury Banquet · main stylesheet
   Mobile-first (360px floor). Palette and motifs are taken from the venue's
   own photography: ivory/cream daylight, warm gold, hedge green, near-black
   tungsten night, ogee arches, jaali lattice.
   ========================================================================== */

/* ---------- fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/jost-var-400-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-500-italic-latin.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --ivory: #f8f2e7;
  --cream: #efe5d2;
  --sand: #e6d9c0;
  --ink: #2b2118;
  --ink-soft: #55483a;
  --gold: #c9a24b;
  --gold-deep: #8a6624;   /* AA on ivory for small text */
  --gold-bright: #eacd7c; /* for dark grounds */
  --gold-line: #b8933f;
  --green: #1e3a2a;
  --night: #15100b;
  --night-2: #201812;
  --night-3: #2a2018;
  --paper-night: #f3e9d8;
  --wa: #0e7a3f;
  --maroon: #6b2430;
  --shadow: 0 18px 50px -18px rgb(21 16 11 / .45);
  --ease: cubic-bezier(.33, 0, .18, 1);
  --dock-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 899.98px) {
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'Marcellus', 'Times New Roman', serif; font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--gold-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 .9rem;
}
.dark .eyebrow { color: var(--gold-bright); }
.accent-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: 1.35rem; color: var(--gold-deep);
}
.dark .accent-line { color: var(--gold-bright); }

section { padding-block: clamp(3.5rem, 10vw, 6.5rem); }
.section-head { max-width: 34rem; margin-bottom: clamp(1.8rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.8rem, 5.6vw, 2.7rem); letter-spacing: .015em; }
.section-head p { color: var(--ink-soft); }
.dark .section-head p { color: #cdbfa8; }

/* ---------- gold hairline + jaali divider ---------- */
.rule {
  display: flex; align-items: center; gap: .9rem;
  margin: 0 0 1.1rem; border: 0; padding: 0;
}
.rule::before, .rule::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold-line)); }
.rule::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.rule svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-line); stroke-width: 1.4; flex: none; }

.jaali-band {
  height: 44px;
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-opacity='0.35' stroke-width='1'%3E%3Cpath d='M22 2 L38 12 L38 32 L22 42 L6 32 L6 12 Z'/%3E%3Cpath d='M22 12 L30 17 L30 27 L22 32 L14 27 L14 17 Z'/%3E%3Cpath d='M22 2 L22 12 M38 12 L30 17 M38 32 L30 27 M22 42 L22 32 M6 32 L14 27 M6 12 L14 17'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 44px 44px;
  background-repeat: repeat;
}
.jaali-band.on-dark { background-color: var(--night); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgb(21 16 11 / .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(201 162 75 / .28);
}
.site-header .bar {
  display: flex; align-items: center; gap: .7rem;
  min-height: 56px;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand .brand-name {
  font-family: 'Marcellus', serif;
  font-size: 1.05rem; letter-spacing: .2em;
  color: var(--gold-bright);
  transform: translateY(1px);
}
.header-call {
  margin-left: auto;
  font-weight: 500; font-size: .95rem; letter-spacing: .05em;
  color: var(--gold-bright); text-decoration: none;
  padding: .5rem .25rem;
}
.header-call:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 479.98px) { .header-call span { display: none; } }

/* ==========================================================================
   Hero - editorial, asymmetric
   ========================================================================== */
.hero {
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  display: flex; flex-direction: column;
  padding-block: 1.9rem 1.2rem;
  overflow: hidden;
  background:
    radial-gradient(88% 42% at 50% 8%, #fdf9ef 0%, rgb(253 249 239 / 0) 62%),
    radial-gradient(120% 60% at 50% 108%, rgb(214 195 158 / .38) 0%, transparent 55%);
}
.hero .container {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .3rem; min-height: 0;
  position: relative;
}
.hero-crest { width: clamp(74px, 20vw, 102px); height: auto; filter: drop-shadow(0 6px 16px rgb(138 102 36 / .28)); }
.hero h1 {
  font-size: clamp(2.6rem, 12vw, 6.2rem);
  letter-spacing: .13em; text-indent: .13em;
  margin: .3rem 0 0;
  color: var(--ink);
  line-height: 1.02;
}
.hero .hero-tag {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  color: var(--gold-deep);
  margin: 0;
}
.hero .hero-loc {
  display: flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: .7rem 0 1rem;
}
.hero .hero-loc::before, .hero .hero-loc::after {
  content: ''; height: 1px; width: 2.2rem;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.hero .hero-loc::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.hero-arch {
  position: relative;
  flex: 1; min-height: 16rem;
  width: min(100% + 1.2rem, 31rem);
  margin-inline: -0.6rem;
}
/* vertical editorial rail beside the arch (>=560px) */
.hero-rail {
  display: none;
  position: absolute; z-index: 2;
  writing-mode: vertical-rl;
  font-size: .72rem; font-weight: 600; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gold-deep);
}
@media (min-width: 560px) { .hero-rail { display: block; right: -1.4rem; top: 6%; } }
.hero-cta {
  display: none;
  flex-wrap: wrap; gap: .8rem; justify-content: center;
  margin-top: 1.25rem;
}
@media (min-width: 900px) { .hero-cta { display: flex; } }
.hero-rating {
  margin-top: .95rem;
  font-size: .95rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: .5rem;
}
.hero-rating .stars { color: var(--gold-deep); letter-spacing: .1em; font-size: 1rem; }
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue svg { width: 20px; height: 20px; stroke: var(--gold-deep); fill: none; stroke-width: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-bob 2.4s var(--ease) infinite; }
  @keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
}

@media (min-width: 900px) {
  .hero { padding-block: 2.2rem 1.6rem; }
  .hero .container {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    align-items: center; text-align: left;
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(3.6rem, 6.2vw, 5.6rem); margin-top: .45rem; }
  .hero .hero-loc { justify-content: flex-start; margin-bottom: 1.5rem; }
  .hero .hero-loc::before { display: none; }
  .hero-arch {
    width: 100%; min-height: min(76vh, 42rem);
    margin: 0;
    transform: translateY(-1.2rem);
  }
  .hero-rail { right: auto; left: -2.6rem; top: 4%; }
  .hero-rating { margin-top: 1.1rem; }
  .scroll-cue { grid-column: 1 / -1; justify-self: center; margin-top: 0; }
}

/* ==========================================================================
   Ogee arch frames
   ========================================================================== */
.arch-frame { position: relative; }
.arch-frame .arch-clip {
  position: absolute; inset: 0;
  clip-path: url(#ogee-clip);
  overflow: hidden;
  background: var(--sand);
}
.arch-frame .arch-clip img,
.arch-frame .arch-clip picture { width: 100%; height: 100%; }
.arch-frame .arch-clip img { object-fit: cover; }
.arch-frame .arch-stroke {
  position: absolute; inset: -1px;
  width: calc(100% + 2px); height: calc(100% + 2px);
  fill: none; stroke: var(--gold-line); stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.arch-frame .arch-stroke path { vector-effect: non-scaling-stroke; }
.arch-frame .arch-stroke-inner { inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: .55; stroke-width: 1; }
.arch-frame::after {
  content: '';
  position: absolute; inset: 6% -4% -3% -4%; z-index: -1;
  background: radial-gradient(60% 55% at 50% 60%, rgb(64 46 20 / .22), transparent 70%);
  filter: blur(10px);
}
/* static arch (fixed aspect) used outside the hero */
.arch-static { aspect-ratio: 4 / 5; }
/* squarer arch for landscape source photos, so the crop keeps their context */
.arch-static.arch-sq { aspect-ratio: 1 / 1; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 21px; height: 21px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0c6b37; box-shadow: var(--shadow); }
.btn-gold { background: rgb(201 162 75 / .07); color: var(--gold-deep); border-color: var(--gold-line); }
.btn-gold:hover { background: rgb(201 162 75 / .12); }
.dark .btn-gold { color: var(--gold-bright); border-color: rgb(234 205 124 / .55); }
.dark .btn-gold:hover { background: rgb(234 205 124 / .1); }

/* ==========================================================================
   Intro - manifesto
   ========================================================================== */
.intro { padding-block: clamp(3.2rem, 9vw, 5.5rem); }
.intro .container { max-width: 47rem; text-align: center; position: relative; }
.intro .lede {
  font-size: clamp(1.3rem, 4.6vw, 1.85rem);
  line-height: 1.5; color: var(--ink);
  font-weight: 400;
}
.intro .lede .accent-line { font-size: 1.06em; }
.intro-facts {
  margin: 2.4rem auto 0; padding: 1.1rem 0 0; list-style: none;
  display: flex; justify-content: center;
  border-top: 1px solid rgb(184 147 63 / .4);
}
.intro-facts li {
  flex: 1;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep);
  padding: .2rem .6rem;
  border: 0; border-radius: 0; background: none;
}
.intro-facts li + li { border-left: 1px solid rgb(184 147 63 / .35); }
.intro-facts li strong {
  display: block;
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  letter-spacing: .04em; color: var(--ink);
  margin-bottom: .15rem;
}

/* ==========================================================================
   Spaces - indexed editorial chapters with collage
   ========================================================================== */
.space { display: grid; gap: 1.5rem; align-items: center; position: relative; }
.space + .space { margin-top: clamp(4.5rem, 12vw, 8rem); }
.space .space-media {
  position: relative;
  width: min(100%, 27rem); margin-inline: auto;
}
.space .space-companion {
  position: absolute; z-index: 2;
  width: 44%;
  bottom: -8%; left: -3%;
  border: 1px solid rgb(184 147 63 / .55);
  outline: 6px solid rgb(248 242 231 / .92);
  box-shadow: 0 18px 44px -16px rgb(21 16 11 / .6);
}
.space.flip .space-companion { left: auto; right: -3%; }
.space .space-companion img { width: 100%; height: auto; display: block; }
.band-dusk .space:nth-of-type(3) .space-companion { outline-color: rgb(44 33 21 / .9); }
.space-num {
  display: block;
  font-family: 'Marcellus', serif;
  font-size: clamp(3.2rem, 11vw, 5.2rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgb(138 102 36 / .58);
  margin-bottom: .2rem;
}
.band-dusk .space:last-child .space-num { -webkit-text-stroke-color: rgb(234 205 124 / .5); }
.space h3 { font-size: clamp(1.75rem, 6vw, 2.5rem); max-width: 17ch; }
.space .space-copy p { color: var(--ink-soft); max-width: 44ch; }
.dark .space .space-copy p { color: #cdbfa8; }
.space .space-kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem;
}
.space .space-kicker::after { content: ''; width: 3rem; height: 1px; background: var(--gold-line); }
@media (min-width: 820px) {
  .space { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .space.flip .space-media { order: 2; }
  .space .space-media { width: 100%; max-width: 30rem; }
  .space .space-copy { padding-top: 1rem; }
}

/* dusk band - the page turns to evening here */
.band-dusk {
  background: linear-gradient(180deg, var(--ivory) 0%, #f2e7d1 14%, #cbb693 40%, #7a6647 66%, #2c2115 88%, var(--night-2) 100%);
}
.band-dusk .space-copy p { color: #3c3120; }
/* AA on every zone of the gradient the light kickers can sit over */
.band-dusk .space-kicker { color: #4a3a14; }
.band-dusk .space-kicker::after { background: #4a3a14; }
.band-dusk .space:last-child h3, .band-dusk .space:last-child .space-kicker { color: var(--gold-bright); }
.band-dusk .space:last-child .space-kicker::after { background: rgb(234 205 124 / .6); }
.band-dusk .space:last-child .space-copy p { color: #d9cbb2; }

/* dark ground */
.dark { background: var(--night); color: var(--paper-night); }
.dark h2, .dark h3 { color: var(--paper-night); }

/* ghost display word behind section heads */
.section-head { position: relative; }
.ghost {
  position: absolute;
  top: -.6em; left: -.04em;
  font-family: 'Marcellus', serif;
  font-size: clamp(4.2rem, 17vw, 9.5rem);
  line-height: 1; white-space: nowrap;
  color: rgb(138 102 36 / .1);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.dark .ghost, .band-dusk .ghost { color: rgb(234 205 124 / .08); }
.section-head > *:not(.ghost) { position: relative; z-index: 1; }

/* ==========================================================================
   Occasions - full-image cards, type inside
   ========================================================================== */
.occasions { background: var(--night); }
.occ-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.occ-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgb(234 205 124 / .3);
  min-height: clamp(24rem, 60vw, 27rem);
  display: flex; align-items: flex-end;
  background: var(--night-2);
  box-shadow: none;
}
.occ-card .occ-media { position: absolute; inset: 0; aspect-ratio: auto; }
.occ-card .occ-media picture, .occ-card .occ-media img { width: 100%; height: 100%; }
.occ-card .occ-media img { object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) { .occ-card:hover .occ-media img { transform: scale(1.05); } }
.occ-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(18 12 7 / .12) 0%, rgb(18 12 7 / 0) 32%, rgb(18 12 7 / .4) 58%, rgb(14 9 5 / .94) 100%);
  z-index: 1;
}
.occ-card::after {
  content: '';
  position: absolute; inset: 9px;
  border: 1px solid rgb(234 205 124 / .35);
  z-index: 2; pointer-events: none;
}
.occ-card .occ-body { position: relative; z-index: 3; padding: 1.2rem 1.35rem 1.35rem; }
.occ-card h3 {
  font-size: clamp(1.5rem, 5.4vw, 1.8rem);
  color: var(--gold-bright); margin-bottom: .4rem;
}
.occ-card p { font-size: .97rem; line-height: 1.5; color: #e6d9bf; margin: 0; }
@media (min-width: 1020px) {
  .occ-grid { grid-template-columns: repeat(4, 1fr); }
  .occ-card:nth-child(even) { transform: translateY(2.4rem); }
  .occasions .container { padding-bottom: 2.4rem; }
}

/* ==========================================================================
   Gallery (horizontal scroll-snap strip)
   ========================================================================== */
.gallery { background: var(--night); }
.g-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.4rem;
}
.no-js .g-filters { display: none; }
.g-chip {
  font: inherit; font-size: .84rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid rgb(234 205 124 / .38);
  border-radius: 2px;
  padding: .55rem 1.05rem;
  min-height: 48px;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.g-chip[aria-pressed="true"] { background: var(--gold-bright); color: var(--night); border-color: var(--gold-bright); }
.g-track {
  display: flex; gap: .9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .25rem .25rem 1.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--gold-deep) transparent;
}
.g-item {
  flex: 0 0 auto;
  width: min(74vw, 21rem);
  margin: 0;
  scroll-snap-align: center;
}
.g-item.is-hidden { display: none; }
.g-item.wide { width: min(88vw, 27rem); }
.g-item .g-pic {
  border-radius: 3px; overflow: hidden;
  border: 1px solid rgb(234 205 124 / .28);
  background: var(--night-3);
  box-shadow: 0 14px 36px -18px rgb(0 0 0 / .8);
}
.g-item img { width: 100%; height: auto; }
.g-item figcaption {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500;
  font-size: 1.06rem; color: #c3b394;
  padding: .55rem .2rem 0;
}
.g-hint { font-size: .85rem; color: #9b8c72; margin-top: .2rem; }
@media (min-width: 900px) {
  .g-item { width: 22rem; }
  .g-item.wide { width: 30rem; }
}

/* ==========================================================================
   Reviews - framed panel
   ========================================================================== */
.reviews { background: var(--night); padding-top: clamp(1.5rem, 4vw, 3rem); }
.reviews .rev-panel {
  position: relative;
  text-align: center;
  border: 1px solid rgb(234 205 124 / .3);
  padding: clamp(2.6rem, 7vw, 4rem) 1.5rem;
  background:
    radial-gradient(80% 100% at 50% 0%, rgb(42 32 24 / .55) 0%, transparent 70%),
    var(--night-2);
}
.reviews .rev-panel::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgb(234 205 124 / .18);
  pointer-events: none;
}
.reviews .rating-big {
  font-family: 'Marcellus', serif;
  font-size: clamp(4rem, 16vw, 6.4rem);
  color: var(--gold-bright); line-height: 1;
  margin: 0;
}
.reviews .stars-row { color: var(--gold-bright); font-size: 1.4rem; letter-spacing: .22em; text-indent: .22em; margin: .5rem 0 .8rem; }
.reviews p { color: #cdbfa8; max-width: 30rem; margin-inline: auto; }

/* ==========================================================================
   Location
   ========================================================================== */
.location { background: var(--night-2); }
.loc-grid { display: grid; gap: 2.2rem; }
.loc-card {
  position: relative;
  border: 1px solid rgb(234 205 124 / .32);
  padding: 1.8rem 1.6rem;
  background: rgb(21 16 11 / .55);
}
.loc-card::before {
  content: '';
  position: absolute; inset: 7px;
  border: 1px solid rgb(234 205 124 / .16);
  pointer-events: none;
}
.loc-card address { font-style: normal; font-size: 1.08rem; line-height: 1.7; color: var(--paper-night); }
.loc-card .loc-note { color: #b7a88e; font-size: .95rem; }
.loc-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; position: relative; }
@media (min-width: 820px) {
  .loc-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ==========================================================================
   Contact - framed invitation
   ========================================================================== */
.contact { background: var(--night); text-align: center; }
.contact .contact-panel {
  position: relative;
  max-width: 42rem; margin-inline: auto;
  border: 1px solid rgb(234 205 124 / .32);
  padding: clamp(2.6rem, 8vw, 4.2rem) clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(90% 90% at 50% 0%, rgb(42 32 24 / .5) 0%, transparent 65%),
    var(--night-2);
}
.contact .contact-panel::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgb(234 205 124 / .18);
  pointer-events: none;
}
.contact h2 { font-size: clamp(2.1rem, 7.5vw, 3.1rem); }
.contact p { color: #cdbfa8; }
.contact .contact-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.6rem;
  position: relative;
}
.contact .contact-cta .btn-wa { flex: 1 1 100%; max-width: 26rem; margin-inline: auto; }
@media (min-width: 640px) { .contact .contact-cta .btn-wa { flex: 0 1 auto; } }
.contact .contact-alt { margin-top: 1.4rem; font-size: .98rem; color: #b7a88e; position: relative; }
.contact .contact-alt a { color: var(--gold-bright); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0e0a06;
  border-top: 1px solid rgb(234 205 124 / .18);
  padding: 2.6rem 0 2.2rem;
  text-align: center;
  color: #9b8c72; font-size: .92rem;
}
.site-footer .foot-crest { width: 72px; margin: 0 auto .8rem; height: auto; }
.foot-wordmark {
  font-family: 'Marcellus', serif;
  font-size: 1.7rem; letter-spacing: .22em; text-indent: .22em;
  color: var(--gold-bright); margin: 0;
}
.foot-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500;
  font-size: 1.15rem; color: #c3b394; margin: .1rem 0 1.2rem;
}
.site-footer .foot-lines { line-height: 1.8; }
.site-footer a { color: var(--gold-bright); }

/* ==========================================================================
   Mobile dock
   ========================================================================== */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: .6rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: rgb(14 10 6 / .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgb(234 205 124 / .28);
}
.dock .btn { flex: 1; min-height: 50px; font-size: 1.02rem; }
.dock .btn-gold { color: var(--gold-bright); border-color: rgb(234 205 124 / .55); }
@media (min-width: 900px) { .dock { display: none; } }

/* ==========================================================================
   The curtain opening (stage 3)
   Fixed overlay above everything; the hero pins beneath it via CSS sticky
   inside .opening's scroll runway (desktop scrub). Touch plays a one-time
   tween instead. No JS -> no curtain at all.
   ========================================================================== */
.curtain { display: none; }

/* runway: only on desktop-scrub mode, added/removed by curtain.js via classes */
html.curtain-armed:not(.curtain-touch):not(.curtain-fade) .opening { height: 215vh; }
html.curtain-armed:not(.curtain-touch):not(.curtain-fade) .opening .hero {
  position: sticky; top: 56px;
}

html.curtain-armed .curtain {
  display: block;
  position: fixed; inset: 0; z-index: 100;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}

/* soft shadow falling inward on the revealed page */
.curtain-reveal-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 42%, rgb(21 16 11 / .38) 100%),
    linear-gradient(90deg, rgb(21 16 11 / .30), transparent 18% 82%, rgb(21 16 11 / .30));
  pointer-events: none;
}

.curtain-panel {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  width: 50.6vw;
  background-color: #e8dcc2;
  background-size: cover;
  background-position: top center;
  will-change: transform;
}
.curtain-l { left: 0; transform-origin: left center; background-image: url('../img/curtain-fabric-l.webp'); }
.curtain-r { right: 0; transform-origin: right center; background-image: url('../img/curtain-fabric-r.webp'); }
@supports (background-image: image-set(url('../img/curtain-fabric-l.avif') type('image/avif'))) {
  .curtain-l { background-image: image-set(url('../img/curtain-fabric-l.avif') type('image/avif'), url('../img/curtain-fabric-l.webp') type('image/webp')); }
  .curtain-r { background-image: image-set(url('../img/curtain-fabric-r.avif') type('image/avif'), url('../img/curtain-fabric-r.webp') type('image/webp')); }
}

/* top valance + floor shading over the baked fabric */
.curtain-panel .folds {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(60 42 20 / .30) 0%, transparent 11%),
    linear-gradient(180deg, transparent 84%, rgb(60 42 20 / .20) 100%);
}
/* light sweep that travels as the fabric draws */
.curtain-panel .gloss {
  position: absolute; inset: 0;
  background: linear-gradient(78deg, transparent 34%, rgb(255 246 218 / .30) 46%, rgb(255 246 218 / .10) 52%, transparent 64%);
  background-size: 260% 100%;
  background-position: 82% 0;
}
/* darkening as the fabric gathers */
.curtain-panel .gather-shade { position: absolute; inset: 0; opacity: .12; }
.curtain-l .gather-shade { background: linear-gradient(90deg, rgb(52 36 16 / .55), transparent 55%); }
.curtain-r .gather-shade { background: linear-gradient(270deg, rgb(52 36 16 / .55), transparent 55%); }

/* gold trim on the meeting edges + seam shadow */
.curtain-l { box-shadow: 10px 0 34px -6px rgb(21 16 11 / .5); }
.curtain-r { box-shadow: -10px 0 34px -6px rgb(21 16 11 / .5); }
.curtain-panel .trim {
  position: absolute; top: 0; bottom: 0; width: 13px;
  background:
    linear-gradient(90deg, #8a6624 0 2px, #eacd7c 2px 6px, #c9a24b 6px 9px, #8a6624 9px 11px, transparent 11px);
}
.curtain-l .trim { right: 0; }
.curtain-r .trim { left: 0; transform: scaleX(-1); }

.curtain-brand::before {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: min(120vw, 46rem); height: min(64vh, 30rem);
  transform: translate(-50%, -54%);
  background: radial-gradient(50% 50% at 50% 50%, rgb(250 244 228 / .82) 0%, rgb(248 240 220 / .35) 55%, transparent 78%);
  pointer-events: none;
}
.curtain-brand {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
  pointer-events: none;
  padding-bottom: 8vh;
}
.curtain-brand img {
  width: min(66vw, 380px); height: auto;
  filter: drop-shadow(0 10px 30px rgb(21 16 11 / .35));
}
.curtain-loc {
  font-family: 'Jost', sans-serif;
  font-size: .85rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: #5c4a2e; margin: 0;
}
.curtain-cue {
  position: absolute; left: 50%; bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  background: none; border: 0; cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: #6d5836; padding: .8rem 1.2rem;
}
.curtain-cue svg { width: 22px; height: 22px; stroke: #8a6624; fill: none; stroke-width: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .curtain-cue svg { animation: cue-bob 2.4s var(--ease) infinite; }
}

/* curtain brand block (crest + typed name, mirroring the hero) */
.curtain-crest, .curtain-name { position: relative; }
.curtain-crest {
  width: clamp(84px, 25vw, 124px); height: auto;
  filter: drop-shadow(0 8px 22px rgb(21 16 11 / .3));
}
.curtain-name { margin-top: .4rem; }
.curtain-title {
  font-family: 'Marcellus', serif;
  font-size: clamp(2.2rem, 9.5vw, 3.6rem);
  letter-spacing: .14em; text-indent: .14em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
.curtain-tag {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  color: var(--gold-deep);
  margin: .1rem 0 .8rem;
}

/* ==========================================================================
   Stage 4: lightbox + reveals
   ========================================================================== */
.g-pic { cursor: pointer; }
.g-pic:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.lightbox {
  border: 0; padding: 0; margin: auto;
  background: transparent;
  max-width: min(94vw, 60rem);
  width: auto;
}
.lightbox::backdrop { background: rgb(10 7 4 / .93); }
.lightbox figure { margin: 0; }
.lightbox img {
  max-width: min(94vw, 60rem);
  max-height: 82vh; max-height: 82dvh;
  width: auto; height: auto;
  margin-inline: auto;
  border-radius: 10px;
  border: 1px solid rgb(234 205 124 / .35);
  background: var(--night-2);
}
.lightbox figcaption {
  color: #d9cbb2; text-align: center;
  font-family: 'Jost', sans-serif; font-size: .95rem;
  padding-top: .7rem;
}
.lb-btn {
  position: fixed; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid rgb(234 205 124 / .5);
  background: rgb(21 16 11 / .72);
  color: var(--gold-bright);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
}
.lb-close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; }
.lb-prev { left: .6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .6rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 899.98px) {
  .lb-prev, .lb-next { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb-prev { left: 1rem; }
  .lb-next { right: 1rem; }
}

/* reveals */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
