/* Base reset (was inline in <head>) */
body{margin:0}img{max-width:100%}[hidden]{display:none!important}

/* Layout: one narrow reading column, text-forward; projects as a reverse-chronological numbered ledger */
:root {
  --bg: #fbfbf9;
  --fg: #1b1d22;
  --muted: #5d6270;
  --rule: #dcdde2;
  --accent: #1d6b66;
  --tag-bg: #e9f2f1;
  --panel: #ffffff;
  --dip: #fbeeee;
  --alert: #b23b3b;
  --ill-green: #21594a;
  --ill-ridge: #efece4;
  --ill-ink: #2a2d33;
  --ill-neutral: #ddd6ca;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161b; --fg: #e9eaee; --muted: #a2a7b4; --rule: #2c303a;
    --accent: #6cc4bb; --tag-bg: #17282a; --panel: #191c23; --dip: #2a1d21; --alert: #f08a8a; --ill-green: #2b6e5b; --ill-ridge: #d6e2db; --ill-ink: #b9bec8; --ill-neutral: #57524a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14161b; --fg: #e9eaee; --muted: #a2a7b4; --rule: #2c303a;
  --accent: #6cc4bb; --tag-bg: #17282a; --panel: #191c23; --dip: #2a1d21; --alert: #f08a8a; --ill-green: #2b6e5b; --ill-ridge: #d6e2db; --ill-ink: #b9bec8; --ill-neutral: #57524a; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Layout grid: 12 columns, content up to 1440px, fluid outer margins.
   Running text is capped at --measure; headlines, figures and projects span more columns. */
:root {
  --page-max: 1440px;
  --margin: clamp(20px, 5vw, 80px);
  --gutter: clamp(16px, 2.2vw, 32px);
  --measure: 68ch;
}
.wrap {
  max-width: calc(var(--page-max) + 2 * var(--margin)); margin: 0 auto;
  padding-left: max(var(--margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--margin), env(safe-area-inset-right, 0px));
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
}
.wrap > * { grid-column: 1 / -1; min-width: 0; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }

/* Header */
header.site { padding-block: 32px 0; }
header.site .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding-block: 88px 56px; }
.hero h1 {
  font-size: clamp(28px, 4.4vw, 40px); line-height: 1.22; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 32px; text-wrap: balance;
}
.hero p { margin: 0 0 16px; max-width: var(--measure); color: var(--muted); }
.hero p strong { color: var(--fg); }
.avail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
}
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Section labels */
h2.label {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
section { padding-block: 40px; }

/* Project ledger */
.projects { list-style: none; margin: 0; padding: 0; }
.project p { margin: 0 0 12px; max-width: var(--measure); }
.project ul.points { margin: 0 0 16px; padding-left: 1.1em; max-width: var(--measure); }
.project ul.points li { margin-bottom: 6px; }
.project ul.points li::marker { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.tags li {
  font-family: var(--mono); font-size: 12px; padding: 3px 9px;
  background: var(--tag-bg); color: var(--muted); border-radius: 3px;
}
.tags li.status { color: var(--accent); }

/* Project figures */
.figure { margin: 20px 0 16px; }
.jm-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
.jm { display: block; width: 100%; min-width: 620px; height: auto; font-family: var(--sans); }
.jm-dip { fill: var(--dip); }
.jm-phase text { font-size: 13px; font-weight: 600; fill: var(--muted); text-anchor: middle; }
.jm-phase .jm-phase-hot { fill: var(--alert); }
.jm-rule { stroke: var(--rule); stroke-width: 1; }
.jm-mid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; }
.jm-axis { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.jm-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.jm-dot { fill: var(--panel); stroke: var(--accent); stroke-width: 2; }
.jm-quote text { font-size: 12.5px; fill: var(--fg); font-style: italic; }
button.linkish { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.viewer { width: min(1200px, 96vw); max-height: 92vh; padding: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--fg); }
dialog.viewer::backdrop { background: rgba(10,12,18,0.7); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.viewer-body { overflow: auto; max-height: calc(92vh - 52px); background: #fff; }
.viewer-body img { display: block; width: 1600px; max-width: none; height: auto; }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 64ch; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 8px; padding: 0; list-style: none; }
.results li { border-top: 1px solid var(--rule); padding-top: 10px; min-width: 0; }
.results .fig { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.results .lab { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) { .results { grid-template-columns: 1fr; gap: 10px; } }

.pull { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--accent); max-width: 60ch; }
.pull p { font-size: 19px; line-height: 1.5; margin: 0 0 8px; letter-spacing: -0.005em; }
.pull cite { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.insight-map { overflow-x: auto; margin: 24px 0 8px; }
.insight-map table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.insight-map caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 12px; caption-side: top; }
.insight-map th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px 0; border-bottom: 1px solid var(--fg); }
.insight-map td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.insight-map td:last-child, .insight-map th:last-child { color: var(--accent); font-weight: 600; padding-right: 0; }
.insight-map th:last-child { font-weight: 500; }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ba-item { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ba-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ba-item img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
@media (max-width: 560px) { .ba-grid { grid-template-columns: 1fr; } }

details.more { margin: 16px 0 4px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding-block: 12px; font-size: 15px; font-weight: 500; color: var(--accent); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-family: var(--mono); font-size: 16px; width: 14px; text-align: center; }
details.more[open] summary::before { content: "–"; }
details.more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
details.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more-body { padding-bottom: 16px; }
.more-body > :first-child { margin-top: 4px; }

.guide { border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.guide-head h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 4px 0 4px; }
.guide-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.guide-note { margin: 0; font-size: 14px; color: var(--muted); }
.guide h5 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.guide-goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 15px; line-height: 1.45; }
.guide-goals li { position: relative; padding-left: 18px; min-width: 0; }
.guide-goals li::before { content: "?"; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.guide-task { background: var(--tag-bg); border-radius: 4px; padding: 14px 16px; }
.guide-task p { margin: 4px 0 0; font-size: 15px; }
.guide-sections { list-style: none; margin: 0; padding: 0; counter-reset: gs; display: flex; flex-direction: column; }
.guide-sections > li { counter-increment: gs; display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding-block: 16px; border-top: 1px solid var(--rule); }
.guide-sections > li::before { content: counter(gs, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 2px; grid-row: 1 / span 5; }
.guide-sections > li > * { grid-column: 2; min-width: 0; }
.guide-sections ul { margin: 0; padding-left: 1.1em; font-size: 15px; line-height: 1.45; }
.guide-sections ul li { margin-bottom: 6px; }
.guide-sections ul.guide-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.guide-chips li { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border: 1px solid var(--rule); border-radius: 3px; color: var(--muted); margin: 0; }
@media (max-width: 560px) { .guide { padding: 18px; } .guide-goals { grid-template-columns: 1fr; } .guide-sections > li { grid-template-columns: 1fr; } .guide-sections > li::before { grid-row: auto; padding-bottom: 4px; } .guide-sections > li > * { grid-column: 1; } }

.section-intro { margin: 20px 0 8px; max-width: 60ch; color: var(--muted); }
.process { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.process li { counter-increment: step; padding-block: 20px; border-top: 1px solid var(--rule); min-width: 0; }
.process h3 { display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.process h3::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--accent); }
.process .methods { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.process .proof { font-size: 15px; margin: 0; line-height: 1.5; }
.toolline { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); line-height: 1.7; }
.toolline span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); margin-right: 8px; }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

a.field-link { display: flex; align-items: center; gap: 10px; padding-block: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
a.field-link::before { content: "↗"; font-family: var(--mono); font-size: 14px; width: 14px; text-align: center; }
a.field-link:hover { text-decoration: underline; text-underline-offset: 3px; }
details.more + a.field-link { margin-top: -4px; }

.highlights { margin: 20px 0 4px; }
.hl-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.highlights .results { margin-top: 10px; }
.hl-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.facets { list-style: none; margin: 16px 0 0; padding: 0; max-width: var(--measure); }
.facets li { display: flex; flex-direction: column; gap: 2px; padding-block: 12px; border-top: 1px solid var(--rule); font-size: 16px; }
.facets li:last-child { border-bottom: 1px solid var(--rule); }
.facet-title { font-weight: 600; font-size: 15px; }

.guide-p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; max-width: 62ch; }
.guide-p:last-child { margin-bottom: 0; }
.sec-desc { margin: -4px 0 12px; font-size: 14px; color: var(--muted); }
.q-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.guide-sections .guide-task { margin-bottom: 14px; }
.guide-reveal { border-top: 2px solid var(--accent); padding-top: 16px; }
.reveal-head { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 10px; }

.impact-wrap { margin-top: 10px; max-width: 420px; }
table.impact { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.impact th, table.impact td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); }
table.impact thead th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--fg); }
table.impact tbody th { font-weight: 500; }
table.impact td { color: var(--muted); }
table.impact td:last-child { color: var(--accent); font-weight: 600; padding-right: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.process-lead { margin: 24px 0 6px; font-size: clamp(19px, 2.6vw, 22px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; text-wrap: balance; max-width: 34ch; }
.process-lead + .section-intro { margin-top: 0; }
.process .proof strong { font-weight: 600; }
dl.tools { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }
dl.tools > div { display: grid; grid-template-columns: 200px 1fr; gap: 4px 16px; }
dl.tools dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); padding-top: 2px; }
dl.tools dd { margin: 0; font-size: 14px; color: var(--muted); min-width: 0; }
@media (max-width: 560px) { dl.tools > div { grid-template-columns: 1fr; } }

.contact-alt { margin: 12px 0 0; font-size: 16px; }
.contact-alt a { color: var(--accent); }

/* Two-column lists */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.cols > div { min-width: 0; }
.cols h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.plain { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.plain li { padding-block: 5px; border-bottom: 1px solid var(--rule); }
.plain li:last-child { border-bottom: 0; }

.rows { list-style: none; padding: 0; margin: 16px 0 0; }
.rows li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px;
  padding-block: 16px; border-bottom: 1px solid var(--rule);
}
.rows li:last-child { border-bottom: 0; }
.rows .what { font-weight: 500; }
.rows .where { color: var(--muted); font-size: 15px; grid-column: 1; }
.rows .when { font-family: var(--mono); font-size: 13px; color: var(--muted); grid-row: 1; grid-column: 2; padding-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Contact */
.contact p { max-width: 60ch; margin: 20px 0; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; }
.contact-line .email-link { color: var(--fg); text-decoration-color: var(--rule); }
.contact-line .email-link:hover { color: var(--accent); text-decoration-color: currentColor; }
button.copy {
  font-family: var(--mono); font-size: 12px; padding: 5px 10px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px;
}
button.copy:hover { color: var(--accent); border-color: var(--accent); }
button.copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

footer { padding-block: 40px 56px; border-top: 1px solid var(--rule); margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
footer nav { font-size: 14px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-block: 56px 32px; }
  .project { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .rows li { grid-template-columns: 1fr; }
  .rows .when { grid-row: auto; grid-column: 1; padding-top: 0; }
}
/* Grid placement */
/* Impact illustration */
.hero-art { grid-column: 1 / -1; justify-self: start; width: min(78%, 280px); margin: 0 0 32px; }
.impact { display: block; width: 100%; height: auto; }
.impact .i-green { fill: var(--ill-green); }
.impact .i-ridge path { fill: none; stroke: var(--ill-ridge); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.impact .i-neutral { fill: var(--ill-neutral); }
.impact .i-line { fill: none; stroke: var(--ill-ink); stroke-width: 1.6; }
.impact .i-dash { fill: none; stroke: var(--ill-ink); stroke-width: 1.6; stroke-dasharray: 7 9; opacity: 0.75; }
.impact .i-ink { fill: var(--ill-ink); }
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-art { justify-self: end; width: 52%; margin: -8px 0 32px; }
}
h2.label { margin-bottom: 0; }
.projects { margin-top: 8px; }
.hero > .avail { margin-top: 0; justify-self: start; }
.section-intro + .process { margin-top: 8px; }
.contact > .process-lead + .section-intro { margin-top: 0; }
@media (min-width: 1024px) {
  /* Hero: asymmetric composition. Headline 1–8, open column 9, illustration field 10–12,
     intro offset one column to sit inside the headline's left edge. */
  .hero { padding-block: 112px 72px; }
  .hero > h1 { grid-column: 1 / span 8; grid-row: 1; font-size: clamp(40px, 3.9vw, 56px); line-height: 1.12; margin-bottom: 40px; }
  .hero > p { grid-column: 1 / span 7; font-size: 18px; line-height: 1.6; }
  .hero > p:nth-of-type(1) { grid-row: 2; }
  .hero > p:nth-of-type(2) { grid-row: 3; }
  .hero > .avail { grid-column: 1 / span 7; grid-row: 4; margin-top: 8px; }
  .hero > .hero-art { grid-column: 9 / span 4; grid-row: 1 / span 4; align-self: center; justify-self: stretch; width: 100%; margin: 0; position: relative; top: -24px; }
  .wrap > .process-lead, .wrap > .section-intro { grid-column: 1 / span 8; }
  .contact > p, .contact > .contact-line { grid-column: 1 / span 8; }
  .wrap > .process, .wrap > dl.tools { grid-column: 1 / span 10; }
  .wrap > .rows { grid-column: 1 / span 8; }
}
/* Recent Projects: editorial layout.
   Desktop: rail (number + meta) 1–2 · title 3–11 · narrative 3–8 · open column 9 · insight/evidence 10–12 ·
   artifacts 3–12. Smaller screens stack in reading order. */
.project { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 48px; border-bottom: 1px solid var(--rule); }
.project > * { min-width: 0; }
.p-rail { display: contents; }
.num { order: 0; font-family: var(--mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.p-title { order: 1; margin: 0; font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; max-width: 30ch; }
.project .p-meta { order: 2; margin: 8px 0 20px; font-size: 15px; color: var(--muted); max-width: none; }
.p-meta span + span::before { content: " · "; }
.p-main { order: 3; }
.p-main > :last-child { margin-bottom: 0; }
.p-aside { order: 4; margin-top: 28px; max-width: var(--measure); }
.p-evidence { order: 5; margin-top: 24px; }
.project > .tags { order: 6; }
.p-evidence details.more { margin: 0; }
.p-evidence > * + * { border-top: 0; }
.insight { border-top: 2px solid var(--accent); padding-top: 12px; }
.insight p { margin: 8px 0 0; font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); max-width: 34ch; text-wrap: pretty; }
.p-aside .highlights { margin: 28px 0 0; }
.p-aside .results { grid-template-columns: 1fr; gap: 12px; }
.p-aside .impact-wrap { max-width: none; }
.stats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.stats li { border-top: 1px solid var(--rule); padding-top: 10px; }
.stats .fig { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stats .lab { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.p-aside > .hl-label:first-child { display: block; border-top: 2px solid var(--accent); padding-top: 12px; }
@media (min-width: 640px) and (max-width: 1023px) {
  .p-aside .results, .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .project { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 72px; }
  .p-rail { display: block; grid-column: 1 / span 2; grid-row: 1 / span 3; padding-top: 6px; }
  .num { display: block; margin-bottom: 14px; }
  .project .p-meta { margin: 0; font-size: 14px; line-height: 1.5; }
  .p-meta span { display: block; }
  .p-meta span + span::before { content: none; }
  .p-meta span:first-child { color: var(--fg); font-weight: 500; }
  .p-meta span:last-child { font-family: var(--mono); font-size: 13px; margin-top: 6px; }
  .p-title { grid-column: 3 / span 9; grid-row: 1; margin-bottom: 28px; }
  .p-main { grid-column: 3 / span 6; grid-row: 2; }
  .p-aside { grid-column: 10 / span 3; grid-row: 2; margin-top: 4px; align-self: start; }
  .p-evidence { grid-column: 3 / -1; grid-row: 3; margin-top: 36px; }
  .project > .tags { grid-column: 3 / span 8; grid-row: 4; margin-top: 20px; }
  .insight p { font-size: 19px; }
}
/* Approach: lead statement + Discovery illustration */
#approach .process-lead { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; margin-top: 28px; }
#approach .process-lead + .section-intro { margin-top: 10px; text-wrap: pretty; }
.approach-art { width: min(62%, 230px); margin: 28px 0 8px; }
.discovery { display: block; width: 100%; height: auto; }
.discovery .d-line { fill: none; stroke: var(--ill-ink); stroke-width: 1.1px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.discovery .d-dash { fill: none; stroke: var(--ill-ink); stroke-width: 1.1px; vector-effect: non-scaling-stroke; stroke-dasharray: 5 7; opacity: 0.75; }
.discovery .d-green { fill: var(--ill-green); }
.discovery .d-ink { fill: var(--ill-ink); }
.discovery .d-neutral { fill: var(--ill-neutral); }
@media (min-width: 640px) {
  #approach > h2.label { grid-row: 1; }
  #approach > .process-lead { grid-column: 1 / span 8; grid-row: 2; }
  #approach > .section-intro { grid-column: 1 / span 8; grid-row: 3; }
  /* Row 4 is an empty flexible spacer: it absorbs the illustration's extra height
     so the lead and supporting sentence stay together. */
  #approach { grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; }
  #approach > .approach-art { grid-column: 9 / span 4; grid-row: 2 / span 3; align-self: start; justify-self: end; width: 100%; max-width: 260px; margin: 28px 0 24px; }
  #approach > .process { grid-row: 5; }
  #approach > dl.tools { grid-row: 6; }
}
@media (min-width: 1024px) {
  #approach > .process-lead, #approach > .section-intro { grid-column: 1 / span 7; }
  #approach > .approach-art { grid-column: 10 / span 3; max-width: 300px; margin: 24px 0 28px; }
}
/* Project illustrations (left rail) */
.p-art { display: none; }
.uncertainty { display: block; width: 100%; height: auto; }
/* Finer than Discovery's 1.1px: this drawing packs more overlapping lines into a smaller space,
   so a lighter, softened charcoal keeps the two at the same perceived weight. */
.uncertainty .u-line { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.78; stroke-width: 0.85px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.uncertainty .u-dash { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.6; stroke-width: 0.85px; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.uncertainty .u-green { fill: var(--ill-green); }
.uncertainty .u-neutral { fill: var(--ill-neutral); }
.uncertainty .u-small { fill: var(--muted); opacity: 0.4; }
@media (min-width: 640px) and (max-width: 1023px) {
  .p-art { display: block; order: 4; width: 200px; max-width: 45%; margin: 32px 0 0; }
}
@media (min-width: 1024px) {
  .p-art { display: block; width: 100%; max-width: 190px; margin-top: 56px; }
}
/* Systems (MyRekord): same delicacy as Uncertainty */
.systems { display: block; width: 100%; height: auto; }
.systems .s-line { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.78; stroke-width: 0.85px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.systems .s-dash { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.6; stroke-width: 0.85px; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.systems .s-ridge path { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.55; stroke-width: 0.6px; vector-effect: non-scaling-stroke; }
.systems .s-ridge-green path { stroke: var(--ill-green); stroke-opacity: 0.85; }
.systems .s-print { fill: var(--ill-neutral); fill-opacity: 0.45; }
.systems .s-green { fill: var(--ill-green); }
.systems .s-neutral { fill: var(--ill-neutral); }
.systems .s-pale { fill-opacity: 0.7; }
/* Context (Koya) */
.context { display: block; width: 100%; height: auto; }
.context .c-line { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.78; stroke-width: 0.85px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.context .c-dash { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.6; stroke-width: 0.85px; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.context .c-ridge path { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.7; stroke-width: 0.6px; vector-effect: non-scaling-stroke; }
.context .c-green { fill: var(--ill-green); fill-opacity: 0.88; }
.context .c-neutral { fill: var(--ill-neutral); fill-opacity: 0.65; }
.context .c-dot-green { fill: var(--ill-green); }
.context .c-ink { fill: var(--ill-ink); }
/* Clarity (Adopture) */
.clarity { display: block; width: 100%; height: auto; }
.clarity .k-line { fill: none; stroke: var(--ill-ink); stroke-opacity: 0.78; stroke-width: 0.85px; vector-effect: non-scaling-stroke; }
.clarity .k-ridge path { fill: none; stroke: var(--ill-green); stroke-opacity: 0.8; stroke-width: 0.6px; vector-effect: non-scaling-stroke; }
.clarity .k-ridge-light path { stroke: var(--bg); stroke-opacity: 0.75; }
.clarity .k-neutral { fill: var(--ill-neutral); fill-opacity: 0.65; }
.clarity .k-green { fill: var(--ill-green); fill-opacity: 0.88; }
.clarity .k-pale { fill: var(--bg); fill-opacity: 0.82; }
.clarity .k-dot-green { fill: var(--ill-green); }
.clarity .k-ink { fill: var(--ill-ink); }
/* Horizontal scroll regions: hint, edge fade, keyboard focus */
.scroll-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }
.project .scroll-hint { margin: 0 0 8px; max-width: none; }
.scroll-hint[hidden] { display: none; }
[data-scroll]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-scroll].is-overflowing { --fade-l: 0px; --fade-r: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%); }
[data-scroll].is-overflowing.is-scrolled { --fade-l: 24px; }
[data-scroll].is-overflowing.at-end { --fade-r: 0px; }
/* Phones: the MVP table stacks into labelled rows instead of scrolling */
@media (max-width: 639px) {
  .insight-map table, .insight-map tbody, .insight-map tr, .insight-map td, .insight-map caption { display: block; width: 100%; min-width: 0; }
  .insight-map thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .insight-map tr { padding-block: 12px; border-bottom: 1px solid var(--rule); }
  .insight-map tr:first-child { border-top: 1px solid var(--fg); }
  .insight-map td { border: 0; padding: 3px 0; }
  .insight-map td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
}
/* Polish: left-column labels wrap cleanly */
.p-meta span { text-wrap: balance; }

/* Education: same rail as projects (year left, credential and school in the main column) */
@media (min-width: 1024px) {
  #background > .rows { grid-column: 1 / -1; margin-top: 8px; }
  #background .rows li { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 4px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
  #background .rows li:last-child { border-bottom: 0; }
  #background .rows .when { grid-column: 1 / span 2; grid-row: 1 / span 2; padding-top: 4px; }
  #background .rows .what { grid-column: 3 / span 6; grid-row: 1; font-size: 19px; letter-spacing: -0.01em; }
  #background .rows .where { grid-column: 3 / span 6; grid-row: 2; }
}

/* Contact: echo the Approach lead, give the address more presence */
#contact .process-lead { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; margin: 28px 0 0; }
#contact .process-lead + .section-intro { margin-top: 12px; max-width: 60ch; text-wrap: pretty; }
#contact .contact-line { margin-top: 32px; font-size: clamp(20px, 2vw, 24px); }
#contact { padding-block: 40px 72px; }
@media (min-width: 1024px) {
  #contact > .process-lead, #contact > .section-intro, #contact > .contact-line, #contact > .contact-alt { grid-column: 1 / span 7; }
}
/* Resume links */
nav a.nav-resume { color: var(--accent); }
.contact-alt .sep { margin: 0 10px; color: var(--muted); }


/* ---------- Phase 1: shared header with mobile menu ---------- */
header.site .wrap { align-items: center; }
.site-nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu-toggle { display: none; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 500; color: var(--fg);
  background: transparent; border: 1px solid var(--rule); border-radius: 3px; padding: 8px 14px; cursor: pointer; }
.menu-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.menu-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle:focus-visible, .btn:focus-visible, .design-link:focus-visible, .site-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media (max-width: 759px) {
  .js .menu-toggle { display: inline-flex; }
  .js header.site .site-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; font-size: 16px; margin-top: 8px; border-bottom: 1px solid var(--rule); }
  .js header.site .site-nav.is-open { display: flex; }
  .js header.site .site-nav a { padding-block: 13px; border-top: 1px solid var(--rule); color: var(--fg); }
  .js header.site .site-nav a.nav-resume { color: var(--accent); }
  .js header.site .site-nav a[aria-current="page"] { text-underline-offset: 5px; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle::after { transition: none; } }

/* ---------- Phase 1: link to the design pathway, under the availability line ---------- */
.design-link { justify-self: start; display: inline-flex; gap: 6px; margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }
.design-link:hover { text-decoration-thickness: 2px; }
@media (min-width: 1024px) { .hero > .design-link { grid-column: 1 / span 7; grid-row: 5; } }

/* ---------- Phase 1: buttons (first filled button on the site) ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 3px; font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.2; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn-secondary { border-color: var(--rule); color: var(--fg); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Phase 1: /design page ---------- */
.d-hero { padding-block: 88px 56px; }
.d-hero > * { grid-column: 1 / -1; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.d-hero h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.18; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 28px; text-wrap: balance; }
.d-hero .d-intro { margin: 0; max-width: var(--measure); color: var(--muted); }
.d-hero .d-intro strong { color: var(--fg); }
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.d-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 56px; }
.d-card { min-width: 0; display: flex; flex-direction: column; }
.d-card .d-media { margin: 0 0 22px; aspect-ratio: 1400 / 983; max-width: 100%; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: var(--panel); }
.d-card .d-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.d-card .d-media.d-placeholder { background: var(--tag-bg); }
.d-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; text-align: center; background: var(--tag-bg); border: 0; }
.d-phones { display: flex; gap: 12px; align-items: flex-end; }
.d-phones span { width: 52px; height: 104px; border: 1.5px dashed var(--muted); border-radius: 10px; opacity: 0.55; }
.d-phones span:nth-child(2) { height: 112px; }
.d-placeholder-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); max-width: 32ch; line-height: 1.5; }
.d-placeholder-label strong { display: block; color: var(--fg); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.d-card h3 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.d-card .d-meta { margin: 6px 0 14px; font-size: 15px; color: var(--muted); }
.d-card p.d-desc { margin: 0 0 18px; max-width: var(--measure); }
.d-cta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pending-link { font-size: 15px; font-weight: 500; color: var(--muted); }
.pending-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); border-radius: 3px; padding: 3px 8px; }
#selected-work, #work-with-me { scroll-margin-top: 16px; }
.d-contact { padding-block: 40px 88px; }
.d-contact .process-lead { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.015em; max-width: 34ch; margin: 28px 0 0; font-weight: 500; }
.d-contact .d-actions { margin-top: 28px; }
@media (min-width: 900px) {
  .d-cards { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
}
@media (min-width: 1024px) {
  .d-hero { padding-block: 112px 72px; }
  .d-hero h1 { grid-column: 1 / span 8; font-size: clamp(40px, 3.9vw, 56px); line-height: 1.12; margin-bottom: 40px; }
  .d-hero .d-intro, .d-hero .d-actions, .d-hero .eyebrow { grid-column: 1 / span 7; }
  .d-hero .d-intro { font-size: 18px; line-height: 1.6; }
  .d-contact > .process-lead, .d-contact > .d-actions { grid-column: 1 / span 7; }
}

/* ---------- MyRekord pass ---------- */
.d-card .d-media.d-media-full { aspect-ratio: auto; position: relative; background: #eef3f2; }
.d-card .d-media.d-media-full img { height: auto; object-fit: contain; }
.d-roles { display: none; }
@media (max-width: 599px) {
  /* The labels inside the image get too small to read on phones, so repeat them as text under each dashboard. */
  .d-roles { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 8px 0 10px; background: #eef3f2; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ill-green); text-align: center; }
  .d-roles span:last-child { grid-column: 3; }
}
.d-link { font-size: 15px; font-weight: 500; color: var(--accent); text-decoration: none; }
.d-link:hover { text-decoration: underline; text-underline-offset: 3px; }
a.field-link.field-link-internal::before { content: "→"; }
#myrekord-research { scroll-margin-top: 16px; }

.cs-crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; font-size: 15px; font-weight: 500; }
.cs-crumbs > a { grid-column: auto; }
.cs-crumbs a { color: var(--accent); text-decoration: none; }
.cs-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-hero { padding-block: 56px 40px; }
.cs-hero h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.18; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance; }
.cs-meta { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.cs-intro { margin: 0; max-width: var(--measure); }
.cs-section { padding-block: 48px; border-top: 1px solid var(--rule); }
.cs-kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.cs-section h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 18px; }
.cs-body { margin: 0; max-width: var(--measure); }
.cs-frames { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); }
.cs-frame figure, .cs-roles figure { margin: 0; }
.cs-shot { aspect-ratio: 9 / 19.5; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--panel); }
.cs-shot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cs-pending { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; background: var(--tag-bg); border: 1.5px dashed var(--muted); }
.cs-pending-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); line-height: 1.5; }
.cs-pending-label strong { display: block; color: var(--fg); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.cs-frame figcaption, .cs-roles figcaption { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.cs-step { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.cs-ui { font-weight: 500; }
.cs-note { margin: 28px 0 0; max-width: var(--measure); padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); }
.cs-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gutter); margin-top: 32px; max-width: 640px; }
.cs-roles .cs-shot { aspect-ratio: 436 / 968; }
.cs-next { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 48px 88px; border-top: 1px solid var(--rule); }
.cs-next > a { grid-column: auto; }
@media (min-width: 760px) {
  .cs-frames-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cs-frames-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 75%; }
}
@media (min-width: 1024px) {
  .cs-hero { padding-block: 72px 56px; }
  .cs-hero h1 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.12; }
  .cs-hero > *:not(h1) { grid-column: 1 / span 7; }
  .cs-hero h1 { grid-column: 1 / span 9; }
  .cs-section { padding-block: 64px; }
  .cs-intro { font-size: 18px; line-height: 1.6; }
}
/* Phone: show one frame at a readable size and swipe through the sequence. */
.cs-swipe { display: none; }
@media (max-width: 759px) {
  .cs-frames { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--margin) * -1); padding: 0 var(--margin) 12px; scroll-padding-inline: var(--margin); }
  .cs-frames > li { flex: 0 0 74%; scroll-snap-align: start; }
  .cs-frames:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .cs-swipe { display: block; margin: 24px 0 -16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
}
/* Device frames: the exports include their own bezel, so drop the placeholder box. Shown near native size (284px) to stay sharp. */
.cs-shot.cs-device { aspect-ratio: 284 / 604; border: 0; border-radius: 0; background: none; max-width: 284px; }

/* ---------- MyRekord pass 2: hero image, desktop operations ---------- */
.cs-hero-media { margin: 32px 0 0; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: #eef3f2; }
.cs-hero-media img { display: block; width: 100%; height: auto; }
.cs-hero .cs-intro + .cs-intro { margin-top: 16px; }
.cs-section h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 4px; }
.cs-sub { margin-top: 48px; }
.cs-sub:first-of-type { margin-top: 40px; }
.cs-desk-pair { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 28px; }
.cs-desk-pair figure, .cs-wide { margin: 0; }
.cs-desk { max-width: 344px; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: #fff; }
.cs-desk img { display: block; width: 100%; height: auto; }
.cs-desk-pair figcaption, .cs-wide figcaption { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.cs-wide { margin-top: 24px; }
.cs-wide-scroll { max-width: 754px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.cs-wide-scroll img { display: block; width: 752px; max-width: none; height: auto; }
.cs-wide-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-swipe-wide { margin: 0 0 10px; }
@media (min-width: 760px) {
  .cs-desk-pair { grid-template-columns: repeat(2, max-content); gap: 0 var(--gutter); align-items: start; }
  .cs-desk-pair > li { width: 344px; }
}
@media (min-width: 1024px) {
  .cs-hero { align-items: start; }
  .cs-hero > .cs-hero-text { grid-column: 1 / span 6; }
  .cs-hero > .cs-hero-media { grid-column: 7 / span 6; margin-top: 8px; }
  .cs-hero-text > * { max-width: none; }
  .cs-hero h1 { font-size: clamp(36px, 3.4vw, 48px); }
}

/* ---------- MyRekord pass 3 ---------- */
a.field-link.field-link-next::before { content: none; }
a.field-link.field-link-next span { font-family: var(--mono); font-size: 14px; }
.cs-desk-pair figcaption.cs-desk-label { margin: 0 0 12px; }
.cs-wide figcaption { max-width: var(--measure); color: var(--muted); padding-left: 16px; border-left: 2px solid var(--accent); margin-top: 16px; }
.cs-detail { display: none; }
@media (max-width: 759px) {
  /* Phones: a contiguous crop of the right-hand columns at native size, above the scrollable full view. */
  .cs-detail { display: block; margin-bottom: 24px; }
  .cs-detail .cs-desk-label { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
  .cs-detail img { display: block; width: 278px; max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
}

/* ---------- MyRekord pass 4: deck material ---------- */
.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px var(--gutter); margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.cs-facts div { min-width: 0; }
.cs-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cs-facts dd { margin: 0; font-size: 15px; line-height: 1.4; }
.cs-flow { margin-top: 32px; }
.cs-flow .cs-wide-scroll { max-width: 920px; }
.cs-flow .cs-wide-scroll img { width: 100%; min-width: 0; }
.cs-desk-lead { margin: 24px 0 32px; }
.cs-desk-lead .cs-desk-label, .cs-step-label { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.cs-desk-lead .cs-wide-scroll img { width: 752px; }
.cs-results { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr; max-width: 640px; }
.cs-results .fig { white-space: nowrap; }
.cs-evolve { margin-top: 36px; }
.cs-shot.cs-lofi { aspect-ratio: 371 / 810; max-width: 284px; border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
@media (min-width: 760px) {
  .cs-results { grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
  .cs-evolve > li { width: 284px; }
}
@media (max-width: 759px) {
  .cs-flow .cs-wide-scroll img { width: 680px; max-width: none; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
}
.cs-wide figcaption.cs-desk-label { border: 0; padding: 0; color: var(--fg); max-width: none; margin: 0 0 12px; }

/* ---------- MyRekord pass 5 ---------- */
.cs-stages { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 16px; max-width: var(--measure); }
.cs-stages li { padding-left: 16px; border-left: 2px solid var(--rule); }
.cs-support { margin: 28px 0 0; max-width: 376px; }
.cs-support img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.cs-support figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (min-width: 760px) { .cs-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 920px; gap: var(--gutter); } }

/* ---------- MyRekord pass 6: visual polish ---------- */
/* Workflow diagram */
.fm { margin-top: 32px; }
.fm-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.fm-stage { border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--panel); padding: 20px 20px 22px; }
.fm-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 6px; }
.fm-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
.fm-actor { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.fm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fm-steps li { font-size: 15px; line-height: 1.35; padding: 7px 10px; border-radius: 4px; background: var(--bg); border: 1px solid var(--rule); }
.fm-steps li.fm-out, .fm-steps li.fm-in { border-color: var(--accent); background: var(--accent); color: var(--bg); font-weight: 500; }
.fm-steps li.fm-opt { border: 1.5px dashed var(--accent); background: transparent; color: var(--fg); }
.fm-steps li.fm-opt span { color: var(--muted); }
.fm-link { display: flex; align-items: center; gap: 10px; padding: 10px 0 10px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }
.fm-arrow { position: relative; width: 2px; height: 28px; background: var(--accent); flex: none; }
.fm-arrow::after { content: ""; position: absolute; left: -4px; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
.fm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.fm-key { display: inline-block; width: 18px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: -6px; }
.fm-key-solid { background: var(--accent); }
.fm-key-dash { border: 1.5px dashed var(--accent); }
@media (min-width: 900px) {
  .fm-stages { grid-template-columns: minmax(0,1fr) 92px minmax(0,1fr) 92px minmax(0,1fr); align-items: stretch; }
  .fm-link { flex-direction: column; justify-content: center; padding: 0 6px; text-align: center; gap: 8px; }
  .fm-arrow { width: 100%; height: 2px; }
  .fm-arrow::after { left: auto; right: -2px; bottom: -4px; border: 5px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
}
/* Full-view disclosures */
details.cs-full { margin-top: 12px; }
details.cs-full > summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--accent); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.cs-full > summary::-webkit-details-marker { display: none; }
details.cs-full > summary::before { content: "+"; font-family: var(--mono); }
details.cs-full[open] > summary::before { content: "−"; }
details.cs-full > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
details.cs-full > div { margin-top: 12px; }
details.cs-full .cs-wide-scroll { max-width: 100%; }
/* Mobile annotation */
.cs-marked { position: relative; }
.cs-mark { position: absolute; border: 2px solid var(--accent); border-radius: 999px; box-shadow: 0 0 0 3px rgba(255,255,255,.75); pointer-events: none; }
.cs-mark .cs-dot { position: absolute; top: -11px; right: -11px; }
.cs-mark-dot { border: 0; box-shadow: none; width: 0; height: 0; }
.cs-mark-dot .cs-dot { top: -11px; left: -11px; right: auto; box-shadow: 0 0 0 2px #fff; }
.cs-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 500; flex: none; }
.cs-annot { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; max-width: var(--measure); font-size: 15px; line-height: 1.45; }
.cs-annot .cs-dot { margin-top: 1px; }
.cs-frames { row-gap: 28px; }
.cs-frame figcaption { margin-top: 14px; }
/* Desktop figures */
.dk-label { margin: 0 0 12px; font-size: 15px; line-height: 1.4; color: var(--fg); }
.dk-panel { border: 1px solid var(--rule); border-radius: 6px; background: #fff; overflow: hidden; }
.dk-panel img { display: block; width: 100%; height: auto; }
.dk-panel img.dk-native { width: auto; max-width: none; }
.dk-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 920px; }
.dk-item figure { margin: 0; }
.dk-admin { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
.dk-admin figure { margin: 0; }
.dk-primary .cs-wide-scroll { max-width: 672px; overflow-x: auto; }
.dk-support { max-width: 300px; }
.dk-support-text { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dk-primary .cs-note { margin-top: 20px; }
@media (min-width: 760px) {
  .dk-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .dk-grid .dk-wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .dk-admin { grid-template-columns: minmax(0, 672px) 260px; gap: 48px; align-items: start; }
}
/* Matched comparison */
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 20px var(--gutter); margin-top: 36px; align-items: start; }
.cmp-item { margin: 0; }
.cmp-frame { aspect-ratio: 260 / 370; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; }
.cmp-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cmp-frame.cs-marked { overflow: visible; }
.cmp-frame.cs-marked img { border-radius: 9px; }
.cmp-notes { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; max-width: var(--measure); }
.cmp-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
@media (max-width: 420px) { .cmp { gap: 16px 12px; } .cmp .dk-label { font-size: 13px; } }
.dk-admin { grid-template-columns: minmax(0, 1fr); }
.dk-admin > figure, .dk-grid > li { min-width: 0; }
@media (min-width: 1100px) { .dk-admin { grid-template-columns: minmax(0, 672px) 260px; } }

/* Phone frames: one consistent device treatment for every walkthrough screen */
.cs-shot.cs-phone { aspect-ratio: 600 / 1350; max-width: 284px; border: 7px solid #1b1d22; border-radius: 30px; background: #fff; overflow: hidden; box-sizing: border-box; }
.cs-shot.cs-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs-shot.cs-phone.cs-marked { overflow: visible; }
.cs-shot.cs-phone.cs-marked img { border-radius: 23px; }
.cs-annot { max-width: 72ch; }

/* Sharp desktop exports */
.dk-grid { max-width: 1040px; }
.dk-primary .cs-wide-scroll { max-width: 920px; }
.dk-panel img.dk-table { width: 920px; max-width: none; height: auto; }
.cs-detail img { width: 300px; }
@media (min-width: 1100px) { .dk-admin { grid-template-columns: minmax(0, 920px) 260px; } }
@media (min-width: 1320px) { .dk-admin { grid-template-columns: 920px 260px; } }
@media (max-width: 1319px) and (min-width: 1100px) { .dk-admin { grid-template-columns: minmax(0,1fr); } }

/* Lab technician frames: one column so table text stays readable */
.dk-grid { grid-template-columns: 1fr !important; max-width: 880px; }
.dk-grid > li:nth-child(3) .dk-panel { max-width: 720px; }

/* ---------- Follow one order ---------- */
.fo-home { margin: 24px 0 0; max-width: 340px; }
.fo-home figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.fo { margin: 32px 0 0; display: grid; grid-template-columns: 1fr; gap: 0; max-width: 880px; }
.fo-qpanel { position: relative; overflow: visible; }
.fo-qpanel img { border-radius: 5px; }
.fo-row { position: absolute; left: -3px; right: -3px; top: 53%; height: 15%; border: 2px solid var(--accent); border-radius: 4px; background: rgba(29,107,102,.08); box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.fo-link { display: flex; align-items: center; gap: 10px; padding: 12px 0 12px 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--accent); }
.fo-line { position: relative; width: 2px; height: 32px; background: var(--accent); flex: none; }
.fo-line::after { content: ""; position: absolute; left: -4px; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
.fo-dpanel { position: relative; overflow: visible; box-shadow: 0 10px 30px rgba(27,29,34,.12); }
.fo-dpanel img { border-radius: 5px; }
.fo-full { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
.fo-full details.cs-full { flex: 1 1 100%; margin-top: 0; }
.fo-full details.cs-full:not([open]) { flex: 0 0 auto; }
.fo-queue, .fo-detail { min-width: 0; }
@media (min-width: 760px) {
  .fo { grid-template-columns: 300px 80px minmax(0, 1fr); align-items: start; }
  .fo-link { flex-direction: column; justify-content: center; padding: 0; gap: 6px; margin-top: calc(34px + 300px * 565 / 638 * 0.605); transform: translateY(-50%); }
  .fo-line { width: 100%; height: 2px; }
  .fo-line::after { left: auto; right: -2px; bottom: -4px; border: 5px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
  .fo-detail { margin-top: 56px; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fo-row { box-shadow: none; } }
@media (min-width: 760px) {
  .fo-link { transform: none; justify-content: flex-start; margin-top: calc(58px + 300px * 565 / 638 * 0.605 - 1px); }
}
.fo-qpanel { max-width: 300px; }

/* Closing section */
#next-h + .cs-body + .cs-body { margin-top: 16px; }
.cs-next-h { margin: 36px 0 0 !important; }
.cs-refine { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; max-width: var(--measure); counter-reset: r; }
.cs-refine li { position: relative; padding-left: 40px; line-height: 1.55; counter-increment: r; }
.cs-refine li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.cs-refine strong { font-weight: 500; }
@media (min-width: 900px) { .cs-refine { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 1040px; gap: var(--gutter); } .cs-refine li { padding-left: 0; padding-top: 26px; border-top: 1px solid var(--rule); } .cs-refine li::before { top: 8px; } }

/* ---------- Adopture case study ---------- */
#adopture-research { scroll-margin-top: 16px; }
.ad-slot { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; background: var(--tag-bg); border: 1.5px dashed var(--muted); border-radius: 6px; width: 100%; }
.ad-ba, .ad-pair { display: grid; grid-template-columns: 1fr; gap: 28px var(--gutter); margin-top: 32px; max-width: 1040px; }
.ad-ba figure, .ad-pair figure, .ad-cast figure { margin: 0; min-width: 0; }
.ad-research { margin-top: 24px; max-width: 420px; }
.ad-frames { display: grid; grid-template-columns: 1fr; gap: 20px var(--gutter); margin-top: 32px; max-width: 1040px; }
.ad-frame { margin: 0; border: 1px solid var(--rule); border-radius: 6px; padding: 20px; background: var(--panel); }
.ad-frame figcaption { font-size: 18px; font-weight: 500; margin-bottom: 18px; }
.ad-frame-entry { border-top: 3px solid var(--accent); }
.ad-frame-note { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.ad-stair { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; height: 150px; }
.ad-step { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; border-radius: 4px 4px 0 0; background: var(--rule); color: var(--muted); font-size: 14px; font-weight: 500; }
.ad-step.s1 { height: 34%; background: var(--muted); color: var(--bg); } .ad-step.s2 { height: 64%; } .ad-step.s3 { height: 100%; }
.ad-you { position: absolute; left: 0; top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.ad-you::after { content: " ↓"; }
.ad-entry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 150px; align-items: end; }
.ad-door { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; padding-bottom: 10px; border: 1.5px solid var(--accent); border-radius: 6px; color: var(--accent); font-size: 14px; font-weight: 500; background: var(--bg); }
.ad-door i { position: absolute; top: 12px; left: 50%; width: 2px; height: 46px; background: var(--accent); transform: translateX(-50%); }
.ad-door i::after { content: ""; position: absolute; left: -4px; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--accent); border-bottom: 0; }
.ad-after { margin-top: 28px !important; }
.ad-sys { display: grid; grid-template-columns: 1fr; gap: 48px var(--gutter); margin-top: 36px; }
.ad-block h3, .ad-rules h3, .ad-craft h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 14px; }
.ad-block > p, .ad-craft p { margin: 16px 0 0; max-width: var(--measure); }
.ad-swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ad-swatches li { font-size: 14px; line-height: 1.35; }
.ad-swatches .sw { display: block; aspect-ratio: 1 / 1; border-radius: 6px; border: 1px solid var(--rule); margin-bottom: 8px; }
.ad-swatches b { display: block; font-weight: 500; }
.ad-swatches code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ad-type { background: #F5F1EB; color: #20282B; border-radius: 6px; padding: 22px; border: 1px solid var(--rule); }
.ad-type p { margin: 0; }
.ad-t-eyebrow { font-family: Manrope, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #24566B; }
.ad-t-head { font-family: Manrope, sans-serif; font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.02em; margin-top: 10px !important; }
.ad-t-body { font-family: Inter, sans-serif; font-weight: 400; font-size: 15px; line-height: 1.55; margin-top: 12px !important; color: #20282B; }
.ad-current { margin: 0; background: #F5F1EB; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.ad-current svg { display: block; width: 100%; height: auto; }
.ad-current figcaption { padding: 0 16px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: #5d6270; }
.ad-rules { display: grid; grid-template-columns: 1fr; gap: 24px var(--gutter); margin-top: 28px; max-width: 1040px; }
.ad-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.ad-cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 760px; }
.ad-craft { display: grid; grid-template-columns: 1fr; gap: 40px var(--gutter); margin-top: 28px; }
.ad-craft h3 + p { margin-top: 0; }
.ad-craft .ad-slot + p { margin-top: 16px; }
.ad-craft h3:not(:first-child) { margin-top: 32px; }
.ad-pull { margin: 24px 0 0; padding-left: 16px; border-left: 2px solid var(--accent); }
.ad-pull p { margin: 0 !important; font-size: clamp(19px, 2vw, 22px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
@media (min-width: 760px) {
  .ad-ba, .ad-pair, .ad-frames, .ad-rules { grid-template-columns: 1fr 1fr; }
  .ad-pair { grid-template-columns: 2fr 1fr; align-items: start; }
  .ad-ba { align-items: start; }
}
@media (min-width: 1024px) {
  .ad-sys { grid-template-columns: 1fr 1fr; }
  .ad-block-wide { grid-column: 1 / -1; }
  .ad-block-wide > p { max-width: 72ch; }
  .ad-craft { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .ad-swatches { grid-template-columns: repeat(2, minmax(0,1fr)); } .ad-cast { grid-template-columns: 1fr 1fr; } }

.ad-img { margin: 0; }
.ad-cast-lead { margin: 32px 0 0; max-width: 1040px; }
.ad-cast { grid-template-columns: 1fr 1fr !important; max-width: 1040px; gap: 20px var(--gutter); }
.ad-markwrap { position: relative; overflow: visible; }
.ad-markwrap img { border-radius: 5px; }
@media (max-width: 600px) { .ad-cast { grid-template-columns: 1fr !important; } }
.ad-notes { margin-top: 16px; }

.ad-social { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 14px; align-items: end; max-width: 1180px; }
.ad-social figure { margin: 0; }
.ad-social figcaption { margin-top: 10px; font-size: 14px; line-height: 1.4; }
@media (min-width: 900px) { .ad-social { grid-template-columns: 1fr 1fr .8fr .8fr .62fr; } }

/* ---------- Adopture wordmark animation ---------- */
.wm { margin: 0; }
.wm-stage { position: relative; display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); background: #F5F1EB; border: 1px solid var(--rule); border-radius: 6px; min-height: 180px; }
.wm-mark { width: clamp(52px, 7vw, 72px); height: auto; flex: none; }
.wm-text p { margin: 0; }
.wm-word { font-family: Manrope, sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -0.02em; color: #20282B; }
.wm-tag { font-family: Inter, sans-serif; font-weight: 400; font-size: clamp(15px, 2vw, 20px); line-height: 1.3; margin-top: 8px !important; color: #20282B; }
.wm-t2 { color: #6cc3e6; text-shadow: 0 0 6px rgba(141,220,247,.35); }
.wm-l { display: inline-block; }
.wm-replay { position: absolute; right: 12px; bottom: 10px; font: 500 13px/1 var(--sans, inherit); color: #24566B; background: transparent; border: 1px solid rgba(36,86,107,.35); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.wm-replay:hover { border-color: #24566B; }
.wm-replay:focus-visible { outline: 2px solid #24566B; outline-offset: 2px; }
.wm figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@keyframes wm-ignite {
  0% { opacity: 0; color: #8DDCF7; text-shadow: 0 0 14px rgba(141,220,247,.9); transform: translateY(4px); }
  35% { opacity: 1; color: #8DDCF7; text-shadow: 0 0 12px rgba(141,220,247,.8); transform: none; }
  100% { opacity: 1; color: #20282B; text-shadow: 0 0 0 rgba(141,220,247,0); }
}
@keyframes wm-tag-in { 0% { opacity: 0; color: #8DDCF7; text-shadow: 0 0 10px rgba(141,220,247,.8); } 40% { opacity: 1; color: #8DDCF7; } 100% { opacity: 1; color: #20282B; text-shadow: none; } }
@keyframes wm-tag-lit { 0% { opacity: 0; text-shadow: 0 0 10px rgba(141,220,247,.8); } 40% { opacity: 1; color: #8DDCF7; text-shadow: 0 0 10px rgba(141,220,247,.7); } 100% { opacity: 1; color: #6cc3e6; text-shadow: 0 0 6px rgba(141,220,247,.35); } }
.wm-stage.is-playing .wm-l { animation: wm-ignite .62s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
.wm-stage.is-playing .wm-t1 { animation: wm-tag-in .7s ease-out both; animation-delay: .7s; }
.wm-stage.is-playing .wm-t2 { animation: wm-tag-lit .8s ease-out both; animation-delay: .95s; }
@media (prefers-reduced-motion: reduce) { .wm-stage.is-playing .wm-l, .wm-stage.is-playing .wm-t1, .wm-stage.is-playing .wm-t2 { animation: none; } }
