/* daniel.homegh.com: site styles. Design: Designer, "Daylight operations" (2026-11-14); production port: Fullstack.
   Direction: "Daylight operations" - paper-light editorial site, giant condensed type,
   one dark live band (the HomeGH board) as the proof. Tokens below are the spec. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: optional; src: url("fonts/Archivo.woff2") format("woff2"); }
/* Fonts use font-display: optional (preloaded): a slow first visit keeps the fallback for that page view instead of
   swapping (CLS 0); later visits use the cached font. Metric-matched fallbacks keep the giant name at its designed width
   (no layout shift on swap). size-adjust = Archivo 820/72% width of "Daniel Lartey" / fallback bold width:
   measured for DejaVu Sans Bold (67.3%), from Arial Bold advance widths for Arial/Helvetica/Liberation (80.5%),
   estimated for Roboto Bold (85%). */
@font-face { font-family: "Archivo FB Arial"; font-weight: 100 900; size-adjust: 80.5%; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); }
@font-face { font-family: "Archivo FB Roboto"; font-weight: 100 900; size-adjust: 85%; src: local("Roboto Bold"), local("Roboto-Bold"); }
@font-face { font-family: "Archivo FB DejaVu"; font-weight: 100 900; size-adjust: 67.3%; src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: optional; src: url("fonts/JetBrainsMono.woff2") format("woff2"); }

:root {
  /* colour */
  --paper: #f2efe7;
  --paper-2: #e8e3d7;
  --ink: #131210;
  --ink-2: #504c44;
  --line: #cdc6b6;
  --signal: #1f3ce6;
  --signal-ink: #ffffff;
  --night: #0e1014;
  --night-2: #171a20;
  --night-line: #2b3039;
  --on-night: #eeece6;
  --on-night-2: #a7abb3;
  --ok: #1e7a46;        --ok-night: #4cc27c;
  --warn: #9a5b00;      --warn-night: #f0b13c;
  --down: #b42318;      --down-night: #ff6b5e;
  --unknown: #6a665d;   --unknown-night: #8d929b;

  /* type */
  --f-sans: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --t-display: clamp(4rem, 10.6vw, 11rem);
  --t-h2: clamp(2.5rem, 5.4vw, 4.75rem);
  --t-h3: clamp(1.375rem, 1.6vw, 1.75rem);
  --t-lead: clamp(1.1875rem, 1.45vw, 1.4375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-mono: 0.8125rem;

  /* layout */
  --max: 1320px;
  --pad: clamp(20px, 4.2vw, 60px);
  --gap: clamp(16px, 1.7vw, 24px);
  --section-y: clamp(72px, 9vw, 136px);
  --radius: 14px;
  --radius-s: 8px;

  /* motion (Emil: strong ease-out, short UI durations) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --d-press: 120ms;
  --d-ui: 200ms;
  --d-enter: 700ms;

  color-scheme: light;
  accent-color: var(--signal);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--f-sans); font-stretch: 100%;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.band-night :focus-visible { outline-color: #8ea0ff; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 14px 18px; border-radius: var(--radius-s); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* draft marker - remove in production */
.draft { font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: #ffe36e; color: #3a2c00; padding: 4px 6px; border-radius: 4px; vertical-align: middle; white-space: nowrap; }
.ph { background: #fff3b8; box-shadow: 0 0 0 2px #fff3b8; border-radius: 3px; color: #3a2c00; }
.band-night .ph { background: #4a3c00; box-shadow: 0 0 0 2px #4a3c00; color: #ffe9a6; }

/* ---------- text styles ---------- */
.mono { font: 500 var(--t-mono)/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.display { font-family: "Archivo", "Archivo FB Arial", "Archivo FB Roboto", "Archivo FB DejaVu", system-ui, sans-serif; font-weight: 820; font-stretch: 72%; font-size: var(--t-display); line-height: .84; letter-spacing: -0.035em; margin: 0; }
h2, .h2 { font-weight: 780; font-stretch: 78%; font-size: var(--t-h2); line-height: .94; letter-spacing: -0.02em; word-spacing: 0.04em; margin: 0; text-wrap: balance; }
h3, .h3 { font-weight: 680; font-stretch: 90%; font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 36ch; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.band-night .muted { color: var(--on-night-2); }

/* ---------- buttons (one pair) ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 650 1rem/1 var(--f-sans); font-stretch: 92%;
  transition: transform var(--d-press) var(--ease-out), background-color var(--d-ui) var(--ease-out), color var(--d-ui) var(--ease-out);
}
.btn .arr { transition: transform var(--d-ui) var(--ease-out); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.band-night .btn { --bg: var(--on-night); --fg: var(--night); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
  .btn:hover .arr { transform: translateX(3px); }
}
.btn:active { transform: scale(0.97); }

.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--d-ui) var(--ease-out); padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 100% 2px; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--d-ui) var(--ease-out); }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; font-stretch: 85%; font-size: 1.125rem; min-height: 48px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 13px/1 var(--f-mono); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; font-weight: 560; border-radius: 999px; transition: background-color var(--d-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--paper-2); } }
.nav .btn { margin-left: 10px; min-height: 48px; }
.nav-live { gap: 8px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero-name { display: grid; gap: clamp(14px, 1.6vw, 22px); }
/* The name is set to the full content width: Archivo 820 at 72% width measures 4.63 em for "Daniel Lartey". */
.hero .display { font-size: min(calc((100vw - 2 * var(--pad)) / 4.72), calc(var(--max) / 4.72)); line-height: .86; white-space: nowrap; padding-bottom: .06em; margin-top: .04em; }
.hero-top { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ink-2); }
.hero .display .l2 { color: var(--signal); }
.roles { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.roles li { font: 500 var(--t-mono)/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 999px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }


/* status dot */
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--unknown-night); position: relative; }
.dot[data-s="healthy"] { background: var(--ok-night); }
.dot[data-s="warning"] { background: var(--warn-night); }
.dot[data-s="down"] { background: var(--down-night); }
.dot[data-s="healthy"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok-night); opacity: 0; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.sec-head .idx { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; color: var(--ink-2); }
.sec-head .idx::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.sec-head h2 { grid-column: 1 / span 8; }
.sec-head p { grid-column: 9 / span 4; }

/* what I do */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.job { padding: 32px 0 36px; display: grid; grid-template-columns: 64px 1fr; align-content: start; gap: 6px 20px; border-bottom: 1px solid var(--line); }
.job:nth-child(odd) { padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--line); }
.job:nth-child(even) { padding-left: clamp(20px, 3vw, 48px); }
.job .n { font: 600 14px/1.9 var(--f-mono); color: var(--signal); grid-row: span 3; }
.job p { color: var(--ink-2); max-width: 46ch; }
.job .tools { font: 500 12.5px/1.6 var(--f-mono); color: var(--ink); margin-top: 10px; }

/* work */
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.case { position: relative; grid-column: span 6; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform var(--d-ui) var(--ease-out), box-shadow var(--d-ui) var(--ease-out); }
.case.wide { grid-column: span 12; display: grid; grid-template-columns: 7fr 5fr; }
@media (hover: hover) and (pointer: fine) {
  a.case:hover { transform: translateY(-2px); box-shadow: 0 10px 0 -4px var(--ink); }
  a.case:hover .case-more .arr { transform: translateX(4px); }
}
a.case:active { transform: translateY(0) scale(.995); }
.case-vis { background: var(--paper-2); min-height: 260px; display: grid; place-items: center; padding: 28px; border-bottom: 1.5px solid var(--ink); }
.case.wide .case-vis { border-bottom: 0; border-right: 1.5px solid var(--ink); min-height: 380px; background: var(--night); }
.case-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.case-body .kick { color: var(--ink-2); }
.case-body p { color: var(--ink-2); }
.case-more { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 8px; align-items: center; font-weight: 650; }
.case-more .arr { transition: transform var(--d-ui) var(--ease-out); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font: 500 12px/1 var(--f-mono); padding: 7px 9px; border-radius: 6px; background: var(--paper); }
.case.slot { border-style: dashed; background: transparent; }
.case.slot .case-vis { background: transparent; border-bottom-style: dashed; color: var(--ink-2); font: 500 13px/1.5 var(--f-mono); text-align: center; }

/* flow diagram (cards + how I work) */
.flow { display: flex; align-items: center; gap: 0; width: 100%; max-width: 520px; }
.flow .node { flex: none; padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--ink); background: #fff; font: 600 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .03em; text-align: center; }
.flow .node.hot { background: var(--signal); color: #fff; border-color: var(--signal); }
.flow .wire { flex: 1; min-width: 14px; height: 2px; background: var(--ink); position: relative; }
.flow .wire::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
.flow-v { display: grid; gap: 12px; justify-items: center; }
.loop { font: 500 11.5px/1 var(--f-mono); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.loop::before { content: "↺"; font-size: 16px; color: var(--signal); }

/* mini map inside wide case card */
.minimap { width: 100%; max-width: 560px; color: var(--on-night); }

/* ---------- live band ---------- */
.band-night { background: var(--night); color: var(--on-night); color-scheme: dark; }
.band-night .sec-head .idx { color: var(--on-night-2); }
.board { border: 1px solid var(--night-line); border-radius: var(--radius); background: var(--night-2); overflow: hidden; }
.board-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 26px; border-bottom: 1px solid var(--night-line); }
.overall { display: flex; align-items: center; gap: 14px; }
.overall .dot { width: 14px; height: 14px; }
.overall strong { font-weight: 760; font-stretch: 85%; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.01em; }
.counts { display: flex; gap: 8px; flex-wrap: wrap; }
.count { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--night-line); font: 500 12.5px/1 var(--f-mono); color: var(--on-night-2); }
.count b { color: var(--on-night); font-weight: 700; }
.board-mid { padding: 34px 26px 30px; border-bottom: 1px solid var(--night-line); overflow-x: auto; }
.topo { display: grid; grid-template-columns: repeat(6, minmax(72px, 1fr)); align-items: start; position: relative; min-width: 520px; }
.topo::before { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 27px; height: 2px; background: var(--night-line); }
.topo .tn { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.topo .tn .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 2px solid var(--unknown-night); }
.topo .tn[data-s="healthy"] .ring { border-color: var(--ok-night); }
.topo .tn[data-s="warning"] .ring { border-color: var(--warn-night); }
.topo .tn[data-s="down"] .ring { border-color: var(--down-night); }
.topo .tn .lbl { font: 700 13px/1 var(--f-mono); }
.topo .tn .st { font: 500 11.5px/1 var(--f-mono); color: var(--on-night-2); text-transform: uppercase; letter-spacing: .04em; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc li { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px 14px; align-items: baseline; padding: 18px 26px; border-bottom: 1px solid var(--night-line); }
.svc li:nth-child(odd) { border-right: 1px solid var(--night-line); }
.svc li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.svc .dot { align-self: center; }
.svc .name { font-weight: 650; font-stretch: 92%; font-size: 1.0625rem; }
.svc .lat { font: 500 12.5px/1 var(--f-mono); color: var(--on-night-2); }
.svc .metric { grid-column: 2 / -1; font: 400 13px/1.45 var(--f-mono); color: var(--on-night-2); }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 16px 26px; font: 500 12.5px/1.4 var(--f-mono); color: var(--on-night-2); }
.board[aria-busy="true"] .svc, .board[aria-busy="true"] .topo { opacity: .5; }
.live-note { margin-top: 28px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.live-note p { grid-column: 1 / span 7; color: var(--on-night-2); }

/* ---------- how I work: route diagram (the page's one dealt moment) ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); position: relative; counter-reset: step; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 3px; background: var(--ink); transform-origin: 0 50%; }
.route li { position: relative; padding-top: 68px; }
.route li::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 3px solid var(--ink); font: 700 14px/1 var(--f-mono); }
.route li:last-child::before { background: var(--signal); border-color: var(--signal); color: #fff; }
.route h3 { margin-bottom: 10px; }
.route p { color: var(--ink-2); max-width: 30ch; }
.statement { margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.statement blockquote { grid-column: 1 / span 10; margin: 0; font-weight: 760; font-stretch: 80%; font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }

/* ---------- background ---------- */
.bg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.timeline { grid-column: 1 / span 6; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font: 500 13px/1.6 var(--f-mono); color: var(--ink-2); }
.timeline h3 { font-size: 1.25rem; }
.timeline p { color: var(--ink-2); margin-top: 6px; }
.toolbox { grid-column: 8 / span 5; }
.toolbox h3 { margin-bottom: 16px; }
.toolbox dl { margin: 0; display: grid; gap: 18px; }
.toolbox dt { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; }
.toolbox dd { margin: 0; font-size: 1rem; line-height: 1.5; }

/* ---------- contact ---------- */
.contact { background: var(--signal); color: #fff; }
.contact .display { font-size: clamp(3.25rem, 8.4vw, 8.5rem); }
.contact .grid { row-gap: 40px; align-items: end; }
.contact .big { grid-column: 1 / span 9; }
.contact .side { grid-column: 1 / span 6; display: grid; gap: 22px; }
.contact .side p { font-size: var(--t-lead); line-height: 1.45; }
.contact .btn { --bg: #fff; --fg: var(--ink); border-color: #fff; }
.contact .btn-ghost { --bg: transparent; --fg: #fff; border-color: #fff; }
@media (hover: hover) and (pointer: fine) { .contact .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; } }
.contact .meta { grid-column: 8 / span 5; display: grid; gap: 0; border-top: 2px solid #fff; }
.contact .meta div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.4); font: 500 13px/1.4 var(--f-mono); }
.contact :focus-visible { outline-color: #fff; }
.contact .draft { background: #fff; }

.site-foot { padding: 28px 0 40px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--ink-2); font-size: var(--t-small); }
.site-foot a { display: inline-flex; align-items: center; min-height: 48px; }

/* Motion lives in motion.css (loaded after this file). */

/* ---------- case-study template ---------- */
.cs-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.cs-hero .display { font-size: clamp(3rem, 7.6vw, 7.5rem); margin: 22px 0 28px; max-width: 14ch; }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); border-top: 2px solid var(--ink); padding-top: 18px; margin-top: 40px; }
.cs-facts dt { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; }
.cs-facts dd { margin: 0; }
.cs-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.cs-body > .side { grid-column: 1 / span 3; position: sticky; top: 96px; align-self: start; }
.cs-body > .side ol { list-style: none; margin: 0; padding: 0; display: grid; }
.cs-body > .side a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 560; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 14px; }
.cs-body > .side a:hover { color: var(--ink); border-color: var(--ink); }
.cs-body > .main { grid-column: 5 / span 8; display: grid; gap: clamp(56px, 6vw, 88px); }
.cs-block h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 20px; }
.cs-block p + p { margin-top: 14px; }
.cs-block p { max-width: 62ch; color: var(--ink-2); font-size: 1.125rem; }
.arch { background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.arch-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.arch-row + .arch-row { margin-top: 12px; }
.arch .box { border: 1.5px solid var(--night-line); border-radius: 10px; padding: 14px; background: var(--night-2); }
.arch .box .mono { color: var(--on-night-2); display: block; margin-bottom: 6px; }
.arch .box b { font-weight: 650; }
.arch .rule { font: 500 12px/1 var(--f-mono); color: var(--on-night-2); text-align: center; padding: 10px 0; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 20px; }
.outcomes div { border-top: 2px solid var(--ink); padding-top: 14px; }
.outcomes b { display: block; font-weight: 800; font-stretch: 75%; font-size: clamp(2.25rem, 3.6vw, 3.25rem); line-height: 1; margin-bottom: 8px; }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0; border-top: 2px solid var(--ink); text-decoration: none; }
.next-case .h2 { transition: color var(--d-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .next-case:hover .h2 { color: var(--signal); } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .sec-head h2 { grid-column: 1 / -1; }
  .sec-head p { grid-column: 1 / span 9; }
  .case.wide { grid-template-columns: 1fr; }
  .case.wide .case-vis { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .route::before { display: none; }
  .timeline, .toolbox { grid-column: 1 / -1; }
  .toolbox { margin-top: 40px; }
  .contact .big, .contact .side, .contact .meta { grid-column: 1 / -1; }
  .cs-body > .side { display: none; }
  .cs-body > .main { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav .nl { display: none; }
}
@media (max-width: 720px) {
  .hero .display { white-space: normal; font-size: calc((100vw - 2 * var(--pad)) / 2.34); line-height: .82; }
  .hero .display span { display: block; }
  .hero-top { gap: 4px 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .sec-head p { grid-column: 1 / -1; }
  .jobs { grid-template-columns: 1fr; }
  .job:nth-child(n) { padding: 26px 0 28px; border-right: 0; grid-template-columns: 44px 1fr; }
  .case, .case.wide { grid-column: 1 / -1; }
  .case-vis { padding: 22px 16px; min-height: 200px; }
  .case.wide .case-vis { min-height: 260px; }
  .case-body { padding: 22px 20px 24px; }
  .flow .node { padding: 8px 7px; font-size: 10.5px; }
  .route { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc li:nth-child(odd) { border-right: 0; }
  .svc li { padding: 16px 20px; }
  .board-top, .board-foot { padding-left: 20px; padding-right: 20px; }
  .board-mid { padding: 26px 12px 22px; }
  .topo { min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .topo::before { display: none; }
  .live-note p { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .statement blockquote { grid-column: 1 / -1; }
  .contact .btn { width: 100%; }
  .cs-facts { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .outcomes { grid-template-columns: 1fr; }
  .arch-row { grid-template-columns: 1fr; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow-phone { display: none; }
.case.wide .flow .node { background: var(--night-2); color: var(--on-night); border-color: var(--night-line); }
.case.wide .flow .node.hot { background: var(--signal); border-color: var(--signal); }
.case.wide .flow .wire { background: var(--on-night-2); }
.case.wide .flow .wire::after { border-left-color: var(--on-night-2); }
.case.wide .loop { color: var(--on-night-2); }
@media (max-width: 720px) { .minimap { display: none; } .flow-phone { display: grid; } .case.wide .case-vis { min-height: 200px; } }
/* Keep a keyboard-focused control clear of the sticky header */
a, button, [tabindex] { scroll-margin-top: 96px; scroll-margin-bottom: 24px; }

/* production additions (Fullstack, 2026-11) */
.contact .kick-contact { grid-column: 1 / -1; margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.hero .lead strong { font-weight: 700; }
.cs-facts dd a.link { display: inline-flex; align-items: center; min-height: 44px; }

/* Live board, sample mode (no JS, before the first fetch, or API down): no health signals, rows dimmed, counts hidden
   (visibility, so the height never changes). */
.board[data-mode="sample"] .svc, .board[data-mode="sample"] .topo { opacity: .55; }
.board[data-mode="sample"] .counts { visibility: hidden; }
/* Case-card flow diagrams scale with their card, so no node text clips at any width (tablet portrait, 320 px). */
.case-vis { container-type: inline-size; }
.flow { max-width: 100%; flex-wrap: wrap; justify-content: center; row-gap: 10px; }   /* wraps only if a card is too narrow */
.flow .node { font-size: clamp(9.5px, 3.3cqi, 12px); padding: clamp(6px, 2cqi, 10px) clamp(5px, 1.6cqi, 12px); letter-spacing: 0; }
.flow .wire { min-width: clamp(8px, 2.4cqi, 14px); }
.loop { font-size: clamp(9.5px, 2.5cqi, 11.5px); }

/* Live-status slots baked for two cases (tools/render_board.py): "saved sample" only when JavaScript is off,
   "checking…" while site.js loads the first /api/live-status answer. html.js is set inline in <head>. */
html.js .nojs-only { display: none; }
html:not(.js) .js-only { display: none; }

/* ---------- hero: Direction A "Floating lab", Phase 1 (Designer brief portfolio-r2/phase1, 2026-11-16) ----------
   Layers (z): sky 0, far rocks 1, name 2, island + hotspots 3, near rocks 4, copy + card 6. Static here; parallax,
   drift and the entrance live in motion.css (never under reduced motion). Hotspots sit at CSS percentages of the
   island box (baked by tools/render_hero.py), so they move with the art and never jump after load. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
:root { --hdr: 72px; --h-ok: #2E8B57; --h-warn: #B7791F; --h-down: #C2412D; --h-unk: #8D929B; --art-ink: #12221A; }
body:has(.hero.lab) .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; }
.hero.lab {
  --p: 0; --k: 1; --mx: 0; --my: 0;
  position: relative; display: block; isolation: isolate; overflow: hidden;
  height: max(100svh, 640px); margin-top: calc(-1 * var(--hdr)); padding: 0;
  background: radial-gradient(120% 70% at 50% 18%, #FBFCFB 0%, #EEF1EF 45%, #E2E7E4 75%, #DDE3DF 100%);
}
.lab-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lab-sky .band { position: absolute; left: -10%; right: -10%; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(28px); opacity: calc(min(1, .714 + .286 * var(--p))); }
.lab-sky .b1 { top: 24%; } .lab-sky .b2 { top: 58%; height: 100px; }
.lab-sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, var(--paper) 8%, rgba(242, 239, 231, 0)); }
.lab-l { position: absolute; inset: 0; pointer-events: none; }
.lab-ptr { position: absolute; inset: 0; }
.lab-far { z-index: 1; } .lab-name { z-index: 2; } .lab-main { z-index: 3; } .lab-near { z-index: 4; } .lab-foot { z-index: 6; }
.lab-far svg { position: absolute; left: 0; top: 4%; width: 100%; height: auto; filter: blur(1.2px); }
.lab-near svg { position: absolute; left: -2%; top: 22%; width: 104%; height: auto; filter: blur(2.5px); opacity: .92; }
.lab-name .wrap { position: absolute; left: 0; right: 0; top: 9.5%; display: grid; gap: clamp(10px, 1.2vw, 18px); }
.lab-name .hero-top, .lab-name .display { pointer-events: auto; }
.lab-island { position: absolute; left: 0; right: 0; margin-inline: auto; top: 27%; width: min(72vw, 1000px); aspect-ratio: 1000 / 760; }  /* centred without a transform: the entrance animates transform */
.lab-bob, .lab-art, .lab-hots { position: absolute; inset: 0; }
.lab-art svg { display: block; width: 100%; height: 100%; }
.led-web { fill: #4CC27C; }

/* hotspots (≥ 721 px): a 14 px dot (4 px white ring, 2 px status ring) plus a mono label chip; 44 px hit area */
.lab-hot { position: absolute; left: var(--x); top: var(--y); transform: translate(-22px, -50%); pointer-events: auto; }
.lab-hot[data-side="l"] { transform: translate(calc(-100% + 22px), -50%); }
.lab-hot-b { --c: var(--h-unk); display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; margin: 0; border: 0; background: none; color: var(--art-ink); cursor: pointer; font: 600 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lab-hot[data-side="l"] .lab-hot-b { flex-direction: row-reverse; }
.lab-hot-d { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(255, 255, 255, .86), 0 0 0 6px var(--c); }
.lab-hot-d::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.lab-hot-l { background: rgba(255, 255, 255, .86); border: 1px solid rgba(18, 34, 26, .18); padding: 6px 8px; border-radius: 6px; }
.lab-hot[data-s="healthy"] .lab-hot-b { --c: var(--h-ok); } .lab-hot[data-s="warning"] .lab-hot-b { --c: var(--h-warn); } .lab-hot[data-s="down"] .lab-hot-b { --c: var(--h-down); }
/* neutral: loading, error, no JavaScript - the island still reads as a labelled diagram */
html:not(.js) .lab-hot-d, .lab[data-state="loading"] .lab-hot-d, .lab[data-state="error"] .lab-hot-d { background: #fff; box-shadow: 0 0 0 2px var(--art-ink); }
.lab[data-state="stale"] .lab-hot-d, .lab[data-state="stale"] .seg { opacity: .7; }
.lab-hot-pop { position: absolute; top: calc(100% + 4px); left: 8px; z-index: 2; width: max-content; max-width: 260px; display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1.5px solid var(--art-ink); box-shadow: 0 10px 24px rgba(18, 34, 26, .12); font: 500 12.5px/1.45 var(--f-sans); color: var(--art-ink); text-transform: none; letter-spacing: 0; white-space: normal; opacity: 0; visibility: hidden; pointer-events: none; }
.lab-hot[data-side="l"] .lab-hot-pop { left: auto; right: 8px; }
.lab-hot-pop b { font: 700 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; }
.lab-hot-pop span { display: block; white-space: pre-line; }
.lab-hot:hover .lab-hot-pop, .lab-hot:focus-within .lab-hot-pop, .lab-hot.open .lab-hot-pop { opacity: 1; visibility: visible; }

/* copy (bottom left) and the glass status card (bottom right) */
.lab-foot .wrap { position: absolute; left: 0; right: 0; bottom: 9%; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.lab-copy, .lab-card { pointer-events: auto; }
.lab-lead { font-size: 1.1875rem; line-height: 1.45; max-width: 420px; }
.lab-lead strong { display: block; font-weight: 700; }
.lab-copy .btn, .lab-copy-phone .btn { margin-top: 18px; }
.lab-copy-phone { display: none; }
.lab-card { width: 340px; flex: none; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(18, 34, 26, .08); color: var(--ink); }
.lab-card .k { font-size: 11px; letter-spacing: .08em; color: var(--ink-2); }
.lab-card .h { font-weight: 780; font-stretch: 85%; font-size: 1.5rem; line-height: 1.15; margin: 6px 0 2px; min-height: 1.15em; }
.lab-card .s { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 1.4em; }
.lab-card .skel { display: inline-block; width: 11ch; height: .8em; border-radius: 6px; background: rgba(18, 34, 26, .12); vertical-align: middle; }
.lab-card .seg { display: flex; gap: 4px; margin: 12px 0 10px; }
.lab-card .seg i { flex: 1; height: 8px; border-radius: 3px; background: var(--h-unk); }
.lab-card .seg i[data-s="healthy"] { background: var(--h-ok); } .lab-card .seg i[data-s="warning"] { background: var(--h-warn); } .lab-card .seg i[data-s="down"] { background: var(--h-down); }
.lab[data-state="error"] .lab-card .seg, html:not(.js) .lab-card .seg, html:not(.js) .lab-card .lnk, html:not(.js) .lab-card .s { display: none; }
.lab-card .chips { display: none; }
.lab-card .lnk { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; margin: -10px 0 -12px; font: 600 13px/1 var(--f-mono); color: var(--signal); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .lab-card .lnk:hover { text-decoration: underline; text-underline-offset: 3px; } }
/* the next section arrives over the hero like a panel (normal flow, no fixed overlay) */
.hero.lab + .section { position: relative; z-index: 1; background: var(--paper); border-radius: 18px 18px 0 0; margin-top: -18px; }

/* Background (the portrait moved here from the hero, brief §7) */
.bg-grid { row-gap: 28px; align-items: start; }
.bg-photo { grid-column: 1 / span 5; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.bg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.bg-copy { grid-column: 7 / span 6; display: grid; gap: 28px; align-content: start; }

@media (max-width: 720px) {
  .hero.lab { --k: .5; }
  .lab-name .wrap { top: calc(var(--hdr) + 22px); }
  .lab-island { top: calc(var(--hdr) + 52px + (100vw - 2 * var(--pad)) / 2.34 * 1.64); width: 100vw; }
  .lab-hot { display: none; }
  .lab-far svg { width: 200%; left: -50%; top: 30%; }
  .lab-far .r3, .lab-far .r4, .lab-near .n1 { display: none; }
  .lab-near svg { width: 220%; left: -110%; top: auto; bottom: 6%; }
  /* phone: the card sits in normal flow under the island, so a short screen grows the hero instead of hiding the art */
  .hero.lab { height: auto; min-height: max(100svh, 640px); display: flex; flex-direction: column; }
  .lab-foot { position: relative; inset: auto; margin-top: auto; padding-top: calc(var(--hdr) + 52px + (100vw - 2 * var(--pad)) / 2.34 * 1.64 + 100vw * .53); padding-bottom: 20px; }
  .lab-foot .wrap { position: static; }
  .lab-copy { display: none; }
  .lab-copy-phone { display: block; margin-bottom: 48px; }
  .lab-card { width: 100%; padding: 14px 16px; }
  .lab-card .h { font-size: 1.25rem; }
  .lab-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; padding: 0; list-style: none; }
  .lab-card .chips li { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(18, 34, 26, .15); font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
  .lab-card .chips .d { width: 9px; height: 9px; border-radius: 50%; background: var(--h-unk); }
  .lab-card .chips li[data-s="healthy"] .d { background: var(--h-ok); } .lab-card .chips li[data-s="warning"] .d { background: var(--h-warn); } .lab-card .chips li[data-s="down"] .d { background: var(--h-down); }
  .lab[data-state="loading"] .chips .d, .lab[data-state="error"] .chips .d, html:not(.js) .chips .d { background: #fff; box-shadow: 0 0 0 1.5px var(--art-ink); }
  .bg-photo, .bg-copy { grid-column: 1 / -1; }
}
@media (max-width: 359px) { .lab-far { display: none; } }

/* Designer review of 7d809fd */
/* (2) below 360 px the header shows only the DL mark; the name stays as the link's accessible label */
@media (max-width: 359px) { .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* (3) the rocks (far and near) fade into the haze at the hero's bottom edge instead of being cut flat */
.lab-near, .lab-far { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 95%); mask-image: linear-gradient(to bottom, #000 72%, transparent 95%); }

/* Qa review of 7d809fd */
/* M1: Escape hides the popover even while focused or hovered (cleared on focusout / pointerleave) */
.lab-hot.dismissed .lab-hot-pop { opacity: 0; visibility: hidden; }
/* m4: between 721 and 1000 px the island is too small for six labels: dots only (the aria-label and the popover
   still name each one) */
@media (min-width: 721px) and (max-width: 1000px) { .lab-hot-l { display: none; } .lab-hot, .lab-hot[data-side="l"] { transform: translate(-22px, -50%); } .lab-hot[data-side="l"] .lab-hot-pop { left: 8px; right: auto; } }
