/* Olly Salanson - personal site, one page, no framework. Tokens first, then layout, then sections. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  /* light: warm paper and ink, one deep green accent */
  color-scheme: light;
  --bg: #f6f4ef;
  --bg-2: #efece5;
  --panel: #fcfbf8;
  --panel-2: #f1eee7;
  --line: rgba(40, 34, 24, .09);
  --line-2: rgba(40, 34, 24, .16);
  --text: #1c1b18;
  --text-2: #48443d;
  --muted: #7a746a;
  --accent: #2f5d50;
  --sea: #3b6a86;
  --ok: #3a7457;
  --warn: #93641c;
  --violet: #66588e;
  --shadow: 0 1px 2px rgba(40, 34, 24, .05), 0 18px 40px -22px rgba(40, 34, 24, .28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161513;
    --bg-2: #1b1a17;
    --panel: #1f1e1b;
    --panel-2: #252420;
    --line: rgba(255, 248, 235, .08);
    --line-2: rgba(255, 248, 235, .15);
    --text: #eeeae2;
    --text-2: #c8c3b9;
    --muted: #969086;
    --accent: #93c2ae;
    --sea: #8db6cf;
    --ok: #8fc6a6;
    --warn: #d9b06e;
    --violet: #b3a7d6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 50px -24px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513;
  --bg-2: #1b1a17;
  --panel: #1f1e1b;
  --panel-2: #252420;
  --line: rgba(255, 248, 235, .08);
  --line-2: rgba(255, 248, 235, .15);
  --text: #eeeae2;
  --text-2: #c8c3b9;
  --muted: #969086;
  --accent: #93c2ae;
  --sea: #8db6cf;
  --ok: #8fc6a6;
  --warn: #d9b06e;
  --violet: #b3a7d6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 50px -24px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
a:hover { text-decoration-color: currentColor; }
code { font: 500 .86em/1 var(--mono); padding: .15em .4em; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
em { font-style: normal; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* headings are set in the serif; the second half of a headline steps back in colour */
.hero__title, .section__title, .project__title, .closing__title, .brand { font-family: var(--serif); font-weight: 400; }
.section__title em, .closing__title em { color: var(--muted); }
.project__pitch em { font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-size: 23px; line-height: 1; letter-spacing: -.005em; text-decoration: none; }
.nav nav, .nav__end { margin-left: auto; }
.nav__links { display: flex; gap: 2px; }
.nav__links a { display: block; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: var(--panel-2); }
.theme {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: background .2s, transform .2s;
}
.theme:hover { background: var(--panel-2); }
.theme:active { transform: scale(.94); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .3s, transform .5s var(--ease); }
.theme__moon { fill: currentColor; stroke: none; }
:root .theme__sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root .theme__moon { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme__sun { opacity: 1; transform: none; } :root:not([data-theme="light"]) .theme__moon { opacity: 0; transform: rotate(90deg) scale(.6); } }
:root[data-theme="dark"] .theme__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme__moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__name { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.hero__name::before { content: ""; width: 32px; height: 1.5px; background: var(--accent); }
.hero__title { margin-top: 28px; font-size: clamp(44px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -.012em; }
.hero__bio { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--text); }
.hero__lede { margin-top: 20px; max-width: 54ch; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; color: var(--text-2); }
.hero__lede a { color: var(--text); font-weight: 500; }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__visual { margin: 0; }
.hero__visual figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); }
.collage { position: relative; padding: 0 0 15% 9%; }
.collage .collage__side { position: absolute; left: 0; bottom: 0; width: 46%; }
.collage .shot__frame { cursor: zoom-in; }

.footnote { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 72ch; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 144px) 0 0; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.kicker { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.section__title { margin-top: 16px; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.04; letter-spacing: -.012em; }
.section__lede { margin-top: 20px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); max-width: 62ch; }
.section__lede a { color: var(--text); font-weight: 500; }

/* ---------- how I work ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.steps__n { display: block; font: 400 30px/1 var(--serif); color: var(--accent); }
.steps h3 { margin-top: 16px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.steps p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

.pace { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.pace__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pace__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 22px; }
.pace__list b { display: block; font: 400 clamp(30px, 3vw, 40px)/1 var(--serif); color: var(--accent); }
.pace__list span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-2); }
.about__body { display: grid; gap: 18px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text-2); }
.about__body p:first-child { color: var(--text); }

/* ---------- projects ---------- */
.project {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.project:first-of-type { border-top: 0; padding-top: 0; }
.project--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.project--flip .project__copy { order: 2; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 12px/1 var(--sans); color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); font-weight: 600; letter-spacing: .01em; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--ok); }
.status--new { color: var(--sea); }
.status--early { color: var(--warn); }
.status--plan { color: var(--violet); }
.status--research { color: var(--accent); }
.project__title { margin-top: 18px; font-size: clamp(34px, 3.8vw, 48px); line-height: 1.04; letter-spacing: -.01em; }
.amp { font-weight: 400; color: var(--muted); }
.project__pitch { margin-top: 14px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--text); letter-spacing: -.01em; }
.facts { margin-top: 22px; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.facts li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 70%, transparent); }
.facts strong { color: var(--text); font-weight: 600; }
.facts em { font-weight: 600; color: var(--text); }
.onfm { margin-top: 22px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); }
.onfm__label { display: block; font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.onfm p { font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.onfm strong { color: var(--text); font-weight: 600; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.stack li { font: 500 11.5px/1 var(--sans); padding: 6px 8px; border-radius: 6px; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.links .repo { margin-top: 0; }
.repo { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); font: 500 13px/1.2 var(--sans); text-decoration: none; color: var(--text); max-width: 100%; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.repo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.repo:hover { border-color: var(--text); background: var(--panel); }
.repo svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.play { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.play:hover { transform: translateY(-1px); }
.small { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* screenshots */
.shot { margin: 0; position: relative; }
.shot__frame {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in;
  border-radius: 14px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.shot__frame:focus-visible { outline: 2px solid var(--sea); outline-offset: 4px; }
.shot__frame img { width: 100%; transition: transform .8s var(--ease); }
.shot__frame:hover img { transform: scale(1.015); }
.shot__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.shot__chrome i { display: none; }
.shot__chrome span { font: 500 11.5px/1 var(--sans); color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot__stage { position: relative; padding: 0 6% 13% 0; }
.shot__frame--float { position: absolute; right: 0; bottom: 0; width: 52%; border-radius: 12px; }
.shot__frame--narrow { width: 44%; }
.shot:hover .shot__frame--float { transform: translate(6px, 4px); }
.shot figcaption, .diagram figcaption, .gauge figcaption, .bars figcaption, .voyage figcaption, .bridge figcaption { margin-top: 14px; font: 400 12px/1.45 var(--sans); color: var(--muted); }

.shot--card { padding: 0; }
.shot--card .shot__frame { border-radius: 12px; aspect-ratio: 16 / 10; }
.shot--card .shot__frame img { height: 100%; object-fit: cover; object-position: top center; }

/* chinwag diagram */
.diagram { margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.chin { display: grid; grid-template-columns: 116px 1fr; gap: 22px; align-items: center; }
.chin__mic { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--sea) 22%, transparent), transparent 70%); border: 1px solid color-mix(in srgb, var(--sea) 40%, transparent); }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.wave i { width: 3px; height: 30%; border-radius: 3px; background: var(--sea); animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.13s); }
.wave i:nth-child(1) { --i: 1; } .wave i:nth-child(2) { --i: 5; } .wave i:nth-child(3) { --i: 2; } .wave i:nth-child(4) { --i: 7; }
.wave i:nth-child(5) { --i: 3; } .wave i:nth-child(6) { --i: 8; } .wave i:nth-child(7) { --i: 4; } .wave i:nth-child(8) { --i: 6; }
.wave i:nth-child(9) { --i: 2; } .wave i:nth-child(10) { --i: 9; } .wave i:nth-child(11) { --i: 5; } .wave i:nth-child(12) { --i: 1; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.chin__parts { display: grid; gap: 8px; counter-reset: part; }
.chin__parts li { counter-increment: part; position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 14px 11px 40px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.chin__parts li::before { content: counter(part); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; font: 500 10.5px/1 var(--sans); color: var(--sea); border: 1px solid color-mix(in srgb, var(--sea) 45%, transparent); }
.chin__parts li + li::after { content: ""; position: absolute; left: 20px; top: -9px; height: 8px; width: 1.5px; background: var(--line-2); }
.chin__parts b { font-weight: 600; }
.chin__parts span { font: 400 11.5px/1.3 var(--sans); color: var(--muted); text-align: right; }
.roadmap { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-2); }
.roadmap__label { display: flex; justify-content: space-between; gap: 12px; font: 500 11.5px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.roadmap__jobs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.roadmap__jobs li { position: relative; padding-top: 14px; font: 400 10.5px/1.2 var(--sans); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roadmap__jobs li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 3px; background: var(--line-2); }
.roadmap__jobs li.is-done { color: var(--text); }
.roadmap__jobs li.is-done::before { background: var(--sea); }
.roadmap__jobs li.is-review { color: var(--text); }
.roadmap__jobs li.is-review::before { background: repeating-linear-gradient(-45deg, var(--sea) 0 4px, color-mix(in srgb, var(--sea) 35%, transparent) 4px 8px); }

/* cards: tooling + horizon */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .3s;
}
.card:hover { border-color: var(--line-2); }
.card .project__title { font-size: clamp(26px, 2.6vw, 32px); margin-top: 16px; }
.card .project__pitch { font-size: 16.5px; }
.card .facts li { font-size: 14.5px; }
.card .onfm { background: var(--panel-2); }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.card__copy { display: flex; flex-direction: column; align-items: flex-start; }
.card__copy > * { max-width: 100%; }

/* memory watchdog gauge */
.gauge { margin: 0; align-self: center; padding: clamp(20px, 2.6vw, 28px); border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.gauge__now { font-size: 15px; color: var(--text-2); }
.gauge__now b { font: 400 34px/1 var(--serif); color: var(--text); margin-right: 4px; vertical-align: -3px; }
.gauge__track { position: relative; height: 12px; margin: 34px 0 6px; border-radius: 6px; background: var(--line); }
.gauge__fill { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 6px; background: var(--accent); }
.gauge__tick { position: absolute; top: -6px; bottom: -6px; left: var(--at); width: 1.5px; background: var(--text-2); }
.gauge__tick i { position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gauge__tick--stop { background: var(--warn); }
.gauge__rules { display: grid; gap: 0; margin-top: 22px; }
.gauge__rules li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--text-2); }
.gauge__rules b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* research bars */
.bars { margin: 0; align-self: center; display: grid; gap: 20px; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.bar__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-2); }
.bar__label b { font: 500 13px/1.2 var(--sans); color: var(--text); white-space: nowrap; }
.bar__track { position: relative; margin-top: 9px; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar__track span { position: absolute; top: 0; bottom: 0; left: var(--o, 0); width: var(--v); background: var(--accent); border-radius: 5px; transform-origin: left; }
.bar__track .bar__ghost { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 45%, transparent) 0 3px, transparent 3px 7px); border-radius: 0 5px 5px 0; }
.bar__note { margin-top: 7px; font: 400 11.5px/1.3 var(--sans); color: var(--muted); }
.js .bars .bar__track span { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .bars.is-in .bar__track span { transform: none; }
.js .bars.is-in .bar__track .bar__ghost { transition-delay: .5s; }

/* crow's nest voyage */
.card--horizon > figure { order: -1; }
.voyage { margin: 0; }
.voyage__stops { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; counter-reset: stop; padding: 18px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.voyage__stops li { counter-increment: stop; position: relative; padding: 7px 0 7px 34px; font-size: 13.5px; line-height: 1.3; }
.voyage__stops li::before { content: counter(stop, decimal-leading-zero); position: absolute; left: 0; top: 7px; font: 500 11px/1.4 var(--sans); color: var(--violet); }
.voyage__stops b { font-weight: 600; }
.voyage__stops span { display: block; font: 400 11px/1.4 var(--sans); color: var(--muted); }

/* shipshape bridge */
.bridge { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr); align-items: center; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.bridge figcaption { grid-column: 1 / -1; margin-top: 4px; }
.bridge__side { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); min-width: 0; }
.bridge__side--fm { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.bridge__name { font-weight: 600; letter-spacing: -.01em; }
.bridge__role { font: 400 11px/1.3 var(--sans); color: var(--muted); }
.bridge__areas { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.bridge__areas li { font: 500 10.5px/1 var(--sans); padding: 4px 6px; border-radius: 5px; color: var(--violet); border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent); }
.bridge__wires { display: grid; gap: 6px; font: 400 11px/1.3 var(--sans); color: var(--text-2); }
.bridge__wires li { padding: 6px 8px; border-radius: 6px; border: 1px dashed var(--line-2); white-space: nowrap; }
.bridge__wires .to-right { text-align: right; }
.bridge__wires em { color: var(--muted); }

/* ---------- closing + footer ---------- */
.closing { padding: clamp(96px, 13vw, 168px) 0 clamp(72px, 9vw, 112px); text-align: center; }
.closing__inner { max-width: 760px; }
.closing p.kicker { margin: 0 0 20px; max-width: none; font-size: 12px; color: var(--accent); }
.closing__title { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -.012em; }
.closing p { margin: 22px auto 0; max-width: 54ch; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); }
.closing__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
/* 404 page: the closing block on its own, centred in the space between nav and footer. */
.page-lost { min-height: 100svh; display: flex; flex-direction: column; }
.page-lost main { flex: 1; display: grid; align-content: center; }
.page-lost .closing { padding-block: 56px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--text); }
.btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot__inner { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot__inner p { max-width: 56ch; }

/* ---------- lightbox ---------- */
.zoom { width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: transparent; overflow: visible; }
.zoom::backdrop { background: rgba(5, 6, 9, .82); backdrop-filter: blur(6px); }
.zoom__img { width: 100%; max-height: 94vh; object-fit: contain; border-radius: 12px; box-shadow: 0 40px 100px rgba(0,0,0,.6); background: #000; }
.zoom__img.is-pixel { image-rendering: pixelated; }
.zoom__close { position: absolute; top: -14px; right: -14px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: #111319; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.zoom[open] { animation: zoomIn .35s var(--ease); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.97); } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 720px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .pace__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .project, .card--wide { grid-template-columns: minmax(0, 1fr); }
  .project--flip { grid-template-columns: minmax(0, 1fr); }
  .project--flip .project__copy { order: 0; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .nav__links { display: none; }
  .theme { margin-left: auto; }
}
@media (max-width: 640px) {
  .pace__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 16px 0; }
  .steps__n { grid-row: 1 / span 2; font-size: 26px; }
  .steps h3 { margin-top: 0; }
  .shot__stage { padding: 0; }
  .shot__frame--float { position: relative; width: 72%; margin: -18% 0 0 auto; }
  .shot__frame--narrow { width: 64%; }
  .chin { grid-template-columns: minmax(0, 1fr); }
  .chin__mic { width: 96px; }
  .chin__parts span { display: none; }
  .roadmap__jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
  .voyage__stops { grid-template-columns: minmax(0, 1fr); }
  .bridge { grid-template-columns: minmax(0, 1fr); }
  .bridge__wires li, .bridge__wires .to-right { white-space: normal; text-align: left; }
  .bridge__wires .arr { font-size: 0; }
  .bridge__wires .arr::after { content: attr(data-v); font-size: 11px; }
  .bridge__wires .to-right .arr { float: right; }
  .repo span { font-size: 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
