body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
.hub { max-width: 1080px; margin: 0 auto; padding: 3rem 1.5rem; }
/* Header: a hero band on the venue's hero image (hub.js sets the <img> from story.hero.image) under an ink scrim,
   so the logo, the system label, the venue name and the tagline read in --surface on any photo. */
.hub-head { position: relative; isolation: isolate; overflow: hidden; text-align: center; margin-bottom: 2.5rem;
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem; border-radius: calc(var(--radius) + 6px); background: var(--ink); color: var(--surface); }
.hub-head__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hub-head::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 58%, transparent) 0%, color-mix(in srgb, var(--ink) 82%, transparent) 100%); }
.hub-logo { display: block; max-height: clamp(96px, 12vw, 140px); max-width: 60%; margin: 0 auto 1.4rem; }
.hub-system { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: clamp(.72rem, 1.2vw, .85rem);
  letter-spacing: .28em; text-transform: uppercase; color: color-mix(in srgb, var(--surface) 82%, transparent); }
.hub-name { margin: .6rem 0 0; font-family: var(--font-heading); font-weight: 400; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -.01em; }
.hub-tagline { margin: .9rem 0 0; color: color-mix(in srgb, var(--surface) 85%, transparent); }
.hub-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hub-card { display: block; background: var(--surface); border-radius: var(--radius); padding: 1.5rem;
  text-decoration: none; color: inherit; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.hub-card h2 { font-family: var(--font-heading); color: var(--brand); margin-top: 0; }
.hub-pin { font-size: 0.9rem; color: var(--muted); }
.hub-tour, .hub-meta { margin-top: 2.5rem; background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.hub-meta { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
#resetDemo { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: var(--radius);
  padding: 0.6rem 1.2rem; cursor: pointer; font-family: var(--font-body); }
@media (max-width: 600px) { .hub { padding: 1.5rem 1rem; } }
.hub-lang { display: flex; justify-content: flex-end; gap: 0.25rem; margin-bottom: 1rem; }
.hub-lang button { background: var(--surface); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: var(--radius); padding: 0.4rem 0.8rem; cursor: pointer; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.04em; }
.hub-lang button.is-active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* ---------- Background: a faint still topographic map behind the whole page (shared/topo.svg, from
   checks/topo-gen.cjs). shared/hub-topo.js adds .topo__lamp, the pointer reveal; none with reduced motion. ---------- */
.topo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.topo__layer { position: absolute; inset: -2%; background: url("shared/topo.svg") center / cover no-repeat; }
.topo__faint { opacity: .12; }
/* The reveal: a small canvas holding the same map in citron, moved under the pointer with a transform. Its soft
   edge is this STATIC mask (only its alpha matters), so the full-screen layer above is never repainted. */
.topo__lamp {
  position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s ease; will-change: transform; contain: strict;
  -webkit-mask-image: radial-gradient(circle 190px at 190px 190px, var(--ink) 0%, var(--ink) 30%, color-mix(in srgb, var(--ink) 55%, transparent) 58%, transparent 100%);
          mask-image: radial-gradient(circle 190px at 190px 190px, var(--ink) 0%, var(--ink) 30%, color-mix(in srgb, var(--ink) 55%, transparent) 58%, transparent 100%);
}
.topo.is-active .topo__lamp { opacity: .62; } /* reveal strength: raise toward 1 for a stronger citron */
@media (max-width: 700px) { .topo__faint { opacity: .1; } }

/* ---------- The three surface cards invert on hover / keyboard focus ---------- */
.hub-card { transition: background-color .28s ease, color .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease; }
.hub-card h2, .hub-card p { transition: color .28s ease; }
.hub-card:hover, .hub-card:focus-visible {
  background: var(--ink); border-color: var(--ink); color: var(--surface);
  transform: translateY(-3px); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--ink) 55%, transparent);
}
.hub-card:hover :is(h2, p), .hub-card:focus-visible :is(h2, p) { color: var(--surface); }
.hub-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hub-card, .hub-card * { transition: none; } .hub-card:hover, .hub-card:focus-visible { transform: none; } }

/* ---------- "Created by" credit at the bottom (demo.vendor; hidden when absent) ---------- */
.hub-credit { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2.6rem 0 .4rem; color: var(--muted); }
.hub-credit[hidden] { display: none; }
.hub-credit span { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hub-credit a { display: block; border-radius: 8px; transition: transform .2s ease, box-shadow .2s ease; }
.hub-credit img { display: block; width: 168px; height: auto; border-radius: 8px; }
.hub-credit a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--ink) 45%, transparent); }
.hub-credit a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hub-credit a { transition: none; } .hub-credit a:hover { transform: none; } }
