:root {
  color-scheme: dark;
  --ink: #f5f3ed;
  --muted: #96979d;
  --dim: #666970;
  --ground: #0b0c10;
  --surface: #121419;
  --surface-2: #191c22;
  --line: rgba(255, 255, 255, .1);
  --accent: #d8ff48;
  --accent-soft: rgba(216, 255, 72, .12);
  --danger: #ff6b6b;
  --radius: 18px;
  --page: min(1440px, calc(100vw - 64px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ground); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; background: radial-gradient(circle at 14% 8%, rgba(216,255,72,.08), transparent 24%), radial-gradient(circle at 88% 42%, rgba(255,255,255,.035), transparent 30%); z-index: 20; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { height: 76px; width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { font-weight: 850; letter-spacing: -.08em; font-size: 22px; width: fit-content; }
.brand-mark { color: var(--accent); }
.brand-dot { color: var(--dim); padding: 0 2px; }
.primary-nav { display: flex; gap: 4px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.primary-nav a { color: var(--muted); padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; transition: .2s ease; }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { color: #10120b; background: var(--accent); }
.account-menu { justify-self: end; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.account-menu form { margin: 0; }
.text-button { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font-weight: 700; }

.page-shell { width: var(--page); margin: 0 auto; padding: 72px 0 120px; }
.page-heading { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 64px; margin-bottom: 64px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.page-heading h1 { font-size: clamp(54px, 7vw, 108px); line-height: .86; letter-spacing: -.075em; margin: 0; font-weight: 820; }
.page-heading h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--muted); }
.heading-copy { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 4px; }

.toolbar { position: sticky; top: 12px; z-index: 4; display: flex; align-items: end; gap: 12px; padding: 12px; background: rgba(18,20,25,.9); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(18px); margin-bottom: 30px; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.search-field, .select-field { display: grid; gap: 7px; flex: 1; }
.search-field span, .select-field span, .type-filter legend { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: var(--dim); padding-left: 2px; }
.toolbar input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: #0d0f13; color: var(--ink); outline: none; }
.toolbar input:focus { border-color: rgba(216,255,72,.55); box-shadow: 0 0 0 3px var(--accent-soft); }
.toolbar-note { margin-left: auto; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px transparent; } }

.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.session-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .25s ease, border-color .25s ease; min-width: 0; }
.session-card:hover { transform: translateY(-4px); border-color: rgba(216,255,72,.35); }
.session-thumb { height: 260px; position: relative; background: radial-gradient(circle at 60% 35%, #333944, #17191f 45%, #0e1014); overflow: hidden; }
.session-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.session-card:hover .session-thumb img { transform: scale(1.025); }
.thumb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.12); font-size: 58px; font-weight: 850; letter-spacing: -.08em; }
.session-badge { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(9,10,13,.74); backdrop-filter: blur(8px); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.session-badge.live { color: var(--accent); }
.session-card-body { padding: 20px; }
.session-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.session-card h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.session-number { color: var(--dim); font: 600 11px ui-monospace, monospace; }
.session-date { color: var(--muted); margin: 7px 0 20px; font-size: 12px; }
.session-card-stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--line); padding-top: 16px; gap: 10px; }
.session-card-stats span { display: block; color: var(--dim); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.session-card-stats strong { font-size: 13px; }

.load-sentinel { height: 80px; display: grid; place-items: center; }
.load-sentinel span { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; opacity: 0; }
.load-sentinel.loading span { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 100px 20px; color: var(--muted); }
.empty-state > span { display: block; font-size: 60px; color: var(--line); font-weight: 900; }
.empty-state h2 { color: var(--ink); margin-bottom: 8px; }
.empty-state p { margin: 0; }

.gallery-heading { margin-bottom: 48px; }
.gallery-toolbar { display: grid; grid-template-columns: 1.2fr 1fr auto auto; }
.type-filter { border: 0; padding: 0; margin: 0; display: flex; gap: 4px; align-items: end; }
.type-filter legend { position: absolute; transform: translateY(-51px); }
.type-filter label { cursor: pointer; }
.type-filter input { position: absolute; opacity: 0; pointer-events: none; }
.type-filter span { height: 44px; display: grid; place-items: center; padding: 0 13px; background: #0d0f13; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 700; }
.type-filter input:checked + span { background: var(--accent); color: #11130b; }
.clear-button { height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 0 14px; cursor: pointer; font-size: 11px; font-weight: 700; }
.clear-button:hover { border-color: var(--muted); }
.gallery-status { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.gallery-status .live-pulse { margin-left: auto; }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.media-card { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; overflow: hidden; border-radius: 12px; background: var(--surface); cursor: zoom-in; text-align: left; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.media-card:hover img { transform: scale(1.035); filter: brightness(.72); }
.media-overlay { position: absolute; inset: auto 0 0; padding: 28px 12px 11px; background: linear-gradient(transparent, rgba(0,0,0,.86)); opacity: 0; transform: translateY(5px); transition: .25s ease; }
.media-card:hover .media-overlay, .media-card:focus-visible .media-overlay { opacity: 1; transform: none; }
.media-overlay strong { display: block; font-size: 12px; }
.media-overlay span { color: rgba(255,255,255,.65); font-size: 10px; }
.media-kind { position: absolute; top: 9px; left: 9px; padding: 5px 7px; border-radius: 6px; background: rgba(0,0,0,.58); font-size: 8px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }

.back-link { display: inline-flex; color: var(--muted); font-size: 12px; margin-bottom: 44px; }
.back-link:hover { color: var(--ink); }
.session-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 44px; }
.session-kicker { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; color: var(--muted); }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.state-dot.online { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.session-hero h1 { font-size: clamp(48px, 7vw, 96px); letter-spacing: -.075em; line-height: .9; margin: 15px 0 18px; }
.session-hero p { color: var(--muted); margin: 0; font-size: 13px; }
.session-hero p strong { color: var(--ink); }
.session-live-note { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 12px; line-height: 1.2; text-align: right; }
.session-live-note small { color: var(--dim); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.stat-grid article { background: var(--surface); padding: 25px; min-width: 0; }
.stat-grid span, .stat-grid small { display: block; color: var(--dim); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.stat-grid strong { display: block; margin: 13px 0 8px; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.05em; }
.stat-grid small { text-transform: none; letter-spacing: 0; font-weight: 500; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.panel-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.panel-heading h2, .section-heading h2 { font-size: 26px; letter-spacing: -.04em; margin: 0; }
.panel-heading .eyebrow, .section-heading .eyebrow { margin-bottom: 7px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 11px; color: var(--muted); }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 38px; height: 22px; border-radius: 99px; border: 1px solid var(--line); background: #0d0f13; padding: 3px; }
.switch span::after { content: ""; display: block; width: 14px; height: 14px; background: var(--muted); border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: #11130b; }
.switch b { font-weight: 650; }
.timeline-wrap { position: relative; min-height: 145px; touch-action: pan-y; }
#timeline { width: 100%; height: 145px; overflow: visible; }
.timeline-tooltip { position: absolute; z-index: 3; pointer-events: none; padding: 9px 11px; border-radius: 9px; background: #f6f4ee; color: #111318; box-shadow: 0 12px 32px rgba(0,0,0,.35); transform: translate(-50%, -120%); white-space: nowrap; font-size: 10px; }
.timeline-tooltip strong { display: block; font-size: 11px; margin-bottom: 2px; }
.frame-preview { width: min(420px, 100%); display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 5px; }
.frame-preview img { width: 112px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.frame-preview span { display: block; color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.frame-preview strong { display: block; font-size: 12px; margin-top: 5px; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.legend-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.legend-swatch { width: 7px; height: 7px; border-radius: 2px; }

.metric-table-wrap { overflow-x: auto; }
.metric-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.metric-table th { color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; text-align: left; padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.metric-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.055); }
.metric-table tr:last-child td { border-bottom: 0; }
.metric-status { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.metric-status i { width: 9px; height: 9px; border-radius: 3px; }
.metric-zero { color: var(--dim); }

.media-section { margin-top: 76px; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.section-heading h2 { font-size: 38px; }
.section-heading sup { color: var(--accent); font-size: 11px; vertical-align: top; margin-left: 5px; }
.section-heading > a { color: var(--muted); font-size: 11px; }
.section-heading > a:hover { color: var(--accent); }

.lightbox { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; padding: 0; margin: 0; background: rgba(4,5,7,.96); color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgba(4,5,7,.96); }
.lightbox-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; display: grid; place-items: center; }
.lightbox-stage.dragging { cursor: grabbing; }
.lightbox-stage img { max-width: 88vw; max-height: 86vh; object-fit: contain; user-select: none; will-change: transform; transform-origin: 0 0; }
.lightbox-topbar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: start; padding: 20px 22px; background: linear-gradient(rgba(0,0,0,.72), transparent); pointer-events: none; }
.lightbox-topbar > div { padding: 5px 8px; }
.lightbox-topbar strong { display: block; font-size: 13px; }
.lightbox-topbar span { color: rgba(255,255,255,.55); font-size: 10px; }
.lightbox-button { position: absolute; z-index: 3; border: 1px solid rgba(255,255,255,.18); background: rgba(10,11,14,.62); backdrop-filter: blur(12px); color: white; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.lightbox-close { position: relative; width: 42px; height: 42px; font-size: 25px; pointer-events: auto; }
.lightbox-prev, .lightbox-next { width: 48px; height: 48px; top: 50%; transform: translateY(-50%); font-size: 35px; }
.lightbox-prev { left: 20px; }.lightbox-next { right: 20px; }
.lightbox-button:hover { background: var(--accent); border-color: var(--accent); color: #11130b; }
.lightbox-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: rgba(255,255,255,.55); font-size: 9px; white-space: nowrap; }

.login-shell { width: 100%; padding: 0; display: grid; grid-template-columns: minmax(420px, 42%) 1fr; min-height: 100vh; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 110px); border-right: 1px solid var(--line); position: relative; z-index: 1; }
.login-brand { position: absolute; top: 40px; left: clamp(40px, 7vw, 110px); font-weight: 900; font-size: 18px; letter-spacing: -.07em; }
.login-brand span:first-child, .login-brand i { color: var(--accent); font-style: normal; }
.login-panel h1 { font-size: clamp(50px, 6vw, 86px); line-height: .88; letter-spacing: -.07em; margin: 0 0 25px; }
.login-copy { color: var(--muted); line-height: 1.6; max-width: 430px; margin: 0 0 42px; }
.login-form { display: grid; gap: 9px; max-width: 430px; }
.login-form label { color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 800; margin-top: 7px; }
.login-form input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 14px; outline: none; }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.primary-button { height: 52px; border: 0; border-radius: 10px; background: var(--accent); color: #10120a; font-weight: 850; cursor: pointer; margin-top: 13px; padding: 0 17px; display: flex; justify-content: space-between; align-items: center; }
.primary-button:hover { filter: brightness(1.08); }
.form-error { color: #ff9292; font-size: 11px; margin: 5px 0 0; }
.login-footnote { color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .15em; margin-top: 20px; }
.login-art { position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at center, #262b1e 0, #13151a 48%, #0b0c10 76%); }
.art-orbit { position: absolute; border: 1px solid rgba(216,255,72,.18); border-radius: 50%; }
.orbit-one { width: min(52vw, 720px); aspect-ratio: 1; animation: orbit 18s linear infinite; }
.orbit-two { width: min(38vw, 520px); aspect-ratio: 1; border-style: dashed; animation: orbit 13s linear infinite reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.art-core { width: min(23vw, 310px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #11130b; box-shadow: 0 0 120px rgba(216,255,72,.2); }
.art-core span { font-size: clamp(38px, 5vw, 78px); letter-spacing: -.08em; font-weight: 900; }
.login-art p { position: absolute; bottom: 50px; right: 60px; text-align: right; font: italic 20px/1.35 Georgia, serif; color: rgba(255,255,255,.65); }

@media (max-width: 1050px) {
  :root { --page: calc(100vw - 40px); }
  .session-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-toolbar { grid-template-columns: 1fr 1fr; }
  .type-filter, .clear-button { margin-top: 10px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --page: calc(100vw - 24px); }
  .site-header { height: 64px; grid-template-columns: auto 1fr auto; }
  .primary-nav { justify-self: center; }
  .primary-nav a { padding: 7px 11px; font-size: 11px; }
  .account-menu > span { display: none; }
  .page-shell { padding: 44px 0 80px; }
  .page-heading { grid-template-columns: 1fr; gap: 25px; margin-bottom: 40px; }
  .page-heading h1 { font-size: clamp(50px, 16vw, 74px); }
  .heading-copy { font-size: 14px; }
  .session-toolbar { align-items: center; }
  .toolbar-note { display: none; }
  .session-grid { grid-template-columns: 1fr; }
  .session-thumb { height: 280px; }
  .gallery-toolbar { grid-template-columns: 1fr; position: relative; top: 0; }
  .type-filter { margin-top: 14px; }
  .type-filter legend { transform: translateY(-25px); }
  .type-filter label { flex: 1; }
  .clear-button { margin-top: 0; }
  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .media-card { border-radius: 8px; }
  .media-overlay { opacity: 1; transform: none; padding-top: 20px; }
  .session-hero { align-items: start; }
  .session-live-note { display: none; }
  .session-hero h1 { font-size: 56px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid article { padding: 18px; }
  .panel { padding: 18px; border-radius: 14px; }
  .panel-heading { align-items: start; flex-direction: column; }
  .timeline-wrap { overflow-x: auto; }
  #timeline { min-width: 650px; }
  .metric-table { min-width: 600px; }
  .section-heading { align-items: end; }
  .section-heading h2 { font-size: 30px; }
  .section-heading > a { max-width: 90px; text-align: right; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; bottom: 24px; top: auto; transform: none; }
  .lightbox-hint { display: none; }
  .login-shell { grid-template-columns: 1fr; }
  .login-panel { border: 0; padding: 100px 28px 50px; }
  .login-brand { top: 28px; left: 28px; }
  .login-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
