:root {
  color-scheme: dark;
  --bg: #0b120f;
  --surface: #121c17;
  --strong: #eef4f0;
  --body: #d2ddd6;
  --secondary: #a9b8ae;
  --accent: #7fcf9f;
  --border: #63776a;
  --focus: #8fdcae;
  --gold: #c9a84c;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f9f7;
    --surface: #ebf0ec;
    --strong: #0d1a13;
    --body: #1d2b23;
    --secondary: #3c4b42;
    --accent: #1f5c3d;
    --border: #6c7a70;
    --focus: #1f5c3d;
    --gold: #6b4e0a;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  border-top: 4px solid var(--gold);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--strong);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

main,
footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

h1, h2, p { margin: 0; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
  align-items: end;
  gap: 2.5rem;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 3rem;
  border-bottom: 2px solid var(--accent);
}

.intro::before {
  content: "";
  grid-column: 1 / -1;
  width: 4.5rem;
  height: 4px;
  background: var(--gold);
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 6.6vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 34rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  font-size: clamp(1.125rem, 1.2rem + 0.5vw, 1.45rem);
  line-height: 1.55;
}

section {
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
}

.intro + section { border-top: 0; }

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--gold);
  transform-origin: left center;
}

section p {
  max-width: 30em;
  font-size: clamp(1.375rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.5;
}

strong { font-weight: 600; }

table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
  table-layout: fixed;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  width: 34%;
  padding-left: 0;
  color: var(--secondary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

td { color: var(--strong); }

td.status { font-weight: 600; }

.id {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.045em;
  white-space: nowrap;
}

td.id { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.25rem); line-height: 1.3; white-space: normal; }

.naics {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.naics li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

a:hover { text-decoration-thickness: 4px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

footer {
  padding: 1.5rem 0 3rem;
  border-top: 2px solid var(--gold);
  text-align: center;
}

footer .id { font-weight: 600; }

@media (min-width: 40em) {
  main, footer { width: min(100% - 3rem, 72rem); }

  .intro,
  section { min-height: 85svh; }

  .intro { align-content: center; }

  section {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 64em) {
  section {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 3rem;
    align-content: center;
  }

  section > h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    margin-bottom: 0;
  }
}

@media (min-width: 40em) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .intro,
  section { scroll-snap-align: start; }
}

@media (max-width: 48em) {
  .intro { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2.5rem; }
}

@media (max-width: 40em) {
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  th, td { padding: 0; border: 0; }
  th { margin-bottom: 0.35rem; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes reveal {
      from { opacity: 0; transform: translateY(2.5rem); }
      to { opacity: 1; transform: none; }
    }

    @keyframes draw {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    @keyframes progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }

    main > section {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    h2::before {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 20% entry 70%;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto 0;
      height: 4px;
      background: var(--gold);
      transform-origin: left center;
      animation: progress linear both;
      animation-timeline: scroll(root);
      z-index: 1;
    }
  }
}

@media (forced-colors: active) {
  html, footer { border-color: CanvasText; }
  .intro, section, table, th, td, tr, .lead { border-color: CanvasText; }
  .intro::before, h2::before { background: CanvasText; }
  a { color: LinkText; }
  :focus-visible { outline-color: Highlight; }
}
