/* ==========================================================================
   Conferial Knowledge Hub — Design System v2 "Editorial Minimal"
   Paper surfaces · ink actions · hairline borders · one viridian accent
   Fonts: Fraunces (display serif) · Inter (body)
   Note: token NAMES are kept from v1 so markup/JS need no structural changes.
   ========================================================================== */

:root {
  /* Core (legacy names, new values) */
  --primary: #191817;          /* ink — primary actions */
  --primary-deep: #000000;
  --accent: #1D5C4D;           /* single accent: deep viridian */
  --gold-soft: #D9E4E0;        /* accent hairline */
  --gold-tint: #EEF3F1;        /* accent wash */

  /* Neutrals */
  --ink: #191817;
  --ink-2: #57534E;
  --ink-3: #6F6A63;
  --bg: #FAFAF8;               /* paper */
  --surface: #FFFFFF;
  --band: #F4F3F0;
  --line: #E7E4DE;
  --line-strong: #D6D2CA;

  /* Semantic */
  --success: #1D5C4D;
  --success-bg: #E5EFEB;
  --error: #B3261E;
  --error-bg: #F9DEDC;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Elevation — flat by default, soft on hover only */
  --shadow-sm: 0 1px 2px rgba(25, 24, 23, .04);
  --shadow-md: 0 2px 8px rgba(25, 24, 23, .06);
  --shadow-lg: 0 16px 40px rgba(25, 24, 23, .10);
  --shadow-gold: 0 10px 30px rgba(25, 24, 23, .14);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Motion */
  --ease: cubic-bezier(.23, .9, .32, 1);
  --t-fast: 160ms;
  --t-med: 240ms;

  /* Layout */
  --container: 1160px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 550; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h4 { font-family: var(--font-body); margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-tint); color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* Text wordmark (replaces the backend's gold logo) */
.wordmark {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  line-height: 1; white-space: nowrap;
}
.wordmark::after { content: "."; color: var(--accent); }
.wordmark--lg { font-size: 30px; }
.wordmark--light, .wordmark--light::after { color: #FAFAF8; }
.wordmark--light::after { color: #9FC4B8; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 248, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 34px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }

.main-nav { display: flex; gap: 26px; margin-left: 10px; }
.main-nav a {
  position: relative;
  padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--ink-3); font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  transition: color var(--t-fast) var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 10px; height: 1.5px;
  background: var(--ink); transition: right var(--t-med) var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.main-nav a[aria-current="page"]::after { right: 0; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 24px;
  border-radius: 0; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #FAFAF8; }
.btn-primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: #FAFAF8; color: var(--ink); }
.btn-accent:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 14px 32px; font-size: 15.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; padding: 10px; min-width: 44px; min-height: 44px; color: var(--ink); }
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 88px; background: var(--bg); text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 30px;
}
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 74px);
  font-weight: 480; letter-spacing: -.025em; line-height: 1.04; max-width: 820px;
  margin-left: auto; margin-right: auto;
}
.hero h1 .u-gold { font-style: italic; font-weight: 520; color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 26px auto 44px; line-height: 1.7;
}

/* Search */
.search-shell { position: relative; max-width: 680px; }
.hero .search-shell { margin-left: auto; margin-right: auto; }
.hero .search-chips { justify-content: center; }
.hero .search-results { text-align: left; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 0; padding: 7px 8px 7px 22px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search-bar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 24, 23, .07); }
.search-bar svg { flex-shrink: 0; color: var(--ink-3); }
.search-bar input {
  flex: 1; border: 0; outline: 0; background: none;
  font-family: var(--font-body); font-size: 16.5px; color: var(--ink);
  min-height: 44px;
}
.search-bar input::placeholder { color: var(--ink-3); }
.search-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.search-chips .label { font-size: 13px; color: var(--ink-3); }
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 16px; min-height: 36px;
  border-radius: 0; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* Search results dropdown */
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  max-height: 480px; overflow-y: auto; padding: 8px;
  display: none;
}
.search-results.is-open { display: block; }
.sr-group-label {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); padding: 14px 14px 6px;
}
.sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-md); color: var(--ink);
  transition: background var(--t-fast) var(--ease);
}
.sr-item:hover, .sr-item:focus { background: var(--band); }
.sr-item .sr-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--band); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
}
.sr-item .sr-txt { min-width: 0; }
.sr-item .sr-title { font-weight: 550; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item .sr-meta { font-size: 12.5px; color: var(--ink-3); }
.sr-empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.band { background: var(--band); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: -.02em; }
.section-head .sub { color: var(--ink-2); margin-top: 10px; max-width: 520px; font-size: 15.5px; }
.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap;
  padding: 8px 0; border-bottom: 1px solid var(--ink);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.link-more:hover { gap: 11px; color: var(--accent); border-color: var(--accent); }

/* ---------- Channel cards ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.channel-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); padding: 34px 30px;
  color: var(--ink);
  transition: background var(--t-med) var(--ease);
}
.channel-card:hover { background: var(--bg); }
.channel-card .ch-icon {
  width: 44px; height: 44px; border-radius: 0;
  background: none; color: var(--ink);
  display: flex; align-items: center; justify-content: flex-start;
}
.channel-card h3 { font-size: 21px; font-weight: 550; letter-spacing: -.01em; }
.channel-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.channel-card .ch-count {
  margin-top: auto; padding-top: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.channel-card .ch-arrow {
  position: absolute; top: 30px; right: 28px; color: var(--line-strong);
  transition: color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.channel-card:hover .ch-arrow { color: var(--ink); transform: translate(3px, -3px); }

/* ---------- Cards: resources ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.res-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; color: var(--ink);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.res-cover {
  aspect-ratio: 16 / 9; background: var(--band);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3);
  position: relative; overflow: hidden;
}
.res-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.res-card:hover .res-cover img { transform: scale(1.03); }
.res-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.res-type {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.res-card h3 { font-family: var(--font-display); font-size: 19.5px; font-weight: 550; line-height: 1.3; letter-spacing: -.01em; }
.res-card .res-abstract {
  margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.res-meta { margin-top: auto; display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 12.5px; padding-top: 8px; border-top: 1px solid var(--line); }
.res-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* Badges */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.badge-free { background: rgba(250, 250, 248, .94); color: var(--ink); border: 1px solid var(--line-strong); }
.badge-premium { background: rgba(25, 24, 23, .92); color: #FAFAF8; }

/* ---------- Speaker / author cards ---------- */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.person-card {
  background: transparent; border: 0; border-radius: 0;
  padding: 10px 6px 18px; text-align: center; color: var(--ink);
  transition: transform var(--t-med) var(--ease);
}
.person-card:hover { transform: translateY(-4px); }
.person-avatar {
  width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--band); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; font-weight: 500;
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.person-card:hover .person-avatar { border-color: var(--ink); box-shadow: var(--shadow-md); }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person-card h3 { font-size: 19px; font-weight: 550; letter-spacing: -.01em; }
.person-card .p-role { color: var(--ink-2); font-size: 13.5px; margin-top: 5px; }
.person-card .p-org { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.person-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.person-tags .tag {
  font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-full); padding: 4px 11px;
}

/* ---------- Event cards ---------- */
.event-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.event-card {
  display: flex; align-items: center; gap: 26px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 26px 6px; color: var(--ink);
  transition: background var(--t-med) var(--ease), padding var(--t-med) var(--ease);
}
.event-card:hover { background: var(--surface); padding-left: 16px; }
.event-date {
  flex-shrink: 0; width: 68px; height: 72px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.event-date .d { font-family: var(--font-display); font-size: 26px; font-weight: 550; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.event-date .m { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); margin-top: 5px; }
.event-info { min-width: 0; flex: 1; }
.event-info h3 { font-size: 20px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-info .e-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ink-3); font-size: 13px; margin-top: 7px; }
.event-info .e-meta span { display: inline-flex; align-items: center; gap: 5px; }
.event-cta { flex-shrink: 0; }
.pill {
  display: inline-flex; padding: 5px 13px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.pill-live { background: var(--error-bg); color: var(--error); }
.pill-upcoming { background: transparent; color: var(--accent); border: 1px solid var(--gold-soft); }
.pill-gold { background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); }

/* ---------- Premium CTA band ---------- */
.premium-band {
  position: relative; overflow: hidden;
  background: var(--ink);
  border-radius: var(--r-lg); padding: 76px 64px; color: #FAFAF8;
}
.premium-band::after { content: none; }
.premium-band h2 {
  font-size: clamp(30px, 4vw, 46px); font-weight: 480; max-width: 620px; letter-spacing: -.02em; line-height: 1.12;
}
.premium-band p { color: rgba(250, 250, 248, .68); max-width: 520px; font-size: 16px; margin: 20px 0 36px; line-height: 1.7; }
.premium-band .btn-accent { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: var(--ink-2); margin-top: 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; padding: 72px 0 48px; }
.footer-brand img { height: 26px; filter: none; opacity: 1; }
.footer-brand p { font-size: 14px; max-width: 300px; margin-top: 18px; color: var(--ink-3); line-height: 1.7; }
.footer-col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.footer-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 6px 0; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0; font-size: 13px; color: var(--ink-3);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Page headers (inner pages) ---------- */
.page-head { padding: 76px 0 52px; background: var(--bg); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 480; letter-spacing: -.025em; }
.page-head .sub { color: var(--ink-2); margin-top: 14px; max-width: 560px; font-size: 16.5px; line-height: 1.7; }
.page-tools { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.page-tools .search-bar { flex: 1; min-width: 260px; max-width: 440px; padding: 3px 8px 3px 18px; }
.page-tools .search-bar input { font-size: 15px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 18px; min-height: 40px; border-radius: 0;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #FAFAF8; }

/* ---------- Detail layouts ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 56px; padding: 64px 0; align-items: start; }
.detail-main h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 500; letter-spacing: -.02em; margin: 14px 0 20px; }
.detail-main .lede { font-size: 18px; color: var(--ink-2); }
.prose { font-size: 17px; line-height: 1.8; color: var(--ink); max-width: 68ch; }
.prose h2 { font-size: 27px; margin: 44px 0 16px; font-weight: 550; }
.prose h3 { font-size: 21px; margin: 32px 0 12px; font-weight: 550; }
.prose img { border-radius: var(--r-md); }
.prose blockquote {
  margin: 30px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent);
  background: none; border-radius: 0; color: var(--ink-2);
  font-family: var(--font-display); font-size: 20px; font-style: italic; line-height: 1.55;
}
.side-card {
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; margin-bottom: 20px;
}
.side-card h4 { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-3); }
.kv .v { font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; }

/* Lock panel (premium gate) */
.lock-panel {
  text-align: center; padding: 72px 40px; margin: 34px 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.lock-panel .lock-icon {
  width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--ink); color: #FAFAF8;
  display: flex; align-items: center; justify-content: center;
}
.lock-panel h3 { font-size: 26px; font-weight: 520; letter-spacing: -.015em; }
.lock-panel p { color: var(--ink-2); max-width: 400px; margin: 12px auto 30px; line-height: 1.7; }

/* Media player shell */
.player-shell {
  aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center; color: rgba(250,250,248,.5);
}
.player-shell video, .player-shell audio, .player-shell iframe { width: 100%; height: 100%; border: 0; }
.player-shell audio { height: 54px; align-self: center; margin: 0 24px; }

/* ---------- States: skeleton, empty, error ---------- */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skel {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--band) 25%, #ECEAE5 37%, var(--band) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.3s linear infinite;
}
.skel-card { height: 300px; border-radius: var(--r-lg); }
.skel-row { height: 96px; border-radius: var(--r-lg); }
.skel-person { height: 250px; border-radius: var(--r-lg); }

.empty-state, .error-state {
  grid-column: 1 / -1; text-align: center; padding: 76px 30px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-2);
}
.empty-state .big, .error-state .big { font-family: var(--font-display); font-size: 22px; font-weight: 520; color: var(--ink); margin-bottom: 8px; }
.error-state { border-color: var(--error); background: var(--error-bg); color: var(--ink); }

/* ---------- Auth (login) ---------- */
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #FAFAF8; display: flex; flex-direction: column; justify-content: center; padding: 80px;
}
.auth-brand::after { content: none; }
.auth-brand img { height: 30px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.auth-brand h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 480; margin: 44px 0 18px; max-width: 440px; letter-spacing: -.02em; line-height: 1.14; }
.auth-brand p { color: rgba(250, 250, 248, .66); max-width: 400px; font-size: 16px; line-height: 1.75; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 30px; font-weight: 520; margin-bottom: 10px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--ink-2); font-size: 15px; margin-bottom: 34px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink); letter-spacing: .02em; }
.field input {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25, 24, 23, .08); }
.field .field-error { color: var(--error); font-size: 13px; margin-top: 6px; display: none; }
.field.has-error input { border-color: var(--error); }
.field.has-error .field-error { display: block; }
.form-alert {
  display: none; padding: 13px 16px; border-radius: var(--r-md);
  font-size: 14px; margin-bottom: 20px;
}
.form-alert.is-error { display: block; background: var(--error-bg); color: var(--error); }
.form-alert.is-success { display: block; background: var(--success-bg); color: var(--success); }
.auth-links { margin-top: 28px; text-align: center; font-size: 14px; color: var(--ink-2); }
.auth-links a { font-weight: 600; border-bottom: 1px solid var(--line-strong); transition: border-color var(--t-fast) var(--ease); }
.auth-links a:hover { border-color: var(--ink); }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff;
  animation: spin .7s linear infinite; display: none;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .7; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(20px) scale(.985);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Section entrance — auto-tagged by ui.js on .section / .page-head */
.section-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  will-change: opacity, transform;
}
.section-reveal.is-in { opacity: 1; transform: none; }
/* Inner stagger: heading arrives first, content follows a beat later */
.section-reveal .section-head { transition: opacity .55s var(--ease) .1s, transform .55s var(--ease) .1s; opacity: 0; transform: translateY(16px); }
.section-reveal.is-in .section-head { opacity: 1; transform: none; }

/* Hero load-in — staged fade-up on first paint */
@keyframes rise-in { to { opacity: 1; transform: none; } }
.hero .hero-kicker,
.hero h1,
.hero .hero-sub,
.hero .search-shell {
  opacity: 0; transform: translateY(18px);
  animation: rise-in .7s var(--ease) forwards;
}
.hero h1 { animation-delay: 90ms; }
.hero .hero-sub { animation-delay: 180ms; }
.hero .search-shell { animation-delay: 270ms; }

/* Toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #FAFAF8; padding: 13px 24px; border-radius: var(--r-full);
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); z-index: 150;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 90;
    flex-direction: column; gap: 0; padding: 10px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 2px; font-size: 16px; }
  .main-nav a::after { content: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .card-grid, .channel-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card { flex-wrap: wrap; }
  .event-cta { width: 100%; }
  .event-cta .btn { width: 100%; }
  .premium-band { padding: 52px 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .section-reveal, .section-reveal .section-head { opacity: 1; transform: none; }
  .hero .hero-kicker, .hero h1, .hero .hero-sub, .hero .search-shell { opacity: 1; transform: none; animation: none; }
}
