/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-opsz-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-ext-opsz-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f3f4ef;          /* lichen paper */
  --panel: #e8ebe3;       /* raised field */
  --ink: #1b2420;         /* green-black ink */
  --muted: #59645f;       /* secondary text */
  --rule: #d3d8ce;        /* hairlines */
  --accent: #2e49a8;      /* ultramarine: links, the aggregate curve */
  --accent-ink: #ffffff;
  --accent-wash: rgba(46, 73, 168, 0.09);
  --annot: #8d9891;       /* individual annotator curves */

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Type scale (perfect fourth, 1.333) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.3rem;
  --t-lg: 1.75rem;
  --t-xl: clamp(2.4rem, 5.6vw, 4rem);

  --measure: 66ch;
  --rail: 11rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --page: 64rem;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111513;
    --panel: #1a201d;
    --ink: #e3e8e3;
    --muted: #9aa59f;
    --rule: #2a322e;
    --accent: #9db1ff;
    --accent-ink: #0f1424;
    --accent-wash: rgba(157, 177, 255, 0.1);
    --annot: #66716b;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111513;
  --panel: #1a201d;
  --ink: #e3e8e3;
  --muted: #9aa59f;
  --rule: #2a322e;
  --accent: #9db1ff;
  --accent-ink: #0f1424;
  --accent-wash: rgba(157, 177, 255, 0.1);
  --annot: #66716b;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-base);
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
strong { font-weight: 650; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--ink); color: var(--bg); padding: 0.5rem 0.8rem; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head .inner {
  max-width: var(--page); margin: 0 auto; padding: 0.85rem var(--gap);
  display: flex; align-items: center; gap: 1.5rem;
}
.wordmark {
  font-family: var(--sans); font-weight: 650; font-size: 1rem; color: var(--ink);
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.site-nav { display: flex; gap: 1.4rem; font-family: var(--sans); font-size: var(--t-sm); }
.site-nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.theme-toggle {
  appearance: none; border: 1px solid var(--rule); background: transparent; color: var(--ink);
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  flex: none;
}
.theme-toggle:hover { background: var(--panel); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------- Page scaffolding ---------- */
main { max-width: var(--page); margin: 0 auto; padding: 0 var(--gap); }
.section {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 var(--gap);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--rule);
}
.section > h2 {
  font-size: var(--t-sm); font-weight: 600; color: var(--muted); letter-spacing: 0;
  padding-top: 0.3rem; position: sticky; top: 5.5rem; align-self: start;
}
.section-body { max-width: var(--measure); }
.section-body.wide { max-width: none; }
@media (max-width: 760px) {
  :root { --rail: 0; }
  .section { grid-template-columns: minmax(0, 1fr); }
  .section > h2 { position: static; font-size: var(--t-md); color: var(--ink); margin-bottom: 1.25rem; padding-top: 0; }
  .site-head .inner { gap: 1rem; }
  .site-nav { gap: 1rem; }
  .wordmark .full { display: none; }
}
@media (min-width: 761px) { .wordmark .short { display: none; } }
@media (max-width: 420px) {
  .site-head .inner { gap: 0.7rem; padding-left: 1rem; padding-right: 1rem; }
  .site-nav { gap: 0.8rem; font-size: 0.875rem; }
  .wordmark { font-size: 0.9375rem; }
  .theme-toggle { width: 2rem; height: 2rem; }
}

.lede { font-size: var(--t-md); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 6vw, 5rem);
  align-items: center; padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero h1 {
  font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98;
  margin-bottom: 1.4rem;
}
.hero .lede { max-width: 30ch; margin-bottom: 1rem; }
.hero .intro { max-width: 50ch; color: var(--muted); }
.hero .intro a { color: inherit; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-family: var(--sans); font-size: var(--t-sm); }
.contact-links a { color: var(--ink); text-decoration-color: var(--rule); }
.contact-links a:hover { text-decoration-color: var(--ink); }
.portrait { margin: 0; justify-self: end; width: 100%; max-width: 20rem; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--panel); }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2rem; }
  .portrait { order: -1; justify-self: start; max-width: 13rem; }
}

.dist { margin: 1.75rem 0 2rem; max-width: 30rem; }
/* The one bold element: annotator distribution figure */
.dist { margin: 0; }
.dist svg { display: block; width: 100%; height: auto; overflow: visible; }
.dist .axis { stroke: var(--rule); stroke-width: 1; }
.dist .tick { fill: var(--muted); font-family: var(--sans); font-size: 11px; }
.dist .annot { fill: none; stroke: var(--annot); stroke-width: 1.1; }
.dist .rating { fill: var(--annot); }
.dist .agg { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.dist .agg-fill { fill: var(--accent-wash); stroke: none; }
.dist .mean { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; }
.dist .lbl { fill: var(--muted); font-family: var(--sans); font-size: 11.5px; }
.dist .lbl-accent { fill: var(--accent); font-family: var(--sans); font-size: 11.5px; font-weight: 600; }
.dist figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: 0.75rem; max-width: 46ch; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .dist.play .annot { opacity: 0; animation: fade 0.5s ease-out forwards; }
  .dist.play .rating { opacity: 0; animation: fade 0.4s ease-out forwards; }
  .dist.play .agg { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s cubic-bezier(.6,.05,.25,1) 0.9s forwards; }
  .dist.play .agg-fill, .dist.play .mean, .dist.play .lbl-accent { opacity: 0; animation: fade 0.6s ease-out 1.9s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Now ---------- */
.now p:last-child { margin-bottom: 0; }

/* ---------- Dissertation feature ---------- */
.thesis-title {
  font-family: var(--serif); font-weight: 500; font-size: var(--t-lg); line-height: 1.2;
  letter-spacing: -0.012em; margin-bottom: 0.9rem; max-width: 26ch;
}
.thesis-meta { font-family: var(--sans); font-size: var(--t-sm); color: var(--muted); margin-bottom: 1.6rem; line-height: 1.55; }
.thesis-meta span { display: block; }
.strands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin: 2rem 0; }
.strand h3 { font-size: var(--t-base); margin-bottom: 0.75rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); }
.strand ol { margin: 0; padding: 0; list-style: none; counter-reset: rq; }
.strand li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); line-height: 1.5; }
.strand li a { display: block; font-family: var(--sans); font-size: var(--t-xs); margin-top: 0.25rem; color: var(--muted); }
.strand li a:hover { color: var(--accent); }
@media (max-width: 640px) { .strands { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  font-family: var(--sans); font-size: var(--t-sm); font-weight: 550; text-decoration: none;
  padding: 0.6rem 1rem; border-radius: 6px; border: 1px solid var(--ink); color: var(--ink); display: inline-block;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }

/* ---------- Dated lists (news, CV) ---------- */
.dated { list-style: none; margin: 0; padding: 0; }
.dated > li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 1.25rem; padding: 0.95rem 0; border-bottom: 1px solid var(--rule); }
.dated > li:first-child { padding-top: 0; }
.dated time, .dated .when { font-family: var(--sans); font-size: var(--t-sm); color: var(--muted); padding-top: 0.12rem; font-variant-numeric: tabular-nums; }
.dated .what p { margin: 0; }
.dated .what p + p { margin-top: 0.35rem; }
@media (max-width: 520px) { .dated > li { grid-template-columns: minmax(0, 1fr); } .dated time, .dated .when { margin-bottom: 0.15rem; } }

/* ---------- Publications ---------- */
.pub { padding: 1.35rem 0; border-bottom: 1px solid var(--rule); }
.pub:first-child { padding-top: 0; }
.year-group .pub:last-child { border-bottom: 0; padding-bottom: 0; }
.pub-title { font-family: var(--serif); font-size: 1.14rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.35rem; letter-spacing: -0.005em; }
.pub-title a { color: var(--ink); text-decoration: none; }
.pub-title a:hover { color: var(--accent); text-decoration: underline; }
.pub-authors { margin: 0 0 0.2rem; font-size: var(--t-sm); color: var(--muted); }
.pub-authors .me { color: var(--ink); font-weight: 600; }
.pub-venue { margin: 0; font-size: var(--t-sm); font-style: italic; }
.pub-note { font-style: normal; color: var(--muted); }
.pub-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-top: 0.65rem; font-family: var(--sans); font-size: var(--t-xs); }
.pub-links a { color: var(--accent); }
.pub details { margin-top: 0.7rem; }
.pub summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-size: var(--t-xs); font-weight: 600; color: var(--ink);
}
.pub summary::-webkit-details-marker { display: none; }
.pub summary::before {
  content: ""; width: 0.45rem; height: 0.45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.2s ease; margin-right: 0.1rem;
}
.pub details[open] summary::before { transform: rotate(45deg) translate(-2px, -1px); }
.pub summary .label-close { display: none; }
.pub details[open] summary .label-open { display: none; }
.pub details[open] summary .label-close { display: inline; }
.abstract {
  margin-top: 0.75rem; padding: 1rem 1.15rem; background: var(--panel); border-radius: 6px;
  font-size: 0.98rem; line-height: 1.65; max-width: var(--measure);
}
.abstract p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .pub details { interpolate-size: allow-keywords; }
    .pub details::details-content { height: 0; overflow: clip; transition: height 0.28s ease, content-visibility 0.28s allow-discrete; }
    .pub details[open]::details-content { height: auto; }
  }
}

.year-group { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 var(--gap); padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.year-group > h2 { font-size: var(--t-md); font-weight: 600; font-variant-numeric: tabular-nums; position: sticky; top: 5.5rem; align-self: start; }
.year-group[hidden] { display: none; }
.pub[hidden] { display: none; }
@media (max-width: 760px) { .year-group { grid-template-columns: minmax(0, 1fr); } .year-group > h2 { position: static; margin-bottom: 1rem; } }

.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); max-width: var(--measure); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 1rem; }
.page-head p { color: var(--muted); }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; padding: 1rem 0 1.25rem;
  font-family: var(--sans); font-size: var(--t-sm);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; border: 0; }
.filters legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chip {
  appearance: none; font: inherit; font-size: var(--t-sm); cursor: pointer;
  padding: 0.38rem 0.8rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { color: var(--muted); margin-left: 0.3rem; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .count { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.text-btn { appearance: none; background: none; border: 0; padding: 0.38rem 0; font: inherit; font-size: var(--t-sm); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.toolbar .spacer { flex: 1; }
.status { color: var(--muted); font-size: var(--t-xs); }

.more-link { display: inline-block; margin-top: 1.5rem; font-family: var(--sans); font-size: var(--t-sm); font-weight: 550; }

/* ---------- CV ---------- */
.cv-entry h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; letter-spacing: 0; }
.cv-entry .where { font-size: var(--t-sm); color: var(--muted); margin-bottom: 0.5rem; }
.cv-entry ul { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: var(--t-sm); }
.cv-entry li { margin-bottom: 0.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-family: var(--sans); font-size: var(--t-xs); padding: 0.3rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); margin-top: 2rem; }
.site-foot .inner {
  max-width: var(--page); margin: 0 auto; padding: 2rem var(--gap) 3rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  font-family: var(--sans); font-size: var(--t-xs); color: var(--muted);
}
.site-foot a { color: inherit; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }

@media print {
  .site-head, .theme-toggle, .toolbar, .site-foot { display: none; }
  .abstract { background: none; padding: 0; }
  body { background: #fff; color: #000; }
}
.nowrap { white-space: nowrap; }
.thesis-facts { margin: 0 0 1.75rem; padding: 0; border-top: 1px solid var(--rule); max-width: 34rem; }
.thesis-facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.thesis-facts dt { font-family: var(--sans); font-size: var(--t-sm); color: var(--muted); }
.thesis-facts dd { margin: 0; font-size: var(--t-sm); line-height: 1.5; }
@media (max-width: 520px) { .thesis-facts > div { grid-template-columns: minmax(0, 1fr); } }
.section .dist { margin: 1.75rem 0 2.25rem; }

/* ---------- Dissertation overview and column charts ---------- */
.thesis > p, .thesis .thesis-title { max-width: var(--measure); }
.thesis .thesis-title { max-width: 26ch; }
.thesis-intro { margin-bottom: 1.25rem; }

.scene { margin: 0 0 0.5rem; }
.scene svg { display: block; width: 100%; max-width: 36rem; height: auto; overflow: visible; }
.scene .person .head, .scene .person .torso, .scene .agent .face, .scene .agent .body, .scene .agent .dot { fill: var(--ink); opacity: 0.8; }
.scene .agent line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0.8; }
.scene .agent .eye { fill: var(--bg); }
.scene .speech { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.scene .table, .scene .table-rim { fill: var(--panel); stroke: var(--annot); stroke-width: 1.2; stroke-linejoin: round; }
.scene .paper { fill: var(--bg); stroke: var(--annot); stroke-width: 1; stroke-linejoin: round; }
.scene .zone { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 4 4; }
.scene .zone-1 { stroke-dasharray: none; stroke-width: 1.6; }
.scene .waves path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.scene .badge circle { fill: var(--accent); }
.scene .badge text { fill: var(--accent-ink); font-family: var(--sans); font-size: 13px; font-weight: 650; }
.scene figcaption { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 0.4rem; font-family: var(--sans); font-size: var(--t-xs); color: var(--muted); }
.scene .key { display: inline-flex; align-items: center; gap: 0.45rem; }
.scene .key b {
  width: 1.15rem; height: 1.15rem; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 650;
}
@media (prefers-reduced-motion: no-preference) {
  .scene.armed .zone, .scene.armed .badge, .scene.armed .waves, .scene.armed .speech { opacity: 0; }
  .scene.play .zone, .scene.play .badge, .scene.play .waves, .scene.play .speech { animation: fade 0.5s ease-out forwards; }
  .scene.play .zone-1, .scene.play .badge-1, .scene.play .speech { animation-delay: 0.1s; }
  .scene.play .zone-2, .scene.play .badge-2 { animation-delay: 0.55s; }
  .scene.play .zone-3, .scene.play .badge-3, .scene.play .waves { animation-delay: 1s; }
}

.strand .dist { margin: 0 0 0.5rem; max-width: none; }
.strand .dist figcaption { font-size: var(--t-xs); max-width: none; margin-top: 0.5rem; }
.pipe .wave { fill: none; stroke: var(--annot); stroke-width: 2.2; stroke-linecap: round; }
.pipe .wave.out { stroke: var(--accent); }
.pipe .flow { fill: none; stroke: var(--rule); stroke-width: 1.2; }
.pipe .ah { fill: var(--rule); }
.pipe .pill rect, .pipe .box rect { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0.75; }
.pipe .pill text, .pipe .box text { fill: var(--ink); font-family: var(--sans); font-size: 11.5px; }
.pipe .pill.is-emotion rect { stroke: var(--accent); opacity: 1; fill: var(--accent-wash); }
.pipe .pill.is-emotion text { fill: var(--accent); font-weight: 600; }
.pipe .ctl line { stroke: var(--rule); stroke-width: 1.5; stroke-linecap: round; }
.pipe .ctl circle { fill: var(--accent); }
.pipe .wave.out-low { opacity: 0; }
.pipe .ctl text { fill: var(--muted); font-family: var(--sans); font-size: 10.5px; }
@media (prefers-reduced-motion: no-preference) {
  .pipe.play .pill, .pipe.play .ctl, .pipe.play .box, .pipe.play .wave.out, .pipe.play .flow { opacity: 0; animation: fade 0.5s ease-out forwards; }
  .pipe.play .flow { animation-delay: 0.2s; }
  .pipe.play .pill { animation-delay: 0.4s; }
  .pipe.play .ctl { animation-delay: 0.9s; }
  .pipe.play .box { animation-delay: 1.2s; }
  .pipe.play .wave.out-high { animation: fade 0.5s ease-out 1.5s forwards, swap-high 8s ease-in-out 2.6s infinite; }
  .pipe.play .wave.out-low { animation: swap-low 8s ease-in-out 2.6s infinite; }
  .pipe.play .ctl circle { animation: slide 8s ease-in-out 2.6s infinite; }
}
@keyframes slide { 0%, 20% { transform: translateX(0); } 40%, 60% { transform: translateX(-82px); } 80%, 100% { transform: translateX(0); } }
@keyframes swap-high { 0%, 20% { opacity: 1; } 40%, 60% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes swap-low { 0%, 20% { opacity: 0; } 40%, 60% { opacity: 1; } 80%, 100% { opacity: 0; } }

.news-photo { margin: 0.9rem 0 0.2rem; max-width: 30rem; }
.news-photo img { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--panel); }
.news-photo a:hover img { opacity: 0.92; }
.news-photo figcaption { font-family: var(--sans); font-size: var(--t-xs); color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }
.sr-only:empty { display: none; }
