.lga-page {
  min-height: 100vh;
  overflow: clip;
  background: var(--bg);
  color: var(--ink);
  --demo-copy: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --demo-label: color-mix(in srgb, var(--ink) 64%, var(--bg));
  --demo-positive: color-mix(in srgb, var(--term) 72%, var(--ink));
  --demo-bar: color-mix(in srgb, var(--ink) 24%, var(--bg));
}

.lga-page + .portfolio-footer { margin-top: 0; }

.demo-page {
  width: min(100%, 1336px);
  margin: 0 auto;
  padding: clamp(104px, 14vh, 176px) 48px 120px;
}

.demo-topbar {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, .8fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ink);
}

.demo-kicker,
.demo-input-label {
  display: block;
  color: var(--demo-positive);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.demo-topbar h1,
.demo-report h2,
.demo-report h3,
.demo-note-card h3 { text-wrap: balance; }

.demo-topbar h1 {
  max-width: 980px;
  margin: 22px 0 0;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: .86;
  text-transform: uppercase;
}

.demo-topbar p {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--demo-copy);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.48;
}

.demo-topbar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo-topbar-stats div { min-width: 0; padding: 18px 16px 16px; }
.demo-topbar-stats div + div { border-left: 1px solid var(--line); }

.demo-topbar-stats strong {
  display: block;
  overflow: hidden;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 680;
  letter-spacing: -.035em;
  line-height: 1;
  text-overflow: ellipsis;
}

.demo-topbar-stats span,
.demo-metric span {
  display: block;
  margin-top: 10px;
  color: var(--demo-label);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.demo-search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: end;
  padding: 30px 0 48px;
  border-bottom: 1px solid var(--line);
}

.demo-search-wrap { position: relative; }
.demo-input-label { margin-bottom: 12px; color: var(--demo-label); }

.demo-search-input-shell {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  transition: border-color .25s cubic-bezier(.22, 1, .36, 1);
}

.demo-search-input-shell:focus-within { border-color: var(--demo-positive); }

.demo-search-input-shell > span {
  margin-right: 14px;
  color: var(--demo-positive);
  font-size: 24px;
  line-height: 1;
  transform: rotate(-20deg);
}

.demo-search-input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 580;
  letter-spacing: -.015em;
}

.demo-search-input-shell input::placeholder { color: var(--demo-label); opacity: 1; }
.demo-search-input-shell input:disabled { cursor: wait; }

.demo-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  max-height: 390px;
  overflow-y: auto;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.demo-search-results.open { display: block; }

.demo-result-item {
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  padding: 14px 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.demo-result-item:last-child { border-bottom: 0; }
.demo-result-item:hover,
.demo-result-item:focus-visible { outline: 0; background: var(--ink); color: var(--bg); }
.demo-result-item > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.demo-result-item strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.demo-result-item > span > span { color: var(--demo-label); font-size: 11px; }
.demo-result-item:hover > span > span,
.demo-result-item:focus-visible > span > span { color: var(--dark-muted); }
.demo-result-type { flex: 0 0 auto; font-size: 9px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }

.demo-filter-toggles { display: flex; gap: 26px; align-items: center; padding-bottom: 15px; }
.demo-toggle { display: inline-flex; gap: 10px; align-items: center; color: var(--demo-copy); font-size: 12px; white-space: nowrap; cursor: pointer; }
.demo-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.demo-toggle > span { width: 36px; height: 20px; position: relative; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.demo-toggle > span::after { width: 14px; height: 14px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: var(--demo-label); content: ""; transition: transform .25s cubic-bezier(.22, 1, .36, 1), background .25s; }
.demo-toggle input:checked + span { border-color: var(--demo-positive); }
.demo-toggle input:checked + span::after { background: var(--term); transform: translateX(16px); }
.demo-toggle input:focus-visible + span { outline: 2px solid var(--term); outline-offset: 3px; }

.demo-loading[hidden],
.demo-empty[hidden],
.demo-report[hidden] { display: none; }

.demo-loading,
.demo-empty { display: flex; gap: 16px 48px; align-items: baseline; margin-top: 64px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-loading strong,
.demo-empty strong { flex: 0 0 auto; font-size: 16px; text-transform: uppercase; }
.demo-loading span,
.demo-empty span { color: var(--demo-copy); font-size: 13px; }

.demo-report { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(42px, 5vw, 76px); align-items: start; margin-top: clamp(80px, 10vw, 136px); }
.demo-report-main { min-width: 0; }
.demo-place-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--demo-label); font-size: 12px; }

.demo-chip { display: inline-flex; align-items: center; min-height: 23px; border: 1px solid var(--term); padding: 3px 7px; color: var(--demo-positive); font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.demo-chip-copper,
.demo-chip-slate { border-color: var(--line); color: var(--demo-copy); }
.demo-link-button { border: 0; border-bottom: 1px solid var(--line); padding: 2px 0; background: transparent; color: var(--ink); font: inherit; font-size: 11px; cursor: pointer; }
.demo-link-button:hover,
.demo-link-button:focus-visible { border-color: var(--demo-positive); outline: 0; color: var(--demo-positive); }

.demo-report h2 { margin: 20px 0 0; font-size: clamp(54px, 7vw, 96px); font-weight: 720; letter-spacing: -.04em; line-height: .86; text-transform: uppercase; }
.demo-lead { max-width: 720px; margin: 26px 0 0; color: var(--demo-copy); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; }

.demo-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.demo-metric { min-width: 0; padding: 20px 16px 22px; }
.demo-metric + .demo-metric { border-left: 1px solid var(--line); }
.demo-metric:first-child { padding-left: 0; }
.demo-metric strong { display: block; margin-top: 10px; overflow-wrap: anywhere; font-size: clamp(17px, 2vw, 28px); font-weight: 680; letter-spacing: -.025em; line-height: 1.05; }

.demo-chapter { margin-top: 96px; }
.demo-section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 44px; align-items: end; padding-top: 18px; border-top: 1px solid var(--ink); }
.demo-section-head h3,
.demo-chapter-card h3 { margin: 12px 0 0; font-size: clamp(30px, 3.7vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: .95; text-transform: uppercase; }
.demo-section-head > p,
.demo-chapter-card > p { margin: 0; color: var(--demo-copy); font-size: 13px; line-height: 1.55; }

.demo-story-list { margin-top: 34px; border-bottom: 1px solid var(--ink); }
.demo-story-row { display: grid; grid-template-columns: minmax(135px, 1.1fr) minmax(90px, .55fr) minmax(270px, 1.65fr) minmax(80px, .5fr); gap: 18px; align-items: center; min-height: 78px; border-top: 1px solid var(--soft-line); }
.demo-story-head { min-height: 42px; border-top: 0; color: var(--demo-label); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.demo-story-name { font-size: 16px; font-weight: 650; }
.demo-story-count,
.demo-story-change { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.demo-story-change { font-weight: 650; }
.growth-up { color: var(--demo-positive); }
.growth-down { color: var(--ink); }
.demo-year-head,
.demo-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.demo-year-head { text-align: center; }
.demo-bars { height: 55px; align-items: end; }
.demo-bar-wrap { height: 55px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.demo-bar-label { margin-bottom: 5px; color: var(--demo-label); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; }
.demo-bar { width: 100%; min-height: 3px; display: block; background: var(--demo-bar); }
.demo-bar.final { background: var(--term); }

.demo-chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 96px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.demo-chapter-card { min-width: 0; padding: 28px 34px 34px 0; }
.demo-chapter-card + .demo-chapter-card { border-left: 1px solid var(--line); padding-right: 0; padding-left: 34px; }
.demo-chapter-card > p { min-height: 61px; margin-top: 20px; }
.demo-compact-evidence { margin-top: 30px; }
.demo-mini-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--soft-line); }
.demo-mini-row strong { font-size: 12px; }
.demo-mini-row span { font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }

.demo-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.demo-tabs button { border: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; background: transparent; color: var(--demo-copy); font: inherit; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.demo-tabs button.active,
.demo-tabs button:hover,
.demo-tabs button:focus-visible { border-color: var(--demo-positive); outline: 0; color: var(--demo-positive); }

.demo-table-wrap { margin-top: 34px; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.demo-table th,
.demo-table td { padding: 12px 10px; border-bottom: 1px solid var(--soft-line); text-align: left; }
.demo-table th { color: var(--demo-label); font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.demo-table tbody tr:last-child td { border-bottom: 0; }
.demo-table .num { text-align: right; }
.demo-table td:first-child { width: 36px; color: var(--demo-label); }
.demo-table td:nth-child(2) { font-weight: 600; }

.demo-field-notes { position: sticky; top: 28px; }
.demo-note-card { padding: 18px 0 24px; border-top: 1px solid var(--ink); }
.demo-note-card + .demo-note-card { margin-top: 30px; }
.demo-note-card h3 { margin: 12px 0 0; font-size: 21px; font-weight: 680; letter-spacing: -.02em; line-height: 1.08; text-transform: uppercase; }
.demo-note-card p { margin: 16px 0 0; color: var(--demo-copy); font-size: 12px; line-height: 1.6; }
.demo-note-list { margin-top: 14px; }
.demo-mover { display: flex; gap: 16px; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--soft-line); }
.demo-mover strong,
.demo-mover span { font-size: 11px; line-height: 1.4; }
.demo-mover span { flex: 0 0 auto; color: var(--demo-positive); font-weight: 650; }
.demo-note-card.subtle { border-color: var(--line); }

.demo-footer { max-width: 900px; margin-top: 108px; padding-top: 18px; border-top: 1px solid var(--ink); color: var(--demo-label); font-size: 10px; letter-spacing: .025em; line-height: 1.6; }

@media (max-width: 900px) {
  .demo-page { padding-right: 24px; padding-left: 24px; }
  .demo-topbar,
  .demo-report { grid-template-columns: 1fr; }
  .demo-topbar { gap: 42px; }
  .demo-topbar-stats { max-width: 460px; }
  .demo-report { gap: 88px; }
  .demo-field-notes { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .demo-note-card + .demo-note-card { margin-top: 0; }
}

@media (max-width: 700px) {
  .demo-page { padding: 92px 20px 88px; }
  .demo-topbar h1 { font-size: clamp(48px, 15vw, 72px); }
  .demo-search-panel,
  .demo-section-head { grid-template-columns: 1fr; gap: 28px; }
  .demo-filter-toggles { justify-content: space-between; padding-bottom: 0; }
  .demo-loading,
  .demo-empty { flex-direction: column; align-items: flex-start; }
  .demo-report h2 { font-size: clamp(48px, 14vw, 72px); overflow-wrap: anywhere; }
  .demo-metric-grid,
  .demo-chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-metric:nth-child(3),
  .demo-metric:nth-child(4) { border-top: 1px solid var(--line); }
  .demo-metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .demo-chapter-card + .demo-chapter-card { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .demo-story-row { grid-template-columns: minmax(120px, 1fr) minmax(180px, 1.4fr); gap: 12px; padding: 14px 0; }
  .demo-story-count,
  .demo-story-change,
  .demo-story-head > div:nth-child(2),
  .demo-story-head > div:nth-child(4) { display: none; }
  .demo-field-notes { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .demo-topbar-stats,
  .demo-metric-grid { grid-template-columns: 1fr; }
  .demo-topbar-stats div + div,
  .demo-metric + .demo-metric { border-top: 1px solid var(--line); border-left: 0; }
  .demo-metric { padding-left: 0; }
  .demo-filter-toggles { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-toggle > span::after { transition: none; }
}