:root {
  --bg: #1a110c;          /* darkfaced brown */
  --surface: #23170f;
  --surface-2: #2e1f15;
  --sand: #3a2a1f;        /* image placeholders */
  --cream: #efe4d2;
  --ink: #efe4d2;
  --muted: #b8a58f;
  --gold: #c9a066;
  --gold-soft: #e2c597;
  --line: rgba(239, 228, 210, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --hh: 76px;             /* header height, measured by effects.js */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --vh: 1vh;
  color-scheme: dark;
}
@supports (height: 1svh) { :root { --vh: 1svh; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hh); }
body {
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-scroll { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }

/* Warm light that follows the cursor (drifts by itself on touch screens) */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 420px at var(--gx, 50%) var(--gy, 40%), rgba(201, 160, 102, .2), rgba(201, 160, 102, .06) 45%, transparent 70%);
}
main, .footer { position: relative; z-index: 1; }

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

h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
em { font-style: italic; }
h2 em, .insta__head h2 { color: var(--gold-soft); }

.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 400; margin-bottom: 18px; color: var(--gold);
}

.btn {
  display: inline-block; padding: 14px 30px;
  background: var(--cream); color: var(--bg);
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
  transition: background .3s ease, transform .3s var(--ease);
}
.btn:hover, .btn.is-active { background: var(--gold-soft); transform: translateY(-2px); }

.link {
  position: relative;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color .25s ease, background-size .4s var(--ease);
}
.link:hover { color: var(--gold-soft); animation: underline .6s var(--ease); }
@keyframes underline { 0% { background-size: 100% 1px; background-position: 100% 100%; } 50% { background-size: 0 1px; background-position: 100% 100%; } 51% { background-position: 0 100%; } 100% { background-size: 100% 1px; background-position: 0 100%; } }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  background: rgba(26, 17, 12, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(26, 17, 12, .88); }
.header__menu { display: none; background: none; border: 0; color: inherit; cursor: pointer; width: 44px; height: 44px; margin-left: -11px; }
.header__nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.header__nav a { padding: 8px 0; transition: color .2s; }
.header__nav a:hover { color: var(--gold-soft); }
.header__nav--right { justify-content: flex-end; align-items: center; }
.logo { text-align: center; line-height: 1; }
.logo__word { display: block; font-family: var(--serif); font-style: italic; font-size: 36px; letter-spacing: .01em; }
.logo__sub { display: block; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; margin-top: 2px; color: var(--gold); }

.drawer { position: fixed; inset: 0; z-index: 15; background: var(--bg); padding: 140px var(--gutter) 40px; }
.drawer nav { display: flex; flex-direction: column; gap: 6px; }
.drawer a { font-family: var(--serif); font-size: 34px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ───────── Hero: pinned stage, driven by --e (0 → 1) from effects.js ───────── */
.hero {
  --e: 0;              /* eased spread progress */
  --p: 0;              /* raw progress through the pinned scroll */
  --shift-title: 0px;  /* distance from title's end position to stage centre */
  --shift-grid: 0px;   /* distance from grid's end position to stage centre */
  --title-end: .44;
  --gap: clamp(12px, 1.6vw, 22px);
  position: relative;
  height: calc(240 * var(--vh));
}
.hero__stage {
  position: sticky; top: var(--hh);
  height: calc(calc(100 * var(--vh)) - var(--hh));
  min-height: min(520px, calc(calc(100 * var(--vh)) - var(--hh)));
  overflow: hidden;
  isolation: isolate;
  --ch: max(320px, calc(calc(100 * var(--vh)) - var(--hh) - 210px));
  --cw: min(calc(var(--ch) * .75), 25vw, 400px);
}
.hero__glow {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 50% 55%, rgba(201, 160, 102, .38), rgba(201, 160, 102, 0) 70%),
    radial-gradient(closest-side at calc(20% + var(--p) * 60%) 30%, rgba(140, 72, 38, .32), transparent 70%);
  transform: scale(calc(1.15 - var(--e) * .35));
  opacity: calc(1 - var(--e) * .45);
}

.hero__title {
  position: absolute; left: 0; right: 0; top: clamp(14px, calc(3 * var(--vh)), 32px); z-index: 3;
  text-align: center; padding: 0 var(--gutter);
  pointer-events: none;
}
.hero__title .eyebrow { opacity: calc(var(--e) * 1.4 - .2); transform: translateY(calc((1 - var(--e)) * 12px)); }
.hero h1 {
  font-size: clamp(64px, 14vw, 230px);
  line-height: .9;
  transform-origin: 50% 0;
  transform:
    translateY(calc((1 - var(--e)) * var(--shift-title)))
    scale(calc(1 - (1 - var(--title-end)) * var(--e)));
  text-shadow: 0 10px 60px rgba(10, 6, 4, .6);
  will-change: transform;
}
.hero h1 span, .hero h1 em { display: inline-block; }
.hero h1 span:first-child { transform: translateX(calc((1 - var(--e)) * -.08em)); }
.hero h1 span + span { transform: translateY(calc((1 - var(--e)) * .12em)); opacity: calc(.55 + var(--e) * .45); }
.hero h1 em {
  padding: 0 .06em;
  color: var(--gold-soft);
  transform: translateX(calc((1 - var(--e)) * .08em));
}

.hero__grid {
  position: absolute; left: 50%; bottom: clamp(20px, calc(4 * var(--vh)), 40px); z-index: 2;
  display: flex; gap: var(--gap);
  transform: translateX(-50%) translateY(calc((1 - var(--e)) * var(--shift-grid)));
}
.hero__slot {
  --i: 0;
  position: relative; flex: none;
  width: var(--cw); aspect-ratio: 3 / 4;
  overflow: hidden; background: var(--sand);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  transform:
    translateX(calc(var(--i) * -1 * (var(--cw) + var(--gap)) * (1 - var(--e)) * .6))
    translateY(calc(var(--i) * var(--i) * (1 - var(--e)) * 28px + var(--i) * (var(--p) - .7) * -40px))
    rotate(calc(var(--i) * 9deg * (1 - var(--e))))
    scale(calc(.8 + var(--e) * .2));
  clip-path: inset(calc((1 - var(--e)) * 4%) round calc(var(--cw) / 2 * (1 - var(--e))) calc(var(--cw) / 2 * (1 - var(--e))) 0 0);
  will-change: transform;
}
.hero__slot:nth-child(1) { --i: -1; }
.hero__slot:nth-child(2) { --i: 0; z-index: 1; }
.hero__slot:nth-child(3) { --i: 1; }
.hero__slot img {
  position: absolute; inset: 0; object-position: center 30%;
  filter: brightness(calc(.42 + var(--e) * .58)) saturate(calc(.6 + var(--e) * .4)) sepia(calc((1 - var(--e)) * .35));
  transform: scale(calc(1.18 - var(--e) * .18));
}
.hero__slot img + img { animation: fade 1.8s ease; }
@keyframes fade { from { opacity: 0; } }

.hero__cta {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  padding: 13px 26px; white-space: nowrap;
  background: rgba(26, 17, 12, .55); color: var(--cream);
  border: 1px solid rgba(239, 228, 210, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  opacity: calc((var(--e) - .75) * 4);
  transform: translate(-50%, calc((1 - var(--e)) * 30px));
  pointer-events: none;
  transition: background .3s, color .3s;
}
.hero.is-open .hero__cta { pointer-events: auto; }
.hero__cta:hover { background: var(--cream); color: var(--bg); }
.hero__cta:focus-visible, .hero__pause:focus-visible { opacity: 1; pointer-events: auto; }

.hero__hint {
  position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  opacity: calc(1 - var(--e) * 6);
  padding-bottom: 46px;
}
.hero__hint::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 36px;
  background: linear-gradient(var(--gold), transparent);
  animation: hint 2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero__pause {
  position: absolute; right: var(--gutter); bottom: 6px; z-index: 3;
  min-height: 44px; padding: 0 2px;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font: 400 11px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: calc((var(--e) - .7) * 3.4);
}
.hero__pause:hover { color: var(--ink); }

/* Intro */
.intro { max-width: 760px; margin: 0 auto; padding: clamp(90px, 13vw, 170px) var(--gutter) clamp(60px, 8vw, 100px); text-align: center; }
.intro h2 { margin-bottom: 26px; }
.intro p:not(.eyebrow) { font-size: 18px; color: var(--muted); margin-bottom: 34px; }

/* Marquee (moves with scroll) */
.marquee { overflow: hidden; padding: clamp(10px, 2vw, 24px) 0 clamp(50px, 7vw, 90px); }
.marquee__track {
  display: flex; gap: .6em; width: max-content; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(64px, 11vw, 170px); line-height: 1;
  transform: translateX(var(--mx, 0px));
  will-change: transform;
}
.marquee__track span { color: transparent; -webkit-text-stroke: 1px rgba(226, 197, 151, .45); }
.marquee__track em { color: var(--surface-2); }
.marquee__track > *::after { content: "✦"; font-style: normal; font-size: .3em; vertical-align: middle; margin-left: .6em; color: var(--gold); -webkit-text-stroke: 0; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 var(--gutter); }
.tile { display: block; }
.tile:nth-child(2) { transition-delay: .1s; }
.tile:nth-child(3) { transition-delay: .2s; }
.tile__media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.tile img { aspect-ratio: 4 / 5; height: auto; background: var(--sand); transition: transform 1.1s var(--ease), filter .6s ease; filter: brightness(.88) saturate(.9); }
.tile:hover img, .tile.is-active img { transform: scale(1.06); filter: brightness(1) saturate(1); }
.tile__label { display: block; padding-top: 14px; text-align: center; font-family: var(--serif); font-size: 24px; }
.tile__label::after { content: ""; display: block; width: 0; height: 1px; margin: 6px auto 0; background: var(--gold); transition: width .5s var(--ease); }
.tile:hover .tile__label::after, .tile.is-active .tile__label::after { width: 48px; }

/* Feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); padding: clamp(80px, 11vw, 140px) var(--gutter); }
.feature__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.feature__media img { transform: translateY(var(--py, 0px)) scale(1.12); will-change: transform; }
.feature__copy { max-width: 460px; }
.feature__copy h2 { margin-bottom: 24px; }
.feature__copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-bottom: 34px; }

/* Show */
.show { display: grid; grid-template-columns: 1fr 1.1fr 1fr; background: rgba(58, 40, 28, .6); color: var(--cream); overflow: hidden; }
.show > img { aspect-ratio: 4 / 5; object-position: 50% calc(50% + var(--py, 0%) * 4); }
.show__copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 4vw, 64px); text-align: center; background: transparent; }
.show__copy h2 { margin-bottom: 20px; font-style: italic; color: var(--gold-soft); }
.show__copy p:not(.eyebrow) { color: var(--muted); }

/* Instagram */
.insta { padding: clamp(80px, 10vw, 130px) var(--gutter) 0; }
.insta__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.insta__head h2 { font-style: italic; }
.insta__latest { display: block; margin: -12px 0 28px; color: var(--muted); max-width: 720px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insta__latest:hover { color: var(--ink); }
.insta__latest[hidden] { display: none; }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta__grid a { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.insta__grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(201, 160, 102, .35), transparent 60%); opacity: 0; transition: opacity .5s ease; }
.insta__grid a:hover::after, .insta__grid a.is-active::after { opacity: 1; }
.insta__grid img { transition: transform 1s var(--ease); }
.insta__grid a:hover img, .insta__grid a.is-active img { transform: scale(1.07); }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); padding: clamp(80px, 10vw, 130px) var(--gutter); }
.visit h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 18px; }
.visit address { font-style: normal; color: var(--muted); margin-bottom: 18px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 32px; color: var(--muted); }
.hours dt { color: var(--ink); }
.visit__map { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.visit__map iframe {
  display: block; width: 100%; height: 220px; border: 1px solid var(--line);
  background: var(--surface-2);
  /* dark, warm map to match the brown site */
  filter: grayscale(.5) invert(.92) hue-rotate(180deg) sepia(.45) brightness(.92) contrast(.9);
  transition: filter .5s ease, border-color .3s;
}
.visit__frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 220px; cursor: pointer;
  border: 1px solid var(--line); color: var(--cream);
  font: 400 13px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  /* faint street pattern so it reads as a map before it loads */
  background:
    linear-gradient(28deg, transparent 48%, rgba(239, 228, 210, .07) 49%, rgba(239, 228, 210, .07) 51%, transparent 52%),
    linear-gradient(-62deg, transparent 47%, rgba(239, 228, 210, .05) 48%, rgba(239, 228, 210, .05) 52%, transparent 53%) 30% 0 / 140px 140px,
    linear-gradient(90deg, transparent 49%, rgba(239, 228, 210, .04) 50%, transparent 51%) 0 0 / 90px 90px,
    rgba(58, 40, 28, .45);
  transition: border-color .3s, color .3s;
}
.visit__frame svg { color: var(--gold); }
.visit__frame small { font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.visit__frame:hover, .visit__map.is-active .visit__frame { border-color: var(--gold); color: var(--gold-soft); }
.visit__map:hover iframe, .visit__map.is-active iframe { filter: grayscale(.2) invert(.92) hue-rotate(180deg) sepia(.3) brightness(1) contrast(.95); border-color: var(--gold); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 32px; background: rgba(41, 27, 17, .6); }
.footer__news { max-width: 560px; margin: 0 auto 64px; text-align: center; }
.footer__news label { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-bottom: 22px; }
.footer__field { display: flex; border-bottom: 1px solid var(--muted); transition: border-color .3s; }
.footer__field:focus-within { border-color: var(--gold); }
.footer__field input { flex: 1; min-width: 0; background: none; border: 0; font: inherit; color: inherit; padding: 12px 0; }
.footer__field input::placeholder { color: var(--muted); }
.footer__field input:focus { outline: none; }
.footer__field:has(input:focus-visible) { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
.footer__field button { background: none; border: 0; font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: inherit; cursor: pointer; padding: 12px 0 12px 16px; min-height: 44px; }
.footer__field button:hover { color: var(--gold-soft); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.logo__word--small { font-size: 26px; color: var(--ink); }

/* Scroll reveals (only when effects.js has run) */
.js-fx [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js-fx [data-reveal="img"] { opacity: 1; transform: none; }
.js-fx [data-reveal="img"] > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js-fx [data-reveal].is-in { opacity: 1; transform: none; }
.js-fx [data-reveal="img"].is-in > img { clip-path: inset(0 0 0 0); }

/* Responsive */
@media (max-width: 900px) {
  .header { grid-template-columns: 44px 1fr 44px; }
  .header__menu { display: block; }
  .header__nav { display: none; }
  .header__nav--right { display: flex; }
  .header__nav--right a:first-child { display: none; }
  .logo__word { font-size: 30px; }

  .hero { height: calc(210 * var(--vh)); }
  .hero__stage { --top: 150px; --ch: max(300px, calc(calc(100 * var(--vh)) - var(--hh) - var(--top) - 70px)); --cw: min(calc(var(--ch) * .75), 86vw); }
  .hero h1 { font-size: clamp(64px, 19vw, 140px); }
  .hero__grid { top: var(--top); bottom: auto; }
  .hero__slot:not(:nth-child(2)) { display: none; }
  .hero__pause { right: auto; left: 50%; bottom: auto; top: calc(var(--top) + var(--cw) * 4 / 3 + 6px); translate: -50% 0; }

  .tiles { grid-template-columns: 1fr; gap: 32px; }
  .tile { transition-delay: 0s !important; }
  .feature { grid-template-columns: 1fr; }
  .show { grid-template-columns: 1fr 1fr; }
  .show__copy { grid-column: 1 / -1; grid-row: 1; padding: 64px var(--gutter); }
  .show > img { transform: none; }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .visit { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; flex-direction: column; }
}

/* Short screens (phones in landscape, small laptop windows) */
@media (max-height: 540px) {
  .header { padding-top: 6px; padding-bottom: 6px; }
  .logo__word { font-size: 24px; }
  .logo__sub { display: none; }
  .hero__stage { --top: 64px; --ch: calc(100 * var(--vh) - var(--hh) - var(--top) - 14px); --cw: calc(var(--ch) * .75); min-height: 0; }
  .hero__grid { top: var(--top); bottom: auto; }
  .hero__title { top: 8px; }
  .hero__title .eyebrow { margin-bottom: 6px; }
  .hero__cta { bottom: 12px; padding: 9px 16px; font-size: 10px; }
  .hero__pause { right: var(--gutter); left: auto; top: auto; bottom: 0; translate: none; }
  .hero__hint { display: none; }
}

/* Without JavaScript the hero shows its finished state */
html:not(.js-fx) .hero { --e: 1; --p: .7; height: auto; }
html:not(.js-fx) .hero__stage { position: relative; top: 0; }
html:not(.js-fx) .hero__hint { display: none; }
html:not(.js-fx) .hero__cta { pointer-events: auto; }
