:root {
  color-scheme: dark;
  --ink: #f5f3ed;
  --muted: #989b98;
  --faint: #5f625f;
  --line: rgba(255,255,255,.1);
  --panel: rgba(18,20,19,.82);
  --black: #090b0a;
  --green: #b9f56d;
  --green-deep: #78b72f;
  --amber: #f2c66d;
  --red: #ff7f76;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(112,151,68,.13), transparent 25rem),
    linear-gradient(180deg, #0c0e0d 0%, #090b0a 75%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  z-index: -1;
}

.ambient { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: -1; }
.ambient-one { width: 320px; height: 320px; right: -100px; top: 35%; background: rgba(185,245,109,.06); }
.ambient-two { width: 260px; height: 260px; left: -130px; top: 12%; background: rgba(255,255,255,.035); }

.site-header, main, footer { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--green); color: var(--green); font-family: Georgia, serif; font-size: 20px; transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand span:last-child { display: flex; flex-direction: column; }
.brand b { font-size: 13px; letter-spacing: .22em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .16em; margin-top: 3px; }
.header-status { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.header-status i { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.header-status.live i { background: var(--green); }
.header-status.error i { background: var(--red); }

.hero { padding: 86px 0 62px; }
.eyebrow, .section-index { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; gap: 14px; align-items: center; }
.eyebrow-line { width: 55px; height: 1px; background: rgba(185,245,109,.4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 80px; align-items: end; margin-top: 24px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(60px, 7.4vw, 118px); line-height: .87; letter-spacing: -.055em; margin: 0; max-width: 1000px; }
h1 em { color: var(--green); font-weight: 400; }
.hero-grid > div > p { color: #b7bab6; max-width: 650px; font-size: 16px; line-height: 1.75; margin: 34px 0 0; }
.hero-note { border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: 42px 1fr; gap: 18px; }
.hero-note .note-number { color: var(--green); font: 26px Georgia, serif; }
.hero-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.control-panel {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.1fr auto;
  background: rgba(15,17,16,.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.control-group { padding: 15px 18px 13px; border-right: 1px solid var(--line); }
.control-group label { display: block; color: var(--faint); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 5px; }
select { width: 100%; appearance: none; border: 0; outline: 0; color: var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23989b98'/%3E%3C/svg%3E") no-repeat right center; font: 600 13px inherit; cursor: pointer; }
select:disabled { color: var(--faint); }
select option { background: #111411; }
.refresh-button { display: flex; align-items: center; gap: 15px; justify-content: center; padding: 0 24px; border: 0; background: var(--green); color: #11160c; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; cursor: pointer; }
.refresh-button:hover { background: #cbff8a; }
.refresh-button:disabled { opacity: .55; cursor: progress; }
.refresh-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.refresh-button.spinning svg { animation: spin .8s linear infinite; }

.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.snapshot article { min-height: 126px; padding: 23px 24px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-content: space-between; }
.snapshot article:last-child { border-right: 0; }
.snapshot span { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.snapshot strong { grid-row: 1 / 3; grid-column: 2; font: 42px/1 Georgia, serif; color: var(--ink); align-self: center; }
.snapshot small { color: var(--faint); font-size: 10px; align-self: end; }
.freshness-card strong { color: var(--green); font-size: 26px; }

.board-section { padding: 96px 0 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
h2 { margin: 10px 0 0; font: 400 clamp(34px, 4vw, 56px)/1 Georgia, serif; letter-spacing: -.035em; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); }.dot.amber { background: var(--amber); }.dot.gray { background: var(--faint); }

.notice { margin: 0 0 14px; padding: 12px 16px; border-left: 2px solid var(--amber); background: rgba(242,198,109,.07); color: #d7c69f; font-size: 12px; line-height: 1.5; }
.notice.error { border-color: var(--red); background: rgba(255,127,118,.08); color: #ffc3be; }
.hidden { display: none !important; }
.table-shell { position: relative; border: 1px solid var(--line); background: rgba(13,15,14,.7); min-height: 260px; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1080px; }
th { position: sticky; top: 0; z-index: 1; padding: 14px 16px; text-align: right; color: var(--faint); background: #101210; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
th:first-child, th:nth-child(2) { text-align: left; }
td { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.065); text-align: right; font-size: 13px; vertical-align: middle; white-space: nowrap; }
td:first-child, td:nth-child(2) { text-align: left; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(255,255,255,.028); }
tbody tr.qualified { background: linear-gradient(90deg, rgba(185,245,109,.06), transparent 34%); }
.event-cell { display: flex; align-items: center; gap: 12px; min-width: 250px; }
.signal { flex: 0 0 auto; width: 7px; height: 36px; background: var(--faint); border-radius: 10px; }
.signal.modelled { background: var(--amber); }.signal.qualified { background: var(--green); box-shadow: 0 0 14px rgba(185,245,109,.25); }
.event-cell strong { display: block; font-size: 13px; }
.event-cell small, .subtle { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.ask { font: 20px Georgia, serif; }
.positive { color: var(--green); }.negative { color: var(--red); }.unavailable { color: var(--faint); }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 5px 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.badge.qualified { color: var(--green); border-color: rgba(185,245,109,.35); }
.loading-state, .empty-state { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 12px; }
.loader { width: 18px; height: 18px; border: 1px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-state { flex-direction: column; text-align: center; }
.empty-state h3 { margin: 0; font: 24px Georgia, serif; color: var(--ink); }
.empty-state p { margin: 0; max-width: 440px; line-height: 1.6; }
.empty-mark { color: var(--green); font: 34px Georgia, serif; }

.method-section { display: grid; grid-template-columns: .72fr 2fr; gap: 70px; padding: 85px 0; border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.method-grid article { min-height: 200px; padding: 8px 28px 28px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-grid article:nth-child(3), .method-grid article:nth-child(4) { padding-top: 28px; border-bottom: 0; }
.method-grid b { color: var(--green); font: 13px Georgia, serif; }
.method-grid h3 { margin: 34px 0 10px; font: 26px Georgia, serif; }
.method-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 12px; max-width: 330px; }

footer { padding: 28px 0 46px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 40px; color: var(--faint); font-size: 10px; line-height: 1.55; }
footer p { margin: 0; max-width: 620px; }
footer strong { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-note { max-width: 520px; }
  .control-panel { grid-template-columns: repeat(2, 1fr); position: static; }
  .control-group { border-bottom: 1px solid var(--line); }
  .refresh-button { min-height: 58px; grid-column: 1 / -1; }
  .snapshot { grid-template-columns: repeat(2, 1fr); }
  .snapshot article:nth-child(2) { border-right: 0; }
  .snapshot article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 28px, 1380px); }
  .site-header { height: 70px; }.header-status span { display: none; }
  .hero { padding: 60px 0 44px; }
  h1 { font-size: 54px; }
  .control-panel { grid-template-columns: 1fr; }
  .control-group { border-right: 0; }
  .snapshot { grid-template-columns: 1fr 1fr; }
  .snapshot article { min-height: 110px; padding: 18px 14px; }
  .snapshot strong { font-size: 34px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .legend { flex-wrap: wrap; }
  .board-section { padding-top: 70px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article, .method-grid article:nth-child(3), .method-grid article:nth-child(4) { min-height: auto; padding: 24px; border-bottom: 1px solid var(--line); }
  .method-grid article:last-child { border-bottom: 0; }
  .method-grid h3 { margin-top: 18px; }
  footer { flex-direction: column; }
}
