/* The instrument: one design system for every page (DESIGN.md at the repository root).
   Loaded after site.css and the page stylesheets, so it sets the tokens and the shared chrome for the whole site,
   demo pages included. A graphite base, one laser accent, a grotesk for words, a mono for readouts, a serif only
   for the rare italic. Screens only: print rules stay in cv.css. */

:root {
  /* colour: grayscale first, then one accent */
  --bg: #0a0a0b;
  --surface: #101012;
  --raised: #17171a;
  --ink: #ededeb;           /* 16.6:1 on --bg */
  --ink-2: #c2c2bf;         /* 11.3:1 */
  --muted: #8e8e8b;         /* 5.9:1 */
  --rule: #222225;
  --rule-2: #3a3a3e;
  --accent: #ff5b3a;        /* the laser: actions, the current position, one emphasis per view. 6.5:1 */
  --signal: #ffa28d;        /* the same hue, lighter: a second series next to the accent */
  --data-1: #9fb6d0;        /* plot series, muted */
  --data-2: #8fbfb0;
  --focus: var(--accent);
  --c-ai: var(--accent);
  --c-next: var(--data-1);
  --c-soft: var(--data-2);
  --c-res: var(--signal);
  /* type */
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-mono: var(--font-data);
  --font-serif: "Newsreader", Georgia, serif;
  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 3vw, 2.25rem);
  --step-3: clamp(2.6rem, 6.2vw, 5rem);
  --t-xl: clamp(1.6rem, 3vw, 2.2rem);
  /* space, radius, motion */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --r: 2px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 140ms;
  --t-panel: 240ms;
  --measure: 62ch;
  --head-h: 56px;
}

html { scroll-padding-top: calc(var(--head-h) + 28px); }
body { font-size: var(--step-0); line-height: 1.55; font-feature-settings: "ss01", "tnum" 0; }
::selection { background: var(--accent); color: var(--bg); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; }
h3, h4 { letter-spacing: -0.02em; line-height: 1.2; }
.label, .mono, .chapter-num, .scroll-hint { font-family: var(--font-data); font-size: var(--step--2); letter-spacing: 0.02em; text-transform: none; color: var(--muted); font-weight: 400; }
.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
a { text-decoration-color: var(--rule-2); }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: var(--accent); } }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r); }

/* ---------- buttons: square, hairline, no lift ---------- */
.btn { font-family: var(--font-data); font-size: var(--step--1); font-weight: 400; letter-spacing: 0; padding: 12px 18px; border-radius: var(--r); border: 1px solid var(--rule-2); color: var(--ink); background: transparent; min-height: 44px; transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active { background: var(--rule); }
.btn.primary:active { background: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--accent); }
  .btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
}
.chip, .hs-ask a, .hs-facts li { border-radius: var(--r); font-family: var(--font-data); }

/* ---------- the header: name, four pages, and a spectrum ruler you can scrub ---------- */
.top-wrap { background: color-mix(in srgb, var(--bg) 100%, transparent); border-bottom: 1px solid var(--rule); z-index: 40; }
body::before { background: var(--bg); }
.top { padding-block: 0; min-height: var(--head-h); flex-wrap: nowrap; gap: 24px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.015em; gap: 12px; }
.brand::before { width: 8px; height: 8px; border-radius: 0; background: var(--accent); }
.top nav { gap: 0; font-family: var(--font-data); font-size: var(--step--2); flex-wrap: nowrap; }
.top nav a { padding-inline: 14px; color: var(--muted); gap: 7px; min-height: var(--head-h); transition: color var(--t-fast) var(--ease-out); }
.top nav a .nm { font-size: 0.66rem; color: var(--rule-2); transition: color var(--t-fast) var(--ease-out); }
.top nav a[aria-current="page"] { color: var(--ink); }
.top nav a[aria-current="page"] .nm { color: var(--accent); }
.top nav a.nav-cv { color: var(--ink); }
.top nav a:last-child { padding-right: 0; }
@media (hover: hover) and (pointer: fine) {
  .top nav a:hover { color: var(--ink); }
  .top nav a:hover .nm { color: var(--accent); }
}
.top-wrap.away { opacity: 1 !important; }   /* the menu is always there; a recruiter should never hunt for it */

.ruler { position: relative; height: 18px; margin-inline: auto; max-width: 1120px; cursor: ew-resize; touch-action: none; }
.ruler-ticks { position: absolute; inset: 0 0 auto; height: 9px;
  background:
    repeating-linear-gradient(90deg, var(--rule-2) 0 1px, transparent 1px 100px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 20px) 0 3px / 100% 6px no-repeat; }
.ruler-stop { position: absolute; top: 0; width: 1px; height: 9px; background: var(--muted); transform: translateX(-0.5px); }
.ruler-mark { position: absolute; top: 0; left: 0; width: 2px; height: 14px; margin-left: -1px; background: var(--accent); transform: translateX(calc(var(--x, 0) * 1px)); transition: transform var(--t-panel) var(--ease-out); will-change: transform; }
.ruler-read { position: absolute; top: 1px; left: 0; font-family: var(--font-data); font-size: 0.66rem; color: var(--accent); white-space: nowrap; transform: translateX(calc(var(--x, 0) * 1px + 8px)); transition: transform var(--t-panel) var(--ease-out); }
.ruler-read.flip { transform: translateX(calc(var(--x, 0) * 1px - 8px)) translateX(-100%); }
.ruler.scrub .ruler-mark, .ruler.scrub .ruler-read { transition: none; }
@media (prefers-reduced-motion: reduce) { .ruler-mark, .ruler-read { transition: none; } }

/* phones: the name and the CV on one line, the four pages as four equal cells under it, the ruler as the cells' floor */
@media (max-width: 640px) {
  :root { --head-h: 48px; }
  .top { flex-wrap: wrap; gap: 0; padding-top: 0; }
  .brand { min-height: 48px; }
  .top nav { width: 100%; order: 3; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); font-size: 0.72rem; }
  .top nav a { padding-inline: 0; min-height: 44px; justify-content: flex-start; }
  .top nav a .nm { display: none; }
  .ruler-end, .ruler-read { display: none; }
  .ruler { height: 10px; }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--rule); padding-block: 24px 56px; }
footer .mono, footer p { font-family: var(--font-data); font-size: var(--step--2); color: var(--muted); }

/* ---------- panels and figures: hairline surfaces, mono heads ---------- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 0; }
.panel-head { font-family: var(--font-data); font-size: var(--step--2); letter-spacing: 0.01em; color: var(--muted); padding: 10px 14px; }
.panel-head .live { color: var(--accent); }
.panel-head .live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--accent); border-radius: 50%; }
.caption, figcaption { font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.order-switch button, .zoom-tools button { font-family: var(--font-data); font-size: var(--step--2); border-radius: var(--r); }

/* ---------- shared section grammar: a mono index in the margin, the content on a strict grid ---------- */
.hs { padding-block: var(--s-9); }
.hs::before, .contact-sec::before, .room-end::before, section.chapter:not(.first)::before, .block + .block::before { height: 1px; background: var(--rule); }
.hs h2, .contact-sec h2, .room section.chapter:not(.first) h2 { font-weight: 500; letter-spacing: -0.04em; }
.hs h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.hs h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 500; }
.hs p { max-width: var(--measure); color: var(--ink-2); }
.kicker { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; max-width: 52ch; }

/* ---------- Work / Play / chapter pages: a sticky index in the margin, work as rows ---------- */
.room h1 { font-weight: 500; letter-spacing: -0.045em; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1; max-width: 16ch; }
.room { counter-reset: chap; }
.room > section.chapter { counter-increment: chap; }
@media (min-width: 1000px) {
  .room > section.chapter { border-top: 1px solid var(--rule); padding-block: var(--s-8) var(--s-9); min-height: 0; display: block; }
  .room > section.chapter.first { border-top: 0; padding-top: var(--s-7); }
  .room > section.chapter > .page { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--s-6); max-width: 1120px; }
  .room > section.chapter > .page > * { grid-column: 2; }
  .room > section.chapter > .page > .label:first-child { grid-column: 1; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(var(--head-h) + 28px); display: grid; gap: 6px; line-height: 1.5; }
  .room > section.chapter > .page > .label:first-child::before { content: counter(chap, decimal-leading-zero); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 0.9; letter-spacing: -0.06em; color: var(--ink); font-weight: 500; font-family: var(--font-display); }
}
.room section.chapter h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.portals { gap: var(--s-6) var(--s-5); }
.portal, .app-card { background: transparent; border: 0; border-top: 1px solid var(--rule-2); padding: 14px 0 0; gap: 8px; border-radius: 0; transition: border-color var(--t-fast) var(--ease-out); }
.portal .art, .app-card .art { margin: 0 0 6px; border: 1px solid var(--rule); background: var(--surface); }
.portal.feature { padding: 14px 0 0; column-gap: var(--s-6); }
.portal.feature .art { border: 1px solid var(--rule); }
.portal h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; }
.portal.feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.portal p { color: var(--ink-2); }
.portal .label { color: var(--muted); }
.portal .go { font-family: var(--font-data); font-size: var(--step--2); color: var(--accent); }
.portal .go::after { content: " \2192"; }
@media (hover: hover) and (pointer: fine) { .portal:hover, .app-card:hover { border-top-color: var(--accent); } }
.portal:focus-visible { outline-offset: 6px; }
.apps-grid .app-card { padding-top: 14px; }
@media (max-width: 900px) { .portal.feature { grid-template-columns: 1fr; grid-template-rows: none; } .portal.feature > :not(.art) { grid-column: 1; grid-row: auto !important; } .portal.feature .art { grid-row: auto; } }

/* the thumbnails, and any picture of a result, sit square on a hairline */
.show .art, .art { border-radius: 0; }

/* ---------- reading pages (about, work-with-me, case studies): measure and rhythm ---------- */
.article-head h1, .about h1 { font-weight: 500; letter-spacing: -0.045em; }
main p { text-wrap: pretty; }
.readings > div { background: var(--bg); }
.readings .value { font-family: var(--font-data); font-weight: 400; letter-spacing: -0.03em; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.article-head .readings > div { border-top: 1px solid var(--rule-2); }

/* ---------- Home ---------- */
.cover { min-height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; background: var(--bg); }
.cover-copy { padding-block: calc(var(--head-h) + 40px) 20px; align-self: end; }
.cover-copy .page { gap: var(--s-4); }
.in-eyebrow { font-family: var(--font-data); font-size: var(--step--2); color: var(--muted); letter-spacing: 0.02em; margin: 0 0 var(--s-3); }
.cover h1 { font-weight: 500; font-size: clamp(3.1rem, min(9.4vw, 11.5vh), 8.6rem); line-height: 0.92; letter-spacing: -0.055em; max-width: none; }
.cover h1 .l1, .cover h1 .spectrum { display: block; width: max-content; max-width: 100%; }
.cover h1 .spectrum { font-style: normal; font-weight: 500; font-family: var(--font-display); color: var(--ink); padding-bottom: 0.16em; }
.cover-sub { font-size: var(--step-1); color: var(--ink-2); margin: var(--s-4) 0 0; max-width: 40ch; font-weight: 400; letter-spacing: -0.01em; }
.cover-cue { display: none; }

/* the path scrubber: light to AI along a ruler. Drag it, tap a stop, or use the arrow keys */
.path-wrap { position: relative; z-index: 3; padding-bottom: 28px; }
.path { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-7); border-top: 1px solid var(--rule-2); padding-top: var(--s-4); align-items: start; --p: 0; }
.path-read { display: grid; gap: 6px; align-content: start; min-height: 7.5em; }
.path-read .path-k { font-family: var(--font-data); font-size: var(--step--2); color: var(--accent); }
.path-read h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.path-read p { color: var(--ink-2); font-size: var(--step-0); max-width: 44ch; margin: 0; }
.path-read a { font-family: var(--font-data); font-size: var(--step--2); color: var(--ink); width: max-content; }
.path-read.swap > * { animation: pathIn var(--t-panel) var(--ease-out) both; }
@keyframes pathIn { from { opacity: 0; } to { opacity: 1; } }
.path-track { position: relative; padding-top: 6px; }
.path-rail { position: relative; height: 44px; }
.path-ticks { position: absolute; inset: 0 0 auto; height: 44px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--rule-2) 0 1px, transparent 1px calc(100% / 52)) 0 100% / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 25%) 0 100% / calc(100% + 1px) 24px no-repeat; }
.path-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 1%); background: var(--accent); pointer-events: none; }
.path-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.path-head { position: absolute; bottom: 0; left: calc(var(--p) * 1%); width: 2px; height: 44px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.path-range:focus-visible ~ .path-head { outline: 2px solid var(--accent); outline-offset: 4px; }
.path-stops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.path-stops button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 8px 8px 8px 0; min-height: 44px; font-family: var(--font-data); font-size: var(--step--2); color: var(--muted); transition: color var(--t-fast) var(--ease-out); }
.path-stops button b { font-weight: 400; color: inherit; }
.path-stops button span { font-size: 0.68rem; color: var(--rule-2); transition: color var(--t-fast) var(--ease-out); }
.path-stops button[aria-current="true"] { color: var(--ink); }
.path-stops button[aria-current="true"] span { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .path-stops button:hover { color: var(--ink); } }
.path-stops button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  .cover-copy { padding-block: 64px 16px; }
  .cover h1 { font-size: clamp(3rem, 15.4vw, 4.6rem); }
  .cover-sub { font-size: 1.05rem; }
  .path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .path-read { order: 2; min-height: 9.5em; padding-top: var(--s-3); }
  .path-track { order: 1; }
  .path-rail { height: 52px; }
  .path-ticks, .path-head { height: 52px; }
  .path-stops button { padding: 8px 4px 8px 0; }
}

/* index of chapters: a ruler of four rows, a picture of the one in focus */
.in-sechead { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.in-sechead h2 { max-width: 18ch; }
.spec { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: var(--s-7); border-top: 1px solid var(--rule-2); }
.spec > li { display: contents; }
.spec-row { grid-column: 1; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: var(--s-3); row-gap: 4px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--muted); position: relative; transition: color var(--t-fast) var(--ease-out); }
.spec-row::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); transition: width var(--t-panel) var(--ease-out); }
.spec-n { font-family: var(--font-data); font-size: var(--step--2); padding-top: 0.9em; }
.spec-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 4.8vw, 4.2rem); letter-spacing: -0.05em; line-height: 1; color: inherit; }
.spec-line { grid-column: 2; font-size: var(--step-0); color: var(--muted); max-width: 40ch; }
.spec-meta { grid-column: 2; font-family: var(--font-data); font-size: var(--step--2); color: var(--rule-2); transition: color var(--t-fast) var(--ease-out); }
.spec > li.on .spec-row { color: var(--ink); }
.spec > li.on .spec-row::before { width: 100%; }
.spec > li.on .spec-n { color: var(--accent); }
.spec > li.on .spec-line { color: var(--ink-2); }
.spec > li.on .spec-meta { color: var(--muted); }
.spec .art { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: calc(var(--head-h) + 40px); aspect-ratio: 16 / 10; border: 1px solid var(--rule); background: var(--surface); overflow: hidden; opacity: 0; visibility: hidden; transition: opacity var(--t-panel) var(--ease-out), visibility 0s linear var(--t-panel); pointer-events: none; }
.spec > li.on .art { opacity: 1; visibility: visible; transition-delay: 0s; }
.spec .art img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 900px) {
  .spec { display: block; }
  .spec > li { display: block; padding-bottom: var(--s-5); border-bottom: 1px solid var(--rule); }
  .spec-row { grid-template-columns: 2.4rem minmax(0, 1fr); padding: 20px 0 10px; border-bottom: 0; color: var(--ink); }
  .spec-row::before { display: none; }
  .spec-n { color: var(--accent); padding-top: 0.5em; }
  .spec-name { font-size: clamp(2.2rem, 11vw, 3rem); }
  .spec-line { color: var(--ink-2); }
  .spec-meta { color: var(--muted); }
  .spec .art { position: static; opacity: 1; visibility: visible; margin-top: var(--s-3); pointer-events: auto; }
}

/* roots: the live instruments */
.hs .label { color: var(--muted); }
.hs-facts { gap: 6px; }
.hs-facts li { border-color: var(--rule-2); background: transparent; padding: 6px 12px; }
.photon-figure figcaption { font-size: var(--step--2); }
.steps-flow span { font-family: var(--font-data); font-size: var(--step--2); border-radius: var(--r); }
.uses li { font-family: var(--font-data); font-size: var(--step--2); border-radius: var(--r); }
.uses li.on { border-color: var(--accent); color: var(--ink); }

/* contact: a readout, not a poster */
.contact-sec { padding-block: var(--s-9) var(--s-8); }
.contact-sec h2 { font-size: clamp(3rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.055em; }
.contact-sec .kicker { margin-top: var(--s-5); color: var(--ink-2); }
.contact-sec .mail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.contact-sec .email { font-family: var(--font-data); font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: -0.02em; }
.contact-sec .copy { font-family: var(--font-data); font-size: var(--step--2); min-height: 44px; padding: 0 16px; border: 1px solid var(--rule-2); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; transition: border-color var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact-sec .copy:hover { border-color: var(--accent); } }
.contact-sec .roles-line { font-family: var(--font-data); font-size: var(--step--2); color: var(--muted); margin-top: var(--s-4); }
.contact { margin-top: var(--s-5); gap: 0 var(--s-5); }
.contact a { font-family: var(--font-data); font-size: var(--step--2); color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule-2); min-height: 44px; transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact a:hover { color: var(--ink); border-bottom-color: var(--accent); } }
.board-bg:not(.contact-sec) { background-image: none; }

/* the left rail of the old home is replaced by the ruler in the header */
.story-rail { display: none !important; }

@media screen {
  /* ---------- CV: a readout. Dates and places in mono on the left, the work on the right ---------- */
  .cv-head, .cv-sec { --font-data: "JetBrains Mono", ui-monospace, Consolas, monospace; --font-mono: var(--font-data); }
  .cv { max-width: 1000px; }
  .cv-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -0.045em; }
  .cv-title { font-family: var(--font-body); font-size: var(--step-1); color: var(--ink-2); letter-spacing: -0.01em; }
  .cv-title::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 12px; }
  .cv-sec h2 { font-family: var(--font-data); font-size: var(--step--2); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule-2); }
  .cv-sec > p, .cv-note { color: var(--ink-2); }
  .cv-item { border-left: 0; padding: 0; }
  .cv-item h3 { font-weight: 500; letter-spacing: -0.02em; font-size: 1.15rem; }
  .cv-meta { color: var(--muted); }
  .cv-items { gap: 28px; }
  .cv-sec:not(.cv-skills-sec) .cv-item { grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--s-5); align-items: start; }
  .cv-sec .cv-item > * { grid-column: 2; }
  .cv-sec .cv-item > .cv-meta { grid-column: 1; grid-row: 1 / span 6; padding-top: 4px; line-height: 1.6; }
  .cv .btn, .chip { font-family: var(--font-data); }
  .cv-item ul { color: var(--ink-2); }
  .cv.filtering .cv-item.lit { box-shadow: -14px 0 0 -12px var(--accent); }
  @media (max-width: 760px) {
    .cv-sec .cv-item { grid-template-columns: 1fr !important; }
    .cv-sec .cv-item > .cv-meta { grid-column: 1; grid-row: auto; order: -1; padding: 0; }
    .cv-sec .cv-item > h3 { order: 0; }
  }
}

/* the living layer in the header (time and weather in Glasgow and Barcelona): a plain readout, no box; its tint and marks are off */
.alive-sky, .alive-flower { display: none !important; }
.top .alive .alive-pill { border: 0; background: transparent; padding: 0; min-height: 44px; font-size: 0.7rem; font-weight: 400; gap: 14px; border-radius: 0; }
.alive-c i { border-radius: 0; width: 5px; height: 5px; box-shadow: none; }
.alive-panel { border-radius: 0; box-shadow: none; background: var(--raised); border-color: var(--rule-2); }
.alive-acts button { border-radius: var(--r); }
@media (hover: hover) and (pointer: fine) { .alive-pill:hover { border-color: transparent; } }
@media (max-width: 640px) { .alive { order: 2; width: auto; margin-left: auto; padding: 0; } .top .alive .alive-pill { max-width: 100%; font-size: 0.64rem; gap: 10px; overflow: hidden; } .alive-cities { gap: 10px; } .path-track, .path-rail, .path-stops { min-width: 0; max-width: 100%; } .path-stops b { font-size: 0.7rem; } }

html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 640px) { .top nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } .top, .top-wrap, .top-wrap .page { min-width: 0; max-width: 100%; } }
.path::before { display: none; }
.cover-copy { padding-block: calc(var(--head-h) + 8px) 12px; }
.path-wrap { padding-bottom: 20px; }
.path-read { min-height: 0; }
.cover-sub { margin-top: var(--s-3); }
.cover { min-height: 0; }
.cover-copy { padding-top: calc(var(--head-h) + 12vh); }
