/* ============================================================
   SAUNA SCANNER — Yonder Observatory
   Light "warm paper" aesthetic: cream grounds, ember heat ramp
   (pale = empty -> deep ember = full, as in the classic dashboard),
   deep-sage accent for Community. Fraunces / Space Grotesk / Plex Mono.
   ============================================================ */

:root {
  --bg0: #FAF6EF;
  --bg1: #F6EFE2;            /* hero base */
  --bg-panel: #FFFDF8;
  --bg-card: #FFFFFF;
  --bg-card-hi: #FFF7EA;
  --line: rgba(43, 37, 32, 0.09);
  --line-strong: rgba(43, 37, 32, 0.18);
  --ink: #2B2520;
  --ink-soft: #6E6354;
  --ink-faint: #9C9181;
  --ember: #C2410C;
  --ember-soft: #E07B2D;
  --ember-deep: #7F1D1D;
  --accent: #C2410C;             /* venue accent — swapped per venue */
  --accent-dim: rgba(194, 65, 12, 0.10);
  --good: #3E7A4E;
  --bad: #B3361C;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4.5vw, 72px);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(224, 123, 45, 0.3); color: #2B1409; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

em { font-style: italic; }

/* ---------- grain & cursor ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 80;
  opacity: 0.035;
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); } 20% { transform: translate(-2%, 3%); }
  40% { transform: translate(2%, -2%); } 60% { transform: translate(-3%, -1%); }
  80% { transform: translate(3%, 2%); } 100% { transform: translate(0, 0); }
}

.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200;
  border-radius: 50%; transform: translate(-100px, -100px);
}
.cursor { width: 6px; height: 6px; background: var(--ember); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(194, 65, 12, 0.4);
  transition: width .28s ease, height .28s ease, border-color .28s ease;
}
.cursor-ring.is-active { width: 52px; height: 52px; border-color: rgba(194, 65, 12, 0.85); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg0);
  display: grid; place-items: center;
}
.loader-inner { display: grid; justify-items: center; gap: 18px; }
.loader-mark { width: 56px; color: var(--ember); }
.loader-mark .steam { animation: steamWave 1.6s ease-in-out infinite; }
.loader-mark .s2 { animation-delay: 0.22s; }
.loader-mark .s3 { animation-delay: 0.44s; }
@keyframes steamWave {
  0%, 100% { transform: translateY(0); opacity: .45; }
  50% { transform: translateY(-5px); opacity: 1; }
}
.loader-text { color: var(--ink-faint); }
.loader-bar {
  width: 168px; height: 2px; background: rgba(43, 37, 32, 0.12);
  border-radius: 99px; overflow: hidden;
}
.loader-bar span {
  display: block; width: 18%; height: 100%;
  background: linear-gradient(90deg, var(--ember-soft), var(--ember));
  border-radius: 99px; transition: width .4s cubic-bezier(.22,.61,.36,1);
}

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  transition: background .45s ease, backdrop-filter .45s ease,
              border-color .45s ease, padding .45s ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
  padding: 12px var(--pad);
  background: rgba(250, 246, 239, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; letter-spacing: 0.01em; font-size: 1.02rem;
}
.wordmark svg { width: 26px; height: 26px; color: var(--accent); transition: color .4s ease; }
.wordmark em, .foot-mark em { font-family: var(--font-display); font-weight: 400; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  color: var(--ink-faint); text-decoration: none; position: relative;
  padding: 4px 0; transition: color .25s ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.65,.05,0,1);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 99px;
  color: var(--ink-soft); background: rgba(255, 253, 248, 0.7); white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 0 0 rgba(62, 122, 78, 0.5);
  animation: pulse 2.4s infinite;
}
.status-pill.is-stale .status-dot { background: var(--bad); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 122, 78, 0.4); }
  70% { box-shadow: 0 0 0 7px rgba(62, 122, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 122, 78, 0); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--pad) 90px;
  background: var(--bg1);
  overflow: hidden;
}
#heatCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26vh;
  background: linear-gradient(180deg, transparent, var(--bg0));
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1180px; }
.eyebrow { color: var(--ink-faint); margin-bottom: 26px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 30px -4px;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line-inner { display: inline-block; will-change: transform; }
.hero-title em {
  color: var(--ember);
  font-variation-settings: "SOFT" 60;
}
.hero-sub {
  max-width: 560px; color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.15rem); font-weight: 400;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-stats {
  display: flex; gap: clamp(28px, 5vw, 76px);
  margin-top: clamp(36px, 5.5vh, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
  max-width: 760px;
}
.hstat { display: grid; gap: 4px; }
.hstat-num {
  font-family: var(--font-display); font-weight: 380;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 12px rgba(250, 246, 239, 0.7);
}
.hstat-lab { color: var(--ink-soft); text-shadow: 0 1px 10px rgba(250, 246, 239, 0.8); }
.scroll-cue {
  position: absolute; bottom: 30px; left: var(--pad);
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink-faint);
}
.scroll-cue span {
  display: block; width: 1.5px; height: 44px;
  background: linear-gradient(180deg, var(--ember), transparent);
  animation: cueDrop 2.1s cubic-bezier(.65,.05,0,1) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(34px); opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(76px, 11vh, 130px) var(--pad); max-width: 1480px; margin: 0 auto; }
.section-head { max-width: 880px; margin-bottom: clamp(30px, 4.5vh, 52px); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 340;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 14px 0 18px;
}
.section-head h2 em { color: var(--ember); }
.section-head .eyebrow { margin-bottom: 0; }
.section-sub { color: var(--ink-soft); max-width: 640px; font-size: 1.02rem; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.venue-switch {
  position: relative; display: inline-flex;
  border: 1px solid var(--line-strong); border-radius: 99px;
  background: var(--bg-card); padding: 4px;
}
.venue-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  border-radius: 99px; background: var(--accent-dim);
  border: 1px solid var(--accent); width: 90px;
  transition: transform .45s cubic-bezier(.65,.05,0,1), width .45s cubic-bezier(.65,.05,0,1),
              background .4s ease, border-color .4s ease;
}
.venue-btn {
  position: relative; z-index: 1;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem;
  color: var(--ink-faint); background: none; border: none;
  padding: 9px 22px; border-radius: 99px; cursor: pointer;
  transition: color .3s ease;
}
.venue-btn.is-active { color: var(--ink); }
.today-btn {
  margin-left: auto;
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 99px;
  color: var(--ink-soft); padding: 10px 18px; cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.today-btn:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-dim); }

/* ---------- week strip ---------- */
.strip-caption { color: var(--ink-faint); margin-bottom: 8px; }
.week-strip-wrap { position: relative; margin-bottom: 18px; }
.week-strip {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.week-strip::-webkit-scrollbar { display: none; }
.week-card {
  flex: 0 0 auto; scroll-snap-align: center;
  width: 132px; padding: 12px 14px 11px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; cursor: pointer;
  display: grid; gap: 8px;
  box-shadow: 0 1px 3px rgba(43, 37, 32, 0.04);
  transition: border-color .3s ease, background .3s ease, transform .3s cubic-bezier(.22,.61,.36,1),
              box-shadow .3s ease;
}
.week-card:hover { border-color: var(--line-strong); transform: translateY(-2px);
  box-shadow: 0 8px 22px -12px rgba(43, 37, 32, 0.25); }
.week-card.is-selected {
  background: var(--bg-card-hi);
  border-color: var(--accent);
  box-shadow: 0 10px 28px -14px rgba(194, 65, 12, 0.4);
}
.week-card .wc-label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--ink-soft); white-space: nowrap;
}
.week-card.is-selected .wc-label { color: var(--ink); }
.week-card .wc-now {
  font-size: 0.58rem; color: var(--accent); letter-spacing: 0.16em;
  font-family: var(--font-mono); text-transform: uppercase;
}
.wc-bars { display: flex; gap: 3px; align-items: flex-end; height: 30px; }
.wc-bars i {
  flex: 1; border-radius: 2.5px 2.5px 1px 1px; min-height: 2px;
  background: rgba(43, 37, 32, 0.12);
}
.wc-bars i.future { background: transparent; border: 1px dashed rgba(43, 37, 32, 0.25); border-bottom: none; }
.wc-sum { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-faint); letter-spacing: 0.06em; }
.strip-arrow {
  position: absolute; top: 50%; transform: translateY(-58%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  color: var(--ink-soft); font-size: 19px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -6px rgba(43, 37, 32, 0.3);
  transition: color .25s ease, border-color .25s ease, opacity .3s ease;
}
.strip-arrow:hover { color: var(--ember); border-color: var(--accent); }
.strip-arrow.prev { left: -14px; }
.strip-arrow.next { right: -14px; }
.strip-arrow[disabled] { opacity: 0; pointer-events: none; }

/* ---------- type filter ---------- */
.type-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-caption {
  flex-basis: 100%; display: flex; justify-content: space-between; gap: 14px;
  color: var(--ink-faint); margin-bottom: 2px;
}
.filter-caption b { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
.type-chip {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: 99px; cursor: pointer;
  background: none; border: 1px dashed var(--line-strong); color: var(--ink-faint);
  opacity: 0.85;
  transition: all .22s ease;
}
.type-chip:hover { border-color: var(--accent); color: var(--ink); opacity: 1; }
.type-chip.is-on {
  background: var(--accent-dim); border: 1px solid var(--accent);
  color: var(--ink); opacity: 1;
}
.type-chip.reset {
  border: none; text-decoration: underline; text-underline-offset: 3px;
  color: var(--ember); background: none; opacity: 1;
}

/* ---------- KPI band ---------- */
.kpi-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin-bottom: 26px;
}
.kpi {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px 18px;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(43, 37, 32, 0.04);
  transition: border-color .3s ease, transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
}
.kpi:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -22px rgba(43, 37, 32, 0.3);
}
.kpi::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 140px at 18% -16%, var(--accent-dim), transparent 70%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.kpi:hover::after { opacity: 1; }
.kpi-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; }
.kpi-label .info { cursor: help; color: var(--ink-faint); border: 1px solid var(--line-strong);
  border-radius: 50%; width: 14px; height: 14px; display: inline-grid; place-items: center;
  font-size: 9px; letter-spacing: 0; }
.kpi-value {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.12; margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}
.kpi-value small { font-family: var(--font-ui); font-size: 0.92rem; font-weight: 500; color: var(--ink-faint); }
.kpi-sub { font-size: 0.8rem; color: var(--ink-faint); margin-top: 7px; }
.kpi-meter { height: 4px; border-radius: 99px; background: rgba(43, 37, 32, 0.08); margin-top: 12px; overflow: hidden; }
.kpi-meter span { display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--ember-soft), var(--ember)); }
.kpi-chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--ink-soft); white-space: nowrap;
}
.chip.hot { border-color: rgba(194, 65, 12, 0.45); color: var(--ember); }
.chip.full { border-color: rgba(179, 54, 28, 0.5); color: var(--bad); }
.chip.calm { border-color: rgba(62, 122, 78, 0.45); color: var(--good); }
.delta { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.delta.flat { color: var(--ink-faint); }

/* ---------- calendar ---------- */
.cal-card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px clamp(14px, 2vw, 28px) 18px;
  box-shadow: 0 1px 3px rgba(43, 37, 32, 0.04);
}
.cal-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.cal-title { font-family: var(--font-display); font-weight: 420; font-size: 1.5rem; letter-spacing: -0.01em; }
.cal-legend { display: flex; gap: 18px; margin-left: auto; align-items: center; color: var(--ink-faint); }
.cal-legend label { letter-spacing: 0.08em; font-size: 0.62rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.leg-ramp i { width: 56px; height: 8px; border-radius: 99px; display: block;
  background: linear-gradient(90deg, #F2ECE0, #EEB264, #C2410C, #7F1D1D); }
.leg-dash i { width: 18px; height: 10px; border: 1.5px dashed rgba(43, 37, 32, 0.3); border-radius: 4px; display: block; }
.leg-peak i { width: 18px; height: 10px; border-radius: 4px; display: block;
  background: rgba(224, 123, 45, 0.08);
  border: 1px solid rgba(194, 65, 12, 0.3); }
.cal-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.calendar { min-width: 860px; position: relative; }

.cal-axis { display: flex; position: relative; height: 26px; margin-left: var(--day-col, 150px); margin-right: var(--gutter-col, 190px); }
.cal-axis .tick {
  position: absolute; top: 0; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.cal-day { display: flex; align-items: stretch; border-top: 1px solid var(--line); position: relative; }
.cal-day:last-child { border-bottom: 1px solid var(--line); }
.cal-day.is-today { background: rgba(194, 65, 12, 0.03); }
.day-label {
  flex: 0 0 var(--day-col, 150px); padding: 12px 14px 12px 2px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  position: sticky; left: 0; z-index: 5;
  background: linear-gradient(90deg, var(--bg-panel) 78%, transparent);
}
.day-label .dl-dow { font-weight: 600; font-size: 0.95rem; }
.day-label .dl-date { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-faint); letter-spacing: 0.08em; }
.cal-day.is-today .dl-dow { color: var(--ember); }
.day-lanes { flex: 1 1 auto; position: relative; padding: 9px 0; min-height: 58px; }
.day-gutter {
  flex: 0 0 var(--gutter-col, 190px);
  border-left: 1px solid var(--line);
  padding: 10px 0 10px 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.dg-occ { font-family: var(--font-display); font-size: 1.22rem; font-weight: 460; line-height: 1.1; }
.dg-meta { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-faint); letter-spacing: 0.07em; }
.hour-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.hour-line.major { background: var(--line-strong); }
.peak-zone {
  position: absolute; top: 3px; bottom: 3px; border-radius: 8px;
  background: rgba(224, 123, 45, 0.07);
  border: 1px dashed rgba(194, 65, 12, 0.2);
  pointer-events: none;
}
.now-line {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: var(--ember); z-index: 4; pointer-events: none;
  box-shadow: 0 0 10px rgba(194, 65, 12, 0.5);
}
.now-line::after {
  content: "now"; position: absolute; top: -4px; left: 6px;
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ember);
}
.sess {
  position: absolute; border-radius: 9px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3px 9px; overflow: hidden;
  border: 1px solid rgba(43, 37, 32, 0.22);
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, filter .25s ease;
  will-change: transform;
}
.sess:hover { transform: translateY(-2px) scale(1.012); z-index: 6;
  box-shadow: 0 10px 24px -8px rgba(43, 37, 32, 0.4); filter: saturate(1.08); }
.sess.unknown { background: transparent; border: 1.5px dashed rgba(43, 37, 32, 0.3); }
.sess.peak::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(43, 37, 32, 0.4);
}
.sess.soldout { box-shadow: 0 0 14px rgba(194, 65, 12, 0.35), inset 0 0 0 1px rgba(255, 246, 234, 0.5); }
.sess .s-name { font-weight: 600; font-size: 0.74rem; line-height: 1.2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.sess .s-fill { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.05em; opacity: 0.85;
  white-space: nowrap; }
.sess.tight .s-fill { display: none; }
.sess.micro .s-name { display: none; }
.cal-empty {
  padding: 56px 20px; text-align: center; color: var(--ink-faint);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.cal-note { margin-top: 14px; color: var(--ink-faint); font-size: 0.6rem; letter-spacing: 0.1em; }

/* ---------- trends ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; border-block: 1px solid var(--line-strong);
  margin-bottom: clamp(34px, 5vh, 56px);
  background: var(--bg-panel);
}
.tstat { padding: clamp(20px, 2.6vw, 34px) clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); min-width: 0; }
.tstat:first-child { border-left: none; }
.tstat-num {
  font-family: var(--font-display); font-weight: 340;
  font-size: clamp(2rem, 4.2vw, 3.7rem); line-height: 1.04;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tstat-num em { color: var(--ember); }
.tstat-lab { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

.chart-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(20px, 2.4vw, 30px); margin-bottom: 22px; min-width: 0;
  box-shadow: 0 1px 3px rgba(43, 37, 32, 0.04);
}
.chart-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-bottom: 22px; }
.chart-row .chart-card { margin-bottom: 0; }
.chart-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 18px; }
.chart-head h3 { font-family: var(--font-display); font-weight: 440; font-size: 1.35rem; letter-spacing: -0.01em; }
.chart-sub { color: var(--ink-soft); font-size: 0.85rem; }
.chart-key {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  margin-top: 9px; color: var(--ink-faint);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.09em; text-transform: uppercase;
}
.chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.chart-key i { display: block; }
.chart-key .k-ramp { width: 52px; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, #F2ECE0, #EEB264, #C2410C, #7F1D1D); }
.chart-key .k-bar { width: 14px; height: 12px; border-radius: 3px; background: var(--ember-soft); }
.chart-key .k-line { width: 22px; height: 0; border-top: 2.5px solid var(--ember); border-radius: 2px; }
.chart-key .k-ring { width: 13px; height: 13px; border-radius: 4px; border: 1.5px dashed var(--ink); }
.chart-key .k-week { width: 22px; height: 13px; border-radius: 4px; border: 2px solid var(--ink); }
.chart-host { position: relative; min-height: 120px; }
.chart-host svg { display: block; width: 100%; height: auto; }
.chart-host text { font-family: var(--font-mono); fill: var(--ink-faint); }
.glance-host { overflow-x: auto; }

/* ---------- duel ---------- */
.duel-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.duel-card {
  border: 1px solid var(--line); border-radius: 22px; padding: 24px 26px;
  background: linear-gradient(160deg, var(--bg-card-hi), var(--bg-card) 65%);
  position: relative; overflow: hidden;
  box-shadow: 0 1px 3px rgba(43, 37, 32, 0.04);
}
.duel-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--dc-accent, var(--ember));
}
.duel-card h3 { font-family: var(--font-display); font-weight: 440; font-size: 1.45rem; margin-bottom: 2px; }
.duel-card .dc-sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); }
.dc-stats { display: flex; gap: 34px; margin-top: 18px; flex-wrap: wrap; }
.dc-stat b { font-family: var(--font-display); font-weight: 440; font-size: 1.9rem; display: block; line-height: 1.05; }
.dc-stat span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint); }

/* ---------- ledger ---------- */
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.prov-card {
  border-top: 2px solid var(--line-strong); padding-top: 18px;
}
.prov-card h4 { color: var(--ember); margin-bottom: 10px; font-weight: 500; }
.prov-card p { color: var(--ink-soft); font-size: 0.88rem; }
.prov-card strong { color: var(--ink); }
.ledger-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 0 1px 3px rgba(43, 37, 32, 0.04); }
.ledger-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.ledger-head h3 { font-family: var(--font-display); font-weight: 440; font-size: 1.35rem; }
.ledger-actions { margin-left: auto; display: flex; gap: 10px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent); border-radius: 99px;
  background: var(--accent-dim); color: var(--ink);
  padding: 9px 18px; text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.dl-btn:hover { background: rgba(194, 65, 12, 0.18); transform: translateY(-1px); }
.dl-btn.ghost { background: none; border-color: var(--line-strong); color: var(--ink-soft); }
.dl-btn.ghost:hover { border-color: var(--accent); color: var(--ink); }
.ledger-scroll { max-height: 420px; overflow: auto; border-top: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ledger-table { width: 100%; border-collapse: collapse; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: none; }
.ledger-table th {
  text-align: left; padding: 11px 14px 11px 0; color: var(--ink-faint);
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6rem;
  position: sticky; top: 0; background: var(--bg-panel); z-index: 1;
  border-bottom: 1px solid var(--line-strong);
}
.ledger-table td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft);
  white-space: nowrap; }
.ledger-table td.sess-name { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.venue-tag { display: inline-flex; align-items: center; gap: 6px; }
.venue-tag i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.fill-pill { padding: 2px 8px; border-radius: 99px; font-size: 0.6rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-strong); padding: 44px var(--pad) 60px; background: var(--bg1); }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; }
.foot-mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.foot-mark svg { width: 22px; height: 22px; color: var(--accent); }
.foot-note { margin-left: auto; color: var(--ink-faint); }
.foot-fine { color: var(--ink-faint); font-size: 0.8rem; max-width: 560px; }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 150; pointer-events: none;
  background: rgba(255, 253, 248, 0.97);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; padding: 12px 14px;
  min-width: 190px; max-width: 280px;
  opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 18px 40px -16px rgba(43, 37, 32, 0.4);
}
.tip.is-on { opacity: 1; transform: translateY(0); }
.tip h5 { font-family: var(--font-ui); font-size: 0.84rem; font-weight: 600; color: var(--ink);
  margin-bottom: 6px; line-height: 1.3; }
.tip .t-row { display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em;
  color: var(--ink-soft); padding: 2px 0; }
.tip .t-row b { color: var(--ink); font-weight: 500; }
.tip .t-tag { display: inline-block; margin-top: 7px; padding: 2px 8px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(194, 65, 12, 0.5); color: var(--ember); }

/* ---------- reveals (pre-GSAP states are set in JS; CSS keeps content visible if JS fails) ---------- */
.reveal, .reveal-hero { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpi-band { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .tstat:nth-child(3) { border-left: none; }
  .tstat { border-top: 1px solid var(--line); }
  .tstat:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .status-pill { margin-left: auto; }
  .status-time { display: none; }
  .hero { padding-top: 104px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .toolbar { gap: 10px; }
  .today-btn { margin-left: 0; }
  .kpi-band { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px 14px 13px; }
  .kpi-value { font-size: 1.5rem; }
  .duel-cards { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: 1fr; gap: 18px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .cal-legend { margin-left: 0; }
  .strip-arrow { display: none; }
  .scroll-cue { display: none; }
  .calendar { --day-col: 92px; --gutter-col: 132px; min-width: 740px; }
  .cal-axis .tick.minor { display: none; }
  .day-label { padding-left: 0; }
  .dg-occ { font-size: 1rem; }
  .ledger-actions { margin-left: 0; }
  .foot-note { margin-left: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .grain { animation: none; }
}
