/* Two-lens deck. One colour system, two readings: Business = cobalt field, Build = cool paper. */
:root {
    --bg: #2438e8;
    --fg: #f5f7ff;
    --muted: #cdd4ff;
    --accent: #d4ff3a;
    --on-accent: #1a2bb8;
    --rule: color-mix(in srgb, var(--fg) 28%, transparent);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(1.25rem, 5vw, 4rem);
    --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
    --body: "Hanken Grotesk", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    color-scheme: light;
}
html[data-lens="build"] {
    --bg: #e9ecf1;
    --fg: #0d1020;
    --muted: #4a5068;
    --accent: #2438e8;
    --on-accent: #f5f7ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 400 clamp(1rem, 0.95rem + 0.25vw, 1.125rem) / 1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
html { scrollbar-color: var(--accent) var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--accent); color: var(--bg); padding: 0.5rem 1rem; }

/* lens-specific content */
html[data-lens="business"] [data-show="build"],
html[data-lens="build"] [data-show="business"] { display: none; }

/* ---------- top bar ---------- */
.bar {
    position: fixed; inset: 0 0 auto 0; z-index: 10;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.9rem var(--gutter);
    font-weight: 700;
    background: var(--bg); border-bottom: 1.5px solid var(--rule);
}
.bar a { text-decoration: none; }

/* section nav: a fixed rail on the left of wide screens; a scrolling row under the bar below that */
.bar-nav { position: fixed; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 0.35rem; }
.bar-nav a { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; font-size: 0.9rem; color: var(--muted); padding: 0.45rem 0; white-space: nowrap; transition: color 0.2s var(--ease); }
.bar-nav a::before { content: ""; flex: none; width: 1.75rem; height: 2px; background: var(--rule); transform: scaleX(0.4); transform-origin: left; transition: transform 0.35s var(--ease), background 0.25s var(--ease); }
.bar-nav a[aria-current="true"] { color: var(--fg); font-weight: 700; }
.bar-nav a[aria-current="true"]::before { background: var(--accent); transform: none; }
@media (hover: hover) and (pointer: fine) { .bar-nav a:hover { color: var(--fg); } .bar-nav a:hover::before { transform: scaleX(0.8); } }
@media (max-width: 1199px) {
    .bar { flex-wrap: wrap; row-gap: 0.25rem; padding-bottom: 0; }
    .bar-nav { position: static; transform: none; order: 3; flex: 1 0 100%; flex-direction: row; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; }
    .bar-nav a { padding-block: 0.6rem; position: relative; }
    .bar-nav a::before { position: absolute; inset: auto 0 0 0; width: auto; transform: scaleX(0); }
    .bar-nav a[aria-current="true"]::before { transform: none; }
}
.bar-name { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; }
.counter { margin: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter .num { display: inline-block; animation: tick 0.5s var(--ease); }
@keyframes tick { from { transform: translateY(60%); opacity: 0; } }
.bar-right { display: flex; align-items: center; gap: 0.75rem; }

/* language switch: the current language is a button; clicking opens a menu of the others (see i18n.js) */
.lang-switch { position: relative; border: 1.5px solid color-mix(in srgb, var(--fg) 55%, transparent); border-radius: 999px; padding: 3px; }
.lang-switch button {
    position: relative; z-index: 1; border: 0; background: none; color: var(--muted);
    font: 500 0.75rem/1 var(--mono); letter-spacing: 0.04em;
    padding: 0.5rem 0.7rem; border-radius: 999px; cursor: pointer;
    transition: color 0.25s var(--ease), transform 0.12s var(--ease);
}
.lang-switch button:active { transform: scale(0.92); }
.lang-switch button[aria-pressed="true"] { color: var(--fg); }
.lang-switch button[aria-pressed="true"]::after { content: ""; display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.55em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-0.15em) rotate(45deg); transition: transform 0.25s var(--ease); }
.lang-switch.open button[aria-pressed="true"]::after { transform: translateY(0.05em) rotate(-135deg); }
.lang-menu { position: absolute; top: calc(100% + 0.4rem); right: 0; min-width: 100%; display: none; flex-direction: column; padding: 3px; background: var(--bg); border: 1.5px solid color-mix(in srgb, var(--fg) 55%, transparent); border-radius: 1rem; }
.lang-switch.open .lang-menu { display: flex; }
.lang-menu button { text-align: left; border-radius: 0.7rem; }
.lang-switch .pill { display: none; }
@media (hover: hover) and (pointer: fine) { .lang-switch button:hover { color: var(--accent); } }

.lens-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--fg); border-radius: 999px; padding: 3px; }
.lens-switch button {
    position: relative; z-index: 1; border: 0; background: none; color: var(--fg);
    font: 700 0.8rem/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.55rem 0.9rem; border-radius: 999px; cursor: pointer; transition: color 0.3s var(--ease);
}
.lens-switch button[aria-pressed="true"] { color: var(--bg); }
.lens-switch .pill { position: absolute; z-index: 0; inset: 3px auto 3px 3px; width: calc(50% - 3px); background: var(--fg); border-radius: 999px; transition: transform 0.45s var(--ease); }
html[data-lens="build"] .lens-switch .pill { transform: translateX(100%); }

/* ---------- buttons / links ---------- */
.btn {
    display: inline-block; background: var(--accent); color: var(--bg);
    font-weight: 700; text-decoration: none; padding: 0.9rem 1.6rem; border-radius: 999px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--fg) 45%, transparent); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.arrow-link { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 0.1em; margin-right: 1.25rem; }
.arrow-link span { display: inline-block; margin-left: 0.3em; transition: transform 0.25s var(--ease); }
.arrow-link:hover span { transform: translate(2px, -2px); }

/* ---------- slides ---------- */
.slide { position: relative; min-height: 100svh; display: flex; align-items: center; background: var(--bg); padding: 7rem var(--gutter) 5rem; border-top: 1.5px solid var(--rule); overflow-x: clip; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; }
.wrap.narrow { max-width: 56rem; }
@media (min-width: 900px) and (min-height: 640px) { .stack { position: sticky; top: 0; } }

h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -0.03em; margin: 0; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 8.2vw, 6rem); font-weight: 800; max-width: 14ch; }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; margin-bottom: 2.5rem; max-width: 20ch; }
.narrow h2 { max-width: 24ch; }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.25rem); font-weight: 800; }
.big { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); line-height: 1.45; max-width: 38em; color: var(--fg); margin: 0 0 1.25rem; }
.lede { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); line-height: 1.45; max-width: 34em; margin: 2rem 0; color: var(--muted); }

/* cover */
.cover { overflow: hidden; }
.cover h1 { max-width: 12ch; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-right: 0.22em; }
.w > span { display: inline-block; }
.js .w > span { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d) * 60ms + 150ms); }
@keyframes rise { from { transform: translateY(110%); } }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 2.25rem 0; }
.cover-meta { color: var(--fg); font-size: 1rem; max-width: 52ch; margin: 2rem 0 0; }
.hint { color: var(--accent); font-size: 1rem; font-weight: 700; margin: 0.75rem 0 0; max-width: 46ch; }
.lens-ring {
    position: absolute; right: -8vmin; top: 50%; width: 62vmin; aspect-ratio: 1; margin-top: -31vmin;
    border-radius: 50%; border: 1.5px solid var(--accent);
    box-shadow: inset 0 0 0 5vmin var(--bg), inset 0 0 0 calc(5vmin + 1.5px) var(--accent);
    pointer-events: none; animation: spin-in 1.4s var(--ease) both;
}
.lens-ring::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; background: var(--accent); opacity: 0.9; }
@keyframes spin-in { from { transform: scale(0.6) rotate(-40deg); opacity: 0; } }
.cover .wrap { position: relative; z-index: 1; }

/* profile */
.profile { display: grid; gap: 3rem; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: center; }
.portrait { width: 100%; height: auto; aspect-ratio: 1170 / 1511; object-fit: cover; border-radius: 4px; outline: 1.5px solid var(--accent); outline-offset: 10px; }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { padding: 1.1rem 0; border-top: 1.5px solid var(--rule); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); max-width: 40em; }
.lines li:last-child { border-bottom: 1.5px solid var(--rule); }
.lines strong { font-family: var(--display); font-weight: 800; margin-right: 0.4em; }

/* ai: delegate / never-unreviewed split */
.ai-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin-top: 2.5rem; }
.ai-split h3 { margin-bottom: 1.25rem; }
.ai-split .keep h3 { color: var(--accent); }
.ai-split .lines li { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.ai-next { margin: 2rem 0 0; color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
@media (max-width: 760px) { .ai-split { grid-template-columns: minmax(0, 1fr); } }

.chips, .plain { list-style: none; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: 500 0.8rem/1 var(--mono); padding: 0.55em 0.8em; border: 1.5px solid var(--fg); border-radius: 3px; }
.plain li + li { margin-top: 0.5rem; }
.plain.inline { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* placeholders: visibly unfinished on purpose */
.tbd { display: inline-block; font: 500 0.8rem/1.2 var(--mono); padding: 0.3em 0.6em; border: 1.5px dashed var(--accent); color: var(--accent); border-radius: 3px; }
.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 0; border-top: 1.5px solid var(--rule); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); }
.ledger li:last-child { border-bottom: 1.5px solid var(--rule); }
.ledger .fig { font-family: var(--display); font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ventures */
.venture { padding: 3rem 0; border-top: 1.5px solid var(--rule); }
.venture-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.75rem 2rem; margin-bottom: 2rem; }
.venture-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0; color: var(--muted); font-weight: 500; }
.status { font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; background: var(--accent); color: var(--bg); padding: 0.5em 0.8em; border-radius: 999px; }
.venture-body { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.venture-body:not(:has(.venture-media)) { grid-template-columns: minmax(0, 46rem); }
dl { margin: 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.1rem 1.5rem; }
dt { font-weight: 700; color: var(--accent); }
dd { margin: 0; max-width: 40em; }
.venture-links { margin: 2rem 0 0; }
.venture-media { border-radius: 4px; overflow: hidden; outline: 1.5px solid var(--rule); }
.venture-media video, .venture-media img { width: 100%; height: auto; }

.side-grid { display: grid; gap: 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.side img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; margin-bottom: 1.25rem; outline: 1.5px solid var(--rule); }
.side h3 { margin-bottom: 0.75rem; }
.side p { max-width: 34em; margin: 0 0 1rem; }

/* roadmap */
.roadmap { position: relative; padding-left: 2.75rem; }
.roadmap ol { list-style: none; margin: 0; padding: 0; }
.rail { position: absolute; left: 0.5rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--rule); }
.rail-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
.step { position: relative; padding-bottom: 3rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -2.75rem; top: 0.2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--rule); transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.step.on::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.step h3 { margin-bottom: 0.5rem; }
.step p { margin: 0; max-width: 38em; color: var(--muted); }

/* stack ladder: a fully lit list by default; pinned + climbing on desktop (see deck.js) */
.stack-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.ladder-detail { display: none; }
.stack-pinned .ladder-detail { display: block; }
.ladder-detail h3 { font-size: clamp(2.25rem, 5vw, 4rem); margin-bottom: 1.25rem; }
.ladder { position: relative; list-style: none; margin: 0; padding: 0; background: linear-gradient(var(--rule), var(--rule)) left / 2px 100% no-repeat; }
.ladder-fill { display: none; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform-origin: bottom; transform: scaleY(0); }
.stack-pinned .ladder-fill { display: block; }
.layer { position: relative; padding: 0.4rem 0 0.4rem 1.5rem; transition: opacity 0.25s var(--ease); }
.layer::before { content: ""; position: absolute; left: -0.45rem; top: 0.85rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--rule); transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease); }
.layer.lit::before { background: var(--accent); border-color: var(--accent); }
.layer.cur::before { transform: scale(1.6); }
.layer .name { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.layer .ev { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; max-width: 40em; }
.stack-pinned.slide { padding-top: 5.5rem; padding-bottom: 2rem; }
.stack-pinned h2 { margin-bottom: 1.5rem; }
.stack-pinned .layer { padding-block: 0.15rem; }
.stack-pinned .layer::before { top: 0.5rem; }
.stack-pinned .layer .ev { display: none; }
.stack-pinned .layer:not(.lit) { opacity: 0.65; }
.stack-pinned .layer.cur .name { color: var(--accent); }

/* course rows: name + grade, open for what I learned */
:root { interpolate-size: allow-keywords; }
.courses { margin: 1.25rem 0 0.5rem; }
.course { border-top: 1.5px solid var(--rule); }
.course:last-child { border-bottom: 1.5px solid var(--rule); }
.course summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; cursor: pointer; font-weight: 700; padding: 0.8rem 0.25rem; transition: color 0.2s var(--ease); }
.course summary::marker { color: var(--accent); }
.course summary:active { transform: scale(0.995); }
.grade { font: 500 0.75rem/1 var(--mono); border: 1.5px solid var(--accent); color: var(--accent); border-radius: 3px; padding: 0.35em 0.6em; }
.cbody { padding: 0 0.25rem 1.1rem; }
.cbody p { margin: 0 0 0.75rem; max-width: 42em; color: var(--muted); }
.cbody .chips { margin-top: 0.75rem; }
.course::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size 0.3s var(--ease), opacity 0.25s var(--ease), content-visibility 0.3s allow-discrete; }
.course[open]::details-content { block-size: auto; opacity: 1; }
.course[open] .chip { animation: chip-in 0.35s var(--ease) both; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } }
@media (hover: hover) and (pointer: fine) { .course summary:hover { color: var(--accent); } }
.step > .courses { margin-top: 1rem; }
.contrib { margin: 0.75rem 0 0; color: var(--muted); }
.side .chips { margin-top: 0.75rem; }

/* scroll reveals (content visible unless JS runs) */
.js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-r].in { opacity: 1; transform: none; }

/* page-to-page morph (course pages <-> deck); the lens wipe below is scoped to html.lens-wipe */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
html.lens-wipe::view-transition-old(root), html.lens-wipe::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.lens-wipe::view-transition-new(root) { animation: wipe 0.75s var(--ease); }
@keyframes wipe { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 2rem)); } to { clip-path: circle(150vmax at var(--vx, 90%) var(--vy, 2rem)); } }

.course.static { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 0.25rem; font-weight: 700; }
.grade.now { background: var(--accent); color: var(--bg); }

/* course pages (education-details.html, slovak-university-details.html) */
.course-page .bar { background: var(--bg); border-bottom: 1.5px solid var(--rule); }
.back:hover span { transform: translateX(-3px); }
.page-pad { padding-inline: var(--gutter); }
.cp-hero { padding: 9rem var(--gutter) 3rem; }
.cp-hero h1 { max-width: 16ch; }
.cp-meta { margin: 1.5rem 0 1rem; font-family: var(--mono); font-size: 0.9rem; color: var(--accent); }
.cp-hero .big { color: var(--muted); }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 2.5rem 0 0; padding: 0; }
.track li { position: relative; padding-top: 1rem; font: 500 0.8rem/1.4 var(--mono); color: var(--muted); }
.track li::before, .track li::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 3px; }
.track li::before { background: var(--rule); }
.track li::after { background: var(--accent); transform: scaleX(0); transform-origin: left; animation: fill 0.6s var(--ease) forwards; animation-delay: calc(var(--k) * 80ms + 300ms); }
.track li.now { color: var(--fg); --to: 0.35; }
.track .status { display: inline-block; margin-top: 0.4rem; }
@keyframes fill { to { transform: scaleX(var(--to, 1)); } }

.yearnav { position: sticky; top: 3.6rem; z-index: 9; display: flex; gap: 1.5rem; padding: 0.6rem var(--gutter); background: var(--bg); border-bottom: 1.5px solid var(--rule); }
.yearnav a { position: relative; font: 500 0.85rem/1 var(--mono); text-decoration: none; color: var(--muted); padding: 0.5rem 0; }
.yearnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.yearnav a[aria-current="true"] { color: var(--fg); }
.yearnav a[aria-current="true"]::after { transform: scaleX(1); }

.year { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 2rem 3rem; padding: 3rem 0; border-top: 1.5px solid var(--rule); scroll-margin-top: 7rem; }
.year > h2 { position: sticky; top: 8rem; align-self: start; margin: 0; max-width: none; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.year > h2 .status { display: inline-block; margin-top: 0.75rem; }
.module { padding: 1.25rem 0; border-top: 1.5px solid var(--rule); }
.module:first-child { border-top: 0; padding-top: 0; }
.module header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.module h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }
.module p { margin: 0.6rem 0 0; max-width: 42em; color: var(--muted); }
.module p.learned { color: var(--fg); }
.module .chips { margin-top: 0.9rem; }
.note { margin: 0 0 1.5rem; max-width: 42em; color: var(--muted); }
.cp-next { padding: 4rem var(--gutter) 6rem; border-top: 1.5px solid var(--rule); }
.cp-next .arrow-link { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-family: var(--display); }

@media (max-width: 899px) {
    .year { grid-template-columns: minmax(0, 1fr); }
    .year > h2 { position: static; }
    .yearnav { gap: 1rem; overflow-x: auto; }
    .back span:first-child { display: none; }
    .profile, .venture-body, .side-grid, .stack-grid { grid-template-columns: minmax(0, 1fr); }
    .portrait { max-width: 20rem; }
    .counter { display: none; }
    /* Let's talk stays one tap away: a pill pinned to the thumb zone instead of a third bar row */
    .bar-right .btn-sm { position: fixed; right: 1rem; bottom: 1rem; z-index: 11; padding: 0.8rem 1.3rem; box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--fg) 50%, transparent); }
    dl { grid-template-columns: 1fr; gap: 0.25rem; }
    dd { margin-bottom: 1rem; }
    .lens-ring { opacity: 0.35; }
}

/* make room for the section nav: a left rail on wide screens, a taller bar below that */
@media (min-width: 1200px) { .slide { padding-left: calc(var(--gutter) + 11rem); } }
@media (max-width: 1199px) { .slide, .stack-pinned.slide { padding-top: 8.5rem; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .js [data-r] { opacity: 1; transform: none; }
}
/* case-study page */
.case-sec .lines { margin-bottom: 1rem; }
.case-sec .note { margin: 0; }
