:root {
  --ink: #07060d;
  --ink-2: #12101a;
  --panel: rgba(14, 12, 22, 0.72);
  --cream: #f6ead8;
  --cream-dim: #d8cbb6;
  --gold: #c9a35a;
  --gold-2: #e7cc8a;
  --ember: #c45a32;
  --line: rgba(201, 163, 90, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: #07060d url("assets/video/poster.jpg") center / cover no-repeat fixed;
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
}

#bg-loop {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.55) saturate(0.9);
}
#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 12%, transparent 0%, rgba(7,8,20,.12) 42%, rgba(7,8,20,.55) 100%),
    linear-gradient(180deg, rgba(7,8,20,.08) 0%, transparent 28%, transparent 58%, rgba(7,8,20,.88) 100%);
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site { position: relative; z-index: 3; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 9, 8, 0.62);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  height: 46px;
  width: auto;
  filter: invert(1) brightness(1.15) sepia(.25) saturate(.6);
}
.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-meta strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-meta span {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--cream); }

.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  margin: 4px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: .2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, #e7cc8a, #c9a35a);
  color: #1a1208;
  font-weight: 600;
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: rgba(255,255,255,.03);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-ember {
  background: var(--ember);
  color: #fff;
  font-weight: 600;
}
.btn-lg { padding: 15px 24px; }

/* Hero */
.hero {
  min-height: min(92vh, 900px);
  display: grid;
  place-items: end start;
  padding: 8vh 0 10vh;
}
.hero-copy {
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100% - 1120px) / 2));
}
.kicker {
  color: var(--gold);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .72rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: .95;
  margin: 0 0 18px;
  letter-spacing: -.02em;
}
.hero p.lede {
  font-size: 1.08rem;
  color: var(--cream-dim);
  max-width: 38rem;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 36px;
  color: var(--cream-dim);
  font-size: .86rem;
}
.hero-meta strong { display: block; color: var(--cream); font-weight: 500; letter-spacing: .04em; }

/* Sections */
section.block { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 8px 0 12px;
}
.muted { color: var(--cream-dim); }

.grid-3, .grid-4, .grid-2 {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.card p { margin: 0; color: var(--cream-dim); }
.card .num {
  color: var(--gold);
  letter-spacing: .2em;
  font-size: .72rem;
  text-transform: uppercase;
}

.photo-card {
  overflow: hidden;
  padding: 0;
}
.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.photo-card .body { padding: 20px 22px 24px; }

.quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 0 0 14px;
}
.who { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(201,163,90,.06);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(246,234,216,.08);
  color: var(--cream-dim);
}
.menu-list li span:first-child { color: var(--cream); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person a { color: var(--gold-2); }

.page-hero {
  padding: 72px 0 24px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin: 8px 0 12px;
  line-height: 1;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--cream-dim);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.footer h4 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.2rem;
  margin: 0 0 10px;
  font-weight: 500;
}
.footer a:hover { color: var(--gold-2); }
.legal {
  border-top: 1px solid rgba(246,234,216,.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .78rem;
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3, .people, .footer-grid, .split { grid-template-columns: 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-block; }
  .header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 76px;
    background: rgba(11,9,8,.96);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    align-items: stretch;
  }
  .hero { min-height: 86vh; place-items: end start; }
  .split img { height: 280px; }
}

@media (max-width: 640px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .brand-meta { display: none; }
  .hero-actions, .nav-cta { width: 100%; }
  .nav-cta .btn { flex: 1; }
  .wrap { width: calc(100% - 28px); }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery a, .gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { height: 280px; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cream);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--cream-dim); font-size: .9rem; margin: 0; }

.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; cursor: pointer; }
.card-link:hover { border-color: var(--gold); }
.card-link .card-actions { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

.viewer-chrome {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(11,9,8,.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.viewer-chrome span {
  min-width: 7rem;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.viewer-title {
  position: fixed;
  left: 24px;
  bottom: 28px;
  z-index: 30;
  max-width: 28vw;
}
.viewer-title h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.folio-stage {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 120px;
  perspective: 2000px;
}
.book {
  position: relative;
  display: flex;
  width: min(560px, 88vw);
  height: min(76vh, 980px);
  max-height: calc(100vh - 220px);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: width .7s cubic-bezier(.22,.61,.36,1);
  filter: drop-shadow(0 28px 50px rgba(0,0,0,.5));
}
.book.open { width: min(1100px, 96vw); }
.spine {
  display: none;
  width: 10px;
  flex: 0 0 10px;
  background: linear-gradient(90deg, #8a6a32, #e7cc8a, #8a6a32);
  box-shadow: inset 0 0 8px rgba(0,0,0,.35);
}
.book.open .spine { display: block; }
.leaf {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  background: #f4ead8;
  overflow: hidden;
}
.book:not(.open) .leaf-left,
.book:not(.open) .spine { display: none; }
.book:not(.open) .leaf-right { flex-basis: 100%; }
.leaf-left { border-radius: 8px 0 0 8px; }
.leaf-right { border-radius: 0 8px 8px 0; }
.book:not(.open) .leaf-right { border-radius: 8px; }
.sheet {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #f7efe2;
}
.face.back { transform: rotateY(180deg); }
.book img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7efe2;
  display: block;
}
.leaf-left img, .leaf-right .face.front img {
  box-shadow: inset -10px 0 18px rgba(0,0,0,.08);
}
.sheet.flip-next { transform: rotateY(-180deg); }
.sheet.flip-prev { transform: rotateY(180deg); }
.book.opening { animation: bookOpen .7s ease both; }
@keyframes bookOpen {
  from { transform: rotateY(-8deg) scale(.96); }
  to { transform: none; }
}
body.is-viewer .site { min-height: 0; }
@media (max-width: 800px) {
  .viewer-title { left: 16px; right: 16px; bottom: 88px; max-width: none; }
}

@media (max-width: 960px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: span 2; }
  .gallery .wide img, .gallery img { height: 160px; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #scene { display: none; }
  body {
    background:
      radial-gradient(ellipse at 30% 10%, #2a1c10, var(--ink) 55%);
  }
}

body.is-gallery #scene { pointer-events: none; }
body.is-gallery .site { pointer-events: none; }
body.is-gallery .header, body.is-gallery .gal-copy, body.is-gallery .gal-controls, body.is-gallery .gal-thumbs, body.is-gallery .carousel { pointer-events: auto; }

body.is-gallery .vignette {
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(7,8,20,.08) 38%, rgba(7,8,20,.55) 100%),
    linear-gradient(180deg, rgba(7,8,20,.35) 0%, transparent 22%, transparent 62%, rgba(7,8,20,.82) 100%);
}
.gal-stage {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 0 20px;
  pointer-events: none;
}
.gal-copy, .gal-controls, .gal-thumbs { pointer-events: auto; }
.gal-copy { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.gal-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 6px 0 8px;
  max-width: 22ch;
  text-wrap: balance;
}
.gal-controls {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(11,9,8,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 12;
}
.gal-controls span {
  min-width: 4.5rem;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.gal-thumbs {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  max-width: min(920px, calc(100% - 24px));
  overflow-x: auto;
  padding: 6px;
  z-index: 12;
}
.gal-thumbs button {
  flex: 0 0 auto;
  width: 64px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  opacity: .7;
}
.gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs button.is-on { opacity: 1; outline: 2px solid var(--gold); }
@media (max-width: 700px) {
  .gal-controls { bottom: 78px; width: calc(100% - 24px); justify-content: center; }
  .gal-thumbs button { width: 52px; height: 36px; }
}

.gal-fallback {
  position: fixed;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(820px, 78vw);
  height: min(520px, 52vh);
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
body.is-gallery.no-webgl .gal-fallback { opacity: 1; }
body.is-gallery #scene { left: 0; top: 0; width: 100%; height: 100%; }

.gal-world {
  position: fixed;
  inset: 0;
  z-index: 2;
  perspective: 1000px;
  perspective-origin: 50% 50%;
  overflow: hidden;
}
.gal-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.gal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(820px, 78vw);
  margin: 0;
  transform: translate(-50%, -50%) translateZ(calc(var(--i, 0) * -720px));
  transform-style: preserve-3d;
  cursor: pointer;
}
.gal-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: contain;
  background: #120e0a;
  border: 8px solid #c9a35a;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.gal-card.is-front { z-index: 3; }

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8vw;
  padding: 12px 8vw 4px;
  height: auto;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { height: 0; }
.carousel .slide {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 min(760px, 82vw);
  height: min(56vh, 520px);
  margin: 0;
  scroll-snap-align: center;
  border: 6px solid rgba(201,163,90,.4);
  border-radius: 12px;
  overflow: hidden;
  background: #120e0a;
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  opacity: .72;
  transform: none;
  transition: opacity .3s ease, border-color .3s ease;
}
.carousel .slide.is-on { opacity: 1; border-color: var(--gold); }
.carousel .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel .slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(8,6,10,.82));
  color: #f6ead8;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .01em;
  line-height: 1.2;
}
@media (max-width: 700px) {
  .carousel { padding-inline: 16px; scroll-padding-inline: 16px; }
  .carousel .slide { flex-basis: 86vw; height: 46vh; }
  .carousel .slide figcaption { font-size: 1.15rem; }
}

.phone-dock { display: none; }
.phone-lead { margin: 18px 0 0; }
.btn-lg { padding: 14px 22px; font-size: .9rem; }
@media (max-width: 800px) {
  body { padding-bottom: 72px; }
  .phone-dock {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    background: rgba(11,9,8,.94);
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .phone-dock a {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
    border: 1px solid var(--line);
    color: var(--cream);
  }
  .phone-dock .dock-call {
    background: var(--gold);
    color: #16110c;
    border-color: var(--gold);
    font-weight: 600;
  }
  .folio-stage {
    min-height: auto;
    padding: 8px 10px 150px;
    align-items: flex-start;
  }
  .book {
    width: min(92vw, 520px);
    height: min(62vh, 720px);
    max-height: calc(100vh - 220px);
  }
  .book.open {
    width: 96vw;
    height: min(56vh, 640px);
  }
  .viewer-chrome {
    left: 8px;
    right: 8px;
    bottom: 78px;
    transform: none;
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 16px;
  }
  .viewer-title { display: none; }
  body.is-viewer #scene,
  body.is-viewer #bg-loop { display: none; }
  .card-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
}
