/* Self-hosted fonts (OFL, from Google Fonts): Instrument Sans 400-600 and JetBrains Mono 400-500, variable,
   Latin and Latin Extended subsets. build.mjs puts this file in front of site.css. Files live in public/fonts/. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/instrument-sans-v4-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Instrument Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/instrument-sans-v4-latin.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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-v24-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/jetbrains-mono-v24-latin.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; }

/* arnausalasoler.com: tokens + components. One file for the static generator.
   Generated from the design system. Do not edit by hand; change the design system and regenerate. */
:root {
  --ground: #f3efe6;
  --panel: #ffffff;
  --ink: #141414;
  --ink-soft: #4a4740;
  --yellow: #fbc828;
  --yellow-deep: #e5ae00;
  --footer-text: #d9d4c7;
  --footer-rule: #4a4740;
  --chart-impressions: var(--yellow);
  --chart-clicks: var(--ink);
  --chart-ctr: #55555a;
  --map-blue: #cfe3ff;
  --map-pink: #ffd6dc;
  --map-mint: #cdeedd;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --page-pad: 56px;
  --page-max: 1440px;
  --content-max: 1328px;
  --band-height: 72px;
  --radius-none: 0;
  --shadow-yellow: 6px 6px 0 #fbc828;
  --shadow-ink: 6px 6px 0 #141414;
  --rule-thin: 1px;
  --rule-soft: #e3dfd3;
  --rule-thick: 2px;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Fonts: load Instrument Sans (400, 500, 600) and JetBrains Mono (400, 500) from Google Fonts in the page head. */

/* arnausalasoler.com components. Needs the tokens (tokens.css) loaded first.
   Source of truth for the static site generator: every page is built from these classes only.
   No page-specific CSS. If a page needs something new, it becomes a component here first. */

:root { --pad: clamp(20px, 4vw, var(--page-pad)); --gutter: max(var(--pad), calc((100% - var(--page-max)) / 2 + var(--pad))); }

/* ---------- base ---------- */
.ds-page { background: var(--ground); color: var(--ink); font-family: var(--font-sans); font-size: 18px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.ds-page main { flex: 1 0 auto; }
:where(.ds-page) a { color: inherit; }
:where(.ds-page) :is(h1, h2, h3, h4, p, figure, blockquote) { margin: 0; }
.ds-mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.5; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.ds-soft { color: var(--ink-soft); }
.ds-page .ds-skip, .ds-nowrap { white-space: nowrap; }
.ds-skip { position: absolute; left: var(--space-4); top: -4rem; z-index: 50; background: var(--yellow); color: var(--ink); padding: var(--space-3) var(--space-4); font-weight: 600; }
.ds-skip:focus { top: var(--space-4); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

html, body { margin: 0; }
body { background: var(--ground); }

/* ---------- header ---------- */
.ds-header { background: var(--panel); border-bottom: var(--rule-thick) solid var(--ink); }
.ds-header__in { max-width: var(--page-max); margin-inline: auto; padding: 6px var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 var(--space-6); }
.ds-wordmark { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; padding: 14px 0; }
.ds-wordmark--mark { display: inline-flex; align-items: center; padding: 10px 0; }
.ds-wordmark__mark { display: block; width: 36px; height: 36px; }
.ds-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.ds-nav a { text-decoration: none; padding: 14px 0; display: inline-block; box-shadow: inset 0 -3px 0 transparent; }
.ds-nav a:hover { box-shadow: inset 0 -3px 0 var(--yellow); }
.ds-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }

/* ---------- hero ---------- */
.ds-hero { max-width: var(--page-max); margin-inline: auto; padding: clamp(32px, 5vw, 72px) var(--pad) clamp(28px, 4vw, 48px); }
.ds-hero .ds-mono { margin-bottom: 20px; }
.ds-title { font-weight: 500; font-size: clamp(48px, 7.6vw, 116px); line-height: 0.92; letter-spacing: -0.05em; }
.ds-lead { margin-top: clamp(20px, 2.5vw, 32px); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
/* home poster hero */
.ds-hero--poster { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6) var(--space-7); padding-bottom: 0; }
.ds-name { font-weight: 600; font-size: clamp(68px, 14vw, 208px); line-height: 0.84; letter-spacing: -0.05em; }
.ds-name span { display: block; }
.ds-meta { flex: 1 1 300px; max-width: 460px; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(8px, 1.5vw, 24px); }
.ds-meta__item { display: flex; align-items: center; gap: var(--space-4); }
.ds-meta__role { font-family: var(--font-mono); font-size: clamp(17px, 1.7vw, 24px); font-weight: 500; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase; }
.ds-meta__sub { font-family: var(--font-mono); font-size: clamp(14px, 1.3vw, 18px); line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- band (the waveform / traffic line under every hero) ---------- */
.ds-band { padding: var(--space-2) 0 var(--space-5); }
.ds-band svg, .ds-band picture, .ds-band img { display: block; width: 100%; height: var(--band-height); }
.ds-band--home { margin-top: clamp(28px, 4vw, 48px); }
.ds-band .b-m { display: none; }
@media (max-width: 760px) { .ds-band .b-d { display: none; } .ds-band .b-m { display: block; } }

/* ---------- band drawing classes (paths carry no colour of their own) ---------- */
.ds-band path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ds-band .b-ink { stroke: var(--ink); stroke-width: 2.5; }
.ds-band .b-peak { stroke: var(--yellow); stroke-width: 8; }
.ds-band .b-wave-y { stroke: var(--yellow); stroke-width: 4; }
.ds-band .b-imp { stroke: var(--chart-impressions); stroke-width: 5; }
.ds-band .b-clk { stroke: var(--chart-clicks); stroke-width: 2.5; }
.ds-band .b-ctr { stroke: var(--chart-ctr); stroke-width: 1.5; stroke-dasharray: 6 6; }
.ds-band .b-comp { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 6; }
.ds-audio__wave path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ds-audio__wave .b-ink { stroke: var(--ink); stroke-width: 2.5; }
.ds-audio__wave .b-peak { stroke: var(--yellow); stroke-width: 8; }

/* ---------- statement (home intro) ---------- */
.ds-statement-wrap { max-width: var(--page-max); margin-inline: auto; padding: clamp(32px, 5vw, 72px) var(--pad); }
.ds-statement { font-weight: 500; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -0.03em; }
.ds-statement-wrap .ds-soft { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(18px, 1.6vw, 22px); }

/* ---------- panel list (menu rows, entries, archive) ---------- */
.ds-panel-wrap { padding: 0 0 clamp(40px, 6vw, 88px); }
.ds-panel { width: 100%; background: var(--panel); border-block: var(--rule-thick) solid var(--ink); }
.ds-row { display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr) 48px; align-items: center; column-gap: var(--space-5); row-gap: var(--space-1); padding: var(--space-6) var(--gutter); text-decoration: none; color: inherit; transition: background 0.15s; }
.ds-row + .ds-row { border-top: var(--rule-thick) solid var(--ink); }
.ds-row:hover { background: var(--yellow); }
.ds-row__title { font-weight: 500; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.ds-row--item .ds-row__title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; letter-spacing: -0.03em; }
.ds-row__desc { font-size: 17px; max-width: 40ch; }
.ds-row__arrow { transition: transform 0.15s; }
.ds-row:hover .ds-row__arrow { transform: translateX(8px); }
.ds-status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 500; }
.ds-status::before { content: ""; width: 10px; height: 10px; background: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
.ds-status--soon::before { background: transparent; }

.ds-panel--quiet { border-block: 0; }

/* ---------- phase rows (Experience, inside the panel) ---------- */
.ds-phase { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); column-gap: var(--space-6); row-gap: var(--space-3); padding: 28px var(--gutter); align-items: start; }
.ds-phase + .ds-phase { border-top: var(--rule-thick) solid var(--ink); }
.ds-phase__head { display: flex; flex-direction: column; gap: var(--space-2); }
.ds-phase__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
.ds-phase__body { display: grid; gap: var(--space-6); }
.ds-company__name { font-size: clamp(26px, 2.8vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.ds-company p:not(.ds-mono) { margin-top: var(--space-2); font-size: 18px; }
.ds-company .ds-mono { margin-top: 20px; }
.ds-company__list { margin-top: var(--space-2); font-size: 16px; color: var(--ink-soft); max-width: 60ch; }
.ds-panel--quiet .ds-sec { padding-block: clamp(24px, 3vw, 40px); }
.ds-sec__body .ds-phase { padding: 24px 0; }
.ds-sec__body .ds-phase:first-child { padding-top: 0; }
.ds-sec__body .ds-phase:last-child { padding-bottom: 0; }
@media (max-width: 760px) { .ds-phase { grid-template-columns: minmax(0, 1fr); } }

/* ---------- article sections (margin heading + body) ---------- */
.ds-sec { width: min(100% - 2 * var(--pad), var(--page-max)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding-block: clamp(32px, 4vw, 56px) clamp(40px, 6vw, 88px); }
.ds-sec + .ds-sec { border-top: var(--rule-thick) solid var(--ink); }
.ds-sec__title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.ds-sec__title .ds-mono { margin-bottom: 8px; }
.ds-prose { font-size: 19px; line-height: 1.65; }
.ds-prose > * + * { margin-top: 1.2em; }
.ds-pull { max-width: 22ch; font-weight: 500; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -0.035em; }
@media (min-width: 900px) {
  .ds-sec { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); }
  .ds-sec__title { grid-column: 1 / span 3; position: sticky; top: var(--space-5); align-self: start; }
  .ds-sec__body { grid-column: 4 / -1; min-width: 0; }
}

/* ---------- facts row ---------- */
.ds-facts { border-block: var(--rule-thick) solid var(--ink); }
.ds-facts__in { max-width: var(--page-max); margin-inline: auto; padding: clamp(28px, 3.5vw, 48px) var(--pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px var(--space-6); }
.ds-fact__label { margin-bottom: var(--space-2); }
.ds-fact__value { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- audio excerpt card ---------- */
.ds-audio { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; background: var(--panel); border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-yellow); padding: 14px var(--space-4); width: 100%; max-width: none; box-sizing: border-box; }
.ds-audio__play { flex: none; width: 48px; height: 48px; padding: 0; background: var(--yellow); border: var(--rule-thick) solid var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ds-audio__play:hover { background: var(--ink); }
.ds-audio__play:hover path { fill: var(--yellow); }
.ds-audio__main { flex: 1 1 200px; min-width: 0; }
.ds-audio__label { margin-bottom: 4px; font-size: 12px; }
.ds-audio__wave { display: block; width: 100%; height: 48px; }
.ds-audio__wave.w-m { display: none; }
.ds-audio__time { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }

/* ---------- image placeholder ---------- */
.ds-figure__img { aspect-ratio: 4 / 3; background: var(--ground); border: var(--rule-thick) solid var(--ink); display: flex; align-items: flex-end; padding: var(--space-3); box-sizing: border-box; }
.ds-figure figcaption { margin-top: var(--space-2); font-size: 14px; color: var(--ink-soft); }

/* ---------- catalogue (works without a page of their own) ---------- */
.ds-cat__group { padding: 20px var(--gutter) 8px; }
.ds-cat__group:not(:first-child) { border-top: var(--rule-thick) solid var(--ink); }
.ds-cat__row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.6fr) 32px; align-items: baseline; column-gap: var(--space-5); row-gap: 2px; padding: 10px var(--gutter); }
.ds-cat__row + .ds-cat__row::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: var(--rule-thin) solid var(--rule-soft); }
.ds-cat__title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.ds-cat__desc { font-size: 16px; color: var(--ink-soft); }
.ds-cat__gap { height: 12px; }
a.ds-cat__row { text-decoration: none; color: inherit; transition: background 0.15s; }
a.ds-cat__row:hover { background: var(--yellow); }
.ds-cat__arrow { align-self: center; transition: transform 0.15s; }
a.ds-cat__row:hover .ds-cat__arrow { transform: translateX(6px); }
@media (max-width: 760px) { .ds-cat__row { grid-template-columns: 64px minmax(0, 1fr) 24px; } .ds-cat__desc { grid-column: 2 / 3; } }

/* ---------- media: video, score, album covers ---------- */
.ds-media figcaption { margin-top: var(--space-3); font-size: 14px; color: var(--ink-soft); }
.ds-video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-yellow); }
.ds-video iframe, .ds-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ds-video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ds-video__play span { display: flex; width: 72px; height: 72px; background: var(--yellow); border: var(--rule-thick) solid var(--ink); align-items: center; justify-content: center; }
.ds-video__play:hover span { background: var(--ink); }
.ds-video__play:hover path { fill: var(--yellow); }
.ds-video__label { position: absolute; left: var(--space-4); bottom: var(--space-3); color: var(--footer-text); }
.ds-diagrams__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-5); padding: 0 6px 6px 0; }
.ds-diagram__svg.w-m { display: none; }
@media (max-width: 760px) { .ds-diagram__svg.w-d { display: none; } .ds-diagram__svg.w-m { display: block; } }
.ds-diagram__svg { display: block; width: 100%; height: auto; border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-yellow); }
.ds-still img { display: block; width: 100%; height: auto; border: var(--rule-thick) solid var(--ink); background: var(--ink); }
.ds-score img { display: block; width: 100%; height: auto; border: var(--rule-thick) solid var(--ink); background: var(--panel); }
.ds-covers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-6); }
.ds-cover__img { aspect-ratio: 1 / 1; background: var(--ground); border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-yellow); display: flex; align-items: flex-end; padding: var(--space-3); box-sizing: border-box; }
.ds-cover figcaption { margin-top: 14px; font-size: 15px; line-height: 1.35; }

/* ---------- buttons ---------- */
.ds-btn, .ds-page .ds-btn { display: inline-block; padding: 14px var(--space-5); font: 600 18px/1.2 var(--font-sans); text-decoration: none; border: 0; cursor: pointer; transition: background 0.15s, color 0.15s; background: var(--ink); color: var(--ground); }
.ds-btn:hover, .ds-page .ds-btn:hover { background: var(--ink); color: var(--yellow); }
.ds-btn--yellow, .ds-page .ds-btn--yellow { background: var(--yellow); color: var(--ink); }
.ds-btn--yellow:hover, .ds-page .ds-btn--yellow:hover { background: var(--ink); color: var(--yellow); }

/* ---------- footer ---------- */
.ds-footer { background: var(--ink); color: var(--ground); flex: none; }
.ds-footer__top { max-width: var(--page-max); margin-inline: auto; padding: 22px var(--pad) 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px var(--space-6); }
.ds-footer__name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-decoration: none; }
.ds-footer__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); font-size: 14px; font-weight: 500; }
.ds-footer__nav a { color: var(--ground); text-decoration: none; padding: 6px 0; display: inline-block; box-shadow: inset 0 -3px 0 transparent; }
.ds-footer__nav a:hover { box-shadow: inset 0 -3px 0 var(--yellow); }
.ds-footer__legal { max-width: var(--page-max); margin-inline: auto; padding: 12px var(--pad) 20px; border-top: var(--rule-thin) solid var(--footer-rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-6); font-size: 13px; color: var(--footer-text); }
.ds-footer__legal a { color: var(--yellow); }

/* ---------- about: bio, portrait, actions, stats ---------- */
.ds-bio { width: min(100% - 2 * var(--pad), var(--page-max)); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 5vw, 80px); align-items: flex-start; padding-block: clamp(48px, 7vw, 96px); }
.ds-bio__photo { flex: 0 1 380px; min-width: 240px; width: 100%; max-width: 380px; }
/* ---------- availability badge (About, above the portrait) ---------- */
.ds-badge { display: flex; align-items: center; gap: var(--space-3); box-sizing: border-box; width: 100%; margin-top: var(--space-5); padding: 12px var(--space-4); background: var(--yellow); color: var(--ink); border: var(--rule-thick) solid var(--ink); text-decoration: none; transition: background 0.15s, color 0.15s; }
.ds-badge__dot { flex: none; width: 10px; height: 10px; background: var(--ink); transition: background 0.15s; }
.ds-badge__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ds-badge__mail { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.ds-badge .ds-row__arrow { flex: none; }
.ds-badge:hover { background: var(--ink); color: var(--yellow); }
.ds-badge:hover .ds-badge__dot { background: var(--yellow); }
.ds-badge:hover .ds-row__arrow { transform: translateX(6px); }

.ds-portrait { aspect-ratio: 4 / 5; background: var(--ground); border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-yellow); display: flex; align-items: flex-end; padding: var(--space-4); box-sizing: border-box; }
.ds-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-has-img { padding: 0 !important; display: block !important; }
.ds-bio__text { flex: 1 1 440px; }
.ds-bio__text > * + * { margin-top: 1.1em; }
.ds-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.ds-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px var(--space-6); }
.ds-stat__sub { margin-top: 6px; font-size: 15px; color: var(--ink-soft); max-width: 26ch; }
.ds-ground { background: var(--ground); }
.ds-band + .ds-panel-label { margin-top: var(--space-5); }
.ds-panel-label { box-sizing: border-box; width: 100%; margin: 0 0 12px; padding-inline: var(--gutter); }

/* ---------- list rows that are not links, and the group extras of a role row ---------- */
.ds-row--static:hover { background: transparent; }
.ds-row--static:hover .ds-row__arrow { transform: none; }

/* ---------- previous / next row ---------- */
.ds-next { background: var(--ground); border-top: var(--rule-thick) solid var(--ink); }
.ds-next + .ds-next { border-top: 0; }
.ds-next__in { max-width: var(--page-max); margin-inline: auto; padding: 0 var(--pad); }
.ds-next .ds-row { grid-template-columns: 140px minmax(0, 1fr) 40px; padding: 36px var(--space-4); }
.ds-next .ds-row__title { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
@media (max-width: 760px) { .ds-next .ds-row { grid-template-columns: minmax(0, 1fr) 32px; } .ds-next .ds-row .ds-mono { grid-column: 1 / -1; } .ds-next .ds-row__title { grid-column: 1 / 2; } .ds-next .ds-row__arrow { grid-column: 2 / 3; } }

/* ---------- article lists and sub-headings ---------- */
.ds-list { margin: 0; padding-left: 1.25em; }
.ds-list li + li { margin-top: 0.8em; }
.ds-subhead { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.ds-prose > .ds-subhead { margin-top: 1.8em; }
.ds-prose > .ds-subhead + * { margin-top: 0.6em; }

/* ---------- blockquote (an epigraph or a definition inside an article) ---------- */
.ds-quote { padding: var(--space-4) var(--space-5); background: var(--panel); border: var(--rule-thick) solid var(--ink); font-size: 17px; line-height: 1.55; color: var(--ink-soft);  }

/* ---------- system map (Search Lab diagram) ---------- */
.ds-paper { background-color: var(--ground); background-image: linear-gradient(to right, rgba(20, 20, 20, 0.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(20, 20, 20, 0.07) 1px, transparent 1px); background-size: 32px 32px; border-bottom: var(--rule-thick) solid var(--ink); }
.ds-map-wrap { width: min(100% - 2 * var(--pad), var(--content-max)); margin-inline: auto; padding: clamp(32px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); }
.ds-map-scroll { overflow-x: auto; padding: 8px 8px 24px; }
.ds-map { position: relative; width: 1200px; height: 680px; }
.ds-map__col { position: absolute; top: 0; }
.ds-map__line { position: absolute; background: var(--ink); }
.ds-map__arrow { position: absolute; width: 0; height: 0; border-block: 6px solid transparent; border-left: 9px solid var(--ink); }
.ds-map__arrow--up { border: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--ink); }
.ds-map__node { position: absolute; box-sizing: border-box; padding: 16px 18px; background: var(--panel); border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-ink); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; transition: transform 0.12s, box-shadow 0.12s; }
a.ds-map__node:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.ds-map__node h3 { font-size: 19px; font-weight: 600; line-height: 1.15; }
.ds-map__node p { font-size: 14px; line-height: 1.35; }
.ds-map__node .ds-status { margin-top: auto; font-size: 13px; }
.ds-map__node--blue { background: var(--map-blue); }
.ds-map__node--pink { background: var(--map-pink); }
.ds-map__node--mint { background: var(--map-mint); }
.ds-map__node--yellow { background: var(--yellow); }

/* ---------- responsive ---------- */
/* ---------- row variants ---------- */
.ds-row--status { grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.3fr) 150px 48px; }
.ds-row--work { grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) 48px; padding-block: 28px; }
.ds-row__type { font-size: 16px; color: var(--ink-soft); }
.ds-row--prev:hover .ds-row__arrow { transform: translateX(-8px); }

/* ---------- hero extras, article flow, figure grid ---------- */
.ds-title--long { font-size: clamp(36px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.04em; max-width: 18ch; }
.ds-hero__intro { margin-top: clamp(20px, 2.5vw, 32px); font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); }
.ds-hero .ds-hero__intro + .ds-hero__intro { margin-top: var(--space-3); }
.ds-hero .ds-lead + .ds-hero__intro { margin-top: clamp(16px, 2vw, 24px); }
.ds-flow { font-size: 19px; }
.ds-flow > * + * { margin-top: clamp(24px, 2.6vw, 36px); }
.ds-flow .ds-figs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ds-flow .ds-covers { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-5); }
.ds-flow .ds-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px var(--space-5); }
.ds-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.ds-figure__img img, .ds-cover__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-video__play { z-index: 1; }

@media (max-width: 760px) {
  .ds-row, .ds-row.ds-row--status, .ds-row.ds-row--work { grid-template-columns: 40px minmax(0, 1fr) 32px; }
  .ds-row__desc, .ds-row .ds-status, .ds-row--work .ds-row__type { grid-column: 2 / 3; }
}

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

/* audio card on phones: play button and label on one row, the waveform full width below it */
@media (max-width: 760px) {
  .ds-audio { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "play label time" "wave wave wave"; align-items: center; gap: var(--space-3) var(--space-3); }
  .ds-audio__play { grid-area: play; }
  .ds-audio__main { display: contents; }
  .ds-audio__label { grid-area: label; margin: 0; }
  .ds-audio__time { grid-area: time; }
  .ds-audio__wave.w-d { display: none; }
  .ds-audio__wave.w-m { display: block; grid-area: wave; height: 56px; }
}

/* ---------- article: white reading surface and dateline ---------- */
.ds-article { background: var(--panel); }
.ds-article + .ds-paper { border-top: var(--rule-thick) solid var(--ink); }
.ds-paper + .ds-article { border-top: 0; }
.ds-article .ds-prose { max-width: 68ch; } /* about 70 characters a line at 19px */
/* Pictures in an article line up with the text column (same 68ch at the prose size) and drop the frame. */
.ds-article .ds-still { font-size: 19px; max-width: 68ch; }
.ds-article .ds-still img { border: 0; background: none; }
@media (max-width: 760px) { .ds-article .ds-still { font-size: 17px; } }
.ds-hero .ds-dates { margin: clamp(16px, 2vw, 24px) 0 0; color: var(--ink-soft); }
.ds-dates__by, .ds-dates__when { display: block; }
.ds-dates__when { margin-top: 4px; }
.ds-panel-label h2 { display: inline; font: inherit; letter-spacing: inherit; } /* a real H2 that keeps the label's look */

/* ---------- header on phones: sticky bar, bigger name, collapsible menu ----------
   The menu button only shows when the page script runs (html.js); without it the links stay visible. */
.ds-menu { display: none; }
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .ds-header { position: sticky; top: 0; z-index: 30; }
  .ds-header__in { flex-wrap: nowrap; min-height: 60px; padding-block: 0; }
  .ds-wordmark { font-size: 22px; letter-spacing: -0.02em; padding: 16px 0; }
  .ds-wordmark__mark { width: 40px; height: 40px; }
  .js .ds-menu { display: inline-flex; flex: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; margin: 0 -9px 0 auto; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; }
  .ds-menu__bar { display: block; width: 26px; height: 2.5px; background: currentColor; transition: transform 0.15s, opacity 0.15s; }
  .ds-menu[aria-expanded="true"] .ds-menu__bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .ds-menu[aria-expanded="true"] .ds-menu__bar:nth-child(2) { opacity: 0; }
  .ds-menu[aria-expanded="true"] .ds-menu__bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .js .ds-nav { display: none; }
  .js .ds-header.is-open .ds-nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; gap: 0; background: var(--panel); border-bottom: var(--rule-thick) solid var(--ink); }
  .js .ds-header.is-open .ds-nav a { display: block; padding: 18px var(--pad); font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; box-shadow: none; }
  .js .ds-header.is-open .ds-nav a + a { border-top: var(--rule-thick) solid var(--ink); }
  .js .ds-header.is-open .ds-nav a:hover, .js .ds-header.is-open .ds-nav a[aria-current="page"] { background: var(--yellow); box-shadow: none; }
}

/* ---------- long reading on phones: tighter type, a lead, reading aids ---------- */
@media (max-width: 760px) {
  .ds-flow, .ds-prose { font-size: 17px; }
  .ds-prose { line-height: 1.58; text-wrap: pretty; -webkit-hyphens: auto; hyphens: auto; }
  .ds-prose > * + * { margin-top: 1em; }
  .ds-prose > .ds-subhead { margin-top: 1.5em; }
  .ds-list li + li { margin-top: 0.6em; }
  .ds-title--long { font-size: 34px; }
  .ds-sec__title { font-size: 21px; }
  .ds-hero__intro { font-size: 17px; line-height: 1.58; }
  .ds-hero .ds-hero__intro--lead { font-size: 20px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
}

/* ---------- featured image (Search Lab articles) ----------
   Below 900px: full width under the dateline, ink rules above and below. From 900px: beside the standfirst, with the
   ink border, the hard ink shadow and an optional caption. One of the two is shown; both use one file. */
.ds-feature--phone, .ds-feature--desk { display: none; }
.ds-feature--desk img { display: block; width: 100%; height: auto; border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-ink); background: var(--panel); box-sizing: border-box; }
.ds-feature--desk figcaption { margin-top: var(--space-4); font-size: 14px; color: var(--ink-soft); }
@media (max-width: 899px) {
  .ds-feature--phone { display: block; margin: 24px calc(-1 * var(--pad)) 0; border-block: var(--rule-thick) solid var(--ink); background: var(--panel); }
  .ds-feature--phone img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
}

/* ---------- diagrams from the CMS: vertical on phones ----------
   The wide diagram scrolls sideways; a diagram built from steps also has a stacked version, shown up to 760px instead. */
.ds-map-v, .ds-map-v__loop { display: none; }
@media (max-width: 760px) {
  .ds-map-scroll--wide { display: none; }
  .ds-map-v { display: block; list-style: none; margin: 0; padding: 0 6px 6px 0; }
  .ds-map-v__step { display: grid; gap: 8px; }
  .ds-map-v__step + .ds-map-v__step { position: relative; padding-top: 44px; }
  .ds-map-v__step + .ds-map-v__step::before { content: ""; position: absolute; left: 32px; top: 8px; width: 2px; height: 26px; background: var(--ink); }
  .ds-map-v__step + .ds-map-v__step::after { content: ""; position: absolute; left: 27px; top: 30px; border-inline: 6px solid transparent; border-top: 9px solid var(--ink); }
  .ds-map-v .ds-map__node { position: static; }
  .ds-map-v__loop { display: block; margin: 24px 0 0; padding-top: 12px; border-top: var(--rule-thick) solid var(--ink); }
}
.ds-map__node .ds-map-v__title { font-size: 19px; font-weight: 600; line-height: 1.15; } /* the stacked copy's box titles look like the <h3>s */

/* ---------- "On this page" (Search Lab articles) ----------
   Below 900px: a white box of links above the standfirst. From 900px: the first section of the reading surface
   (.ds-toc), a plain numbered list; the standfirst stops at about 70 characters a line, the featured image beside it. */
.ds-aids { margin-top: 28px; }
.ds-hero .ds-aids .ds-mono { margin-bottom: 0; }
.ds-jump { list-style: none; margin: 10px 0 0; padding: 0; background: var(--panel); border: var(--rule-thick) solid var(--ink); }
.ds-jump li + li { border-top: var(--rule-thick) solid var(--ink); }
.ds-jump a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding: 12px 14px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; text-decoration: none; }
.ds-jump a::after { content: "\2193"; font-family: var(--font-mono); }
.ds-jump a:hover { background: var(--yellow); }
.ds-toc { display: none; }
@media (min-width: 900px) {
  .ds-hero__cols { display: grid; grid-template-columns: minmax(0, 760px) minmax(300px, 1fr); column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  .ds-hero__cols > .ds-aids { display: none; }
  .ds-hero__cols > .ds-hero__text { grid-column: 1; grid-row: 1; max-width: 760px; }
  .ds-hero__cols > .ds-feature--desk { display: block; grid-column: 2; grid-row: 1; max-width: 520px; margin-top: clamp(20px, 2.5vw, 32px); }
  .ds-toc { display: grid; }
  .ds-toc__list { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
  .ds-toc__list li + li { border-top: var(--rule-thin) solid var(--rule-soft); }
  .ds-toc__list a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-4); padding: 12px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; text-decoration: none; }
  .ds-toc__list a::after { content: "\2193"; font-family: var(--font-mono); }
  .ds-toc__list a:hover .ds-toc__text { box-shadow: inset 0 -3px 0 var(--yellow); }
}

/* ---------- hub-and-spokes diagram (CMS diagram type "hub") ----------
   Desktop: the hub card on the left (its tag above it), a line out to a trunk, arrows to each spoke card on the
   right, and an optional feedback card below whose dashed return path enters the hub from underneath. Callouts sit
   on the lines. CSS grid, so cards size to their text. Below 761px: one column, callouts as notes. */
.ds-hub { display: grid; grid-template-columns: minmax(220px, 300px) minmax(150px, 220px) minmax(260px, 420px); padding: 4px 8px 8px 0; }
.ds-hub .ds-map__node { position: static; }
.ds-hub__core { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: 1fr auto 1fr; }
.ds-hub__head { grid-row: 2; }
.ds-hub__tag { display: inline-block; margin: 0 0 10px; padding: 4px 8px; background: var(--ink); color: var(--panel); font-size: 12px; }
.ds-hub__node { padding: 22px 24px; }
.ds-hub__node h3 { font-size: 24px; }
.ds-hub__reads { margin: 2px 0; font-size: 12px; line-height: 1.4; }
.ds-hub__note { margin-top: 8px; padding-top: 8px; border-top: var(--rule-thin) solid var(--rule-soft); font-size: 13px; color: var(--ink-soft); }
.ds-hub__down { grid-row: 3; position: relative; }
.ds-hub__down::before { content: ""; position: absolute; left: 48px; top: 16px; bottom: 0; border-left: var(--rule-thick) dashed var(--ink-soft); }
.ds-hub__up { position: absolute; left: 43px; top: 8px; border-inline: 6px solid transparent; border-bottom: 9px solid var(--ink-soft); }
.ds-hub__link { grid-column: 2; grid-row: 1; align-self: center; position: relative; height: 2px; background: var(--ink); }
.ds-hub__label { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.ds-hub__link .ds-hub__label { position: absolute; left: 16px; right: 16px; bottom: 12px; text-align: center; }
.ds-hub__spokes { grid-column: 3; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.ds-hub__spoke { position: relative; padding: 10px 0 10px 44px; }
.ds-hub__spoke::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.ds-hub__spoke:first-child::before { top: 50%; }
.ds-hub__spoke:last-child::before { bottom: 50%; }
.ds-hub__spoke:only-child::before { display: none; }
.ds-hub__spoke::after { content: ""; position: absolute; left: 0; top: 50%; width: 35px; height: 2px; margin-top: -1px; background: var(--ink); }
.ds-hub__arrow { position: absolute; left: 35px; top: 50%; margin-top: -6px; border-block: 6px solid transparent; border-left: 9px solid var(--ink); }
.ds-hub__return { grid-column: 1 / 3; grid-row: 2; position: relative; padding-top: 32px; }
.ds-hub__return::before { content: ""; position: absolute; left: 48px; top: 0; height: calc(50% + 16px); border-left: var(--rule-thick) dashed var(--ink-soft); }
.ds-hub__return::after { content: ""; position: absolute; left: 48px; right: 0; top: calc(50% + 16px); border-top: var(--rule-thick) dashed var(--ink-soft); }
.ds-hub__label--back { position: absolute; left: 72px; right: 16px; top: calc(50% + 24px); }
.ds-hub__feedback { grid-column: 3; grid-row: 2; position: relative; padding: 32px 0 0 44px; }
.ds-hub__feedback::before { content: ""; position: absolute; left: 0; width: 44px; top: calc(50% + 16px); border-top: var(--rule-thick) dashed var(--ink-soft); }
@media (max-width: 760px) {
  .ds-hub { grid-template-columns: minmax(0, 1fr); padding-right: 6px; }
  .ds-hub > * { grid-column: 1; grid-row: auto; }
  .ds-hub__core { display: block; }
  .ds-hub__down { display: none; }
  .ds-hub__link { height: auto; background: none; margin-left: 20px; padding: 12px 0 4px 14px; border-left: var(--rule-thick) solid var(--ink); }
  .ds-hub__link .ds-hub__label { position: static; text-align: left; }
  .ds-hub__spokes { margin-left: 20px; }
  .ds-hub__spoke { padding-left: 32px; }
  .ds-hub__spoke:first-child::before { top: 0; }
  .ds-hub__spoke::after { width: 23px; }
  .ds-hub__arrow { left: 23px; }
  .ds-hub__feedback { order: 1; padding: 24px 0 0; }
  .ds-hub__feedback::before { display: none; }
  .ds-hub__return { order: 2; padding: 12px 0 0; }
  .ds-hub__return::before, .ds-hub__return::after { display: none; }
  .ds-hub__label--back { position: static; }
  .ds-hub__label--back::before { content: "\21BA  "; }
}

/* ---------- links in running text ----------
   A thick yellow underline (the brand colour as a line, never as text); on hover the yellow fills behind the words.
   Only plain links inside text: buttons, rows, navigation and other classed links keep their own look. */
:where(.ds-prose, .ds-hero__intro, .ds-lead, .ds-statement, .ds-statement-wrap, figcaption, .ds-fact__value, .ds-company, .ds-cat__desc, .ds-bio__text, .ds-quote) a:not([class]) {
  text-decoration-line: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 0.15s, text-decoration-color 0.15s;
}
:where(.ds-prose, .ds-hero__intro, .ds-lead, .ds-statement, .ds-statement-wrap, figcaption, .ds-fact__value, .ds-company, .ds-cat__desc, .ds-bio__text, .ds-quote) a:not([class]):hover {
  background-color: var(--yellow); text-decoration-color: var(--ink);
}

/* ---------- series: Search Lab grouped into parts, and the series map at the end of an article ---------- */
.ds-series-intro { margin: 0 0 var(--space-6); padding-inline: var(--gutter); }
.ds-series-intro p { margin: 0; max-width: 68ch; font-size: 19px; line-height: 1.55; }
@media (max-width: 760px) { .ds-series-intro p { font-size: 17px; } }
.ds-cat__note { margin: 0; padding: 0 var(--gutter) 10px; max-width: 68ch; font-size: 16px; color: var(--ink-soft); }
.ds-dates__series { display: block; margin-top: 4px; }
.ds-series { background: var(--ground); border-top: var(--rule-thick) solid var(--ink); }
.ds-series__in { max-width: var(--page-max); margin-inline: auto; padding: clamp(32px, 5vw, 56px) var(--pad); }
.ds-series__kicker { margin: 0; color: var(--ink-soft); }
.ds-series__name { margin: 6px 0 var(--space-5); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.ds-series__name a { color: inherit; }
.ds-series__parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.ds-series__part { background: var(--panel); border: var(--rule-thick) solid var(--ink); padding: var(--space-4); }
.ds-series__part.is-current { box-shadow: 6px 6px 0 var(--ink); }
.ds-series__label { margin: 0; font-size: 12px; color: var(--ink-soft); }
.ds-series__title { margin: 4px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.ds-series__posts { list-style: none; margin: var(--space-3) 0 0; padding: var(--space-3) 0 0; border-top: var(--rule-thin) solid var(--rule-soft); font-size: 16px; line-height: 1.4; }
.ds-series__posts li + li { margin-top: var(--space-2); }
.ds-series__posts a { color: inherit; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ds-series__posts a:hover { background: var(--yellow); }
.ds-series__posts [aria-current] { font-weight: 600; }
.ds-series__here { display: inline-block; margin-top: 2px; padding: 1px 6px; background: var(--yellow); font-size: 11px; }
.ds-series__soon { color: var(--ink-soft); }
@media (max-width: 1000px) { .ds-series__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ds-series__parts { grid-template-columns: minmax(0, 1fr); } }
.ds-cat__row--soon .ds-cat__title { color: var(--ink-soft); font-weight: 400; }

/* ---------- Search Lab as a blog: cards with the featured image ---------- */
.ds-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); padding: 0 var(--gutter) clamp(40px, 5vw, 72px); }
.ds-post { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ds-post__img { display: block; aspect-ratio: 16 / 10; background: var(--panel); border: var(--rule-thick) solid var(--ink); overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.ds-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-post:hover .ds-post__img { box-shadow: 6px 6px 0 var(--yellow); transform: translate(-2px, -2px); }
.ds-post__meta { margin-top: var(--space-4); font-size: 12px; color: var(--ink-soft); }
.ds-post__title { margin-top: var(--space-2); font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ds-post:hover .ds-post__title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ds-post__desc { margin-top: var(--space-3); font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.ds-post__more { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: 13px; }
.ds-post__more svg { width: 18px; height: auto; transition: transform 0.15s; }
.ds-post:hover .ds-post__more svg { transform: translateX(4px); }
.ds-posts-next { margin: calc(-1 * clamp(16px, 2vw, 32px)) 0 0; padding: 0 var(--gutter) clamp(40px, 5vw, 72px); font-size: 13px; color: var(--ink-soft); }
@media (max-width: 760px) { .ds-posts { grid-template-columns: minmax(0, 1fr); } }

/* The series map sits under the band, at the top of the article. */
.ds-band + .ds-series { border-top: 0; }
.ds-band + .ds-series .ds-series__in { padding-top: var(--space-5); padding-bottom: clamp(28px, 4vw, 48px); }
.ds-series__name { margin-bottom: var(--space-4); }
@media (max-width: 560px) {
  .ds-series__parts { gap: var(--space-2); }
  .ds-series__part { padding: var(--space-3) var(--space-4); }
  .ds-series__posts { margin-top: var(--space-2); padding-top: var(--space-2); }
}

/* Phones (below 900px): the compact series list above "On this page"; the boxed map is for wider screens. */
.ds-series-m__list { list-style: none; margin: 10px 0 0; padding: 0; background: var(--panel); border: var(--rule-thick) solid var(--ink); }
.ds-series-m__row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-2); padding: 10px 14px; font-size: 15px; line-height: 1.35; }
.ds-series-m__row + .ds-series-m__row { border-top: var(--rule-thin) solid var(--rule-soft); }
.ds-series-m__row.is-current { background: var(--yellow); }
.ds-series-m__n { font-size: 12px; padding-top: 2px; }
.ds-series-m__part { display: block; font-weight: 600; }
.ds-series-m__posts { display: block; color: var(--ink-soft); }
.ds-series-m__row.is-current .ds-series-m__posts { color: var(--ink); }
.ds-series-m a { color: inherit; }
@media (max-width: 899px) { .ds-band + .ds-series { display: none; } }

/* ---------- home: photo beside the name, latest articles, works, companies ---------- */
.ds-hero--poster { --name: clamp(68px, 14vw, 208px); display: block; }
.ds-hero--poster .ds-name { font-size: var(--name); }
.ds-hero__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name photo" "roles work"; align-items: end; gap: var(--space-5); }
.ds-hero__top .ds-roles { grid-area: roles; margin: 0; align-self: center; }
.ds-hero__top .ds-roles { gap: var(--space-3) clamp(20px, 3vw, 48px); }
/* Desktop: the roles stretch to the box's height; each title lines up with OPEN TO WORK, each second line with the email. */
@media (min-width: 761px) {
  .ds-hero__top .ds-roles { align-self: stretch; padding-block: 10px; box-sizing: border-box; }
  .ds-hero__top .ds-roles li { justify-content: space-between; }
}
.ds-hero__top .ds-roles .ds-meta__role { font-size: clamp(15px, 1.5vw, 22px); }
.ds-hero__top .ds-roles .ds-meta__sub { font-size: clamp(12px, 1.1vw, 16px); }
.ds-hero__top .ds-name { grid-area: name; }
.ds-hero__top .ds-hero__photo { grid-area: photo; }
/* Open to work, the yellow box from the About page, right under the headshot and as wide as it. */
.ds-hero__work { grid-area: work; min-width: 0; align-self: stretch; display: flex; }
.ds-hero__work .ds-badge { flex: 1 1 auto; }
.ds-badge__text .ds-mono { margin: 0; }
/* Same hard 6px shadow as the headshot; ink, since the box itself is yellow. The dot lines up with the label. */
.ds-hero__work .ds-badge { margin-top: 0; padding: 8px 16px; box-shadow: var(--shadow-ink); align-items: center; }
.ds-hero__work .ds-badge__text .ds-mono { font-size: 12px; line-height: 1.3; }
.ds-hero__work .ds-badge__mail { line-height: 1.4; }
.ds-hero__work .ds-badge__dot { align-self: flex-start; margin-top: 4px; }
.ds-hero__work .ds-badge__text { gap: 4px; }
.ds-hero__work .ds-badge__mail { font-size: 16px; }
.ds-hero__work .ds-badge:hover { box-shadow: var(--shadow-yellow); }
/* As tall as the name: lines x font size x line height. */
.ds-hero__photo { flex: none; box-sizing: border-box; height: calc(var(--lines, 3) * var(--name) * 0.84); width: min(calc(var(--lines, 3) * var(--name) * 0.84 * 0.8), 42vw); padding: 0; }
.ds-hero__photo img { object-position: 50% 30%; }
.ds-roles { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-4) clamp(24px, 4vw, 64px); }
.ds-roles li { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  .ds-hero__top { gap: var(--space-4); }
  .ds-hero__top { grid-template-areas: "name photo" "roles roles" "work work"; }
  .ds-hero__photo { width: min(calc(var(--lines, 3) * var(--name) * 0.84 * 0.8), calc(100vw - 2 * var(--pad) - 210px)); min-width: 96px; box-shadow: 4px 4px 0 var(--yellow); }
  .ds-hero__work { margin-right: 6px; }
  .ds-roles .ds-meta__role { font-size: 15px; }
  .ds-roles .ds-meta__sub { font-size: 12px; }
}
.ds-home-label { margin-top: clamp(16px, 3vw, 40px); }
.ds-home-label a { color: inherit; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ds-home-label a:hover { background: var(--yellow); }
.ds-home-label + .ds-panel-wrap { padding-bottom: clamp(32px, 4vw, 56px); }
.ds-proof { background: var(--panel); border-top: var(--rule-thick) solid var(--ink); }
.ds-proof__in { max-width: var(--page-max); margin-inline: auto; padding: clamp(32px, 4vw, 56px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: var(--space-6); align-items: center; }
.ds-proof__label { margin: 0 0 var(--space-3); color: var(--ink-soft); }
.ds-proof__names { margin: 0; font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.ds-proof__names > span:not(.ds-proof__sep) { white-space: nowrap; }
.ds-proof__sep { margin: 0 0.1em; color: var(--yellow); font-weight: 400; }
.ds-proof__cta .ds-badge { margin-top: 0; }
@media (max-width: 760px) { .ds-proof__in { grid-template-columns: minmax(0, 1fr); } }

.ds-proof--solo .ds-proof__in { grid-template-columns: minmax(0, 1fr); }
.ds-sound-intro { border-top: var(--rule-thick) solid var(--ink); }

/* ---------- Services: cards, ways to work together, call to action ---------- */
.ds-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-5); padding: 0 var(--gutter) clamp(40px, 5vw, 72px); }
.ds-service { display: flex; flex-direction: column; background: var(--panel); border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-ink); padding: var(--space-5); }
.ds-service__tag { margin: 0; font-size: 12px; color: var(--ink-soft); }
.ds-service__title { margin: 6px 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.ds-service__desc { margin: var(--space-3) 0 0; font-size: 17px; line-height: 1.5; }
.ds-service__points { margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; list-style: none; border-top: var(--rule-thin) solid var(--rule-soft); font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.ds-service__points li { position: relative; padding-left: 18px; }
.ds-service__points li + li { margin-top: var(--space-2); }
.ds-service__points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--yellow); outline: 2px solid var(--ink); outline-offset: -2px; }
.ds-service__basis { margin: auto 0 0; padding-top: var(--space-4); font-size: 12px; color: var(--ink-soft); }
.ds-service__basis span { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 14px; color: var(--ink); }
.ds-service__basis a { color: inherit; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.ds-contact { background: var(--yellow); color: var(--ink); border-top: var(--rule-thick) solid var(--ink); }
.ds-contact__in { max-width: var(--page-max); margin-inline: auto; padding: clamp(40px, 5vw, 72px) var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-5) var(--space-7); }
.ds-contact__title { margin: 0; font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.ds-contact__text { margin: var(--space-3) 0 0; max-width: 56ch; font-size: 18px; line-height: 1.5; }
.ds-contact .ds-actions { margin: 0; }
.ds-contact .ds-btn { overflow-wrap: anywhere; }

/* ---------- More from Sound Lab: works as cards in columns ---------- */
.ds-work-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space-5); padding: 0 var(--gutter) clamp(40px, 5vw, 72px); }
.ds-work-card { display: flex; flex-direction: column; background: var(--panel); border: var(--rule-thick) solid var(--ink); color: inherit; text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.ds-work-card:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.ds-work-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--rule-thick) solid var(--ink); background: var(--ground); }
.ds-work-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.2s; }
.ds-work-card:hover .ds-work-card__img img { filter: none; }
.ds-work-card__img:has(.ds-work-card__wave) { display: flex; align-items: center; justify-content: center; }
.ds-work-card__wave { width: 78%; height: auto; }
.ds-work-card__wave rect { fill: var(--ink); }
.ds-work-card__wave rect.y { fill: var(--yellow); }
.ds-work-card__year { margin: var(--space-4) var(--space-4) 0; font-size: 12px; color: var(--ink-soft); }
.ds-work-card__title { margin: 6px var(--space-4) 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.ds-work-card__desc { margin: var(--space-2) var(--space-4) 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.ds-work-card__arrow { margin: auto var(--space-4) var(--space-4); padding-top: var(--space-4); display: flex; justify-content: flex-end; }
.ds-work-card__arrow svg { transition: transform 0.15s; }
.ds-work-card:hover .ds-work-card__arrow svg { transform: translateX(6px); }
.ds-work-card:hover .ds-work-card__title { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
/* Phones: one work per row, picture on the left and text beside it. */
@media (max-width: 760px) {
  .ds-work-cards { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .ds-work-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; column-gap: var(--space-3); }
  .ds-work-card__img { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; height: 100%; min-height: 120px; border-bottom: 0; border-right: var(--rule-thick) solid var(--ink); }
  .ds-work-card__year { grid-column: 2; margin: var(--space-3) var(--space-3) 0 0; }
  .ds-work-card__title { grid-column: 2; margin: 4px var(--space-3) 0 0; font-size: 18px; }
  .ds-work-card__desc { grid-column: 2; margin: var(--space-1) var(--space-3) 0 0; font-size: 14px; }
  .ds-work-card__arrow { grid-column: 2; margin: 0 var(--space-3) var(--space-3) 0; padding-top: var(--space-2); }
}

/* Services: the call to action before the services, across the content width. */
.ds-cta-box-wrap { padding: clamp(32px, 4vw, 56px) var(--gutter) var(--space-4); }
.ds-cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); box-sizing: border-box; padding: var(--space-5) clamp(20px, 3vw, 40px); background: var(--yellow); border: var(--rule-thick) solid var(--ink); box-shadow: var(--shadow-ink); }
.ds-cta-box__text { margin: 0; flex: 1 1 280px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.ds-cta-box .ds-btn { flex: none; }
.ds-cta-box .ds-btn:hover { background: var(--panel); color: var(--ink); }
.ds-format .ds-service__title { margin-top: 0; }
