:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --ink: #202831;
  --muted: #5f6c78;
  --line: #d9e0e6;
  --teal: #1f8a7a;
  --green: #4f8f3a;
  --coral: #c94e3d;
  --gold: #aa7b18;
  --blue: #306b9f;
  --shadow: 0 16px 34px rgba(28, 36, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef3f2;
  padding: 0.12rem 0.32rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

pre {
  margin: 0;
  overflow: auto;
  border: 1px solid #2a3a46;
  border-radius: 8px;
  background: #17212b;
  color: #eef6f5;
  padding: 1.1rem;
}

pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(217, 224, 230, 0.9);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.85rem clamp(1rem, 3vw, 2.6rem);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.75) 48% 54%, transparent 54%),
    linear-gradient(180deg, var(--teal), var(--coral));
  box-shadow: inset 0 0 0 2px rgba(32, 40, 49, 0.16);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.topbar nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
  padding: 0.45rem 0.65rem;
}

.topbar nav a:hover {
  background: #eef3f2;
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.intro-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 4.7vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-stats div {
  min-width: 0;
  padding: 1rem;
}

.quick-stats div + div {
  border-left: 1px solid var(--line);
}

.quick-stats strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.visual-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(0.8rem, 2vw, 1.25rem);
  box-shadow: var(--shadow);
}

.spc-graphic {
  display: block;
  width: 100%;
  height: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 3.5rem 0 2rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.protocol-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.protocol-steps div,
.finding-card,
.connect-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.protocol-steps div {
  padding: 1rem;
}

.protocol-steps span {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
  margin-bottom: 0.45rem;
}

.protocol-steps strong {
  display: block;
  font-size: 1.03rem;
}

.protocol-steps p,
.summary,
.claim p,
.connect-section p,
.section-heading p,
.axis-box p {
  color: var(--muted);
}

.model-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 2rem 0;
}

.model-strip a {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.9rem;
}

.model-strip a:hover {
  border-color: #9bb8b3;
}

.model-strip span {
  display: block;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
}

.model-strip strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.findings {
  padding: 2rem 0 3rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1rem;
}

.finding-card {
  margin: 1rem 0;
  padding: clamp(1rem, 2.5vw, 1.45rem);
}

.finding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.finding-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: 0;
}

.decision-pill {
  flex: 0 0 auto;
  max-width: 340px;
  border: 1px solid #bfd4d0;
  border-radius: 999px;
  background: #eef7f5;
  color: #1c625b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.45rem 0.7rem;
  text-align: right;
}

.summary {
  max-width: 980px;
  margin: 1rem 0;
}

.axis-box {
  border-left: 4px solid var(--teal);
  background: #f3f8f7;
  padding: 0.9rem 1rem;
}

.axis-box span {
  display: block;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.axis-box strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.06rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 0.75rem;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.metric strong {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  font-size: 1.13rem;
}

.claim {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

li {
  margin: 0.35rem 0;
}

details {
  margin-top: 1rem;
}

summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.8rem;
  margin-top: 0.75rem;
}

.artifact-list code {
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
}

.connect-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.7fr);
  gap: 1.5rem;
  align-items: center;
  margin: 1rem 0 4rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.4rem clamp(1rem, 3vw, 2.6rem);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .intro-band,
  .section-grid,
  .connect-section {
    grid-template-columns: 1fr;
  }

  .intro-band {
    min-height: auto;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .quick-stats,
  .protocol-steps,
  .model-strip,
  .two-col,
  .artifact-list {
    grid-template-columns: 1fr;
  }

  .quick-stats div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .finding-head {
    flex-direction: column;
  }

  .decision-pill {
    max-width: 100%;
    text-align: left;
  }

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

@media (max-width: 460px) {
  main {
    width: min(100% - 1rem, 1180px);
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}
