:root {
  --paper: #eef3f4;
  --card: #ffffff;
  --ink: #12171c;
  --muted: #31404c;
  --link: #0a4f6e;
  --line: #c5d2d8;
  --header: #0d1218;
  --header-text: #f4f7f8;
  --header-muted: #d5e4ec;
  --signal: #9ae7f5;
  --footer: #0d1218;
  --footer-text: #f4f7f8;
  --footer-label: #b7e4f0;
  --focus: #0b6e8a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --measure: 40rem;
  --cat: #155e8a;
  --shadow: 0 10px 28px rgb(13 18 24 / 10%);
}

.story-models-research,
.cat-models-research { --cat: #155e8a; }
.story-industry-business,
.cat-industry-business { --cat: #0c5c4a; }
.story-policy-regulation,
.cat-policy-regulation { --cat: #8a3d12; }
.story-tools-products,
.cat-tools-products { --cat: #4c3f91; }
.story-funding,
.cat-funding { --cat: #7a4e0f; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgb(154 231 245 / 18%), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

:focus { outline: none; }

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

::selection {
  background: var(--header);
  color: var(--header-text);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--header);
  color: var(--header-text);
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  outline: 3px solid var(--signal);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--header);
  color: var(--header-text);
  padding: 0.4rem 0 0;
}

.site-header a { color: var(--header-text); }

.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--signal); }

.utility,
.utility p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  margin: 0;
}

.utility {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--header-muted);
}

.utility a,
.section-nav a,
.footer-links a,
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.masthead {
  padding: 0.35rem 0 0.2rem;
}

.masthead-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.masthead-title a { text-decoration: none; }

.tagline,
.edition {
  grid-column: 2;
  margin: 0.25rem 0 0;
  color: var(--header-muted);
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.edition {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rule-double,
.rule-single {
  border: 0;
  height: 1px;
  margin: 0.7rem 0 0;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
}

.section-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  list-style: none;
}

.section-nav a {
  padding: 0 0.75rem;
  text-decoration: none;
  border-radius: 999px;
}

.section-nav a[aria-current="page"] {
  background: rgb(154 231 245 / 16%);
  box-shadow: inset 0 -2px 0 var(--signal);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--header);
  color: var(--header-text);
  padding: 0.5rem 0 4.4rem;
}

.hero-picture,
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture { z-index: 0; display: block; }

.hero-photo {
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(13 18 24 / 46%) 0%, rgb(13 18 24 / 22%) 42%, rgb(13 18 24 / 58%) 100%);
}

.hero-ai-label {
  position: absolute;
  z-index: 4;
  left: max(1rem, calc((100% - var(--wrap)) / 2));
  bottom: 0.7rem;
  margin: 0;
  font-size: 0.85rem;
}

.hero-ai-label a {
  color: #f4f7f8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1.25rem;
}

.hero .rail {
  align-self: start;
  padding: 0.85rem 1rem 1rem;
  border-radius: 14px;
  background: var(--header);
  box-shadow: inset 0 0 0 1px rgb(154 231 245 / 22%);
}

.hero .rail h2,
.hero .rail h3,
.hero .rail a { color: var(--header-text); }

.hero .rail .byline,
.hero .rail .empty,
.hero .rail .note { color: var(--header-muted); }

.hero .rail .kicker a { color: var(--signal); }

.hero .rail .kicker a::before { background: var(--signal); }

.story {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cat);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
}

.story a { color: var(--link); }

.story-title { margin: 0.2rem 0 0.45rem; font-family: var(--serif); letter-spacing: -0.02em; }

.story-title a { color: var(--ink); text-decoration: none; }

.story-title a:hover { text-decoration: underline; }

.story.lead .story-title { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.08; }

.story .deck,
.deck { color: var(--muted); }

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker a,
.story-title a,
.cat-latest a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.kicker a {
  color: var(--cat);
  text-decoration: none;
}

.kicker a::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--cat);
  transform: translateY(-0.05rem);
}

.byline,
figcaption,
.source-pub {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header .edition { color: var(--header-muted); }

.byline { margin: 0.35rem 0 0; }

.story-media {
  margin: 0 0 0.8rem;
  overflow: hidden;
  border-radius: 10px;
  background: #d5e0e4;
}

.story-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-media figcaption {
  margin: 0;
  padding: 0.45rem 0.7rem 0.6rem;
  background: var(--card);
}

.ai-label {
  display: inline-block;
  margin: 0 0.45rem 0.2rem 0;
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
  background: #12171c;
  color: #f4f7f8;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
  vertical-align: baseline;
}

.prose .inline-figure { margin: 1.25rem 0 1.4rem; }

.sections { padding-bottom: 1rem; }
.faq { padding-bottom: 1.5rem; }
.faq-item { border-top: 1px solid var(--line); padding: 0.6rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: 0.4rem 0 0; color: var(--muted); }

.section-title,
.page h1,
.article-title {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--signal), transparent);
}

.cat-grid,
.story-list,
.archive-list,
.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-grid,
.story-list { display: grid; gap: 0.9rem; }

.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cat);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.cat-card h3 { margin: 0.35rem 0; font-family: var(--serif); }

.cat-card h3 a {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-decoration: none;
}

.cat-card h3 a:hover { text-decoration: underline; }

.cat-icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.4rem;
  border-radius: 10px;
  color: #ffffff;
  background: var(--cat);
  flex: none;
}

.cat-latest { margin-bottom: 0; }

.latest-list li + li,
.archive-list li + li { margin-top: 0.85rem; }

.latest-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.latest-thumb {
  flex: none;
  display: block;
  width: 5.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1218;
}

.latest-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.latest-body { min-width: 0; flex: 1 1 auto; }

@media (min-width: 26rem) {
  .latest-thumb { width: 7rem; }
}

.page,
.article-page { padding: 1.2rem 0 2rem; }

.page h1,
.article-title { margin-bottom: 0.4rem; }

.article-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.prose,
.page-body { max-width: var(--measure); }

.prose h2 { font-family: var(--serif); line-height: 1.2; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0 0 0.8rem; padding: 0; list-style: none; font-size: 0.92rem; }

.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--muted); }

.correction {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid #8a3d12;
  background: #fff;
}

.report-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.thread {
  margin: 1.5rem 0;
}

.thread .section-note {
  margin-top: 0.2rem;
  color: var(--muted);
}

.thread .tag-list,
.thread .story-list {
  margin-top: 0.8rem;
}

.compare-box {
  max-width: var(--measure);
  margin: 1.4rem 0 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--link);
  border-radius: 12px;
  background: var(--card);
}

.compare-box h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.compare-box p { margin: 0.2rem 0; }

.compare-box ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.table-scroll {
  margin: 1.1rem 0 1.4rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.release-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.4;
}

.release-table caption {
  caption-side: bottom;
  padding: 0.7rem 0.8rem 0.85rem;
  color: var(--muted);
  text-align: left;
}

.release-table th,
.release-table td {
  padding: 0.65rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.release-table thead th {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.release-table tbody th { font-family: var(--serif); font-size: 1.02rem; }

.cell-note {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.cite-box {
  margin: 0.4rem 0 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
}

.cite-box p { margin: 0; }

.sources { margin-top: 1.6rem; }

.sources ol { padding-left: 1.2rem; }

.source-pub::before { content: " · "; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }

.tag-list a,
.button-link {
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--header);
  color: var(--header-text);
  text-decoration: none;
}

.inline-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.archive-month {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--serif);
}

.empty,
.note { color: var(--muted); }

.brand-line { font-weight: 700; }

.contact-form {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label { font-weight: 600; }

.field-req {
  font-weight: 400;
  color: var(--muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--header);
  color: var(--header-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--link);
  background: var(--card);
}

.contact-status:empty {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-status.is-error { border-left-color: #8a3d12; }

.contact-privacy {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.4rem;
  background: var(--footer);
  color: var(--footer-text);
}

.footer-grid { display: grid; gap: 1.4rem; }

.site-footer a { color: var(--footer-text); }

.footer-label { margin: 0 0 0.35rem; color: var(--footer-label); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

.footer-links { margin: 0; padding: 0; list-style: none; }

.footer-meta { margin: 1.4rem 0 0; font-size: 0.95rem; }

code { font-family: var(--mono); font-size: 0.92em; }

.story.lead { display: grid; }

.story.lead .story-copy { order: 1; }

.story.lead .story-media { order: 2; }

@media (min-width: 48rem) {
  .story.lead {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 0.4rem 1.2rem;
    align-items: center;
    padding: 1rem;
  }

  .story.lead .story-media { margin: 0; order: -1; }

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

@media (min-width: 64rem) {
  .hero-grid,
  .cat-grid,
  .footer-grid { grid-template-columns: 1.4fr 0.8fr; }

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

  .footer-grid { grid-template-columns: 1.3fr 0.7fr 0.8fr; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .story,
  .cat-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }

  .story:hover,
  .cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgb(13 18 24 / 16%); }

  .story-media img { transition: transform 0.35s ease; }

  .story:hover .story-media img,
  .article-hero:hover img { transform: scale(1.04); }

  a { transition: text-decoration-thickness 0.15s ease; }

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

@media (prefers-reduced-motion: no-preference) {

  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Consent banner: fixed overlay, so it causes no layout shift. */
#mtm-consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:1000;max-width:560px;margin:0 auto;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:12px 14px;background:#0d1218;color:#eef3f4;border-radius:10px;box-shadow:0 6px 24px rgba(0,0,0,.25);font-size:.9rem;line-height:1.4}
#mtm-consent p{margin:0;flex:1 1 260px}
#mtm-consent a{color:inherit;text-decoration:underline}
#mtm-consent div{display:flex;gap:8px}
#mtm-consent button{font:inherit;padding:6px 14px;border-radius:6px;border:1px solid #eef3f4;cursor:pointer;background:transparent;color:inherit}
#mtm-consent .acc{background:#eef3f4;color:#0d1218}
.link-button{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
