/* v2.css: the redesigned pages (home, about). Generated from one source; site.css still supplies the command palette and toast. */
/* minimal reset so the page stands on its own (site.css repeats it) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* Home: one wide column on white. A big plain-spoken hero, an asymmetric
   case-study grid, proof numbers next to the strengths they back up, and a
   lime contact slab that closes the page. One sans for everything you read,
   a small mono for labels. Groups are separated by space; lines are kept
   only for list rows. Every class is prefixed h- so the shared site.css
   (palette, toast) can't collide with it. */
:root {
  /* color roles */
  --h-bg: #ffffff;
  --h-surface: #f3f4f0;
  --h-ink: #20251f;
  --h-text: #3a423a;
  --h-muted: #6c7169;
  --h-line: #e2e4de;
  --h-link: #4f5ae8;
  --h-lime: #e6fd7d;
  --h-lime-ink: #22281c;
  --h-live: #7bc043;
  --h-chip-bg: rgba(255, 255, 255, 0.88);
  --h-chip-ink: #20251f;
  --h-img-outline: rgba(0, 0, 0, 0.1);
  --h-ib-ground: #0d0f0e;
  --h-ft-bg: #1b1f1a;
  --h-ft-ink: #f3f5f1;
  --h-ft-text: #c3c8be;
  --h-ft-muted: #959b91;
  --h-ft-line: rgba(255, 255, 255, 0.14);
  --h-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --h-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* type scale, smallest to largest */
  --h-t-label: 0.75rem;                              /* mono uppercase labels */
  --h-t-caption: 0.8125rem;                          /* tags */
  --h-t-small: 0.9375rem;                            /* nav, buttons, meta */
  --h-t-body: 1.125rem;                              /* running text */
  --h-t-title: clamp(1.3125rem, 1.7vw, 1.5rem);      /* h3, email */
  --h-t-section: clamp(1.75rem, 2.6vw, 2.25rem);     /* h2 */
  --h-t-stat: clamp(2.5rem, 4.2vw, 3.5rem);          /* proof figures */
  --h-t-hero: clamp(2.375rem, 5.4vw, 4.875rem);      /* h1 */
  --h-t-giant: clamp(3.25rem, 16.5vw, 14.75rem);     /* Let's talk */
  --h-gutter: 80px;
  --h-max: 1280px;
  --h-radius: 20px;
  --h-header: 68px;
  --h-ease: cubic-bezier(0.2, 0, 0, 1);
}
html[data-theme="dark"] {
  --h-bg: #10120f;
  --h-surface: #1a1d18;
  --h-ink: #f1f3ee;
  --h-text: #d8dcd3;
  --h-muted: #989d93;
  --h-line: #2a2e27;
  --h-link: #a5acff;
  --h-chip-bg: rgba(16, 18, 15, 0.82);
  --h-chip-ink: #f1f3ee;
  --h-img-outline: rgba(255, 255, 255, 0.1);
  --h-ft-bg: #1a1e19;
  color-scheme: dark;
}
html {
  font-size: 100%; /* site.css pins the root at 17px; the v2 rem scale expects the browser default */
  scroll-padding-block-start: calc(var(--h-header) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { background: var(--h-bg); color: var(--h-text); font-family: var(--h-sans); }
body { font-size: var(--h-t-body); line-height: 1.55; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--h-bg); }
p { text-wrap: pretty; }
.h-wrap {
  max-width: calc(var(--h-max) + 2 * var(--h-gutter));
  margin: 0 auto;
  padding-left: max(var(--h-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--h-gutter), env(safe-area-inset-right, 0px));
}
.h-label { font-family: var(--h-mono); font-size: var(--h-t-label); font-weight: 500; line-height: 1.4; letter-spacing: 0.05em; text-transform: uppercase; color: var(--h-muted); white-space: nowrap; }
.h-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--h-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-live) 22%, transparent); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) { .h-dot { animation: h-pulse 2.4s ease-in-out infinite; } }
@keyframes h-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--h-live) 0%, transparent); } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--h-link); outline-offset: 3px; border-radius: 6px; }

/* press feedback, shared by every pill control */
.h-press { transition-property: scale, background-color, color, border-color; transition-duration: 150ms; transition-timing-function: ease-out; -webkit-tap-highlight-color: transparent; }
.h-press:active { scale: 0.96; }

/* ── TOP BAR ── */
.h-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--h-bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 150ms ease-out; }
.h-top.is-stuck { border-bottom-color: var(--h-line); }
.h-top-in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; min-height: var(--h-header); font-size: var(--h-t-small); }
.h-brand { display: inline-flex; justify-self: start; align-items: baseline; gap: 8px; color: var(--h-ink); white-space: nowrap; }
.h-brand b { font-weight: 600; }
.h-brand span { color: var(--h-text); }
.h-brand .h-brand-sep { color: var(--h-muted); }
.h-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.h-nav a { padding: 8px 12px; border-radius: 999px; color: var(--h-text); }
/* secondary in emphasis: the filled action on this page is "Email me" */
.h-nav .h-nav-cta { margin-inline-start: 8px; padding-inline: 16px; border: 1px solid var(--h-ink); color: var(--h-ink); font-weight: 500; }

/* ── HERO ── */
.h-hero { padding-top: clamp(72px, 13vh, 150px); }
.h-hero h1 { font-size: var(--h-t-hero); font-weight: 400; line-height: 1.1; letter-spacing: -0.015em; color: var(--h-ink); max-width: 16.5em; text-wrap: balance; }
.h-hero h1 a { color: var(--h-link); white-space: nowrap; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 0.06em; background-position: 0 92%; background-repeat: no-repeat; transition: background-size 300ms var(--h-ease); }
/* same ledger as the strengths and client grids: one hairline per row, cells on even columns */
.h-facts { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, auto); }
.h-fact { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-block: 16px; padding-inline-end: 24px; border-top: 1px solid var(--h-line); }
.h-fact p { font-size: var(--h-t-body); line-height: 1.45; color: var(--h-ink); }
.h-fact .h-avail { display: inline-flex; align-items: center; gap: 10px; }

/* ── SECTIONS ── */
.h-sec { padding-top: clamp(96px, 11vw, 160px); }
.h-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 40px; }
.h-sec-head .h-label { white-space: normal; }
.h-sec-link { color: var(--h-ink); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: from-font; text-underline-offset: 0.3em; transition: text-decoration-color 150ms ease-out; }
@media (hover: hover) { .h-sec-link:hover { text-decoration-color: currentColor; } }
.h-sec-head h2 { font-size: var(--h-t-section); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--h-ink); text-wrap: balance; }

/* ── WORK ── */
.h-work { display: flex; flex-direction: column; gap: 64px; }
.h-row { display: grid; gap: 64px 28px; }
.h-row-a { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); }
.h-row-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); }
.h-card { display: flex; flex-direction: column; gap: 20px; color: inherit; min-width: 0; }
.h-media { position: relative; height: clamp(260px, 31vw, 460px); border-radius: var(--h-radius); overflow: hidden; background: var(--h-surface); isolation: isolate; }
.h-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; outline: 1px solid var(--h-img-outline); outline-offset: -1px; transition: scale 500ms var(--h-ease); }
.h-lockchip { position: absolute; top: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--h-chip-bg); color: var(--h-chip-ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.h-lockchip .h-label { color: inherit; }
.h-lockchip svg { width: 10px; height: 11px; }
/* hover hint: a small frosted pill that rises into the image's bottom corner */
.h-view { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; z-index: 2; pointer-events: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--h-chip-bg); color: var(--h-chip-ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: var(--h-t-small); font-weight: 500; line-height: 1.2; white-space: nowrap; opacity: 0; translate: 0 6px; transition-property: opacity, translate; transition-duration: 150ms; transition-timing-function: ease-out; }
.h-card-body { display: flex; flex-direction: column; gap: 8px; }
.h-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.h-co { font-size: var(--h-t-small); font-weight: 600; color: var(--h-ink); }
.h-card h3 { font-size: var(--h-t-title); font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; color: var(--h-text); max-width: 30em; text-wrap: balance; transition: color 150ms ease-out; }
.h-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.h-tag { padding: 3px 10px; border: 1px solid var(--h-line); border-radius: 999px; font-size: var(--h-t-caption); line-height: 1.4; color: var(--h-muted); white-space: nowrap; }

/* side project: product screenshot, then one tile per tool with the question it answers */
.h-ib { display: flex; flex-direction: column; gap: 24px; }
.h-ib-media { height: auto; aspect-ratio: 2880 / 1140; background: var(--h-ib-ground); }
.h-ib-media img { object-position: 78% center; }
/* the rack field is drawn, so it can build itself on hover */
.h-ib-art { display: block; width: 100%; height: 100%; border-radius: inherit; outline: 1px solid var(--ib-h-img-outline); outline-offset: -1px; transition: scale 500ms var(--ib-h-ease); }
/* the hall builds the way infrabench.dev's does: each rack rises from the floor with a small
   overshoot, in a sweep from the front-left corner; then a scanning light crosses the hall
   and the overhead racks it passes drop out, leaving their outlines. --ib-h is a rack's height,
   read by its faces */
@property --ib-h { syntax: "<number>"; inherits: true; initial-value: 1; }
@keyframes ib-rise { from { --ib-h: 0; } to { --ib-h: 1; } }
@keyframes ib-fall { from { --ib-h: 1; } to { --ib-h: 0; } }
@keyframes ib-wire { from { opacity: 0; } to { opacity: 1; } }
/* status lights on the aisle-facing fronts: one breathes, one blinks with traffic, each rack at
   its own rate. Their brightness rides on --ib-la and --ib-lz, which the lights read */
@property --ib-la { syntax: "<number>"; inherits: true; initial-value: 0.6; }
@property --ib-lz { syntax: "<number>"; inherits: true; initial-value: 0.16; }
@keyframes ib-breathe { 0%, 100% { --ib-la: 0.25; } 50% { --ib-la: 0.75; } }
@keyframes ib-blink { 0%, 14% { --ib-lz: 1; } 14.01%, 100% { --ib-lz: 0.16; } }
@keyframes ib-flash { from { filter: brightness(1.9); } to { filter: none; } }
/* the scan crosses the hall in 2 s, fading in over 200 ms and out over 400 ms after */
@keyframes ib-scan {
  0% { opacity: 0; transform: translate(var(--ib-sx0), var(--ib-sy0)); }
  8.33% { opacity: 1; }
  83.33% { opacity: 1; transform: translate(var(--ib-sx1), var(--ib-sy1)); }
  100% { opacity: 0; transform: translate(var(--ib-sx1), var(--ib-sy1)); }
}
.h-ib-art .ib-scan { opacity: 0; mix-blend-mode: screen; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .h-ib-art.is-playing .ib-rack { animation: ib-rise 750ms cubic-bezier(0.34, 1.4, 0.64, 1) var(--ib-d) both; }
  .h-ib-art.is-live .ib-lit { animation: ib-breathe var(--ib-tb) ease-in-out var(--ib-tbo) infinite, ib-blink var(--ib-tk) linear var(--ib-tko) infinite; }
  .h-ib-art.is-playing.is-live .ib-lit { animation: ib-rise 750ms cubic-bezier(0.34, 1.4, 0.64, 1) var(--ib-d) both, ib-breathe var(--ib-tb) ease-in-out var(--ib-tbo) infinite, ib-blink var(--ib-tk) linear var(--ib-tko) infinite; }
  .h-ib-art.is-playing .ib-lost { animation: ib-rise 750ms cubic-bezier(0.34, 1.4, 0.64, 1) var(--ib-d) both, ib-fall 650ms cubic-bezier(0.55, 0, 1, 0.45) var(--ib-d2) forwards, ib-flash 420ms ease-out var(--ib-d2); }
  .h-ib-art.is-playing .ib-scan { animation: ib-scan 2400ms linear 3000ms both; }
  .h-ib-art.is-playing .ib-wire { animation: ib-wire 450ms ease-out var(--ib-d3) both; }
}

.h-ib-tools { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h-ib-tools li { display: flex; min-width: 0; }
.h-ib-tool { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 14px; background: var(--h-surface); color: var(--h-ink); }
.h-ib-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--h-t-body); font-weight: 600; letter-spacing: -0.01em; }
.h-ib-desc { font-size: var(--h-t-small); line-height: 1.45; color: var(--h-muted); text-wrap: pretty; }
.h-ib-name .h-arrow { font-weight: 400; color: var(--h-muted); transition-property: translate, color; transition-duration: 150ms; transition-timing-function: ease-out; }

/* ── STRENGTHS, EACH WITH ITS PROOF ── */
.h-shine { display: flex; flex-direction: column; border-bottom: 1px solid var(--h-line); }
.h-shine-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); gap: 16px 28px; align-items: baseline; padding-block: 40px; border-top: 1px solid var(--h-line); }
.h-proof, .h-claim { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.h-stat { font-size: var(--h-t-stat); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--h-ink); white-space: nowrap; }
.h-stat span { color: var(--h-muted); }
.h-stat-cap { font-size: var(--h-t-small); color: var(--h-muted); line-height: 1.45; max-width: 24em; }
.h-claim h3 { font-size: var(--h-t-title); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--h-ink); text-wrap: balance; }
.h-claim p { color: var(--h-muted); max-width: 36em; }

/* ── CLIENTS: one quiet strip of wordmarks ── */
/* label in the first cell, seven wordmarks in the rest: every row full, at every width */
.h-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--h-line); }
.h-logos > * { display: flex; align-items: center; min-width: 0; min-height: 128px; padding-inline: 12px; border-top: 1px solid var(--h-line); }
.h-logos-lbl { white-space: normal; padding-inline-start: 0; }
/* wordmarks centred in their cells, so the last column carries as much weight as the first */
.h-logo { justify-content: center; color: var(--h-ink); }
.h-logo i { display: block; height: calc(var(--h) * var(--k, 1)); width: calc(var(--h) * var(--k, 1) * var(--r)); max-width: 100%; background: currentColor; opacity: 0.62; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; transition: opacity 150ms ease-out; }

/* ── CONTACT SLAB ── */
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* ── FOOTER: a dark sheet that closes every page ── */
.h-ft { margin-top: clamp(96px, 11vw, 160px); border-radius: 28px 28px 0 0; background: var(--h-ft-bg); color: var(--h-ft-text); }
.h-ft-in { container-type: inline-size; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 24px; }
.h-ft-top { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 56px 28px; }
.h-ft-cta h2 { max-width: 15em; font-size: var(--h-t-section); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: var(--h-ft-ink); text-wrap: balance; }
.h-ft-cta p { max-width: 32em; margin-top: 16px; color: var(--h-ft-text); }
.h-ft-cta .h-btns { margin-top: 32px; }
.h-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.h-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--h-ft-line); border-radius: 999px; background: transparent; color: var(--h-ft-ink); font-size: var(--h-t-small); font-weight: 500; cursor: pointer; }
.h-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* "Copy email" and "Copied" share one width so the buttons beside it never shift */
.h-btn[data-copy-email] { justify-content: center; min-width: 9.75em; }
.h-btn .h-copy-ok, .h-btn.is-copied .h-copy-ic { display: none; }
.h-btn.is-copied .h-copy-ok { display: block; color: var(--h-lime); }
.h-btn.is-lime { border-color: var(--h-lime); background: var(--h-lime); color: var(--h-lime-ink); }
.h-ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; align-content: start; }
.h-ft-cols .h-label { margin-bottom: 14px; color: var(--h-ft-muted); }
.h-ft-cols ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.h-ft-cols a { font-size: var(--h-t-small); color: var(--h-ft-ink); transition: color 150ms ease-out; }
/* the name is sized to the footer's own width, so it spans it edge to edge at every size */
.h-ft-name { display: block; transition: color 150ms ease-out; margin-block: clamp(56px, 9cqi, 128px) clamp(12px, 2cqi, 28px); font-size: 19.7cqi; font-weight: 500; line-height: 0.8; letter-spacing: -0.055em; white-space: nowrap; color: var(--h-lime); }
/* bottom row shares the columns above: copyright under the call to action, location and back-to-top under the link columns */
.h-ft-bottom { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 12px 28px; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--h-ft-line); font-size: var(--h-t-small); color: var(--h-ft-muted); }
.h-ft-bottom-r { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; }
.h-ft-bottom-r > span { grid-column: span 2; }
.h-ft-up { justify-self: start; }
.h-ft-bottom a { color: var(--h-ft-text); transition: color 150ms ease-out; }

/* ── HOVER, only where a pointer can hover ── */
@media (hover: hover) {
  .h-nav a:hover { background: var(--h-surface); color: var(--h-ink); }
  .h-nav .h-nav-cta:hover { background: var(--h-ink); color: var(--h-bg); }
  .h-hero h1 a:hover { background-size: 100% 0.06em; }
  .h-card:hover h3 { color: var(--h-ink); }
  .h-card:hover .h-view { opacity: 1; translate: 0 0; }
  .h-ib-tool:hover { background: color-mix(in srgb, var(--h-surface) 70%, var(--h-lime)); }
  .h-ib-tool:hover .h-arrow { translate: 3px -3px; color: var(--h-ink); }
  .h-logo:hover i { opacity: 1; }
  .h-btn:hover { border-color: var(--h-ft-ink); }
  .h-btn.is-lime:hover { border-color: var(--h-lime); background: transparent; color: var(--h-lime); }
  .h-ft-cols a:hover, .h-ft-bottom a:hover { color: var(--h-lime); }
  .h-ft-name:hover { color: var(--h-ft-ink); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .h-card:hover .h-media img, .h-card:hover .h-ib-art { scale: 1.035; }
}
@media (hover: none) { .h-view { display: none; } }
@media (prefers-reduced-motion: reduce) { .h-view { translate: none; } }

/* ── LOAD SEQUENCE: opacity for everyone, blur and lift only without reduced motion ── */
.h-in { animation: h-fade 300ms ease-out both; animation-delay: calc(var(--i, 0) * 100ms); }
@media (prefers-reduced-motion: no-preference) { .h-in { animation-name: h-rise; } }
@keyframes h-fade { from { opacity: 0; } }
@keyframes h-rise { from { opacity: 0; filter: blur(4px); translate: 0 12px; } }

/* ── RESPONSIVE ── */
/* four tool tiles need about 290px each; go 2x2 before their copy has to wrap */
@media (max-width: 1279px) {
  .h-ib-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .h-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .h-ft-top { grid-template-columns: minmax(0, 1fr); }
  .h-ft-bottom { grid-template-columns: minmax(0, 1fr); }
  :root { --h-gutter: 20px; }
  .h-row-a, .h-row-b, .h-shine-item { grid-template-columns: minmax(0, 1fr); }
  .h-work, .h-row { gap: 56px; }
  .h-media { height: auto; aspect-ratio: 4 / 3; }
  .h-ib-media { aspect-ratio: 4 / 3; }
  .h-ib-media img { object-position: 96% center; }
  .h-shine-item { padding-block: 32px; }
  .h-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-logos > * { min-height: 96px; }
  .h-logo { --k: 0.85; }
}
@media (max-width: 700px) {
  .h-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .h-ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-ft-bottom-r { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-ft-bottom-r > span { grid-column: auto; }
  .h-ft { border-radius: 20px 20px 0 0; }
  .h-brand span { display: none; }
  .h-logo { --k: 0.75; }
  .h-ib-tools { grid-template-columns: minmax(0, 1fr); }
  /* Work and About stay in the bar on phones, with tighter pills */
  .h-nav { gap: 0; }
  .h-nav a { padding-inline: 10px; white-space: nowrap; }
  .h-nav .h-nav-cta { margin-inline-start: 4px; padding-inline: 14px; }
  /* the three footer buttons share one row: Copy email becomes an icon, its label kept for screen readers */
  .h-btn[data-copy-email] { min-width: 0; padding-inline: 15px; }
  .h-btn [data-copy-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 360px) {
  .h-top-in { gap: 12px; }
  .h-brand, .h-nav a { font-size: 14px; }
  .h-nav a { padding-inline: 6px; }
  .h-nav .h-nav-cta { margin-inline-start: 2px; padding-inline: 10px; }
  .h-ft-cta .h-btns { gap: 8px; }
  .h-btn { padding-inline: 15px; }
}

/* ── LEGACY TOKENS ──
   site.css still styles a few shared components (⌘K search, toast, skip link) and the
   inline styles of older embeds. Pointing its tokens at this system makes them follow it. */
:root, html[data-theme="dark"] {
  --field: var(--h-surface); --paper: var(--h-bg); --soft: var(--h-surface);
  --ink: var(--h-ink); --mid: var(--h-text); --muted: var(--h-muted);
  --border: var(--h-line); --border-light: var(--h-line);
  --accent: var(--h-link); --accent-soft: color-mix(in srgb, var(--h-link) 9%, transparent);
  --mark: var(--h-lime); --mono: var(--h-mono); --sans: var(--h-sans);
}

/* skip link: a pill in this system's ink */
.skip-link { padding: 10px 16px; border-radius: 999px; background: var(--h-ink); color: var(--h-bg); font-family: var(--h-sans); font-size: var(--h-t-small); font-weight: 500; letter-spacing: 0; }

/* bigger hit areas on small links, without moving anything */
.h-brand, .h-sec-link { position: relative; }
.h-brand::after, .h-sec-link::after { content: ""; position: absolute; inset: -10px -6px; }

/* ⌘K search, restyled */
.cmdk { overflow: hidden; border: 1px solid var(--h-line); border-radius: 20px; background: var(--h-bg); box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.45); }
.cmdk-search { gap: 10px; padding: 0 20px; }
.cmdk-search .pr { display: none; }
.cmdk-input { padding: 20px 0; font-family: var(--h-sans); font-size: var(--h-t-body); letter-spacing: 0; color: var(--h-ink); }
.cmdk-esc, .cmdk-foot kbd { border-color: var(--h-line); border-radius: 6px; background: var(--h-bg); font-family: var(--h-mono); font-size: var(--h-t-label); color: var(--h-muted); }
.cmdk-grp { padding: 14px 20px 6px; font-family: var(--h-mono); font-size: var(--h-t-label); letter-spacing: 0.05em; color: var(--h-muted); }
.cmdk-opt { gap: 12px; margin: 0 8px; padding: 10px 12px; border-radius: 12px; }
.cmdk-opt .oico { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--h-surface); font-family: var(--h-sans); font-size: var(--h-t-caption); color: var(--h-muted); }
.cmdk-opt .olbl { font-family: var(--h-sans); font-size: var(--h-t-small); font-weight: 500; color: var(--h-ink); }
.cmdk-opt .olbl mark { color: var(--h-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--h-lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.cmdk-opt .ohint { font-family: var(--h-mono); font-size: var(--h-t-label); letter-spacing: 0.05em; color: var(--h-muted); }
.cmdk-opt[aria-selected="true"] { background: var(--h-surface); }
.cmdk-opt[aria-selected="true"]::before { content: none; }
.cmdk-opt[aria-selected="true"] .oico { border: 0; background: var(--h-lime); color: var(--h-lime-ink); }
.cmdk-empty { font-family: var(--h-sans); font-size: var(--h-t-small); color: var(--h-muted); }
.cmdk-empty .p, .toast .p { display: none; }
.cmdk-foot { padding: 12px 20px; background: var(--h-surface); }
.cmdk-foot .hint { font-family: var(--h-sans); font-size: var(--h-t-caption); color: var(--h-muted); }
.toast { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--h-ink); color: var(--h-bg); font-family: var(--h-sans); font-size: var(--h-t-small); font-weight: 500; letter-spacing: 0; }
html[data-theme="dark"] .toast { border: 0; background: var(--h-ink); color: var(--h-bg); }

/* 404 */
.h-404 { padding-block: clamp(96px, 16vh, 200px) clamp(72px, 12vh, 160px); }
.h-404 h1 { margin-top: 20px; max-width: 14em; font-size: var(--h-t-hero); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; color: var(--h-ink); text-wrap: balance; }
.h-404 p { margin-top: 20px; max-width: 30em; font-size: var(--h-t-title); line-height: 1.45; letter-spacing: -0.01em; color: var(--h-muted); text-wrap: pretty; }
.h-404 .h-btns { margin-top: 40px; }
.h-btn.h-btn-ink { border-color: var(--h-ink); background: var(--h-ink); color: var(--h-bg); }
.h-btn.h-btn-line { border-color: var(--h-line); color: var(--h-ink); }
@media (hover: hover) {
  .h-btn.h-btn-ink:hover { border-color: var(--h-ink); background: transparent; color: var(--h-ink); }
  .h-btn.h-btn-line:hover { border-color: var(--h-ink); }
}

/* ── ABOUT: story beside a fact ledger, then beliefs and numbers as rows ── */
.h-nav a[aria-current="page"] { color: var(--h-ink); background: var(--h-surface); }
.h-ft-cols a[aria-current="page"] { color: var(--h-lime); }

.h-story.h-sec { padding-top: clamp(64px, 7vw, 104px); }
.h-story { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 48px 28px; align-items: start; }
.h-story-text { display: flex; flex-direction: column; gap: 20px; max-width: 36em; min-width: 0; }
.h-story-text .h-label { margin-bottom: 4px; }
.h-lead { font-size: var(--h-t-title); line-height: 1.45; letter-spacing: -0.01em; color: var(--h-ink); }
.h-story-text p:not(.h-lead) { line-height: 1.65; color: var(--h-text); }
.h-story-text em { font-style: normal; font-weight: 500; color: var(--h-ink); }

.h-aside { position: sticky; top: calc(var(--h-header) + 24px); min-width: 0; }
.h-ledger { border-bottom: 1px solid var(--h-line); }
.h-ledger > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--h-line); }
.h-ledger dd { color: var(--h-ink); line-height: 1.45; }
.h-ledger a { position: relative; color: var(--h-link); }
.h-ledger a::after { content: ""; position: absolute; inset: -8px -4px; }
.h-ledger .h-arrow { font-size: 0.85em; }

.h-beliefs h3 { font-size: var(--h-t-title); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--h-ink); text-wrap: balance; }
.h-beliefs p { color: var(--h-muted); max-width: 36em; }

.h-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--h-line); }
.h-numbers > .h-proof { gap: 12px; padding-block: 28px; padding-inline-end: 24px; border-top: 1px solid var(--h-line); }
.h-num-tag { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-bottom: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--h-lime); font-family: var(--h-mono); font-size: var(--h-t-label); font-weight: 500; line-height: 1.4; letter-spacing: 0.05em; text-transform: uppercase; color: var(--h-lime-ink); }
.h-num-tag svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
  .h-ledger a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: from-font; }
}
@media (max-width: 900px) {
  .h-story { grid-template-columns: minmax(0, 1fr); }
  .h-aside { position: static; }
}
@media (max-width: 700px) {
  .h-numbers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .h-ledger > div { grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
}
