*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:   #080401;
  --cream: #F0E3C8;
  --fog:   #C4B49A;
  --gold:  #C9963C;
  --pale:  #D4AA60;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  
}


/* ── WORDMARK ───────────────────────────────────── */
#wordmark {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 1.75rem 0;
  pointer-events: none;
  transform-origin: center top;
  /* scale driven by JS — no CSS transition so it tracks scroll exactly */
}
#wordmark a {
  font-family: var(--serif);
  font-size: 0.88rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; opacity: 0.92;
  pointer-events: all;
  display: block;
  transform-origin: center top;
}


#back-btn {
  position: fixed; top: 2.0rem; left: 6.0rem; z-index: 600;
  font-size: 0.55rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--fog); text-decoration: none; opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease;
}
#back-btn:hover { opacity: 1; color: var(--gold); }

/* ── HAMBURGER ──────────────────────────────────── */
#hamburger {
  position: fixed; top: 1.7rem; left: 2.0rem; z-index: 600;
  width: 28px; height: 28px;
  background: none; border: none; padding: 6px; cursor: pointer;
  opacity: 0.75; color: var(--cream);
}
#hamburger svg {
  width: 100%; height: 100%; display: block;
  transition: transform 0.38s cubic-bezier(0.76, 0, 0.24, 1);
}
body.menu-open #hamburger svg { transform: rotate(180deg); }

/* ── MENU PANEL (compact) ───────────────────────── */
#menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: min(360px, 82vw);
  height: 100vh;
  z-index: 550;
  background: rgba(8,4,1,0.97);
  border-right: 1px solid rgba(196,180,154,0.10);
  display: flex; flex-direction: column;
  padding: 5.5rem 2.6rem 3.5rem;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
  overflow-y: auto;
}
body.menu-open #menu-overlay {
  transform: translateX(0);
  pointer-events: all;
}

/* Scrim behind the panel */
#menu-scrim {
  position: fixed; inset: 0; z-index: 540;
  background: rgba(8,4,1,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.42s ease;
}
body.menu-open #menu-scrim {
  opacity: 1; pointer-events: all;
}

.menu-nav {
  display: flex; flex-direction: column;
  gap: 0;
  flex: 1;
}
.menu-item {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 400; line-height: 1.25;
  color: var(--cream); text-decoration: none; display: block;
  opacity: 0.82;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(196,180,154,0.08);
  transition: color 0.2s, opacity 0.2s, padding-left 0.2s;
  letter-spacing: -0.01em;
}
.menu-item:first-child { border-top: 1px solid rgba(196,180,154,0.08); }
.menu-item em { font-style: italic; color: var(--pale); }
.menu-item:hover { color: var(--pale); opacity: 1; padding-left: 0.4rem; }

.menu-meta {
  padding-top: 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(196,180,154,0.10);
}
.menu-meta-label {
  font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem; opacity: 0.7;
}
.menu-meta-contact {
  font-size: 0.78rem; font-weight: 300; color: var(--fog);
  line-height: 1.95; margin-bottom: 1.4rem;
}
.menu-meta-contact a { color: var(--fog); text-decoration: none; transition: color 0.2s; }
.menu-meta-contact a:hover { color: var(--cream); }
.menu-meta-location {
  font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(196,180,154,0.38);
}


/* ── SCROLL BODY ────────────────────────────────── */
/* Pushes page content below the fixed hero */
#scroll-body { padding-top: 0; }

/* ── HORIZONTAL GALLERY STRIP ───────────────────── */
.h-scroller {
  display: flex;
  gap: 24px;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.h-scroller::-webkit-scrollbar { display: none; }
/* end spacers so the first and last panel can center (JS sizes them
   once frames adopt their images' aspect ratios) */
.h-scroller::before {
  content: '';
  flex: 0 0 var(--roll-lead, calc((100% - 78%) / 2 - 24px));
}
.h-scroller::after {
  content: '';
  flex: 0 0 var(--roll-tail, calc((100% - 78%) / 2 - 24px));
}
/* film-roll: the centered panel is full strength, neighbors fade */
.h-scroller > * { opacity: 0.35; transition: opacity 0.45s ease; }
.h-scroller > .is-center { opacity: 1; }
.h-scroller > .gallery-intro { opacity: 1; }
.h-panel {
  position: relative;
  flex: 0 0 78%;
  height: 100vh;
  /* inset the image so the wordmark, hamburger, and Back stay legible */
  padding: 4.6rem 0 3rem;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  /* framed slide: lifted ground + hairline edge so each panel reads as
     a film frame even when the photo itself is dark */
  background-color: #0C0703;
  border: 1px solid rgba(196, 180, 154, 0.10);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-origin: content-box;
  background-clip: content-box;
}
.h-panel video {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
/* content photos as real <img> (responsive derivatives); renders in the
   panel's content box exactly like the old contained background */
.h-panel picture {
  display: block;
  width: 100%; height: 100%;
}
.h-panel picture img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
/* per-image caption, set from the photo's embedded metadata;
   sits in the dark band beneath the image */
.h-cap {
  position: absolute;
  left: 8%; right: 8%; bottom: 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fog); opacity: 0.55;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}

/* Dark tint removed for gallery */


/* Bottom gradient removed */

/* Content overlay at bottom-left */
.ds-content { position: relative; z-index: 2; max-width: 58ch; }

.ds-num {
  font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); opacity: 0.8; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 1rem;
}
.ds-num::after {
  content: ''; flex: 0 0 2rem; height: 1px;
  background: rgba(201,150,60,0.4);
}

.ds-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  font-weight: 400; line-height: 1.0;
  color: var(--cream); margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.ds-title em { font-style: italic; color: var(--pale); }

.ds-sub {
  font-size: 0.82rem; color: var(--fog);
  line-height: 1.9; font-weight: 300; max-width: 44ch;
  margin-bottom: 2rem;
}

.ds-cta {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 0.75rem 1.6rem;
  text-decoration: none; 
  transition: background 0.22s, color 0.22s;
}
.ds-cta:hover { background: var(--cream); }
.ds-cta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }

/* ── SPLIT SECTION (CNC) ────────────────────────── */
.ds-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.ds-split-img {
  position: relative; overflow: hidden;
  /* background-size: contain; (inline) */
  background-attachment: fixed;
  background-repeat: no-repeat;
}
/* Dark tint for split image panel */
.ds-split-img::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: rgba(8,4,1,0.48);
  pointer-events: none;
}
.ds-split-img .ds-grad { z-index: 1; }
.ds-split-panel {
  background: var(--ink);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 8vh 6vw 8vh 5vw;
  border-left: 1px solid rgba(196,180,154,0.10);
}
.ds-split-panel .ds-num   { color: var(--gold); }
.ds-split-panel .ds-title { font-size: clamp(2.4rem, 4vw, 4.8rem); }
.ds-split-panel .ds-sub   { max-width: 36ch; }

/* ── PHILOSOPHY ─────────────────────────────────── */
#philosophy {
  min-height: 60vh;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8vh 8vw;
  border-top: 1px solid rgba(196,180,154,0.12);
}
.phil-rule { width: 2.4rem; height: 1px; background: var(--gold); margin: 0 auto 2.8rem; opacity: 0.5; }
.phil-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-style: italic; font-weight: 400; line-height: 1.65;
  color: var(--cream); max-width: 52ch; margin: 0 auto 2rem;
}
.phil-attr { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fog); }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(196,180,154,0.12);
  padding: 6vh 6vw;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.ft-logo { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.8rem; }
.ft-tagline { font-size: 0.76rem; color: var(--fog); line-height: 1.85; font-weight: 300; max-width: 28ch; }
.ft-location { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(196,180,154,0.42); margin-top: 0.8rem; }
.ft-col-title { font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3rem; }
.ft-links { list-style: none; }
.ft-links li { margin-bottom: 0.7rem; }
.ft-links a { font-size: 0.76rem; color: var(--fog); text-decoration: none; transition: color 0.2s; }
.ft-links a:hover { color: var(--cream); }
.ft-copy { font-size: 0.58rem; color: rgba(196,180,154,0.32); letter-spacing: 0.1em; margin-top: 2.8rem; grid-column: 1 / -1; }

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .h-scroller { gap: 12px; }
  .h-panel { padding: 4.5rem 0 2.5rem; }
  .h-scroller::before, .h-scroller::after { flex-basis: calc((100% - 86%) / 2 - 12px); }
  .h-panel, .gallery-intro { flex-basis: 86%; }
  .gallery-intro { scroll-snap-align: center; }
  .h-quote, .h-audio, .h-links { flex-basis: 88%; }
  .h-links .links-grid { columns: 1; padding: 0 1.4em; }
  .h-quote blockquote { padding: 0 1.4em; }
  .h-quote--photo { flex-direction: column; justify-content: center; gap: 1.6em; padding-left: 1.4em; padding-right: 1.4em; }
  .q-portrait { flex: 0 0 auto; width: 9.5rem; }
  #back-btn { left: auto; right: 2rem; }

  

  /* Wordmark: smaller initial scale so it doesn't overflow narrow screens */
  /* JS still animates it, but we clamp the font bigger for readability */
  #wordmark a { font-size: 0.78rem; letter-spacing: 0.18em; }



  /* CNC split: stack image on top, text below */
  .ds-split {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh 1fr;
    height: auto;
    min-height: 100vh;
  }
  .ds-split-img {
    min-height: 45vh;
    background-attachment: scroll;
    /* background-size: contain; (inline) */
    /* background-position: left/right (inline) */
  }
  .ds-split-panel {
    padding: 5vh 5vw;
    border-left: none;
    border-top: 1px solid rgba(196,180,154,0.10);
  }
  .ds-split-panel .ds-title { font-size: clamp(2.2rem, 8vw, 3rem); }

  /* Section titles scale to mobile */
  .ds-title { font-size: clamp(2.4rem, 9vw, 4rem); }

  /* CTA buttons: don't stretch full width */
  .ds-cta { width: fit-content; }


  /* Footer: single column stack */
  footer {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 6vh 5vw;
  }
  .ft-copy { margin-top: 1rem; }

  /* Philosophy padding */
  #philosophy { padding: 8vh 5vw; }
}


/* ── GALLERY INTRO ──────────────────────────────── */
.gallery-intro {
  /* half the page, left-anchored: the images clearly continue right */
  flex: 0 0 50%;
  background-color: #0C0703;
  border: 1px solid rgba(196, 180, 154, 0.10);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 6vw 14vh;
  background: var(--ink);
}
.gi-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
/* interactive only where there is a lightbox to open (gallery.js adds this) */
.gi-label--link {
  align-self: flex-start;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid rgba(201, 150, 60, 0.3);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.gi-label--link:hover,
.gi-label--link:focus-visible {
  color: var(--cream);
  border-color: var(--cream);
  outline: none;
}
/* thumb-sized tap area without moving the rule under the text */
.gi-label--link::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -14px; bottom: -14px;
}
.gallery-intro h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.gi-context {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fog);
  max-width: 34em;
}
.gi-scroll {
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(196,180,154,0.5);
}

/* ── LIGHTBOX ───────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(3,1,1,0.97);
  display: none;
  align-items: center; justify-content: center;
}
body.lightbox-open #lightbox { display: flex; }
body.lightbox-open { overflow: hidden; }
#lightbox img {
  max-width: 92vw; max-height: 92vh;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
  -webkit-user-drag: none;
}
#lightbox.zoomed img { cursor: zoom-out; transform: scale(2.4); }
#lightbox .lb-count {
  position: absolute; top: 1.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--cream); background: rgba(8,4,1,0.78);
  border: 1px solid rgba(196,180,154,0.18);
  padding: 0.55rem 1.1rem; border-radius: 999px;
  pointer-events: none;
}
.lb-btn {
  position: absolute; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(8,4,1,0.78); border: 1px solid rgba(196,180,154,0.22);
  color: var(--cream); cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.25s, border-color 0.25s;
}
.lb-btn:hover { color: var(--gold); border-color: var(--gold); }
.lb-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; display: block; }
#lb-prev { left: 1.6rem; top: 50%; transform: translateY(-50%); }
#lb-next { right: 1.6rem; top: 50%; transform: translateY(-50%); }
#lb-close { bottom: 2rem; left: 50%; transform: translateX(-50%); }
#lightbox .lb-cap {
  position: absolute; bottom: 5.9rem; left: 50%; transform: translateX(-50%);
  max-width: 76vw;
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.28em;
  text-transform: uppercase; text-align: center;
  color: var(--cream); background: rgba(8,4,1,0.78);
  border: 1px solid rgba(196,180,154,0.18);
  padding: 0.55rem 1.1rem; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
#lightbox .lb-cap:empty { display: none; }
@media (max-width: 768px) {
  #lb-prev { left: 0.7rem; }
  #lb-next { right: 0.7rem; }
  #lightbox img { max-width: 100vw; }
}

/* ── QUOTE PANELS (praise gallery) ──────────────── */
.h-quote {
  flex-basis: 56%;
  display: flex; align-items: center; justify-content: center;
}
.h-quote blockquote {
  max-width: 36em;
  margin: 0; padding: 0 3em;
}
.h-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.8;
  color: var(--cream);
  margin: 0 0 1.6em;
}
.h-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  line-height: 1.8;
}

/* portrait quotes: photo beside the words, warm monochrome */
.h-quote--photo {
  flex-basis: 70%;
  gap: 3.2em;
  padding-left: 3em; padding-right: 3em;
}
.q-portrait {
  flex: 0 0 clamp(12rem, 17vw, 19rem);
  margin: 0;
}
.q-portrait img {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(196, 180, 154, 0.16);
  filter: grayscale(1) sepia(0.22) contrast(1.05) brightness(0.95);
}
.h-quote--photo blockquote { padding: 0; }

/* ── MEDIA + GRATITUDE PANELS ───────────────────── */
.h-embed iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.h-audio {
  flex-basis: 46%;
  display: flex; align-items: center; justify-content: center;
}
.h-audio .track { width: 100%; max-width: 26em; padding: 0 2.6em; }
.h-audio h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.35rem; color: var(--cream); margin: 0 0 0.4em;
}
.h-audio .by {
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.6em;
}
.h-audio audio { width: 100%; display: block; }
.h-links {
  flex-basis: 62%;
  display: flex; align-items: center;
}
.h-links .links-grid {
  columns: 2; column-gap: 3em;
  width: 100%; padding: 0 3em;
}
.h-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  break-inside: avoid;
  color: var(--fog); text-decoration: none;
  font-family: var(--sans); font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.55em 0;
  transition: color 0.2s ease-in-out;
}
.h-links a:hover { color: var(--gold); }
.h-links svg { width: 1em; height: 1em; stroke: currentColor; fill: none; flex: 0 0 auto; }
