:root {
  --ink: #15221e;
  --muted: #62716b;
  --line: #d9e1dd;
  --paper: #ffffff;
  --wash: #f3f6f4;
  --green: #2a6c55;
  --green-dark: #164a3a;
  --green-soft: #dbece5;
  --control: #72807a;
  --early: #159b91;
  --mid: #d78b1d;
  --end: #be3f55;
  --focus: #116fba;
  --shadow: 0 10px 28px rgba(17, 42, 32, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  min-height: 430px;
  color: #fff;
  background-color: #153f31;
  background-image: url("assets/header.png");
  background-position: center;
  background-size: cover;
}

.site-header::before {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 21, 0.62);
  content: "";
}

.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 28, 21, 0.24);
}

.site-brand {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  text-decoration: none;
}

.site-brand__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.site-brand__section {
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-nav__links a {
  text-decoration: none;
}

.site-nav__links a:hover,
.site-brand:hover .site-brand__name {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4rem;
  width: min(1440px, 92vw);
  min-height: 355px;
  margin: 0 auto;
  padding: 4.5rem 0 3.2rem;
}

.hero__copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.6rem;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lede {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 108px);
  gap: 1.1rem 1.5rem;
  margin: 0;
}

.hero__stats div {
  padding-top: 0.75rem;
  border-top: 2px solid rgba(255, 255, 255, 0.48);
}

.hero__stats dt {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.hero__stats dd {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

main {
  min-height: 60vh;
}

.browser-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 4rem;
  width: min(1440px, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0 2.25rem;
}

.eyebrow--dark {
  color: var(--green);
}

.browser-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.35rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.stage-overview__labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stage-overview__labels span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.stage-overview__labels i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage-color);
}

.stage-overview__rail {
  display: flex;
  width: 100%;
  height: 13px;
  overflow: hidden;
  background: var(--wash);
  border-radius: 2px;
}

.stage-overview__rail span {
  min-width: 2px;
  background: var(--stage-color);
}

.filter-band {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) auto minmax(130px, 0.55fr) minmax(135px, 0.55fr) minmax(190px, auto);
  align-items: end;
  gap: 1rem;
  padding: 1rem 4vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(14, 45, 34, 0.05);
  backdrop-filter: blur(10px);
}

.filter-band label,
.filter-band legend,
.result-actions label {
  display: block;
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-field input,
.filter-field select,
.result-actions select {
  width: 100%;
  min-height: 42px;
  padding: 0 0.75rem;
  color: var(--ink);
  border: 1px solid #bdcac4;
  border-radius: 4px;
  background: #fff;
}

.search-field input:focus,
.filter-field select:focus,
.result-actions select:focus {
  border-color: var(--green);
}

.stage-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented,
.view-switch {
  display: inline-flex;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #bdcac4;
  border-radius: 4px;
  background: #fff;
}

.segmented button,
.view-switch button {
  min-width: 58px;
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.segmented button:last-child,
.view-switch button:last-child {
  border-right: 0;
}

.segmented button:hover,
.view-switch button:hover {
  color: var(--ink);
  background: var(--wash);
}

.segmented button.is-active,
.view-switch button.is-active {
  color: #fff;
  background: var(--green-dark);
}

.check-field {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 0.2rem;
  color: var(--ink) !important;
  font-size: 0.76rem !important;
  text-transform: none !important;
}

.presence-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 42px;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1440px, 92vw);
  margin: 0 auto;
  padding: 1.6rem 0;
}

.result-toolbar p {
  margin: 0;
  color: var(--muted);
}

.result-toolbar strong {
  color: var(--ink);
}

.result-actions {
  display: flex;
  align-items: end;
  gap: 0.7rem;
}

.result-actions label {
  align-self: center;
  margin: 0;
}

.result-actions select {
  width: auto;
  min-width: 160px;
}

.view-switch button {
  min-width: 54px;
}

.section-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.45rem;
  width: min(1440px, 92vw);
  min-height: 300px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.loading-state {
  grid-column: 1 / -1;
  padding: 4rem 0;
  color: var(--muted);
  text-align: center;
}

.section-card {
  --stage-color: var(--control);
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--stage-color);
  border-radius: 6px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.section-card:hover {
  border-color: #b7c8c0;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.section-card__image-link {
  display: block;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eef2f0;
}

.section-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.section-card:hover .section-card__image {
  transform: scale(1.025);
}

.section-card__body {
  padding: 1rem 1.05rem 1.1rem;
}

.section-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--stage-color);
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stage-color);
  content: "";
}

.region-label {
  color: var(--muted);
  font-size: 0.75rem;
}

.section-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-card h3 a {
  text-decoration: none;
}

.section-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.specimen-label {
  min-height: 1.4em;
  margin: 0.4rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-card__metrics {
  display: flex;
  gap: 1.1rem;
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.section-card__metrics div {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.section-card__metrics dt {
  color: var(--ink);
  font-weight: 800;
}

.section-card__metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.71rem;
  text-transform: uppercase;
}

.section-card--Control { --stage-color: var(--control); }
.section-card--Early { --stage-color: var(--early); }
.section-card--Mid { --stage-color: var(--mid); }
.section-card--End { --stage-color: var(--end); }

.section-results.is-list {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.section-results.is-list .section-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--stage-color);
  border-radius: 0;
}

.section-results.is-list .section-card:hover {
  z-index: 1;
  transform: none;
}

.section-results.is-list .section-card__image-link {
  aspect-ratio: 12 / 5;
  border: 0;
  border-right: 1px solid var(--line);
}

.section-results.is-list .section-card__body {
  display: grid;
  grid-template-columns: 150px minmax(200px, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
}

.section-results.is-list .section-card__topline {
  display: block;
  margin: 0;
}

.section-results.is-list .region-label {
  display: block;
  margin-top: 0.25rem;
}

.section-results.is-list .section-card__metrics {
  min-width: 170px;
  margin: 0;
  padding: 0;
  border: 0;
}

.empty-state {
  width: min(1440px, 92vw);
  margin: 0 auto 4rem;
  padding: 4.5rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.empty-state p {
  color: var(--muted);
}

.empty-state button {
  min-height: 42px;
  padding: 0 1rem;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: var(--green-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 4vw;
  color: #d8e2de;
  background: #10271f;
  font-size: 0.85rem;
}

.site-footer a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.preview-notice {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  max-width: 390px;
  padding: 0.9rem 1rem;
  color: #fff;
  border-radius: 5px;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
}

@media (max-width: 1180px) {
  .filter-band {
    grid-template-columns: minmax(230px, 1.2fr) auto minmax(130px, 0.55fr) minmax(135px, 0.55fr);
  }

  .presence-filters {
    grid-column: 1 / -1;
    min-height: 32px;
  }

  .section-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-results.is-list .section-card__body {
    grid-template-columns: 140px minmax(160px, 1fr) auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 560px;
  }

  .site-nav {
    align-items: flex-start;
    min-height: 82px;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-brand {
    display: grid;
    gap: 0.18rem;
  }

  .site-brand__section {
    padding: 0;
    border: 0;
  }

  .site-nav__links {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.3rem;
    min-height: 474px;
    padding: 4rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 4.8rem;
  }

  .hero__stats {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
  }

  .browser-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .browser-intro h2 {
    font-size: 2.7rem;
  }

  .filter-band {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem 4vw 1.25rem;
  }

  .search-field,
  .stage-filter {
    grid-column: 1 / -1;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
  }

  .segmented button {
    min-width: 0;
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .section-results.is-list .section-card {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .section-results.is-list .section-card__body {
    grid-template-columns: 1fr auto;
    gap: 0.8rem 1rem;
  }

  .section-results.is-list .section-card__topline {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 610px;
  }

  .site-nav {
    align-items: center;
  }

  .site-nav__links a:last-child {
    display: none;
  }

  .hero {
    min-height: 526px;
    padding-top: 3.4rem;
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 0.9rem 1.2rem;
  }

  .browser-intro {
    padding-top: 2.7rem;
  }

  .browser-intro h2 {
    font-size: 2.25rem;
  }

  .stage-overview__labels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-band {
    grid-template-columns: 1fr;
  }

  .search-field,
  .stage-filter,
  .presence-filters {
    grid-column: auto;
  }

  .result-toolbar {
    display: grid;
    align-items: start;
  }

  .result-actions {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .result-actions select {
    min-width: 0;
  }

  .section-results {
    grid-template-columns: 1fr;
  }

  .section-results.is-list {
    gap: 1rem;
    border: 0;
  }

  .section-results.is-list .section-card {
    display: block;
    border: 1px solid var(--line);
    border-top: 4px solid var(--stage-color);
    border-radius: 6px;
  }

  .section-results.is-list .section-card__image-link {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-results.is-list .section-card__body {
    display: block;
  }

  .section-results.is-list .section-card__topline {
    display: flex;
  }

  .section-results.is-list .section-card__metrics {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
