/* ============================================================
   Self-hosted fonts. Served from this domain so no visitor data
   reaches a third party. All three are SIL Open Font License 1.1 —
   see assets/fonts/OFL.txt.

   Albert Sans and JetBrains Mono are variable fonts: one file each
   covers the whole weight range, so the declarations below use a
   range rather than one @font-face per weight.
   ============================================================ */
@font-face {
  font-family: "Albert Sans";
  src: url("/assets/fonts/albert-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gloock";
  src: url("/assets/fonts/gloock.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Fernando Hintz — portfolio
   Systems administration / IT project delivery

   Committed single-theme design: a dark console-adjacent world,
   so there is no light palette and no prefers-color-scheme block.
   Every colour is painted explicitly from the tokens below so the
   page holds on any host ground.

   Palette  #101010 ground · #F2F2F2 ink · translucent white surfaces
            Signal trio carries real state, not decoration:
              coral  #F46B5D  fault / incident
              amber  #F9BD4E  in progress
              green  #57C353  operational / earned

   Type     Albert Sans   display + body
            Gloock        italic serif accent word
            JetBrains Mono micro-labels and technical data
   ============================================================ */

/* Baseline. The Claude artifact host injects an equivalent of this for
   free; a standalone document has to carry it or the page picks up
   default margins. Declared here so no CSS is authored outside this
   file. color-scheme is dark because the design commits to dark. */
:root { color-scheme: dark; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:root {
  --bg: #101010;
  --bg-deep: #0A0A0A;
  --surface: rgba(242, 242, 242, 0.04);
  --surface-2: rgba(242, 242, 242, 0.07);
  --surface-solid: #1A1A1A;
  --chrome: #202020;

  --ink: #F2F2F2;
  --ink-80: rgba(242, 242, 242, 0.8);
  --ink-55: rgba(242, 242, 242, 0.55);
  --ink-50: rgba(242, 242, 242, 0.50);  /* 4.88:1 on --bg — WCAG AA */

  --line: rgba(242, 242, 242, 0.1);
  --line-2: rgba(242, 242, 242, 0.18);

  --coral: #F46B5D;
  --amber: #F9BD4E;
  --green: #57C353;

  --display: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-pill: 100px;
  --r-card: 20px;
  --r-win: 14px;
  --r-chip: 8px;

  --page: 72rem;
  --read: 40rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard users land here first; visible only while focused. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .7rem 1.15rem;
  border-radius: 0 0 var(--r-chip) 0;
  background: var(--amber);
  color: #17110B;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .4px;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.read { max-width: var(--read); }

/* ── micro-label ─────────────────────────────────────────── */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0;
}

/* ── nav pill ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
  background: linear-gradient(to bottom, var(--bg) 55%, rgba(16, 16, 16, 0));
}

.nav-pill {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(16, 16, 16, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  box-shadow: 0 0 24px rgba(242, 242, 242, 0.09);
  transition: transform .38s cubic-bezier(.4, 0, .12, 1), width .38s cubic-bezier(.4, 0, .12, 1);
  pointer-events: none;
}

.nav-toggle {
  position: relative;
  z-index: 1;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  padding: .5rem 1.15rem;
  border-radius: var(--r-pill);
  color: var(--ink-55);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color .25s;
}
.nav-toggle[aria-selected="true"] { color: var(--ink); }
.nav-toggle:hover { color: var(--ink); }

.at-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 16, 16, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--ink-55);
  transition: color .25s, border-color .25s, background .25s;
}
.at-btn:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.btn-cluster { display: flex; gap: .5rem; flex: none; }
/* "in" needs to sit optically like the single glyphs beside it */
.at-btn { font-size: .8125rem; letter-spacing: -.02em; text-decoration: none; }

/* ── views ───────────────────────────────────────────────── */
.view { animation: rise .5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise {
  from { opacity: .001; transform: translateY(10px); }
  to   { opacity: 1;    transform: none; }
}

/* ── hero ────────────────────────────────────────────────── */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }

.hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-55);
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.75rem;
}
.hero .eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(87, 195, 83, .55);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(87, 195, 83, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(87, 195, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 195, 83, 0); }
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8.2vw, 5.25rem);
  line-height: .96;
  letter-spacing: -.04em;
  margin: 0 0 1.75rem;
  max-width: 16ch;
  text-wrap: balance;
}
.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-55);
  max-width: 46ch;
  margin: 0;
}
/* The Work hero runs two stacked paragraphs; the rest use one. */
.hero-sub + .hero-sub { margin-top: 1.1rem; }
.hero-sub b { color: var(--ink); font-weight: 600; }

/* ── section frame ───────────────────────────────────────── */
.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0;
}
.lede { color: var(--ink-55); max-width: var(--read); margin: 0 0 2.25rem; }

/* Profile prose (#info Summary). Measure kept near 62ch — the old block
   ran to 46rem, wider than every other text column on the page. The
   opening line carries the extra size; no mid-sentence bolding, which
   reads patchy at this length. 34rem puts body copy near 66 characters. */
.profile { display: grid; gap: 1.15rem; max-width: 34rem; }
.profile p { margin: 0; color: var(--ink-55); line-height: 1.72; }
.profile p:first-child {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -.011em;
  color: var(--ink);
}
.profile p:last-child { color: var(--ink-80); }

/* ── project cards ───────────────────────────────────────── */
.projects { display: flex; flex-direction: column; gap: 1.25rem; }

.project {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  transition: border-color .3s, background .3s, transform .3s;
}
.project:hover { border-color: var(--line-2); background: var(--surface-2); }

.project-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.project h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
}
.project .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--ink-50);
  white-space: nowrap;
}
.project .blurb { color: var(--ink-55); margin: 0; max-width: 62ch; }
.project .blurb b { color: var(--ink-80); font-weight: 500; }

.stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .4px;
  padding: .3rem .55rem;
  border-radius: var(--r-chip);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-55);
  white-space: nowrap;
}

/* status dot — the signal trio doing real work */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }
.dot.coral { background: var(--coral); }

.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-55);
  white-space: nowrap;
}

/* ── window-chrome card (diagram + fault log) ────────────── */
.win {
  border: 1px solid var(--line);
  border-radius: var(--r-win);
  background: var(--bg-deep);
  overflow: hidden;
  margin-top: 1.75rem;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem 1rem;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.win-lights { display: flex; gap: 6px; flex: none; }
.win-lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-title {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .6px;
  color: var(--ink-50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-body { padding: 1.25rem; overflow-x: auto; }
.win-body.flush { padding: 0; }

.diagram { display: block; min-width: 440px; width: 100%; height: auto; }

.fig-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .3px;
  color: var(--ink-50);
  margin: .9rem 0 0;
  max-width: 68ch;
}

/* ── spec rows ───────────────────────────────────────────── */
.kit { margin: 0; border-top: 1px solid var(--line); }
.kit-row {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: .25rem 1.5rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  align-items: baseline;
}
.kit-row dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-50);
}
.kit-row dd { margin: 0; color: var(--ink-80); }
.kit-row dd span { color: var(--ink-55); }
@media (max-width: 600px) { .kit-row { grid-template-columns: 1fr; gap: .3rem; } }

code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .38em;
  color: var(--amber);
  white-space: nowrap;
}

/* ── fault log table ─────────────────────────────────────── */
table { border-collapse: collapse; width: 100%; min-width: 660px; font-size: .875rem; }
thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-50);
  text-align: left;
  font-weight: 400;
  padding: .85rem 1.15rem;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
tbody td {
  padding: .95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-55);
  vertical-align: top;
  line-height: 1.55;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface); }
td.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-50);
  width: 3rem;
  padding-right: 0;
}
td.fault { color: var(--ink); width: 13rem; }
td.fix { color: var(--ink-80); }

/* ── resume: experience ──────────────────────────────────── */
.roles { display: flex; flex-direction: column; }
.job {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: .5rem 2.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--ink-50);
  line-height: 1.7;
  padding-top: .3rem;
}
.job .when .now { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); }
.job h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin: 0 0 .2rem;
}
.job .org {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--ink-55);
  margin: 0 0 1rem;
}
.job ul { margin: 0; padding-left: 1.05rem; display: flex; flex-direction: column; gap: .5rem; max-width: 60ch; }
.job li { color: var(--ink-55); line-height: 1.6; }
.job li::marker { color: var(--line-2); }
.job li b { color: var(--ink-80); font-weight: 500; }
@media (max-width: 720px) {
  .job { grid-template-columns: 1fr; gap: .6rem; }
  .job .when { padding-top: 0; }
}

/* ── resume: two-column blocks ───────────────────────────── */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
@media (min-width: 820px) { .cols { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.cred { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cred li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}
.cred .name { color: var(--ink-80); }
.cred .name small {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .4px;
  color: var(--ink-50);
  margin-top: .15rem;
}

/* ── skills ──────────────────────────────────────────────── */
.skillset { border-top: 1px solid var(--line); }
.skillrow {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: .35rem 2.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.skillrow h3 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0;
  font-weight: 400;
}
.skillrow p { margin: 0; color: var(--ink-55); font-size: .9375rem; line-height: 1.7; }
@media (max-width: 640px) { .skillrow { grid-template-columns: 1fr; gap: .4rem; } }

/* ── contact / footer ────────────────────────────────────── */
.cta {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: 1rem;
}
.cta h2 { margin-bottom: .6rem; }
.cta p { color: var(--ink-55); max-width: 44ch; margin: 0 0 1.75rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .4px;
  padding: .7rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-50); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { opacity: .88; background: var(--ink); color: var(--bg); }

footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 2rem;
  margin-bottom: 2.75rem;
}
.foot-col ul { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.foot-col a, .foot-col button {
  color: var(--ink-55);
  font-size: .9375rem;
  font-family: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color .25s;
}
.foot-col a:hover, .foot-col button:hover { color: var(--ink); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .4px;
  color: var(--ink-50);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   Fig. 1 — homelab topology (inline SVG, #work)
   SVG <style> is document-scoped in HTML, so it lives here.
   ============================================================ */
.nb   { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1; }
.nb-acc { fill: rgba(249, 189, 78, .1); stroke: var(--amber); stroke-width: 1.2; }
.nb-vm { fill: rgba(242, 242, 242, .02); stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 2.5; }
.zone { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.lbl   { font-family: var(--mono); font-size: 9.5px; fill: var(--ink); }
.lbl-s { font-family: var(--mono); font-size: 8px;   fill: var(--ink-55); }
.lbl-z { font-family: var(--mono); font-size: 9px;   fill: var(--ink-50); letter-spacing: .06em; }
.lbl-a { font-family: var(--mono); font-size: 9.5px; fill: var(--amber); }
.wire   { stroke: var(--line-2); stroke-width: 1.4; fill: none; }
.wire-a { stroke: var(--amber);  stroke-width: 1.4; fill: none; }

/* ============================================================
   Career timeline (#info, above Experience)
   Five stages, left-aligned nodes on a rail. Only the first and
   current stages carry a year — the middle stages are ordering,
   not dates. Horizontal ≥980px, vertical rail below that, since
   five columns need the room.
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 1rem;
}

.tl-stage { position: relative; padding-top: 2.35rem; }

/* rail segment runs from this node to the next; last stage has none */
.tl-stage::before {
  content: "";
  position: absolute;
  top: 1.72rem;
  left: 5px;
  right: 0;
  height: 1px;
  background: var(--line-2);
}
.tl-stage:last-child::before { display: none; }

.tl-node {
  position: absolute;
  top: 1.4rem;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink-50);
  box-sizing: border-box;
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.tl-stage.is-current .tl-node {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(87, 195, 83, .14);
}

.tl-year {
  transition: color .28s ease;
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-55);
  margin: 0;
}
.tl-stage.is-current .tl-year { color: var(--green); }

.tl-title {
  transition: color .28s ease;
  font-family: var(--display);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 .3rem;
  color: var(--ink-55);
}
.tl-stage.is-current .tl-title { color: var(--ink); }

.tl-desc {
  transition: color .28s ease;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.65;
  letter-spacing: .2px;
  color: var(--ink-50);
  margin: 0;
  padding-right: .75rem;
}

/* Hover — amber, deliberately not the green that marks the current role,
   so the two states stay tellable apart. These rules sit after the
   .is-current block (equal specificity, later wins), then .is-current
   re-asserts green at higher weight on the line below. */
.tl-stage:hover .tl-node {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(249, 189, 78, .16);
}
.tl-stage:hover .tl-year  { color: var(--amber); }
.tl-stage:hover .tl-title { color: var(--ink); }
.tl-stage:hover .tl-desc  { color: var(--ink-55); }

/* The current role keeps its green identity on hover; only its text lifts. */
.tl-stage.is-current:hover .tl-node {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(87, 195, 83, .2);
}
.tl-stage.is-current:hover .tl-year { color: var(--green); }

@media (max-width: 979px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-stage { padding: 0 0 1.5rem 1.6rem; }
  .tl-stage:last-child { padding-bottom: 0; }
  /* rail turns vertical */
  .tl-stage::before {
    top: 1.5rem;
    bottom: -.35rem;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .tl-node { top: .32rem; }
  .tl-year { position: static; display: block; margin-bottom: .15rem; }
  /* middle stages have no year element — keep their text aligned */
  .tl-stage:not(.has-year) .tl-title { padding-top: .05rem; }
  .tl-desc { padding-right: 0; }
}

/* ============================================================
   Reference letter (#info)
   Gloock carries the lead quote. Italic Gloock stays reserved for
   the hero accent words, so the quote is set upright — related
   voice, different register.
   ============================================================ */
.letter { margin: 0; }

.quote-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 2.25rem;
  max-width: 22ch;
  text-wrap: balance;
  position: relative;
}
.quote-lead::before {
  content: "\201C";
  position: absolute;
  left: -.52em;
  top: -.06em;
  color: var(--ink-50);
}
@media (max-width: 560px) {
  .quote-lead { max-width: none; }
  .quote-lead::before { position: static; margin-right: .04em; }
}

.excerpts {
  display: grid;
  gap: 1.15rem;
  border-left: 1px solid var(--line-2);
  padding-left: 1.5rem;
  margin: 0 0 2rem;
  max-width: 58ch;
}
.excerpts p {
  margin: 0;
  color: var(--ink-55);
  font-size: .9375rem;
  line-height: 1.7;
}
.excerpts p::before { content: "\201C"; }
.excerpts p::after  { content: "\201D"; }

.attrib {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .4px;
  color: var(--ink-50);
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.attrib b { color: var(--ink-80); font-weight: 500; }

/* ============================================================
   Multi-page chrome (static site only)
   The artifact keeps its sliding .nav-indicator; the static pages
   have no JS, so the active tab is painted directly. .nav-static
   scopes it so the two never both render.
   ============================================================ */
.nav-static .nav-toggle[aria-current="page"] {
  background: var(--surface-2);
  box-shadow: 0 0 24px rgba(242, 242, 242, .09);
  color: var(--ink);
}

.crumbs {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 0;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-50);
}
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-2); }
.crumbs a { color: var(--ink-55); transition: color .25s; }
.crumbs a:hover { color: var(--amber); }
.crumbs [aria-current="page"] { color: var(--ink-80); }

/* 404 uses the spec rows as a link list */
.kit-row dt a { color: var(--amber); }
.kit-row dt a:hover { text-decoration: underline; }

/* ============================================================
   Work hero — copy left, capability stack right
   The figure is a picture of what the hero paragraph says, in the
   same order: delivery and process on top, and "the network
   underneath it" literally at the base, which is why that band
   carries the amber edge. No figures, no invented data.
   ============================================================ */
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 4rem;
  }
}
.hero-copy { min-width: 0; }
.hero-fig { margin: 0; min-width: 0; }
.hero-fig svg { display: block; width: 100%; height: auto; }

.stk      { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.lyr-cap  { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; fill: var(--ink-50); }
.lyr-span { stroke: var(--amber); stroke-width: 1.6; fill: none; }
.lyr-node { fill: var(--bg); stroke: var(--amber); stroke-width: 1.6; }
.lyr-l    { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--ink); }
.lyr-s    { font-family: var(--mono); font-size: 10px; fill: var(--ink-55); }
.lyr-foot { font-family: var(--display); font-size: 13px; fill: var(--ink-55); }
.lyr-fa   { fill: var(--ink); font-weight: 600; }
.cyc-cap  { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; fill: var(--ink-50); }
.cyc-n    { font-family: var(--mono); font-size: 12px; fill: var(--ink-50); }
.cyc-na   { fill: var(--amber); }
.cyc-l    { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--ink); }
.cyc-la   { fill: var(--amber); }
.cyc-s    { font-family: var(--mono); font-size: 10px; fill: var(--ink-55); }
.cyc-t    { font-family: var(--mono); font-size: 9.5px; fill: var(--amber); }
.cyc-a    { stroke: var(--ink-50); stroke-width: 1.8; fill: none; color: var(--ink-50); }
.cyc-loop { stroke: var(--amber); color: var(--amber); }
.cyc-foot { font-family: var(--display); font-size: 13px; fill: var(--ink-55); }
.cyc-fa   { fill: var(--ink); font-weight: 600; }
.stk-base { fill: rgba(249, 189, 78, .07); stroke: var(--amber); }
.stk-l    { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--ink); }
.stk-la   { fill: var(--amber); }
.stk-s    { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-55); }
.stk-cap  { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; fill: var(--ink-50); }

/* ============================================================
   Narrow phones: the three nav tabs plus the three round buttons
   need 354px + padding, which overflows a 375px viewport and clips
   the résumé button. Tighten both clusters rather than wrap or hide.
   ============================================================ */
@media (max-width: 479px) {
  .topbar { gap: .5rem; padding-left: 1rem; padding-right: 1rem; }
  .nav-toggle { padding: .5rem .8rem; font-size: .8125rem; }
  .btn-cluster { gap: .35rem; }
  .at-btn { width: 36px; height: 36px; font-size: .75rem; }
}

/* ============================================================
   Project-card diagrams
   Chain of custody: the dashed run is history reconstructed from
   before the system existed; the solid run is recorded as it
   happens. The change in line style is the whole point.
   ============================================================ */
.chain-past  { stroke: var(--ink-50); stroke-width: 1.6; stroke-dasharray: 5 5; fill: none; }
.chain-now   { stroke: var(--ink); stroke-width: 1.8; fill: none; color: var(--ink); }
.chain-n     { fill: var(--bg); stroke: var(--ink); stroke-width: 1.8; }
.chain-np    { stroke: var(--ink-50); }
.chain-mark  { fill: var(--bg); stroke: var(--amber); stroke-width: 2.4; }
.chain-l     { font-family: var(--display); font-weight: 600; font-size: 14px; fill: var(--ink); }
.chain-lp    { fill: var(--ink-55); }
.chain-la    { fill: var(--amber); }
.chain-s     { font-family: var(--mono); font-size: 10px; fill: var(--ink-55); }
.chain-sa    { fill: var(--amber); }
.chain-band  { font-family: var(--mono); font-size: 10px; letter-spacing: .5px; fill: var(--ink-50); }

/* The printer label swatch reproduces the standard applied to every unit. */
.prn-tag     { fill: var(--surface-2); stroke: var(--amber); stroke-width: 1.2; }
.prn-tagt    { font-family: var(--mono); font-size: 13px; fill: var(--amber); }
