:root {
  --bg: #120d0a;
  --bg-2: #1b1410;
  --ink: #f2e8dc;
  --muted: #b9a998;
  --accent: #c8875a;
  --line: rgba(242, 232, 220, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-style: italic; color: var(--accent); }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(18,13,10,.7), transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px var(--sans); letter-spacing: .02em; }
.topbar nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.topbar nav a { text-decoration: none; transition: color .2s; }
.topbar nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 64px;
  max-width: 1200px; margin: 0 auto;
}
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
h1 { font: 300 clamp(44px, 8vw, 104px)/1.02 var(--serif); letter-spacing: -.02em; }
.lede { max-width: 46ch; margin-top: 28px; color: var(--muted); font-size: 18px; }
.scroll-cue { margin-top: 56px; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 14px; color: var(--muted); }
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Process: sticky stage, the section height is set from JS */
.process { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000; }
.layers, .layer, .layer video, .layer .fallback { position: absolute; inset: 0; }
.layers { z-index: 0; }
.shade { z-index: 1; }
.captions, .rail, .bar { z-index: 2; }
.layer { opacity: 0; will-change: opacity; }
.layer video { width: 100%; height: 100%; object-fit: cover; }
.layer .fallback { display: none; will-change: transform; }
.layer.missing video { display: none; }
.layer.missing .fallback { display: block; }
.fallback::after {
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fallback .missing-note {
  position: absolute; right: calc(var(--gutter) + 4%); bottom: calc(24px + 4%);
  font: 500 11px var(--sans); letter-spacing: .08em; color: rgba(242,232,220,.5);
  border: 1px dashed rgba(242,232,220,.3); padding: 6px 10px; border-radius: 4px;
}
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(10,7,5,.78) 0%, rgba(10,7,5,.35) 45%, transparent 70%),
    linear-gradient(to top, rgba(10,7,5,.6), transparent 35%);
}

.captions { position: absolute; inset: 0; pointer-events: none; }
.caption {
  position: absolute; left: var(--gutter); bottom: 14vh;
  max-width: min(520px, calc(100% - 2 * var(--gutter) - 40px));
  opacity: 0; will-change: opacity, transform;
}
.caption .num { font: 500 12px var(--sans); letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.caption h2 { font: 300 clamp(40px, 6vw, 80px)/1 var(--serif); margin: 14px 0 18px; letter-spacing: -.02em; }
.caption p { color: #ddd0c2; font-size: 17px; max-width: 42ch; }

.rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  list-style: none; padding: 0; display: grid; gap: 14px;
}
.rail button {
  all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  font-size: 12px; color: rgba(242,232,220,.45); transition: color .3s;
}
.rail button span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.rail button i { width: 18px; height: 1px; background: currentColor; transition: width .3s, background .3s; }
.rail button:hover span, .rail button.active span { opacity: 1; transform: none; }
.rail button.active { color: var(--ink); }
.rail button.active i { width: 34px; background: var(--accent); }
.rail button:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Visit */
.visit {
  max-width: 1200px; margin: 0 auto;
  padding: 140px var(--gutter);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end;
}
.visit h2 { font: 300 clamp(36px, 5vw, 64px)/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: 24px; }
.visit-copy > p:not(.eyebrow) { color: var(--muted); max-width: 44ch; }
.visit .address { color: var(--ink) !important; margin-top: 24px; }
.btn {
  display: inline-block; margin-top: 28px; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #1a110b; text-decoration: none; font-weight: 500;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #d99a6d; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.facts { border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { text-align: right; }

.footer {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}

@media (max-width: 760px) {
  .topbar nav { display: none; }
  .rail { top: auto; bottom: 28px; transform: none; display: flex; gap: 6px; }
  .rail button span { display: none; }
  .rail button i { width: 10px; }
  .rail button.active i { width: 22px; }
  .caption { bottom: 72px; }
  .caption p { font-size: 15px; }
  .shade { background: linear-gradient(to top, rgba(10,7,5,.85) 0%, rgba(10,7,5,.3) 55%, transparent 80%); }
  .visit { grid-template-columns: 1fr; padding: 96px var(--gutter); gap: 40px; }
}
