*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #CC0000;
  --red-bright: #E8000A;
  --red-deep: #7A0000;
  --red-wash: rgba(204,0,0,0.05);

  --dark: #F7F5EF;
  --ink: #131110;
  --ink-line: rgba(255,255,255,0.11);
  --text-on-ink: #F4F2EC;
  --text-on-ink-dim: #9E9B92;

  --surface: #EFEDE4;
  --surface2: #E7E4D8;
  --border: #DDDACC;
  --text: #17140F;
  --text-muted: #55524A;
  --text-dim: #8D897C;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 128px;
  background: rgba(247,245,239,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
}
.nav-links li { margin-left: 44px; }
.nav-links li:first-child { margin-left: 0; }

.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--red); }

.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ''; display: inline-block; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-left: 7px; opacity: 0.7; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--dark);
  border: 1px solid var(--border);
  box-shadow: 0 16px 32px rgba(19,17,16,0.08);
  min-width: 160px;
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 11px 20px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.nav-dropdown-menu a:hover { background: var(--surface); color: var(--text); }

/* PAGE WRAPPER */
.page { padding-top: 76px; }

/* SECTIONS */
section { padding: 104px 56px; }
.section-inner { max-width: 1160px; margin: 0 auto; }

.section-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 20px;
}
/* legacy alias */
.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--red);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.section-body {
  font-size: 16.5px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.red-line { display: none; }

.on-ink { color: var(--text-on-ink); }
.on-ink .section-title { color: var(--text-on-ink); }
.on-ink .section-body { color: var(--text-on-ink-dim); }
.on-ink .section-eyebrow, .on-ink .section-kicker { color: var(--red-bright); }
.on-ink .btn-outline { color: var(--text-on-ink); border-color: var(--ink-line); }
.on-ink .btn-outline:hover { border-color: var(--red-bright); color: var(--text-on-ink); }

/* BUTTONS */
.btn-primary {
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 15px 34px;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary:hover { background: var(--red); border-color: var(--red); }

.btn-outline {
  background: transparent;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 15px 34px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--text); }

/* EXHIBIT TABLE — data-forward replacement for card grids */
.exhibit {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.exhibit-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.exhibit-row-head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding-bottom: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.exhibit-index { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.exhibit-main .exhibit-name { font-weight: 600; font-size: 16.5px; color: var(--text); margin-bottom: 5px; }
.exhibit-main .exhibit-desc { font-size: 13.5px; font-weight: 300; color: var(--text-muted); line-height: 1.6; max-width: 620px; }
.exhibit-bar-track { height: 3px; background: var(--border); position: relative; }
.exhibit-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.exhibit-score { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); text-align: right; }
.exhibit-score .denom { font-size: 12px; color: var(--text-dim); font-weight: 500; }

.on-ink .exhibit { border-top-color: var(--ink-line); }
.on-ink .exhibit-row { border-bottom-color: var(--ink-line); }
.on-ink .exhibit-row-head { color: var(--text-on-ink-dim); }
.on-ink .exhibit-index { color: var(--text-on-ink-dim); }
.on-ink .exhibit-main .exhibit-name { color: var(--text-on-ink); }
.on-ink .exhibit-main .exhibit-desc { color: var(--text-on-ink-dim); }
.on-ink .exhibit-bar-track { background: var(--ink-line); }
.on-ink .exhibit-bar-fill { background: var(--red-bright); }
.on-ink .exhibit-score { color: var(--text-on-ink); }

@media (max-width: 720px) {
  .exhibit-row, .exhibit-row-head { grid-template-columns: 32px 1fr; }
}

/* NUMBERED LIST — for genuinely sequential content (process steps) */
.num-list { margin-top: 8px; }
.num-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.num-item:first-child { border-top: 1px solid var(--border); }
.num-item-index {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  padding-top: 3px;
}
.num-item-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.num-item-body { font-size: 14.5px; font-weight: 300; color: var(--text-muted); line-height: 1.75; max-width: 640px; }

/* TICKER (kept for legacy pages, unused on redesigned ones) */
.ticker { width: 100%; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; overflow: hidden; }
.ticker-inner { display: flex; animation: ticker-scroll 30s linear infinite; white-space: nowrap; width: max-content; }
.ticker-item { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-muted); padding: 0 32px; display: flex; align-items: center; gap: 10px; }
.ticker-item .score { color: var(--red); }
.ticker-dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; opacity: 0.5; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* FOOTER */
footer {
  background: var(--ink);
  color: var(--text-on-ink-dim);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: 0.04em; color: var(--text-on-ink); text-decoration: none; }
.footer-logo span { color: var(--red-bright); }
.footer-tagline { font-size: 12px; color: var(--text-on-ink-dim); letter-spacing: 0.08em; margin-top: 4px; }
.footer-right { font-size: 12.5px; color: var(--text-on-ink-dim); text-align: right; }
.footer-right a { color: var(--text-on-ink); text-decoration: none; }
.footer-right a:hover { color: var(--red-bright); }
footer a[style*="color:var(--text-muted)"] { color: var(--text-on-ink-dim) !important; }
footer a[style*="color:var(--text-muted)"]:hover { color: var(--text-on-ink) !important; }

/* SCORE BAR (legacy report pages) */
.score-bar-bg { height: 3px; background: var(--border); width: 100%; margin-bottom: 12px; }
.score-bar-fill { height: 3px; background: var(--ink); }

/* PAGE HERO (interior pages) */
.page-hero {
  padding: 180px 56px 72px;
  border-bottom: 1px solid var(--ink-line);
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-ink);
}
.page-hero .section-title { color: var(--text-on-ink); font-weight: 700; }
.page-hero .section-body { color: var(--text-on-ink-dim); }
.page-hero .section-eyebrow, .page-hero .section-kicker { color: var(--red-bright); }
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 50% 70% at 100% 0%, rgba(232,0,10,0.1) 0%, transparent 65%);
  pointer-events: none;
}

/* SCREEN-READER-ONLY TEXT */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 12px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* FOCUS STATES */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.on-ink a:focus-visible, .on-ink button:focus-visible { outline-color: var(--red-bright); }

/* MOBILE NAV TOGGLE */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 11px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  nav { padding: 0 20px; height: 92px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 92px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    padding: 8px 0 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { margin-left: 0; border-top: 1px solid var(--border); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: 18px 24px; font-size: 14px; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block;
    border: none;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    background: var(--surface);
  }
  .nav-dropdown-menu a { padding: 14px 24px 14px 40px; font-size: 13px; }
  section { padding: 64px 20px; }
  .page-hero { padding: 148px 20px 48px; }
  footer { padding: 40px 20px; flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
}

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

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red); border-color: var(--red); }
@media (max-width: 480px) {
  .back-to-top { right: 14px; bottom: 14px; padding: 9px 14px; font-size: 11px; }
}

/* REPORT IN-PAGE INDEX */
.report-index {
  position: sticky;
  top: 128px;
  z-index: 50;
  background: rgba(247,245,239,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 48px;
}
.report-index-inner { display: flex; gap: 4px; max-width: 900px; margin: 0 auto; }
.report-index a {
  display: inline-block;
  padding: 16px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.report-index a:hover, .report-index a:focus-visible { color: var(--text); border-bottom-color: var(--red); }
@media (max-width: 768px) {
  .report-index { padding: 0 16px; top: 92px; }
}

/* IMAGE BAND */
.image-band { margin: 56px 0; }
.image-band img { width: 100%; display: block; height: auto; }
.image-band-caption { font-size: 12.5px; color: var(--text-dim); margin-top: 10px; line-height: 1.5; max-width: 640px; }
.image-band-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .image-band-split { grid-template-columns: 1fr; } }

/* REPORT PREV/NEXT NAV */
.report-pagenav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); padding-top: 32px; margin-top: 24px; flex-wrap: wrap; }
.report-pagenav a { text-decoration: none; color: var(--text-muted); font-size: 13px; max-width: 45%; }
.report-pagenav a:hover { color: var(--red); }
.report-pagenav .dir { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.report-pagenav .next { text-align: right; margin-left: auto; }

/* ASSET PLACEHOLDER (dev-time only, marked TODO) */
.asset-todo {
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 12.5px;
  padding: 40px 24px;
  text-align: center;
  line-height: 1.6;
}
