/* ============================================================
   TRAVERSE TOWN — Gaslamp Nocturne design system
   A sanctuary park, open from dusk. Static site, zero deps.
   ============================================================ */

:root {
  --night: #0a0e1f;
  --night-2: #10162e;
  --night-3: #161d3d;
  --panel: #121834;
  --panel-2: #0d1226;
  --ink: #e9e3d3;
  --ink-dim: #b3ac97;
  --ink-faint: #7d7867;
  --gold: #e8b45a;
  --gold-bright: #ffd98a;
  --gold-dim: #8f7440;
  --gold-line: rgba(232, 180, 90, .28);
  --glass-blue: #7fb2e0;
  --glass-green: #7fc9a0;
  --glass-rose: #d9758f;
  --seasalt: #a8dcec;
  --shadow: 0 18px 50px rgba(2, 4, 12, .55);
  --arch: 150px 150px 10px 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.075rem;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 180, 90, .35); color: #fff; }

/* ---------- atmosphere layers ---------- */

#stars {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.lantern-glow {
  position: fixed; z-index: 1;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255, 196, 110, .075) 0%,
    rgba(255, 196, 110, .03) 35%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.2s;
}
body.has-pointer .lantern-glow { opacity: 1; }

.grain {
  position: fixed; inset: -50%; z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

main, footer { position: relative; z-index: 2; }

/* ---------- typography ---------- */

h1, h2, h3, h4, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.eyebrow {
  font-family: "Fraunces", serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 1rem;
}
.eyebrow::before, .eyebrow.centered::after {
  content: ""; height: 1px; width: 2.6rem;
  background: linear-gradient(90deg, transparent, var(--gold-line));
  display: inline-block;
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { background: linear-gradient(90deg, transparent, var(--gold-line)); }
.eyebrow.centered::after { background: linear-gradient(90deg, var(--gold-line), transparent); }

.lede {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink-dim);
  line-height: 1.6;
  text-wrap: balance;
}

p + p { margin-top: 1.1em; }

a { color: var(--gold); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-bright); }

em { color: var(--ink); }

.small { font-size: .92rem; color: var(--ink-dim); }

/* star dinkus */
.dinkus {
  text-align: center;
  color: var(--gold-dim);
  font-size: 1.1rem;
  letter-spacing: 1.4em;
  padding-left: 1.4em; /* recenter */
  margin: 3.5rem 0;
  user-select: none;
}

/* ---------- header ---------- */

header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem 2rem;
  background: linear-gradient(180deg, rgba(8, 11, 24, .92), rgba(8, 11, 24, .75));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 180, 90, .14);
  transition: transform .5s var(--ease-out);
}
header.site.hidden { transform: translateY(-110%); }

.brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: "Fraunces", serif;
  font-size: 1.12rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.brand .star-mark { fill: var(--gold); }
.brand:hover .star-mark { fill: var(--gold-bright); filter: drop-shadow(0 0 6px rgba(255, 217, 138, .8)); }

nav.primary {
  display: flex; gap: 1.6rem; margin-left: auto;
  font-family: "Fraunces", serif;
  font-size: .86rem; letter-spacing: .16em; text-transform: uppercase;
}
nav.primary a {
  color: var(--ink-dim);
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
}
nav.primary a:hover { color: var(--gold-bright); }
nav.primary a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold-dim);
}

/* wayfinder toggle */
.wayfinder-btn {
  display: flex; align-items: center; gap: .55rem;
  background: none;
  border: 1px solid var(--gold-line);
  border-radius: 99px;
  color: var(--ink-dim);
  font-family: "Fraunces", serif;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .45rem 1rem;
  cursor: pointer;
  transition: all .4s;
  white-space: nowrap;
}
.wayfinder-btn svg { width: 15px; height: 15px; fill: var(--ink-faint); transition: all .4s; }
.wayfinder-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
body.wayfinder .wayfinder-btn {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(232, 180, 90, .25), inset 0 0 12px rgba(232, 180, 90, .1);
}
body.wayfinder .wayfinder-btn svg {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 5px rgba(255, 217, 138, .9));
}

/* whispers: only visible while wearing the wayfinder */
.whisper {
  display: block;
  max-height: 0; overflow: hidden; opacity: 0;
  font-style: italic; color: var(--gold);
  transition: max-height .8s var(--ease-out), opacity .8s, margin .8s;
  margin-top: 0;
}
body.wayfinder .whisper { max-height: 8em; opacity: 1; margin-top: .8em; }

.menu-btn { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 0;
  isolation: isolate;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7.6rem);
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-title .lamp {
  opacity: .12;
  transition: opacity 1.1s, text-shadow 1.1s;
}
.hero-title .lamp.lit {
  opacity: 1;
  text-shadow: 0 0 34px rgba(255, 210, 130, .5), 0 0 90px rgba(255, 210, 130, .25);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: var(--ink-dim);
  opacity: 0;
  animation: rise 1.6s var(--ease-out) 2.4s forwards;
}
.hero-actions {
  display: flex; gap: 1.1rem; margin-top: 2.6rem; flex-wrap: wrap; justify-content: center;
  opacity: 0;
  animation: rise 1.6s var(--ease-out) 3s forwards;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-skyline {
  position: absolute; bottom: -2px; left: 0; right: 0;
  width: 100%; z-index: -1;
  opacity: .9;
}
.hero-skyline svg { display: block; width: 100%; height: auto; }

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--ink-faint); font-size: .78rem;
  letter-spacing: .3em; text-transform: uppercase;
  font-family: "Fraunces", serif;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .55; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* page heroes (interior pages) */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 9rem 0 4rem;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-weight: 450;
  margin-top: 1.2rem;
}
.page-hero .lede { margin-top: 1.4rem; max-width: 46ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: .86rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: 99px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  background: rgba(232, 180, 90, .04);
  transition: all .45s var(--ease-out);
}
.btn:hover {
  background: rgba(232, 180, 90, .12);
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 30px rgba(232, 180, 90, .18);
  transform: translateY(-2px);
}
.btn.solid {
  background: var(--gold);
  color: #241a08;
  border-color: var(--gold);
}
.btn.solid:hover {
  background: var(--gold-bright);
  color: #241a08;
  box-shadow: 0 0 40px rgba(255, 217, 138, .35);
}

/* ---------- layout ---------- */

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.wrap.narrow { max-width: 780px; }

section.band { padding: 6.5rem 0; position: relative; }
section.band.tight { padding: 4rem 0; }

.band-dark {
  background: linear-gradient(180deg, transparent, rgba(13, 18, 38, .85) 12%, rgba(13, 18, 38, .85) 88%, transparent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.wide-text { grid-template-columns: 1.15fr .85fr; }

.section-head { max-width: 720px; margin-bottom: 3.4rem; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-top: 1.1rem;
  font-weight: 450;
}
.section-head .lede { margin-top: 1.2rem; }

/* ---------- photos: arched Victorian frames + museum plates ---------- */

figure.plate { margin: 0; }
figure.plate .frame {
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: var(--arch);
  padding: 10px;
  background: linear-gradient(160deg, rgba(232, 180, 90, .07), rgba(232, 180, 90, .015));
  box-shadow: var(--shadow);
}
figure.plate .frame::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(232, 180, 90, .14);
  border-radius: 146px 146px 8px 8px;
  pointer-events: none;
}
figure.plate img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 142px 142px 5px 5px;
  filter: saturate(.94) contrast(1.02);
}
figure.plate.square .frame,
figure.plate.square .frame::after,
figure.plate.square img { border-radius: 10px; }

figure.plate figcaption {
  margin-top: 1rem;
  padding: 0 .4rem;
  display: flex; align-items: baseline; gap: .8rem;
  font-size: .85rem;
  color: var(--ink-dim);
}
figure.plate figcaption .no {
  font-family: "Fraunces", serif;
  color: var(--gold-dim);
  font-size: .75rem; letter-spacing: .22em;
  flex: none;
}

/* full-bleed banner photo */
.banner {
  position: relative;
  height: 68vh; min-height: 420px;
  overflow: clip;
}
.banner img {
  width: 100%; height: 120%;
  object-fit: cover;
  will-change: transform;
  filter: saturate(.95);
}
.banner .banner-caption {
  position: absolute; bottom: 1.6rem; right: 2rem;
  font-size: .8rem; color: rgba(233, 227, 211, .85);
  background: rgba(8, 11, 24, .55);
  backdrop-filter: blur(6px);
  padding: .4rem 1rem;
  border-radius: 99px;
  border: 1px solid rgba(232, 180, 90, .2);
}
.banner::before, .banner::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 1;
  height: 120px; pointer-events: none;
}
.banner::before { top: 0; background: linear-gradient(180deg, var(--night), transparent); }
.banner::after { bottom: 0; background: linear-gradient(0deg, var(--night), transparent); }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}

.card {
  background: linear-gradient(170deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(232, 180, 90, .16);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s, box-shadow .5s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 180, 90, .4);
  box-shadow: 0 24px 60px rgba(2, 4, 12, .6);
}
.card h3 {
  font-size: 1.4rem; font-weight: 500;
  margin-bottom: .7rem;
}
.card .kicker {
  font-family: "Fraunces", serif;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-dim);
  display: block; margin-bottom: 1rem;
}
.card p { font-size: .98rem; color: var(--ink-dim); }
.card .glow {
  position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 180, 90, .12), transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.card:hover .glow { opacity: 1; }

/* feature rows (attraction / dining entries) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0;
}
.feature:nth-child(even) .feature-media { order: 2; }
.feature + .feature { border-top: 1px solid rgba(232, 180, 90, .12); }
.feature h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 450;
  margin: 1rem 0 1.2rem;
}
.feature .meta {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.6rem;
}
.chip {
  font-family: "Fraunces", serif;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid rgba(232, 180, 90, .22);
  border-radius: 99px;
  padding: .32rem .85rem;
  white-space: nowrap;
}
.chip.gold { color: var(--gold); border-color: var(--gold-dim); }
.chip.blue { color: var(--seasalt); border-color: rgba(168, 220, 236, .35); }
.chip.rose { color: var(--glass-rose); border-color: rgba(217, 117, 143, .35); }
.chip.green { color: var(--glass-green); border-color: rgba(127, 201, 160, .35); }

/* ---------- district index ---------- */

.district {
  padding: 5.5rem 0;
}
.district + .district { border-top: 1px solid rgba(232, 180, 90, .12); }
.district .roman {
  font-family: "Fraunces", serif;
  font-size: clamp(4.4rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  display: block;
  user-select: none;
}
.district h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 450;
  margin: .6rem 0 .4rem;
}
.district .subtitle {
  font-style: italic; color: var(--gold); font-size: 1.15rem;
}
.district .landmarks {
  margin-top: 1.8rem;
  display: grid; gap: .7rem;
  padding: 0; list-style: none;
}
.district .landmarks li {
  padding-left: 1.6rem; position: relative;
  color: var(--ink-dim); font-size: .98rem;
}
.district .landmarks li::before {
  content: "✦"; position: absolute; left: 0;
  color: var(--gold-dim); font-size: .8rem; top: .25em;
}
.district .landmarks li strong { color: var(--ink); font-weight: 600; }

/* ---------- timeline (how a night unfolds) ---------- */

.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: ""; position: absolute; left: .55rem; top: .8rem; bottom: .8rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line) 8%, var(--gold-line) 92%, transparent);
}
.tl-item { position: relative; padding: 1.6rem 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.77rem; top: 2.35rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--night);
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px rgba(232, 180, 90, .45);
}
.tl-item .time {
  font-family: "Fraunces", serif;
  font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.tl-item h3 { font-size: 1.35rem; margin: .5rem 0 .5rem; font-weight: 500; }
.tl-item p { color: var(--ink-dim); font-size: 1rem; max-width: 56ch; }

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid rgba(232, 180, 90, .18);
  border-bottom: 1px solid rgba(232, 180, 90, .18);
  background: rgba(13, 18, 38, .6);
  overflow: hidden;
  padding: .85rem 0;
  position: relative; z-index: 2;
}
.ticker-track {
  display: flex; gap: 3.5rem;
  width: max-content;
  animation: ticker 60s linear infinite;
  font-family: "Fraunces", serif;
  font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track .t-star { color: var(--gold-dim); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- stained glass divider ---------- */

.glass-divider {
  display: flex; justify-content: center;
  padding: 4rem 0 1rem;
  pointer-events: none;
}
.glass-divider svg { width: min(420px, 70vw); height: auto; }
.glass-divider .pane {
  opacity: .12;
  transition: opacity 2s var(--ease-out);
}
.glass-divider.lit .pane { opacity: .85; }
.glass-divider.lit .pane.p1 { transition-delay: .1s; }
.glass-divider.lit .pane.p2 { transition-delay: .35s; }
.glass-divider.lit .pane.p3 { transition-delay: .6s; }
.glass-divider.lit .pane.p4 { transition-delay: .85s; }
.glass-divider.lit .pane.p5 { transition-delay: 1.1s; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .num {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1.1;
}
.stat .label {
  margin-top: .5rem;
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  font-family: "Fraunces", serif;
  color: var(--ink-dim);
}

/* ---------- pull quote ---------- */

.pull {
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}
.pull .attribution {
  display: block;
  margin-top: 1.6rem;
  font-size: .85rem; font-style: normal;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-dim);
}

/* ---------- etiquette / rules list ---------- */

.tenets { counter-reset: tenet; display: grid; gap: 0; }
.tenet {
  counter-increment: tenet;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.6rem;
  padding: 2.2rem 0;
  align-items: start;
}
.tenet + .tenet { border-top: 1px solid rgba(232, 180, 90, .12); }
.tenet::before {
  content: counter(tenet, decimal-leading-zero);
  font-family: "Fraunces", serif;
  font-size: 2.2rem; font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  line-height: 1.1;
}
.tenet h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: .5rem; }
.tenet p { color: var(--ink-dim); font-size: 1rem; }

/* ---------- menu (dining) ---------- */

.menu-board {
  background: linear-gradient(170deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(232, 180, 90, .18);
  border-radius: 14px;
  padding: 2.6rem 2.8rem;
}
.menu-board h4 {
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 1.4rem;
  text-align: center;
}
.menu-item {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .55rem 0;
}
.menu-item .name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.menu-item .dots {
  flex: 1;
  border-bottom: 1px dotted rgba(232, 180, 90, .3);
  transform: translateY(-4px);
}
.menu-item .desc { font-size: .9rem; color: var(--ink-dim); text-align: right; max-width: 55%; }

/* ---------- resident profiles ---------- */

.resident {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.8rem;
  padding: 2rem 0;
  align-items: start;
}
.resident + .resident { border-top: 1px solid rgba(232, 180, 90, .1); }
.resident .sigil {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--gold);
  background: rgba(232, 180, 90, .05);
  flex: none;
}
.resident h3 { font-size: 1.35rem; font-weight: 500; }
.resident .role {
  font-style: italic; color: var(--gold); font-size: .98rem;
  margin-bottom: .6rem; display: block;
}
.resident p { color: var(--ink-dim); font-size: .99rem; }

/* ---------- footer ---------- */

footer.site {
  margin-top: 6rem;
  border-top: 1px solid rgba(232, 180, 90, .16);
  background: linear-gradient(180deg, rgba(8, 11, 24, .4), rgba(6, 8, 18, .95));
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-grid h4 {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-dim); font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-grid a { color: var(--ink-dim); font-size: .95rem; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-note {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 180, 90, .1);
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  font-size: .85rem; color: var(--ink-faint);
  flex-wrap: wrap;
}
.bell-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gold-dim);
  font-family: "Fraunces", serif;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  display: flex; align-items: center; gap: .6rem;
  transition: color .4s;
}
.bell-btn:hover { color: var(--gold-bright); }
.bell-btn svg { width: 18px; height: 18px; fill: currentColor; transform-origin: top center; }
.bell-btn.ringing svg { animation: toll 2.2s ease-in-out; }
@keyframes toll {
  0% { transform: rotate(0); }
  12% { transform: rotate(24deg); }
  30% { transform: rotate(-20deg); }
  48% { transform: rotate(14deg); }
  64% { transform: rotate(-9deg); }
  80% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

/* keyhole reveal after three bells */
.keyhole-reveal {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  background: rgba(6, 8, 18, .88);
  opacity: 0; pointer-events: none;
  transition: opacity 1.4s;
}
.keyhole-reveal.show { opacity: 1; pointer-events: auto; }
.keyhole-reveal svg { width: min(300px, 55vw); height: auto; }
.keyhole-reveal .kh-msg {
  position: absolute; bottom: 18%;
  font-family: "Fraunces", serif; font-style: italic;
  color: var(--gold-bright); font-size: 1.2rem;
  letter-spacing: .06em;
  text-align: center; padding: 0 2rem;
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title .lamp { opacity: 1; }
  .hero-sub, .hero-actions { animation: none; opacity: 1; }
  .ticker-track { animation: none; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .two-col, .two-col.wide-text, .feature { grid-template-columns: 1fr; gap: 2.4rem; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav.primary { display: none; }
  nav.primary.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(8, 11, 24, .97);
    padding: 1.6rem 2rem 2rem;
    border-bottom: 1px solid var(--gold-line);
    gap: 1.1rem;
  }
  .menu-btn {
    display: block; margin-left: auto;
    background: none; border: 1px solid var(--gold-line); border-radius: 8px;
    color: var(--gold); font-size: 1.15rem;
    padding: .3rem .7rem; cursor: pointer;
  }
  .wayfinder-btn .wf-label { display: none; }
  .wayfinder-btn { padding: .45rem .7rem; }
  .lantern-glow { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1.3rem; }
  section.band { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .menu-board { padding: 1.8rem 1.4rem; }
  .menu-item { flex-wrap: wrap; }
  .menu-item .desc { max-width: 100%; text-align: left; }
  .tenet { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .resident { grid-template-columns: 1fr; }
}
