/* Mesophotic deep dive. Scroll is descent: surface light at the top of every page, abyss below.
   Thermocline cyan marks only the active depth and the primary action. Long-form reading sits on
   white dive slates. Faces: Archivo (condensed caps for display, normal width for text) and
   Martian Mono for dive-computer readouts, dates, counts and UI labels. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-VF.2f7ea45bad3a.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/MartianMono-VF.9fc94a3d1ad7.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 96%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --abyss: #050A14;
  --midnight: #0B1626;
  --cold: #10243A;
  --meso: #071A2E;
  --deep: #02060D;
  --thermo: #23D6E6;
  --thermo-soft: rgba(35, 214, 230, .14);
  --thermo-line: rgba(35, 214, 230, .45);
  --snow: #F4F6FA;
  --text: #9FB0C3;
  --body: #D3DCE6;
  --bright: #F4F6FA;
  --line: #1B2E44;
  --line-strong: #2B4560;
  --slate: #E8EDF3;
  --slate-ink: #13202F;
  --slate-text: #24364A;
  --slate-muted: #4A5D73;
  --slate-line: #D2DBE5;
  --warn: #F2B544;
  /* aliases used by Studio, sign-in and the admin skin */
  --ground: var(--abyss);
  --raise: #0D1A2B;
  /* the old allow/block pair survives only as state colours in data (verdicts, severities) */
  --allow: #6FE3B0;
  --block: #FF6B8B;
  --sans: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --step--2: .75rem;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem);
  --step-4: clamp(3rem, 1.6rem + 6vw, 6rem);
  --frame: 76rem;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--stage, var(--abyss)) linear-gradient(180deg, #123049 0, var(--midnight) 18rem, transparent 52rem) no-repeat;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--deep);
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--sans);
  font-stretch: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--thermo); color: var(--abyss); }
h1, h2, h3 { color: var(--bright); font-weight: 650; line-height: 1.08; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: var(--step-3); font-stretch: 68%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .98; }
h2 { font-size: var(--step-2); font-stretch: 82%; }
h3 { font-size: var(--step-1); font-stretch: 92%; }
p { margin: 0 0 1em; }
a { color: var(--bright); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { text-decoration-color: var(--thermo); }
:focus-visible { outline: 2px solid var(--thermo); outline-offset: 3px; }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-size: .85em; letter-spacing: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--thermo); color: var(--abyss); padding: .5rem 1rem; z-index: 30; }
.skip:focus { top: 1rem; }
main:focus { outline: none; }
.frame { max-width: var(--frame); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.col { max-width: var(--frame); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.col > * { max-width: 46rem; }
.fineprint { font-size: var(--step--1); color: var(--text); }

/* labels and readouts: the dive computer voice */
.label, .nav ul a, .btn, .btn-line, .nav-cta, .readout, .crumbs, .byline, .story-meta, .index-meta, .side-title,
.footer-h, .topic-bar a, .tags a, .tag-cloud a, .subtopics a, .pager, .info-cards dt, .when, .resume-dates, .archive-list time {
  font-family: var(--mono);
  font-stretch: 87.5%;
  letter-spacing: .06em;
}
.label { display: block; font-size: var(--step--2); text-transform: uppercase; color: var(--text); letter-spacing: .14em; }

/* buttons: solid thermocline for the one action, hairline outline for the rest */
.btn, .btn-line, .nav-cta {
  display: inline-flex; align-items: center; gap: .9rem; font-size: var(--step--1); font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none; padding: .85rem 1.25rem; border-radius: 0; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn { color: var(--abyss); background: var(--thermo); border: 1px solid var(--thermo); }
.btn:hover { background: #5be6f1; color: var(--abyss); }
.btn-line, .nav-cta { color: var(--bright); background: transparent; border: 1px solid var(--line-strong); }
.btn-line:hover, .nav-cta:hover { border-color: var(--thermo); color: var(--thermo); }
.btn::after, .btn-line::after, .nav-cta::after { content: ""; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
button.btn, button.btn-line { font-family: var(--mono); }

/* header: the expedition bar */
.site-header { border-bottom: 1px solid var(--line); background: rgba(5, 10, 20, .94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.nav { display: flex; align-items: center; gap: .75rem 2rem; flex-wrap: wrap; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--bright); text-decoration: none; font-weight: 700; font-stretch: 68%; font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand img { height: 2rem; width: auto; }
.brand-mark { width: 1.9rem; height: 1.9rem; flex: none; color: var(--thermo); }
.nav ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--text); text-decoration: none; font-size: var(--step--2); text-transform: uppercase; letter-spacing: .16em; padding: .35rem 0; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--bright); }
.nav ul a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--thermo); }
.nav-cta { padding: .55rem .9rem; font-size: var(--step--2); }
.nav-cta[aria-current="page"] { border-color: var(--thermo); color: var(--thermo); }
.icon { width: 1.05rem; height: 1.05rem; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 52rem) {
  .nav { gap: .6rem 1rem; }
  .nav .nav-cta { margin-left: auto; }
  .nav ul { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: .5rem; flex-wrap: nowrap; }
  .brand { font-size: 1.25rem; }
}

/* ---------- HOME: the dive ---------- */
.snow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 12; pointer-events: none; display: none; mix-blend-mode: screen; }
.has-snow .snow { display: block; }
.is-home main { position: relative; z-index: 1; }
.has-stage .dive { background: none; }
.dive { display: grid; grid-template-columns: minmax(0, 1fr); background: linear-gradient(180deg, transparent 0, rgba(16, 36, 58, .35) 30%, rgba(7, 26, 46, .7) 55%, var(--deep) 80%, rgba(11, 22, 38, .9) 100%); }
@media (min-width: 64rem) { .dive { grid-template-columns: 19rem minmax(0, 1fr); } }

/* dive profile rail = navigation of the home page */
.profile { display: none; }
@media (min-width: 64rem) {
  .profile { display: flex; flex-direction: column; position: sticky; top: 4.1rem; height: calc(100vh - 4.1rem); border-right: 1px solid var(--line); padding: 1.6rem 1.5rem 1.4rem 2rem; background: rgba(2, 6, 13, .45); }
}
.profile-h { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bright); margin: 0 0 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.profile-h span { color: var(--text); letter-spacing: .1em; }
.profile ol { list-style: none; margin: 0; padding: 0; position: relative; }
.profile ol::before { content: ""; position: absolute; left: .32rem; top: .9rem; bottom: .9rem; width: 1px; background: var(--line-strong); }
.profile a { display: grid; grid-template-columns: 1.4rem 2.1rem minmax(0, 1fr) auto; column-gap: .55rem; align-items: baseline; padding: .62rem 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); position: relative; }
.profile a::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; border: 1px solid var(--text); background: var(--deep); align-self: center; position: relative; z-index: 1; }
.profile .stop-n { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--1); color: var(--text); }
.profile .stop-name { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--bright); }
.profile .stop-sub { grid-column: 3 / 5; font-size: var(--step--1); color: var(--text); line-height: 1.35; }
.profile a:hover .stop-name { color: var(--thermo); }
.profile a[aria-current="step"] { color: var(--bright); }
.profile a[aria-current="step"]::before { background: var(--thermo); border-color: var(--thermo); box-shadow: 0 0 0 4px var(--thermo-soft); }
.profile a[aria-current="step"] .stop-n, .profile a[aria-current="step"] .stop-name { color: var(--thermo); }
.profile dl { margin: auto 0 0; padding-top: 1rem; display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; }
.profile dt { color: var(--text); }
.profile dd { margin: 0; color: var(--bright); text-align: right; }

.dive-col { min-width: 0; }
.zone { position: relative; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: 4rem; }
.zone > * { max-width: 60rem; }
.zone-title { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-stretch: 66%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1; margin: 0 0 2rem; }
.zone-title .depth-tag { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--1); font-weight: 400; letter-spacing: .1em; color: var(--text); }
.zone-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* surface: the first viewport */
.zone-surface { min-height: calc(100svh - 4.1rem); display: grid; align-content: center; gap: 2.5rem; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(7rem, 12vw, 9rem); }
.zone-surface::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 72% 0%, rgba(120, 220, 240, .2), transparent 70%), repeating-linear-gradient(104deg, transparent 0 2.6rem, rgba(170, 232, 246, .07) 2.6rem 3.4rem, transparent 3.4rem 6.5rem, rgba(170, 232, 246, .04) 6.5rem 8.5rem, transparent 8.5rem 11rem); -webkit-mask-image: radial-gradient(60% 95% at 74% 0%, #000, transparent 78%); mask-image: radial-gradient(60% 95% at 74% 0%, #000, transparent 78%); pointer-events: none; }
.surface-grid { display: grid; gap: 2.5rem; max-width: none; position: relative; }
@media (min-width: 80rem) { .surface-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: center; column-gap: 3.5rem; } }
.dive-name { font-size: var(--step-4); font-stretch: 62%; font-weight: 700; line-height: .9; letter-spacing: .015em; margin: 0 0 1.4rem; text-transform: uppercase; }
.dive-role { font-size: var(--step-1); color: var(--body); max-width: 36ch; line-height: 1.5; margin: 0 0 2.25rem; }
.lead-log { border: 1px solid var(--line-strong); background: rgba(5, 10, 20, .62); padding: 1.5rem 1.6rem 1.6rem; max-width: 46rem; }
.lead-log h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); font-stretch: 78%; margin: 0 0 .55rem; line-height: 1.1; }
.lead-log h2 a { text-decoration: none; }
.lead-log h2 a:hover { text-decoration: underline; text-decoration-color: var(--thermo); }
.lead-log .meta { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.lead-log .meta .on { color: var(--bright); }
.lead-log p { color: var(--body); max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 1.4rem; }
.env { border: 1px solid var(--line); background: rgba(2, 6, 13, .5); }
.surface-side { display: grid; gap: 1.5rem; min-width: 0; }
.waf dd.mono { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .02em; overflow-wrap: anywhere; }
.waf .waf-ua { color: var(--body); line-height: 1.55; }
.waf .is-allow { color: var(--allow); }
.waf .is-block { color: var(--block); }
.waf-note { margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: var(--step--2); color: var(--text); line-height: 1.5; }
.env h2 { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin: 0; padding: .85rem 1rem; border-bottom: 1px solid var(--line); color: var(--bright); }
.env dl { margin: 0; }
.env div { display: grid; gap: .1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.env div:last-child { border-bottom: 0; }
.env dt { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.env dd { margin: 0; color: var(--bright); font-size: var(--step--1); line-height: 1.45; }

/* dive computer readout, pinned to the bottom of the viewport on the home page */
.readout { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: .5rem 2.25rem; flex-wrap: wrap; padding: .55rem clamp(1rem, 4vw, 3.5rem) .6rem; pointer-events: none; text-transform: uppercase; color: var(--text); background: rgba(2, 6, 13, .88); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
@media (min-width: 64rem) { .readout { left: 19rem; } }
.readout div { display: flex; align-items: baseline; gap: .7rem; }
.readout span { font-size: var(--step--2); letter-spacing: .16em; }
.readout b { font-weight: 400; color: var(--thermo); font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1; letter-spacing: .02em; }
.readout b small { font-size: .45em; margin-left: .25em; color: var(--text); letter-spacing: .1em; }
.readout .stop b { color: var(--bright); font-size: var(--step--1); letter-spacing: .16em; }
.is-home .zone { padding-bottom: clamp(5rem, 10vw, 8rem); }
.is-home .nav { max-width: none; padding-inline: 2rem; }
@media (max-width: 40rem) { .readout { gap: .5rem 1.25rem; } .readout .time, .readout .layer { display: none; } }

/* thermocline: the latest writing, a band of cyan across the column */
/* the iceberg: surface web above the waterline, deep and dark web below it */
.zone-surface { background: url("../img/iceberg-tip.a91e6f3816bf.svg") no-repeat right 4% bottom / min(62%, 46rem) auto; }
.below { position: relative; background: url("../img/iceberg-body.587f4c01d4c7.svg") no-repeat right 4% top / min(62%, 46rem) 100%; }
.layer-start::after { content: attr(data-layer); position: absolute; right: clamp(1rem, 4vw, 3.5rem); top: 1.4rem; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: var(--text); pointer-events: none; }
.zone-surface.layer-start::after { top: auto; bottom: 1rem; }
.zone-thermo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--thermo) 20%, var(--thermo) 80%, transparent); box-shadow: 0 0 24px 2px var(--thermo-line); }
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.log li { border-bottom: 1px solid var(--line); }
.log a { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .3rem 1.5rem; padding: 1.05rem 0; text-decoration: none; }
.log time, .log .log-len { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--text); padding-top: .32rem; }
.log .log-title { color: var(--bright); font-size: var(--step-1); font-stretch: 90%; font-weight: 600; line-height: 1.25; }
.log .log-topic { grid-column: 2; font-size: var(--step--1); color: var(--text); }
.log .log-len { grid-column: 1; grid-row: 2; padding-top: 0; }
.log a:hover .log-title { color: var(--thermo); }
@media (min-width: 52rem) { .log a { grid-template-columns: 7rem minmax(0, 1fr) 13rem 4.5rem; align-items: baseline; } .log .log-topic { grid-column: auto; } .log .log-len { grid-column: auto; grid-row: auto; text-align: right; } }

/* reef ledge: work as observations */
.obs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.obs a { display: grid; gap: .4rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.obs .obs-name { color: var(--bright); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); font-stretch: 68%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.obs .obs-sum { color: var(--body); line-height: 1.5; max-width: 52ch; }
.obs a:hover .obs-name { color: var(--thermo); }
@media (min-width: 60rem) { .obs a { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }

/* mesophotic wall: research and topics as species */
.species { list-style: none; margin: 0; padding: 0 1px 1px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.species li { border: 1px solid var(--line); margin: 0 -1px -1px 0; }
.species a { display: grid; gap: .5rem; min-height: 7.5rem; align-content: space-between; padding: 1rem 1.1rem; background: var(--deep); text-decoration: none; transition: background-color .2s ease; }
.species .sp-name { color: var(--bright); font-stretch: 85%; font-weight: 600; font-size: var(--step-0); line-height: 1.25; }
.species .sp-count { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.species a:hover { background: var(--meso); }
.species a:hover .sp-name { color: var(--thermo); }
.wall-empty { color: var(--text); max-width: 56ch; }

/* turnaround: the portrait forms out of the marine snow */
.turn { display: grid; gap: 2.5rem; max-width: none; }
@media (min-width: 60rem) { .turn { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); column-gap: 4rem; align-items: start; } }
.snow-portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 22rem; border: 1px solid var(--line-strong); background: var(--deep); overflow: hidden; }
.snow-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.snow-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); background: linear-gradient(0deg, rgba(2, 6, 13, .9), transparent); }
.turn-copy p { color: var(--body); max-width: 60ch; }
.career { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.career li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.career .c-role { color: var(--bright); font-weight: 600; font-stretch: 92%; }
.career .c-org { color: var(--text); font-weight: 400; }
.career .c-when { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
@media (min-width: 48rem) { .career li { grid-template-columns: minmax(0, 1fr) 12rem; align-items: baseline; } .career .c-when { text-align: right; } }

/* ascent: back to the surface, where the contact is */
.zone-ascent { background: linear-gradient(180deg, transparent, rgba(35, 214, 230, .08)); border-bottom: 0; padding-bottom: clamp(8rem, 14vw, 11rem); }
.ascent-line { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); font-stretch: 62%; font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: .015em; margin: 0 0 1.5rem; max-width: 14ch; }
.ascent-copy { color: var(--body); font-size: var(--step-1); max-width: 44ch; line-height: 1.5; }
.ascent-links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 2rem 0 0; padding: 0; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; }
.ascent-links a { color: var(--text); text-decoration: none; }
.ascent-links a:hover { color: var(--thermo); }

/* home motion: the one orchestrated moment is the descent itself (scroll-driven in dive.js) */
@media (prefers-reduced-motion: no-preference) {
  .dive-name, .dive-role, .lead-log { animation: surface-in .9s cubic-bezier(.16, 1, .3, 1) both; }
  .dive-role { animation-delay: .08s; }
  .lead-log { animation-delay: .16s; }
}
@keyframes surface-in { from { opacity: .001; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1.25rem; }
.page-head h1 { max-width: 20ch; }
.page-lede { font-size: var(--step-1); color: var(--body); max-width: 48ch; line-height: 1.5; }
.block { padding-top: clamp(3rem, 7vw, 5rem); }
.block-title { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bright); margin: 0 0 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-strong); }
.intro-links { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.about-head { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 60rem) { .about-head { grid-template-columns: minmax(0, 1fr) 17rem; } }
.portrait { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line-strong); background: var(--deep); aspect-ratio: 4 / 5; max-width: 22rem; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 60rem) { .portrait { max-width: 15rem; } }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); background: linear-gradient(0deg, rgba(2, 6, 13, .9), transparent); }

/* work rows */
.work-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line-strong); }
.work-row { border-bottom: 1px solid var(--line); }
.work-link { display: grid; gap: .4rem 2.5rem; padding: 1.5rem 0; text-decoration: none; }
.work-name { color: var(--bright); font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); font-weight: 700; font-stretch: 68%; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.work-summary { color: var(--body); line-height: 1.5; }
.work-link:hover .work-name { color: var(--thermo); }
@media (min-width: 52rem) { .work-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }

/* writing index rows (search, taxonomy) */
.index { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line-strong); }
.index-row { display: grid; gap: .35rem 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.index-link { text-decoration: none; display: grid; gap: .35rem; }
.index-title { color: var(--bright); font-size: var(--step-1); font-weight: 600; font-stretch: 90%; line-height: 1.25; }
.index-link:hover .index-title { color: var(--thermo); }
.index-excerpt { color: var(--text); max-width: 64ch; }
.index-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: var(--step--2); text-transform: uppercase; margin: 0; }
@media (min-width: 52rem) { .index-row { grid-template-columns: minmax(0, 1fr) 12rem; } .index-meta { flex-direction: column; align-items: flex-end; text-align: right; padding-top: .45rem; } }

/* CVE rows */
.cve-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line-strong); }
.cve-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cve-link { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: baseline; text-decoration: none; }
.cve-id { color: var(--thermo); font-family: var(--mono); font-stretch: 87.5%; }
.cve-title { color: var(--bright); }
.cve-link:hover .cve-title { text-decoration: underline; text-decoration-color: var(--thermo); }
.severity { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; padding: .2rem .6rem; border: 1px solid var(--line-strong); color: var(--bright); white-space: nowrap; }
.severity-critical { border-color: var(--block); color: var(--block); }
.severity-high { border-color: var(--warn); color: var(--warn); }

/* blog: the dive log (story list + sidebar) */
.blog-head { padding-bottom: .25rem; }
.topic-bar { margin: 0 0 2.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.topic-bar ul { list-style: none; display: flex; gap: .25rem 1.75rem; margin: 0; padding: .85rem 0; white-space: nowrap; }
.topic-bar a { color: var(--text); text-decoration: none; font-size: var(--step--2); text-transform: uppercase; letter-spacing: .14em; padding: .3rem 0; }
.topic-bar a:hover, .topic-bar a[aria-current="page"] { color: var(--bright); }
.topic-bar a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--thermo); color: var(--thermo); }
.blog-grid { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .blog-grid { grid-template-columns: minmax(0, 1fr) 19rem; } }
.blog-main { min-width: 0; }

.story { display: grid; gap: 1rem 1.75rem; padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); }
.story-thumb { display: block; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 1200 / 630; background: var(--deep); }
.story-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.story:hover .story-thumb img { transform: scale(1.025); }
.story-meta { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: var(--step--2); text-transform: uppercase; margin: 0 0 .5rem; color: var(--text); }
.story-meta a { color: var(--thermo); text-decoration: none; }
.story-meta a:hover { text-decoration: underline; }
.story-title { font-size: var(--step-1); font-stretch: 88%; line-height: 1.2; margin: 0 0 .5rem; }
.story-title a { text-decoration: none; color: var(--bright); }
.story-title a:hover { color: var(--thermo); }
.story-excerpt { margin: 0 0 .5rem; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-time { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
@media (min-width: 40rem) { .story:not(.story-lead):not(.story-card) { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; } }
.story-lead .story-title { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); font-stretch: 78%; font-weight: 700; line-height: 1.08; }
.story-lead .story-excerpt { -webkit-line-clamp: 4; font-size: var(--step-1); line-height: 1.5; }
.story-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding: 0 0 1.75rem; margin: 0 0 1.75rem; border-bottom: 1px solid var(--line); }
.story-row .story-card { display: grid; gap: .75rem; align-content: start; padding: 0; margin: 0; border: 0; }
.story-card .story-title { font-size: var(--step-0); }

.blog-side { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 64rem) { .blog-side { position: sticky; top: 5.5rem; } }
.side-title { display: block; font-size: var(--step--2); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; color: var(--bright); margin: 0 0 .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line-strong); }
.side-stories { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.side-stories li { border-bottom: 1px solid var(--line); }
.side-stories a { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .6rem; align-items: start; padding: .75rem 0; text-decoration: none; color: var(--bright); font-weight: 500; line-height: 1.35; font-size: var(--step--1); }
.rank { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); color: var(--thermo); padding-top: .15rem; }
.side-stories a:hover span:last-child { color: var(--thermo); }
.side-cves, .side-topics { list-style: none; margin: 0; padding: 0; }
.side-cves li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.side-cves a { display: grid; text-decoration: none; min-width: 0; }
.side-cves .mono { color: var(--thermo); }
.side-cves a span:last-child { color: var(--text); font-size: var(--step--1); }
.side-topics li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.side-topics a { color: var(--bright); text-decoration: none; }
.side-topics a:hover { color: var(--thermo); }
.side-topics span { font-family: var(--mono); font-stretch: 87.5%; color: var(--text); font-size: var(--step--2); }
.side-follow p { font-size: var(--step--1); }
.side-search div { display: flex; gap: .5rem; }
.side-search input { flex: 1; min-width: 0; font: inherit; font-size: var(--step--1); color: var(--bright); background: var(--deep); border: 1px solid var(--line-strong); border-radius: 0; padding: .6rem .8rem; }
.side-search input::placeholder { color: #6E8299; }
.side-search .btn { padding: .6rem .8rem; }
.side-search .btn::after { display: none; }
.tag-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.tag-cloud a, .tags a, .subtopics a { display: inline-block; font-size: var(--step--2); text-transform: lowercase; color: var(--body); border: 1px solid var(--line-strong); padding: .3rem .6rem; text-decoration: none; letter-spacing: .04em; }
.tag-cloud a:hover, .tags a:hover, .subtopics a:hover { color: var(--thermo); border-color: var(--thermo-line); }
.tag-cloud span { color: var(--text); margin-left: .2rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 2rem; }
.subtopics ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: -1rem 0 2rem; padding: 0; }
.side-archive { margin: 0; }
.archive-month h2 { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--1); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: 2.25rem 0 .5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line-strong); }
.archive-month:first-child h2 { margin-top: 0; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.archive-list time { color: var(--text); font-size: var(--step--2); text-transform: uppercase; padding-top: .25rem; }
.archive-list a { color: var(--bright); text-decoration: none; }
.archive-list a:hover { color: var(--thermo); }

/* ---------- article: the dive slate ---------- */
.article-head { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); font-stretch: 78%; text-transform: none; letter-spacing: 0; line-height: 1.06; max-width: 28ch; margin-bottom: 1.1rem; }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: var(--step--2); text-transform: uppercase; margin: 0 0 2rem; color: var(--text); }
.byline a { color: var(--thermo); text-decoration: none; }
.article-cover { margin: 0 0 0; border: 1px solid var(--line-strong); border-bottom: 0; overflow: hidden; }
.article-cover img { display: block; width: 100%; height: auto; }
.prose { background: var(--slate); color: var(--slate-text); padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.75rem); font-size: 1.125rem; line-height: 1.75; }
.prose > * { margin: 0 0 1.15em; max-width: 68ch; }
.prose > :last-child { margin-bottom: 0; }
.prose ::selection { background: #BDEFF5; color: var(--slate-ink); }
.prose h2, .prose h3, .prose h4 { color: var(--slate-ink); text-transform: none; }
.prose h2 { font-size: var(--step-2); font-stretch: 80%; font-weight: 700; margin: 2.1em 0 .6em; padding-top: .9em; border-top: 1px solid var(--slate-line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--step-1); font-stretch: 90%; margin: 1.8em 0 .5em; }
.prose h4 { font-weight: 650; margin: 1.6em 0 .4em; }
.prose p, .prose li { color: var(--slate-text); }
.prose strong, .prose b { color: var(--slate-ink); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: #0E8FA0; }
.prose a { color: #0B6E7C; text-decoration-color: rgba(11, 110, 124, .4); }
.prose a:hover { text-decoration-color: #0B6E7C; }
.prose img, .prose video { max-width: 100%; height: auto; border: 1px solid var(--slate-line); }
.prose code { font-family: var(--mono); font-stretch: 87.5%; font-size: .82em; background: #D8E0E9; padding: .1em .35em; color: var(--slate-ink); }
.prose pre { max-width: none; overflow-x: auto; padding: 1.15rem 1.3rem; background: var(--midnight); border: 1px solid var(--cold); font-size: var(--step--1); line-height: 1.65; color: var(--body); scrollbar-color: var(--line-strong) var(--midnight); }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--slate-line); margin: 2.5em 0; }
.prose mark { background: #BDEFF5; color: var(--slate-ink); padding: 0 .2em; }
.prose table { display: block; max-width: none; overflow-x: auto; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.prose th, .prose td { border: 1px solid var(--slate-line); padding: .5rem .8rem; text-align: left; vertical-align: top; }
.prose th { color: var(--slate-ink); background: #DCE3EB; font-weight: 650; }
.prose figure { margin: 1.75em 0; max-width: none; }
.prose figcaption { font-size: var(--step--1); color: var(--slate-muted); margin-top: .5rem; }
.prose figcaption:empty { display: none; }
.prose blockquote { margin: 1.75em 0; padding: .3rem 0 .3rem 1.25rem; border-left: 1px solid #0E8FA0; }
.prose blockquote p { margin: 0; color: var(--slate-ink); font-size: var(--step-1); line-height: 1.45; }
.prose cite { display: block; font-size: var(--step--1); font-style: normal; margin-top: .5rem; color: var(--slate-muted); }
.prose cite:empty { display: none; }
.prose h2[id], .prose h3[id], .prose h4[id] { scroll-margin-top: 5.5rem; }
/* short pages (About, Work, plain pages): the same prose straight on the water, no slate */
.prose-water { --slate-ink: var(--bright); --slate-text: var(--body); --slate-muted: var(--text); --slate-line: var(--line); background: none; padding: 0; }
.prose-water ::selection { background: var(--thermo-soft); color: var(--bright); }
.prose-water a { color: var(--bright); text-decoration-color: var(--thermo-line); }
.prose-water a:hover { color: var(--thermo); text-decoration-color: var(--thermo); }
.prose-water li::marker { color: var(--text); }
.prose-water code { background: var(--raise); color: var(--bright); }
.prose-water th { background: var(--raise); }
.prose-water mark { background: var(--thermo-soft); color: var(--bright); }
.prose-water blockquote { border-left-color: var(--line-strong); }
.content-container { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: none; }
.content-container-col > :first-child { margin-top: 0; }
@media (min-width: 45rem) {
  .cols-1 { grid-template-columns: 1fr; }
  .cols-1-1 { grid-template-columns: 1fr 1fr; }
  .cols-1-1-1 { grid-template-columns: repeat(3, 1fr); }
  .cols-1-1-1-1 { grid-template-columns: repeat(4, 1fr); }
  .cols-2-1 { grid-template-columns: 2fr 1fr; }
  .cols-1-2 { grid-template-columns: 1fr 2fr; }
  .cols-1-3 { grid-template-columns: 1fr 3fr; }
  .cols-3-1 { grid-template-columns: 3fr 1fr; }
  .cols-1-1-2 { grid-template-columns: 1fr 1fr 2fr; }
  .cols-2-1-1 { grid-template-columns: 2fr 1fr 1fr; }
}
.content-container > * { min-width: 0; }
.rich-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.rich-embed p { font-size: var(--step--1); margin: .5rem 0 0; }
.rich-warning { background: #FFF6E3; border: 1px solid #F0D49A; padding: .9rem 1.1rem; }
.rich-warning strong { color: #6B4A06; }
.rich-warning p { margin: .25rem 0 0; color: #5A4313; }
.has-copy { position: relative; }
.code-copy { position: absolute; top: .5rem; right: .5rem; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); background: var(--cold); border: 1px solid var(--line-strong); padding: .3rem .6rem; cursor: pointer; opacity: .8; }
.code-copy:hover, .code-copy:focus-visible { opacity: 1; color: var(--thermo); }

.post-layout { display: grid; gap: 2rem 3.5rem; max-width: 92rem; padding-inline: clamp(1rem, 4vw, 3.5rem); }
.post-main { min-width: 0; }
.post-main > * { max-width: 56rem; }
body:has(.post-layout) :is(.nav, .footer) { max-width: 92rem; padding-inline: clamp(1rem, 4vw, 3.5rem); }
@media (min-width: 72rem) {
  .post-layout:has(.toc-side) { grid-template-columns: minmax(0, 1fr) 16rem; }
  .toc-inline { display: none; }
}
.toc-side { display: none; }
@media (min-width: 72rem) { .toc-side { display: block; position: sticky; top: 5.5rem; align-self: start; margin-top: 3rem; max-height: calc(100vh - 7rem); overflow-y: auto; scrollbar-width: thin; } }
.toc-side ol, .toc-inline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.toc-side ol::before { content: ""; position: absolute; left: .3rem; top: .8rem; bottom: .8rem; width: 1px; background: var(--line-strong); }
.toc-side li, .toc-inline li { padding: .38rem 0 .38rem 1.4rem; font-size: var(--step--1); line-height: 1.4; position: relative; }
.toc-side li::before { content: ""; position: absolute; left: 0; top: .85em; width: .6rem; height: .6rem; border-radius: 50%; border: 1px solid var(--text); background: var(--abyss); }
.toc-side li.toc-l3, .toc-inline li.toc-l3 { padding-left: 2.2rem; }
.toc-side li.toc-l3::before { left: .1rem; width: .4rem; height: .4rem; }
.toc-side a, .toc-inline a { color: var(--text); text-decoration: none; }
.toc-side a:hover, .toc-inline a:hover { color: var(--thermo); }
.toc-inline { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line-strong); background: rgba(2, 6, 13, .5); }
.toc-inline summary { cursor: pointer; color: var(--bright); font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; }
.toc-inline ol { margin-top: .6rem; }
.toc-inline li { padding-left: 0; }

.crumbs { padding-top: clamp(1.5rem, 4vw, 2.25rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; font-size: var(--step--2); text-transform: uppercase; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); margin: 0 .55rem 0 .3rem; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--thermo); }
.crumbs + .article-head, .crumbs + .page-head { padding-top: 1rem; }

.article-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.share { margin: 0 0 2rem; }
.share h2, .related h2 { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding-bottom: .7rem; border-bottom: 1px solid var(--line-strong); }
.share ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; }
.share a, .share-copy { display: inline-block; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--bright); background: transparent; border: 1px solid var(--line-strong); padding: .4rem .7rem; text-decoration: none; cursor: pointer; }
.share a:hover, .share-copy:hover { border-color: var(--thermo); color: var(--thermo); }
.author-box { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1.25rem; align-items: center; margin: 0 0 2rem; padding: 1.25rem; border: 1px solid var(--line-strong); background: rgba(2, 6, 13, .5); }
.author-box img { width: 5rem; height: 6.25rem; object-fit: cover; filter: grayscale(.3); }
.author-box p { margin: 0 0 .35rem; font-size: var(--step--1); color: var(--body); }
.author-box .author-name { font-size: var(--step-0); font-weight: 650; }
.author-name a { color: var(--bright); text-decoration: none; }
.author-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.post-nav { display: grid; gap: 1px; margin: 0 0 2rem; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 40rem) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1rem 1.1rem; background: var(--abyss); color: var(--bright); text-decoration: none; font-weight: 600; line-height: 1.35; }
.post-nav a:hover { background: var(--midnight); color: var(--thermo); }
.post-nav span { display: block; font-family: var(--mono); font-stretch: 87.5%; color: var(--text); font-weight: 400; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .35rem; }
.post-nav-next { text-align: right; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: .65rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.related + .related { margin-top: 2rem; }
.series { display: grid; gap: .5rem 2rem; margin: 0 0 2rem; padding: 1.25rem; border: 1px solid var(--line-strong); }
.series p { margin: 0; }
@media (min-width: 40rem) { .series { grid-template-columns: 1fr 1fr; } .series p { grid-column: 1 / -1; } .series [rel="next"] { text-align: right; } }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1px; margin: 0 0 2rem; background: var(--line); border: 1px solid var(--line); }
.info-cards div { padding: .9rem 1rem; background: var(--abyss); }
.info-cards dt { font-size: var(--step--2); text-transform: uppercase; color: var(--text); margin-bottom: .3rem; }
.info-cards dd { margin: 0; color: var(--bright); font-weight: 600; }

/* reading progress = depth gauge across the top */
.read-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--thermo); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .read-progress { animation: read-grow linear both; animation-timeline: scroll(root); }
  @keyframes read-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* about: timeline is a real sequence, so it gets the profile line */
.about-grid { display: grid; gap: 1rem 4rem; }
@media (min-width: 64rem) { .about-grid { grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); align-items: start; } .about-career { position: sticky; top: 5.5rem; } }
.about-career h2 { margin-top: 0; }
.timeline { list-style: none; padding: 0; margin: 0 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: .32rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45em; width: .65rem; height: .65rem; border-radius: 50%; background: var(--abyss); border: 1px solid var(--text); }
.timeline li:first-child::before { background: var(--thermo); border-color: var(--thermo); box-shadow: 0 0 0 4px var(--thermo-soft); }
.timeline h3 { margin: 0 0 .2rem; font-size: var(--step-0); font-stretch: 92%; line-height: 1.3; }
.timeline .when { font-size: var(--step--2); text-transform: uppercase; margin: 0 0 .4rem; color: var(--text); }
.timeline li:first-child .when { color: var(--thermo); }
.timeline p { font-size: var(--step--1); color: var(--body); }

/* forms */
.form { display: grid; gap: 1.25rem; max-width: 38rem; }
.form label { display: block; color: var(--bright); font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .45rem; }
.form input[type="text"], .form input[type="email"], .form input[type="search"], .form textarea { width: 100%; font: inherit; color: var(--bright); background: var(--deep); border: 1px solid var(--line-strong); border-radius: 0; padding: .8rem .9rem; caret-color: var(--thermo); }
.form textarea { min-height: 11rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--thermo); outline: 1px solid var(--thermo); outline-offset: 0; }
.form .help { font-size: var(--step--1); margin: .35rem 0 0; }
.form .errorlist, .errors { color: #FFD3DC; background: #2A0F1A; border: 1px solid #6A2236; padding: .6rem .9rem; list-style: none; margin: 0 0 .5rem; }
.notice { margin-bottom: 1.5rem; border: 1px solid var(--thermo-line); padding: 1rem 1.25rem; color: var(--bright); background: var(--thermo-soft); }
.notice > :last-child { margin-bottom: 0; }
.searchbar { display: flex; gap: .6rem; max-width: 38rem; margin-bottom: 2rem; }
.searchbar input { flex: 1; min-width: 0; font: inherit; color: var(--bright); background: var(--deep); border: 1px solid var(--line-strong); border-radius: 0; padding: .7rem 1rem; caret-color: var(--thermo); }
.searchbar input:focus { border-color: var(--thermo); outline: 1px solid var(--thermo); outline-offset: 0; }
.searchbar .btn::after { display: none; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: minmax(0, 38rem) minmax(0, 22rem); justify-content: space-between; } }
.contact-aside h2 { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-top: 0; padding-bottom: .7rem; border-bottom: 1px solid var(--line-strong); }
.contact-aside h2 + p, .contact-aside h2 + ul { margin-top: .75rem; }
.contact-aside ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-aside li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pager { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; margin: 2rem 0; font-size: var(--step--2); text-transform: uppercase; }
.pager a { color: var(--thermo); text-decoration: none; }

/* footer: surface and log */
.site-footer { position: relative; z-index: 1; margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); background: var(--deep); }
.is-home .site-footer { margin-top: 0; }
.footer { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2rem; }
.footer-top { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 56rem) { .footer-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.footer-intro { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.footer-line { color: var(--bright); font-size: var(--step-2); font-weight: 700; font-stretch: 66%; text-transform: uppercase; line-height: 1.02; letter-spacing: .02em; max-width: 18ch; margin: 0; }
.footer-sub { margin: 0 0 .5rem; max-width: 40ch; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.footer-h { font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bright); margin: 0 0 .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { padding: .3rem 0; font-size: var(--step--1); }
.footer-cols a, .footer-bottom a { color: var(--text); text-decoration: none; }
.footer-cols a:hover, .footer-bottom a:hover { color: var(--thermo); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer .fineprint { margin: 0; }

.consent { position: fixed; inset: auto 0 0 0; padding: 1rem clamp(1rem, 4vw, 2.5rem); background: var(--midnight); border-top: 1px solid var(--thermo-line); color: var(--bright); z-index: 40; }
.consent button { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--bright); background: transparent; border: 1px solid var(--line-strong); padding: .45rem .8rem; cursor: pointer; }
.consent button[data-consent="granted"] { background: var(--thermo); color: var(--abyss); border-color: var(--thermo); }
.consent[hidden] { display: none; }

/* résumé */
.resume { max-width: 52rem; padding-top: clamp(2rem, 5vw, 3.5rem); }
.resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 2.5rem; }
.resume-actions .fineprint { margin: 0; }
.resume-head h1 { margin: 0 0 .75rem; }
.resume-tagline { font-size: var(--step-1); color: var(--body); margin: 0 0 1rem; max-width: 62ch; }
.resume-links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; }
.print-url { display: none; }
.resume-section { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.resume-section h2 { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--step--2); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bright); margin: 0 0 1rem; }
.resume-section p { margin: 0 0 .5rem; color: var(--body); }
.resume-item { margin-bottom: 1.25rem; break-inside: avoid; }
.resume-item header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; align-items: baseline; }
.resume-item h3 { font-size: var(--step-0); margin: 0 0 .3rem; color: var(--bright); }
.resume-item h3 a { color: inherit; }
.resume-org { font-weight: 400; color: var(--body); }
.resume-dates { margin: 0; font-size: var(--step--2); text-transform: uppercase; white-space: nowrap; }
.resume-list { margin: 0; padding-left: 1.1rem; color: var(--body); }
.resume-list li { margin-bottom: .35rem; }
.resume-skills, .resume-points { margin: 0; padding: 0; list-style: none; color: var(--body); }
.resume-skills li { margin-bottom: .45rem; line-height: 1.55; }
.resume-points { padding-left: 1.1rem; list-style: disc; }
.resume-points li { margin-bottom: .45rem; line-height: 1.55; }
.resume-points li::marker { color: var(--text); }
.resume-skills b, .resume-points b { color: var(--bright); font-weight: 650; }
.resume-section .resume-intro { font-style: italic; color: var(--text); margin-bottom: .6rem; }
.resume-certs { margin: 0; padding-left: 1.1rem; color: var(--body); display: grid; gap: .35rem 2rem; }
@media (min-width: 40rem) { .resume-certs { grid-template-columns: 1fr 1fr; } }

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

/* print: black on white for every page; the résumé prints as a clean A4 document */
@media print {
  :root { --abyss: #fff; --midnight: #fff; --deep: #fff; --line: #ccc; --line-strong: #bbb; --text: #444; --body: #222; --bright: #000; --thermo: #000; --slate: #fff; --slate-text: #222; --slate-ink: #000; }
  @page { size: A4; margin: 12mm 14mm; }
  html, body { background: #fff; color: #222; }
  html { color-scheme: light; }
  .site-header, .site-footer, .no-print, .consent, .read-progress, .snow, .readout, .profile, .skip, .share, .post-nav, .toc-side, .author-box { display: none; }
  a { color: inherit; text-decoration: none; }
  .frame { max-width: none; padding: 0; }
  h1 { text-transform: none; }
  .prose { padding: 0; }
  .is-resume .resume { padding: 0; font-size: 9.3pt; line-height: 1.34; max-width: none; }
  .is-resume .resume-head h1 { font-size: 22pt; font-stretch: 80%; margin: 0 0 .2rem; }
  .is-resume .resume-tagline { font-size: 10.5pt; max-width: none; line-height: 1.35; margin-bottom: .4rem; }
  .is-resume .resume-section p, .is-resume .resume-section .resume-intro { margin-bottom: .25rem; }
  .is-resume .resume-links a:has(+ .print-url) { display: none; }
  .is-resume .print-url { display: inline; }
  .is-resume .resume-section { margin-top: .8rem; padding-top: .45rem; break-inside: auto; }
  .is-resume .resume-section h2 { font-size: 9.5pt; margin-bottom: .35rem; }
  .is-resume .resume-item { margin-bottom: .5rem; break-inside: auto; }
  .is-resume .resume-item header { break-after: avoid; }
  .is-resume .resume-skills li, .is-resume .resume-points li { margin-bottom: .05rem; line-height: 1.34; }
  .is-resume .resume-list li { margin-bottom: .1rem; }
  .is-resume .resume-certs { grid-template-columns: 1fr 1fr; gap: .15rem 1.5rem; }
  .is-resume .resume-item h3 { font-size: 10pt; margin-bottom: .1rem; }
}
