/* ==========================================================================
   Serpenthink ecosystem — ecosystem.css
   Shared by The Signal, The Lab, The Foundry and Field Notes.
   This file is identical in every site. Put site-specific rules in site.css.
   ========================================================================== */

/* ---------- Font (self-hosted Inter, SIL Open Font License) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2-variations"),
       url("assets/fonts/inter-var-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Approved palette (Brand Standards v1.1) */
  --slate: #27313B;
  --ivory: #F5EBDD;
  --white: #FFFFFF;
  --coral: #D2603F;   /* print-friendly signature accent */
  --peach: #F2A38A;
  --butter: #F0D87B;
  --sky: #B8D6E8;
  --lilac: #C6B2D9;
  --sage: #A9CBB7;

  --ink: var(--slate);
  --ink-muted: #4E5761;           /* 6.3:1 on ivory */
  --rule: rgba(39, 49, 59, 0.22);
  --focus: var(--slate);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 64px;
  --section-pad: clamp(72px, 10vw, 144px);

  /* Diagonal panels follow the angle of the logo's slashes (44 across / 92 up). */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--slate);
  color: var(--ivory);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; --focus: var(--coral); }

/* ==========================================================================
   Header + four-slash menu
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: block;
  flex: none;
  padding: 6px 0;
  text-decoration: none;
}
.brand img { height: 24px; width: auto; }
@media (min-width: 960px) { .brand img { height: 29px; } }

.site-nav {
  display: flex;
  flex-direction: row-reverse;  /* button on the right, links open to its left */
  align-items: center;
  gap: 8px;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 6px 0 10px;
  margin-right: -6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-button__label { min-width: 3.6em; text-align: left; }

.slashes {
  width: 30px;
  height: 18px;
  overflow: visible;
  fill: currentColor;
}
.slashes path {
  transform-box: fill-box;
  transition: transform 260ms var(--ease);
}

/* Hover / focus preview: the slashes lean apart slightly. */
@media (hover: hover) and (pointer: fine) {
  .menu-button:hover .slashes path:nth-child(1) { transform: translateX(-2px); }
  .menu-button:hover .slashes path:nth-child(2) { transform: translateX(-0.7px); }
  .menu-button:hover .slashes path:nth-child(3) { transform: translateX(0.7px); }
  .menu-button:hover .slashes path:nth-child(4) { transform: translateX(2px); }
}
.menu-button:focus-visible .slashes path:nth-child(1) { transform: translateX(-2px); }
.menu-button:focus-visible .slashes path:nth-child(4) { transform: translateX(2px); }

/* Open: the slashes separate. */
.site-nav.is-open .slashes path:nth-child(1) { transform: translateX(-5px); }
.site-nav.is-open .slashes path:nth-child(2) { transform: translateX(-1.7px); }
.site-nav.is-open .slashes path:nth-child(3) { transform: translateX(1.7px); }
.site-nav.is-open .slashes path:nth-child(4) { transform: translateX(5px); }

/* --- Menu list: shared --- */
.site-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

/* --- Menu list: phones and tablets (panel below the header) --- */
.js .site-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 28px;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 24px 40px -32px rgba(39, 49, 59, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 240ms var(--ease), visibility 0s linear 240ms;
}
.js .site-nav.is-open .site-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 200ms ease, transform 240ms var(--ease), visibility 0s;
}
.js .site-menu li + li { border-top: 1px solid var(--rule); }
.js .site-menu a {
  gap: 16px;
  min-height: 64px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.02em;
}
.site-menu__num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.js .site-menu a:hover .site-menu__num,
.js .site-menu a:focus-visible .site-menu__num { color: var(--coral); }

/* --- Menu list: desktop (links slide out beside the slashes) --- */
@media (min-width: 960px) {
  .js .site-menu {
    position: static;
    display: flex;
    gap: 4px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
  }
  .js .site-menu li + li { border: 0; }
  .js .site-menu li {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity 180ms ease, transform 260ms var(--ease);
  }
  .js .site-nav.is-open .site-menu li { opacity: 1; transform: none; }
  .js .site-nav.is-open .site-menu li:nth-child(4) { transition-delay: 0ms; }
  .js .site-nav.is-open .site-menu li:nth-child(3) { transition-delay: 35ms; }
  .js .site-nav.is-open .site-menu li:nth-child(2) { transition-delay: 70ms; }
  .js .site-nav.is-open .site-menu li:nth-child(1) { transition-delay: 105ms; }

  .js .site-menu a {
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.9375rem;
    letter-spacing: 0;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
  }
  .js .site-menu a:hover,
  .js .site-menu a:focus-visible {
    text-decoration-line: underline;
    text-decoration-color: var(--coral);
  }
  .site-menu__num { display: none; }
}

/* --- No JavaScript: show the links plainly, hide the toggle --- */
.no-js .menu-button { display: none; }
.no-js .site-menu { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.no-js .site-menu a { min-height: 44px; font-size: 0.9375rem; }
.no-js .site-menu__num { display: none; }

/* ==========================================================================
   Shared type
   ========================================================================== */
.kicker,
.section__label,
.masthead,
.principles__title,
.status__label,
.caption__fig {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section__label span {
  display: inline-block;
  padding: 3px 7px 2px;
  border: 1.5px solid currentColor;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.section__title {
  font-size: clamp(2.125rem, 2.2rem + 2.4vw, 4rem);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 16ch;
  text-wrap: balance;
}

.section__intro {
  max-width: 38em;
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-muted);
}

.section { padding-block: var(--section-pad); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

.caption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.caption__fig { flex: none; color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--slate);
  color: var(--ivory);
  font-weight: 620;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 160ms ease;
}
.button:hover { background: #1B232B; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  font-weight: 620;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--peach);
}
.text-link:hover { text-decoration-color: var(--coral); }


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--slate);
  color: var(--ivory);
  --focus: var(--ivory);
  font-size: 0.875rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-block: 32px;
}
.site-footer__inner img { height: 20px; width: auto; margin-right: auto; }
.site-footer p { color: rgba(245, 235, 221, 0.78); }
.site-footer__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 5px;
}
@media (max-width: 639px) {
  .site-footer__inner img { flex-basis: 100%; margin-bottom: 4px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation: none !important;
  }
}

/* ==========================================================================
   ECOSYSTEM COMPONENTS
   Each site sets two flat panel colors in site.css:
     --accent     the site's own color (Signal sky, Lab peach, Foundry butter, Notes lilac)
     --accent-2   one quieter supporting color
   ========================================================================== */
:root {
  --accent: var(--peach);
  --accent-2: var(--butter);
  --slash-skew: -25.56deg;   /* the angle of the logo's slashes (atan 44/92) */
}

/* ---------- Breadcrumb masthead ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-block: 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--ink-muted);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.crumbs [aria-current] { color: var(--ink); }
.crumbs__meta { display: none; }
@media (min-width: 640px) { .crumbs__meta { display: inline; } }

/* Optional link back to the parent inside the menu */
.site-menu__parent a { color: var(--ink-muted); }
@media (min-width: 960px) {
  .js .site-menu__parent { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--rule); }
}

/* ---------- Hero ---------- */
.eco-hero { border-bottom: 2px solid var(--slate); }
.eco-hero__grid {
  display: grid;
  gap: 32px;
  padding-top: clamp(32px, 6vw, 80px);
}
.eco-hero__kicker {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eco-hero__title {
  font-size: clamp(3rem, 1.2rem + 6vw, 6rem);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.eco-hero__tagline {
  margin-top: 16px;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
}
.eco-hero__dek {
  max-width: 32em;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}
.eco-hero__status {
  display: flex;
  gap: 10px;
  align-items: baseline;
  max-width: 32em;
  margin-top: 28px;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.eco-hero__status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--coral);
  transform: translateY(-1px);
}

.eco-hero__art { align-self: end; }
.eco-hero__plate { position: relative; isolation: isolate; }
.eco-hero__plate::before,
.eco-hero__plate::after {        /* two flat diagonal planes behind the halftone */
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  transform: skewX(var(--slash-skew));
  transform-origin: bottom left;
}
.eco-hero__plate::before { right: 34%; width: 10%; background: var(--accent-2); }
.eco-hero__plate::after  { right: 6%;  width: 22%; background: var(--accent); }
.eco-hero__plate img { position: relative; width: 100%; }
.eco-hero__art figcaption {
  display: flex;
  gap: 10px;
  padding: 12px 0 16px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.eco-hero__art figcaption b {
  flex: none;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (min-width: 960px) {
  .eco-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; }
  .eco-hero__copy { padding-bottom: clamp(40px, 5vw, 72px); }
}

/* ---------- Section heading (shared) ---------- */
.eco-section { padding-block: clamp(64px, 9vw, 128px); }
.eco-section + .eco-section { border-top: 2px solid var(--slate); }
.eco-section--dark {
  background: var(--slate);
  color: var(--ivory);
  --ink: var(--ivory);
  --ink-muted: rgba(245, 235, 221, 0.8);
  --rule: rgba(245, 235, 221, 0.24);
  --focus: var(--ivory);
}
.eco-section--dark + .eco-section { border-top: 0; }

.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }

/* ==========================================================================
   THE SERPENTHINK METHOD
   Problem → Hypothesis → What if? → Experiment → What We Learned
   Mark a stage "is-reached" only when real content exists for it.
   ========================================================================== */
.method-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: clamp(36px, 5vw, 56px);
  counter-reset: stage;
}
.method-rail li {
  counter-increment: stage;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 3px solid var(--rule);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.method-rail li::before {
  content: counter(stage, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
}
.method-rail li.is-reached { border-top-color: var(--slate); color: var(--ink); }
.method-rail li.is-reached::before { color: var(--ink); }
.method-rail__state {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.75rem;
}
@media (max-width: 639px) {
  .method-rail { grid-template-columns: 1fr; gap: 0; }
  .method-rail li {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-top-width: 1px;
  }
  .method-rail li.is-reached { border-top-width: 1px; }
  .method-rail__state { margin-left: auto; }
}

.method { display: grid; gap: 0; }
.stage {
  display: grid;
  gap: 12px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--rule);
}
.stage__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stage__label span { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.stage__title {
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.028em;
}
.stage__body { max-width: 36em; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.stage__body p + p, .stage__body p + ul, .stage__body ul + p { margin-top: 0.9em; }
.stage__note {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
@media (min-width: 960px) {
  .stage { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
}

/* The "What if?" stage is set as an editorial statement */
.stage--whatif {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
}
.stage--whatif::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  right: 4%;
  width: clamp(90px, 16vw, 240px);
  background: var(--accent);
  transform: skewX(var(--slash-skew));
  transform-origin: bottom left;
}
.stage--whatif .stage__title {
  font-size: clamp(3rem, 1rem + 8vw, 7.5rem);
  font-weight: 760;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.stage--whatif .stage__body {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 560;
  line-height: 1.32;
  letter-spacing: -0.012em;
  max-width: 24em;
  text-wrap: balance;
}
.stage--whatif + .stage { border-top: 0; }
@media (min-width: 960px) {
  .stage--whatif { margin-inline: 0; padding-inline: 0; }
  .stage--whatif::after { right: -2%; }
  .stage--whatif .stage__body { padding-right: 18%; }
}

/* ---------- Numbered steps (lifecycle, how it works) ---------- */
.steps {
  display: grid;
  gap: 0 28px;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 24px 0 28px;
  border-top: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.eco-section:not(.eco-section--dark) .steps > li::before { color: var(--ink); }
.steps > li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
}
.steps h3 {
  margin-top: 14px;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.steps p { margin-top: 8px; font-size: 1rem; color: var(--ink-muted); max-width: 26em; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Principle / criteria list ---------- */
.ticks { display: grid; gap: 0 32px; }
.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink-muted);
}
.ticks li::before {
  content: "";
  width: 9px;
  height: 16px;
  margin-top: 3px;
  margin-left: 4px;
  background: var(--slate);
  transform: skewX(var(--slash-skew));
}
.ticks strong { display: block; color: var(--ink); font-weight: 680; }
@media (min-width: 760px) { .ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   KILL SWITCH — shared component
   An editorial record of experiments deliberately stopped, paused or pivoted.
   Never populate with invented cases. With no entries, the empty state shows.
   ========================================================================== */
.killswitch { border-top: 2px solid var(--slate); }
.ks-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 5px;
  border: 1.5px solid var(--slate);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ks-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--coral);
}
.ks-head { display: grid; gap: 20px; margin-bottom: 32px; }
.ks-head h2 {
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
  font-weight: 730;
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 16ch;
}
.ks-head p { max-width: 36em; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }

.ks-rubric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.ks-rubric li {
  padding: 14px 16px;
  background: var(--ivory);
  font-size: 0.875rem;
  font-weight: 600;
}
.ks-rubric li span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 760px) { .ks-rubric { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ks-empty {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px dashed var(--slate);
  border-bottom: 1px dashed var(--slate);
  font-size: 1rem;
  color: var(--ink-muted);
}
.ks-empty strong { color: var(--ink); font-weight: 680; }
.ks-list:not(:empty) + .ks-empty { display: none; }

/* A published entry (see the commented example in index.html) */
.ks-entry {
  display: grid;
  gap: 18px;
  padding: 24px 0;
  border-top: 1.5px solid var(--slate);
}
.ks-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ks-entry__decision { color: var(--coral); }
.ks-entry h3 { font-size: 1.5rem; font-weight: 720; letter-spacing: -0.02em; line-height: 1.15; }
.ks-entry dl { display: grid; gap: 14px; margin: 0; }
.ks-entry dt {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ks-entry dd { margin: 4px 0 0; max-width: 40em; }
.ks-entry__more {
  font-weight: 620;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
@media (min-width: 960px) {
  .ks-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 48px; }
  .ks-entry dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
}

/* ---------- Notice (disclaimers, boundaries) ---------- */
.notice {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1.5px solid var(--slate);
  background: var(--white);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.notice strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================================
   Ecosystem footer
   ========================================================================== */
.eco-footer {
  background: var(--slate);
  color: var(--ivory);
  --focus: var(--ivory);
  font-size: 0.875rem;
}
.eco-footer__top {
  display: grid;
  gap: 20px;
  padding-block: 40px 28px;
  border-bottom: 1px solid rgba(245, 235, 221, 0.2);
}
.eco-footer__built {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ivory);
  text-decoration: none;
}
.eco-footer__built span {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 235, 221, 0.78);
}
.eco-footer__built img { height: 24px; width: auto; }
.eco-footer__built:hover span { color: var(--ivory); }
.eco-footer__disclaimer {
  max-width: 44em;
  color: rgba(245, 235, 221, 0.82);
  line-height: 1.55;
}
.eco-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  padding-block: 18px 28px;
}
.eco-footer__bottom p { color: rgba(245, 235, 221, 0.78); }
.eco-footer a.eco-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 5px;
}
.eco-footer__bottom .eco-footer__link:first-child { margin-right: auto; }
@media (min-width: 960px) {
  .eco-footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; gap: 48px; }
}

/* ---------- 404 ---------- */
.lost { padding-block: clamp(80px, 14vw, 180px); }
.lost h1 {
  font-size: clamp(3rem, 1rem + 9vw, 8rem);
  font-weight: 760;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.lost p { max-width: 30em; margin-top: 20px; font-size: 1.125rem; }
.lost .button { margin-top: 32px; }

/* Skewed color planes must never cause sideways scrolling */
.eco-hero, .eco-section { overflow-x: clip; }
