/* Bento: one of the four home-page designs (Phase 12, src/_includes/designs/bento.njk). It stands alone: it does not
   load css/tokens.css or css/site.css, and it has one look, with no dark theme. Fonts are the site's own files. */
@font-face { font-family: "Manrope"; src: url("../../assets/fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../../assets/fonts/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Look H · Bento. One calm 12-column grid of rounded tiles on a light neutral ground;
   every tile carries one small looping motion graphic. Single committed light look. */
:root {
  --ground: #eef0ec;
  --tile: #ffffff;
  --hair: #dfe4de;
  --ink: #132b32;
  --muted: #4f6168;
  --mint: #74d3c4;
  --on-mint: #06231f;
  --amber: #e9c46a;
  --rust: #cd3e1b;
  --petrol: #2f6f7a;
  --petrol-soft: #d3e3e0;
  --n-ink: #eef4ef;
  --n-muted: #a3b9b8;
  --rad: 30px;
  --gap: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: 10px; }
.t-ink :focus-visible { outline-color: var(--mint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The skip link waits above the page and drops in over everything when the keyboard reaches it. */
.skip-link { position: fixed; z-index: 100; left: max(16px, env(safe-area-inset-left, 0px)); top: -100px; display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.skip-link:focus { top: 12px; }
#main:focus { outline: none; }

/* ---------- ground wash ---------- */
.wash { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wash i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; }
.wash .w1 { left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(116,211,196,.34), rgba(116,211,196,0) 66%); }
.wash .w2 { right: -22vmax; top: 18vh; background: radial-gradient(circle, rgba(233,196,106,.28), rgba(233,196,106,0) 66%); }
.wash .w3 { left: 18vw; bottom: -30vmax; background: radial-gradient(circle, rgba(47,111,122,.16), rgba(47,111,122,0) 66%); }

/* ---------- page frame ---------- */
.page {
  position: relative; z-index: 1;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 40px;
}
.wrap { max-width: 1360px; margin-inline: auto; padding-inline: clamp(0px, 1.6vw, 24px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; letter-spacing: -.01em; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--rust); }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-weight: 600; font-size: 15px; }
.nav nav a { padding: 8px 2px; white-space: nowrap; }
.nav nav a:not(.nav-cta):hover { color: var(--petrol); }
.nav-cta { padding: 9px 16px !important; border-radius: 999px; background: var(--ink); color: #fff; }
/* Blur while scrolling. The menu sticks to the top. Over the hero it is the same open row as before; once the page
   moves (js/designs/bento.js puts .is-scrolled on <html>), a frosted pill fades in behind it and the band above the
   tiles blurs in three steps, so the tiles soften as they slide under the menu instead of cutting off at a line.
   The pill is a pseudo-element, so the menu keeps its 76px row and nothing below it moves. */
.nav { position: sticky; top: 0; z-index: 30; }
.nav > * { position: relative; }
.nav::before {
  content: ""; position: absolute; inset: 10px -14px; border-radius: 999px; pointer-events: none;
  background: rgba(251, 252, 250, .66); border: 1px solid rgba(19, 43, 50, .07);
  box-shadow: 0 10px 30px -12px rgba(19, 43, 50, .22), 0 1px 0 rgba(255, 255, 255, .7) inset;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  opacity: 0; transform: scale(.98); transition: opacity .35s ease, transform .35s cubic-bezier(.2, 0, 0, 1);
}
.is-scrolled .nav::before { opacity: 1; transform: none; }
.edge-blur { position: fixed; left: 0; right: 0; top: 0; height: 112px; z-index: 29; pointer-events: none; }
.edge-blur i { position: absolute; inset: 0; transition: -webkit-backdrop-filter .45s ease, backdrop-filter .45s ease; }
.edge-blur i:nth-child(1) { -webkit-mask: linear-gradient(to top, transparent 0%, #000 45%); mask: linear-gradient(to top, transparent 0%, #000 45%); }
.edge-blur i:nth-child(2) { -webkit-mask: linear-gradient(to top, transparent 35%, #000 70%); mask: linear-gradient(to top, transparent 35%, #000 70%); }
.edge-blur i:nth-child(3) { -webkit-mask: linear-gradient(to top, transparent 60%, #000 92%); mask: linear-gradient(to top, transparent 60%, #000 92%); }
.is-scrolled .edge-blur i:nth-child(1) { -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.is-scrolled .edge-blur i:nth-child(2) { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.is-scrolled .edge-blur i:nth-child(3) { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* A section a menu link opens starts below the menu, not under it. */
main :is(section, [id]) { scroll-margin-top: 84px; }
#experience { scroll-margin-top: 92px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav::before { background: rgba(251, 252, 250, .94); }
}
/* Asked for less see-through: a solid pill and no blurred band. Asked for less motion: the pill simply appears. */
@media (prefers-reduced-transparency: reduce) {
  .nav::before { background: #fbfcfa; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .edge-blur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav::before, .edge-blur i { transition: none; }
}

.sec { margin-top: clamp(72px, 9vw, 128px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.4vw, 32px); padding-inline: 6px; }
.label { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut, var(--muted)); }
.sec-head h2 { font: 800 clamp(34px, 5.2vw, 68px)/1.02 var(--font); letter-spacing: -.04em; margin-top: 14px; text-wrap: balance; max-width: 16ch; }
.ln-mask { padding-bottom: .14em; margin-bottom: -.14em; }

/* ---------- bento ---------- */
.bento { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile { grid-column: span var(--c, 12); grid-row: span var(--r, 1); min-width: 0; display: flex; position: relative; }
.tile-in {
  --mut: var(--muted); --spot: rgba(47,111,122,.10); --chip: #ffffff; --chip-line: var(--hair);
  position: relative; flex: 1; min-width: 0; display: grid;
  border-radius: var(--rad); background: rgba(255,255,255,.93); border: 1px solid var(--hair);
  box-shadow: 0 1px 2px rgba(19,43,50,.04);
  padding: clamp(20px, 2vw, 28px); color: var(--ink); overflow: hidden;
  container-type: inline-size;
}
.t-ink .tile-in { background: var(--ink); border-color: var(--ink); color: var(--n-ink); --mut: var(--n-muted); --spot: rgba(255,255,255,.10); }
.t-mint .tile-in { background: var(--mint); border-color: var(--mint); color: var(--on-mint); --mut: rgba(6,35,31,.8); --spot: rgba(255,255,255,.28); --chip-line: transparent; }
.t-amber .tile-in { background: var(--amber); border-color: var(--amber); color: var(--ink); --mut: rgba(19,43,50,.82); --spot: rgba(255,255,255,.3); --chip-line: transparent; }
.t-rust .tile-in { background: var(--rust); border-color: var(--rust); color: #fff; --mut: #fff; --spot: rgba(255,255,255,.14); --chip-line: transparent; }
.t-soft .tile-in { background: var(--petrol-soft); border-color: var(--petrol-soft); --mut: #33494f; --chip-line: transparent; }
@media (hover: hover) and (pointer: fine) {
  .tile[data-tilt] .tile-in::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 62%);
    opacity: 0; transition: opacity .3s ease;
  }
  .tile[data-tilt]:hover .tile-in::after { opacity: 1; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; }
.btn svg { width: 14px; height: 14px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.t-ink .btn { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.t-ink .btn--ghost { background: transparent; border-color: rgba(238,244,239,.45); color: var(--n-ink); }
.t-ink .btn--ghost:hover { background: var(--n-ink); border-color: var(--n-ink); color: var(--ink); }

/* ---------- hero ---------- */
.t-head .tile-in { align-content: space-between; gap: clamp(20px, 3cqi, 36px); min-height: clamp(380px, 46vw, 520px); }
.display { font: 800 clamp(40px, 12.4cqi, 112px)/.96 var(--font); letter-spacing: -.05em; margin-top: 18px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.pitch { font: 500 clamp(16px, 2.3cqi, 20px)/1.45 var(--font); max-width: 34ch; color: var(--ink); }
.signal-wrap { color: var(--petrol); }
.signal { display: block; width: 100%; height: 44px; overflow: visible; }
.signal path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sig-labels { position: relative; height: 14px; margin-top: 6px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.sig-labels span { position: absolute; top: 0; }
.sig-labels span:nth-child(1) { left: 0; }
.sig-labels span:nth-child(2) { left: 52%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; }
.sig-labels span:nth-child(2)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }
.sig-labels span:nth-child(3) { right: 0; }

.t-photo .tile-in { padding: 0; min-height: 360px; background: #dfe8e3; border-color: #dfe8e3; }
.t-photo picture { display: contents; }
.t-photo img { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); max-width: none; object-fit: cover; object-position: 50% 18%; mix-blend-mode: multiply; }
.photo-cap { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.94); }
.photo-cap b { font-weight: 700; letter-spacing: -.01em; }
.photo-cap span { font: 500 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; }

.t-avail .tile-in { align-content: space-between; gap: 22px; }
.avail-top { display: flex; align-items: center; gap: 10px; }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--on-mint); flex: none; }
.pulse b { position: absolute; inset: 0; border-radius: 50%; background: var(--on-mint); opacity: 0; }
.avail-text { font: 700 clamp(18px, 6cqi, 24px)/1.25 var(--font); letter-spacing: -.02em; }

.t-count .tile-in { align-content: center; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.counts > div { border-left: 1px solid var(--hair); padding-left: clamp(12px, 2.4cqi, 24px); }
.counts > div:first-child { border-left: 0; padding-left: 0; }
.count-n { display: block; font: 800 clamp(36px, 8.4cqi, 72px)/1 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.counts .label { display: block; margin-top: 10px; line-height: 1.5; }

/* ---------- filter chips ---------- */
.chips { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--hair); }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s ease, color .25s ease; }
.chip em { font: 500 11px/1 var(--mono); font-style: normal; opacity: .7; }
.chip:hover { background: rgba(19,43,50,.07); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- project tiles ---------- */
.proj:not(.is-dim) .tile-in { min-height: 348px; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "head" "viz" "foot"; gap: 16px; min-width: 0; }
.p-head { grid-area: head; }
.viz { grid-area: viz; display: grid; place-items: center; min-height: 136px; min-width: 0; }
.p-foot { grid-area: foot; min-width: 0; }
.num { font: 800 clamp(44px, 15cqi, 68px)/.95 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: 14px 0 8px; white-space: nowrap; }
.num .arrow { font-weight: 500; opacity: .55; margin-inline: .06em; }
.cap { font: 500 14px/1.35 var(--font); color: var(--mut); }
.cap span { display: block; }
.t-rust .cap, .t-rust .label { font-weight: 600; }
.p-foot h3 { font: 700 18px/1.2 var(--font); letter-spacing: -.02em; }
/* The title is the link to the project page; it covers the whole tile, and its focus ring runs round the tile. */
.p-foot h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--rad); }
.p-foot h3 a:focus-visible { outline: none; }
.p-foot h3 a:focus-visible::after { outline: 2px solid currentColor; outline-offset: -5px; border-radius: calc(var(--rad) - 4px); }
@media (hover: hover) { .p-foot h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; } }
.summary { display: none; margin-top: 8px; font: 500 15px/1.5 var(--font); color: var(--mut); max-width: 40ch; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tools li { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 7px; border-radius: 10px; background: var(--chip); border: 1px solid var(--chip-line); color: var(--ink); font: 600 12px/1 var(--font); }
.tools img { width: 16px; height: 16px; }
.tm { display: inline-flex; flex: none; }
.tools .tn { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (min-width: 600px) {
  .p-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto; grid-template-areas: "head viz" "foot viz"; column-gap: clamp(24px, 4cqi, 48px); }
  .num { font-size: clamp(64px, 11cqi, 124px); }
  .cap { font-size: 16px; }
  .p-foot h3 { font-size: clamp(20px, 2.6cqi, 26px); }
  .summary { display: block; }
  .tools li { padding: 0 10px 0 8px; }
  .tools .tn { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .node { width: 96px; }
  .node-chip { width: 72px; height: 72px; border-radius: 22px; font-size: 26px; }
  .node-chip img { width: 36px; height: 36px; }
  .node em { font-size: 11px; }
  .pipe { max-width: 560px; }
  .pipe-track { left: 48px; right: 48px; top: 35px; }
  .viz-layers { grid-template-columns: auto minmax(0, 300px); gap: 22px; }
  .layer-names { gap: 26px; font-size: 11px; }
  .waffle { grid-template-columns: repeat(10, 18px); gap: 6px; }
  .waffle i { width: 18px; height: 18px; border-radius: 5px; }
  .bar-box { height: 240px; width: 96px; }
  .bars { gap: 22px; }
  .bar { border-radius: 16px 16px 6px 6px; }
  .bar-col b { font-size: 15px; }
  .mult { font-size: clamp(60px, 11cqi, 96px); }
  .ring { width: min(100%, 240px); }
  .ring-c b { font-size: 40px; }
  .ring-c em { font-size: 11px; }
  .sort { max-width: 380px; }
}
.tile.is-dim .tile-in { opacity: .6; }
.tile.is-dim .viz, .tile.is-dim .summary, .tile.is-dim .tools, .tile.is-dim .cap { display: none; }
.tile.is-dim .p-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "head" "foot"; gap: 6px; }
.tile.is-dim .num { font-size: 34px; margin: 10px 0 4px; }
.tile.is-dim .p-foot h3 { font-size: 15px; }
.tile-in { transition: opacity .4s ease; }

/* the quiet link to every project, under the grid */
.more { display: flex; justify-content: flex-end; margin-top: var(--gap); }
.more a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--hair); font-weight: 700; font-size: 14px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.more a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.more svg { width: 13px; height: 13px; }

/* pipeline viz */
.viz-pipe { align-content: center; gap: 22px; width: 100%; }
/* min-width: 0 lets the grid track narrow below four 76 px nodes, so the nodes shrink instead of overflowing the tile (under 400 px). */
.pipe { position: relative; display: flex; justify-content: space-between; width: 100%; max-width: 520px; min-width: 0; }
.pipe-track { position: absolute; left: 38px; right: 38px; top: 27px; height: 2px; background: rgba(238,244,239,.2); }
.pkt { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--mint); opacity: 0; }
.node { position: relative; width: 76px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.node-chip { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center; color: var(--ink); font: 800 20px/1 var(--font); letter-spacing: -.03em; }
.node-chip img { width: 28px; height: 28px; }
.node em { font: 500 10px/1.3 var(--mono); font-style: normal; letter-spacing: .04em; color: var(--n-muted); }
.pipe-badge { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(116,211,196,.16); color: var(--mint); font: 500 12px/1 var(--mono); }
.pipe-badge svg { width: 13px; height: 13px; }

/* warehouse viz */
.viz-layers { grid-template-columns: auto minmax(0, 200px); gap: 14px; }
.viz-layers svg { width: 100%; height: auto; overflow: visible; }
.layer-names { display: grid; gap: 15px; font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); text-align: right; }

/* attrition viz */
.viz-waffle { align-content: center; gap: 10px; }
.waffle { display: grid; grid-template-columns: repeat(10, 11px); gap: 4px; }
.waffle i { width: 11px; height: 11px; border-radius: 3px; background: rgba(255,255,255,.24); }
.waffle i.on { background: #fff; }
.viz-note { font: 500 10px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }

/* sales viz */
.viz-bars { grid-template-columns: auto auto; justify-content: space-evenly; align-items: end; gap: 20px; width: 100%; }
.mult { font: 800 clamp(34px, 11cqi, 60px)/1 var(--font); letter-spacing: -.05em; align-self: center; }
.mult small { display: block; margin-top: 8px; font: 500 10px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.bars { display: flex; align-items: flex-end; gap: 14px; }
.bar-col { display: grid; justify-items: center; gap: 4px; }
.bar-box { height: 104px; width: 56px; display: flex; align-items: flex-end; }
.bar { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: var(--ink); }
.bar-col b { font: 700 12px/1 var(--font); margin-top: 4px; }
.bar-col em { font: 500 10px/1 var(--mono); font-style: normal; letter-spacing: .06em; color: var(--mut); }

/* churn viz */
.ring { position: relative; width: min(100%, 148px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c b { font: 800 24px/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring-c em { margin-top: 5px; font: 500 9px/1.3 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }

/* orders viz */
.sort { position: relative; width: 100%; max-width: 280px; height: 158px; }
.sort .row { position: absolute; left: 0; width: 56%; height: 12px; border-radius: 6px; }
.row.r-c { background: var(--petrol); }
.row.r-r { background: var(--rust); }
.row.r-d { background: var(--amber); }
.sort span { position: absolute; left: 63%; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--mut); white-space: nowrap; }
.sort span b { font: 800 14px/1 var(--font); color: var(--ink); margin-right: 5px; }

/* ---------- toolkit ---------- */
.t-mq .tile-in { align-content: space-between; gap: 22px; padding-inline: 0; }
.t-mq .label { padding-inline: clamp(20px, 2vw, 28px); }
.mq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; overflow: hidden; }
.mq-row { display: flex; flex-wrap: wrap; gap: 10px; padding-inline: clamp(20px, 2vw, 28px); }
.mq.is-live { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.mq.is-live .mq-row { flex-wrap: nowrap; gap: 0; padding-inline: 0; width: max-content; }
.mq.is-live .tool { margin-right: 10px; }
.tool { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); font: 700 16px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; color: var(--ink); }
.tool img { width: 22px; height: 22px; }
.t-learn .tile-in { align-content: space-between; gap: 20px; }
.learn-list { display: grid; gap: 10px; justify-items: start; }
.t-learn .tool { background: transparent; border: 1.5px dashed rgba(19,43,50,.5); }
.learn-note { font: 500 14px/1.45 var(--font); color: var(--mut); }
.t-cat .tile-in { gap: 18px; }
.cat-bar { display: flex; gap: 6px; height: 14px; }
.cat-bar i { display: block; border-radius: 7px; flex: var(--n) 1 0; background: var(--muted); }
.cat-bar i:nth-child(1) { background: var(--ink); }
.cat-bar i:nth-child(2) { background: var(--petrol); }
.cat-bar i:nth-child(3) { background: var(--mint); }
.cat-bar i:nth-child(4) { background: var(--amber); }
.cat-keys { display: flex; gap: 6px; }
.cat-keys li { flex: var(--n) 1 0; min-width: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
.cat-keys b { display: block; font: 800 22px/1.1 var(--font); letter-spacing: -.03em; color: var(--ink); }

/* ---------- about ---------- */
.t-lead .tile-in { align-content: space-between; gap: 28px; }
.lead { font: 700 clamp(22px, 5.6cqi, 34px)/1.18 var(--font); letter-spacing: -.03em; margin-top: 16px; text-wrap: balance; }
.lead-p { margin-top: 16px; font: 500 16px/1.6 var(--font); color: var(--muted); }
/* Under 1040 px the About tile runs the full width; one 46ch column then left half the tile empty, so the story
   splits into two columns (each at least ~36ch) once the tile is 620 px wide. On desktop the tile is under 500 px. */
@container (min-width: 620px) {
  .lead-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5cqi, 56px); }
}
.path { position: relative; display: flex; justify-content: space-between; align-items: center; }
/* The track runs from under the Aeronautics chip to the middle of the Data chip (59 px wide) at any tile width, so the
   travelling dot ends hidden inside Data as it lights up. Ending at the chip's edge left half the dot showing beside it,
   and 12% left a gap before Data on a full-width tile. */
.path-track { position: absolute; left: 58px; right: 29px; top: 50%; height: 2px; margin-top: -1px; background: var(--hair); }
.path-dot { position: absolute; top: -4px; left: 100%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--rust); }
.path span { position: relative; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--hair); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.path span.is-now { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
/* The career list shares a row with the About text: when that tile is the taller one, the entries spread to fill. */
.t-time .tile-in { gap: 18px; grid-template-rows: auto 1fr; }
.timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.timeline ol { display: grid; }
.tl-line { position: absolute; left: 4px; top: 12px; bottom: 12px; width: 2px; background: var(--hair); }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 2px 16px; padding: 14px 0 14px 28px; border-top: 1px solid var(--hair); }
.timeline li:first-of-type { border-top: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--petrol); }
.timeline b { font: 700 16px/1.3 var(--font); letter-spacing: -.01em; }
.timeline span { grid-column: 1; font: 500 14px/1.4 var(--font); color: var(--muted); }
.timeline time { grid-row: 1; grid-column: 2; font: 500 11px/1.6 var(--mono); letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.t-list .tile-in { gap: 14px; align-content: start; }
.plain li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-top: 1px solid rgba(19,43,50,.12); }
.plain li:first-child { border-top: 0; }
.plain b { font: 700 16px/1.3 var(--font); letter-spacing: -.01em; }
.plain span { grid-column: 1; font: 500 14px/1.4 var(--font); color: var(--mut); }
.plain time { grid-row: 1; grid-column: 2; font: 500 11px/1.6 var(--mono); letter-spacing: .04em; color: var(--mut); white-space: nowrap; }
/* Each job and school leads with its organization's mark (src/_includes/org-mark.njk), a logo or a monogram, in a white
   disc. On the career timeline the disc is the node: it replaces the dot, and the line runs through the disc centers. */
.timeline li.has-mark, .plain li.has-mark { grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
.timeline li.has-mark { padding-left: 0; }
.timeline li.has-mark::before { content: none; }
.timeline:has(li.has-mark) .tl-line { left: 17px; top: 30px; bottom: 30px; }
li.has-mark > .org-mark { grid-row: 1 / span 2; grid-column: 1; position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
li.has-mark > b { grid-column: 2; align-self: end; }
li.has-mark > time { grid-column: 3; }
li.has-mark > span:last-child { grid-column: 2 / -1; align-self: start; }
.org-mark .org-logo { width: 62%; height: 62%; object-fit: contain; }
.org-mark .org-logo.fill { width: 100%; height: 100%; object-fit: cover; }
.has-mark .org-mono { grid-column: auto; font: 700 10px/1 var(--mono); letter-spacing: .02em; color: var(--petrol); }

/* ---------- contact ---------- */
.t-contact .tile-in { padding: clamp(28px, 5vw, 72px); gap: clamp(28px, 5vw, 64px); align-content: space-between; min-height: clamp(420px, 52vw, 620px); }
.talk { font: 800 clamp(64px, 17cqi, 210px)/.9 var(--font); letter-spacing: -.06em; margin-top: 18px; }
.talk i { font-style: normal; color: var(--mint); }
.contact-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.contact-row p { font: 500 clamp(17px, 2cqi, 22px)/1.45 var(--font); max-width: 30ch; }
.t-contact .signal-wrap { color: var(--mint); opacity: .7; }
.foot a { text-decoration: underline; text-decoration-color: rgba(79,97,104,.45); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); text-decoration-color: currentColor; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; padding-inline: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- responsive ---------- */
/* ---------- future work ---------- */
/* Learning projects not built yet. Dashed, see-through tiles (the same dashed line as "Learning now"), no headline
   number, and the status track (src/_includes/plan-steps.njk) as pills. */
.sec-note { max-width: 36ch; padding-bottom: 6px; font: 500 15px/1.5 var(--font); color: var(--muted); }
.t-plan .tile-in { align-content: start; gap: 12px; background: rgba(255,255,255,.55); border: 1.5px dashed rgba(19,43,50,.32); box-shadow: none; }
.t-plan h3 { font: 700 clamp(20px, 2.1vw, 26px)/1.15 var(--font); letter-spacing: -.02em; margin-top: 6px; }
.plan-line { font: 500 15px/1.5 var(--font); color: var(--mut); max-width: 46ch; }
.t-plan .tools { margin-top: 2px; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.steps li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; font: 600 12px/1 var(--font); color: var(--muted); }
.steps li.done { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.steps li[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li[aria-current]::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--amber); }
/* A plan names one or two tools, so the names always show (project tiles hide them on narrow tiles). */
.t-plan .tools li { padding: 0 10px 0 8px; }
.t-plan .tools .tn { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }

/* ---------- credentials: each with its badge (src/_includes/credential-mark.njk) ---------- */
.plain li.cred { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
.cred .badge { grid-row: 1 / span 2; grid-column: 1; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--petrol); }
.cred .badge:has(> img:not(.cred-logo)) { background: none; }
.cred .badge img { width: 48px; height: 48px; object-fit: contain; }
.cred .badge img.cred-logo { width: 24px; height: 26px; }
.cred .badge svg { width: 26px; height: 26px; }
.plain li.cred > b { grid-column: 2; align-self: end; }
.plain li.cred > time { grid-column: 3; }
.plain li.cred > span:last-child { grid-column: 2 / -1; align-self: start; }
.cred a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* The Future work link fits the menu only on wide screens. */
@media (max-width: 1180px) { .nav nav a.nav-wide { display: none; } }

@media (max-width: 1040px) {
  .tile { grid-column: span var(--cm, 12); grid-row: auto; }
}
@media (max-width: 720px) {
  .tile { grid-column: 1 / -1; }
  .nav nav a:not(.nav-cta):nth-child(n+2) { display: none; }
  .nav::before { inset: 10px -10px; }
  .counts { gap: 12px; }
  .t-photo .tile-in { min-height: 380px; }
  .sec-head h2 { max-width: none; }
}
@media (max-width: 360px) { .nav nav a:not(.nav-cta) { display: none; } }
@media (max-width: 420px) {
  .timeline li, .plain li { grid-template-columns: minmax(0, 1fr); }
  .timeline time, .plain time { grid-row: auto; grid-column: 1; }
  .plain li.cred { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .cred .badge { width: 40px; height: 40px; grid-row: 1 / span 3; }
  .cred .badge img { width: 40px; height: 40px; }
  .plain li.cred > b, .plain li.cred > time, .plain li.cred > span:last-child { grid-column: 2; grid-row: auto; }
  .timeline li.has-mark, .plain li.has-mark { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
  li.has-mark > .org-mark { width: 32px; height: 32px; grid-row: 1 / span 3; }
  li.has-mark > b, li.has-mark > time, li.has-mark > span:last-child { grid-column: 2; grid-row: auto; }
  .timeline:has(li.has-mark) .tl-line { left: 15px; top: 30px; bottom: 60px; }
  .chip { padding: 0 13px; }
  .cat-keys li { font-size: 10px; }
}

/* contact actions as logo buttons */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
a.ico{width:64px;height:64px;min-width:64px;padding:0!important;display:inline-flex;align-items:center;justify-content:center;gap:0}
a.ico svg{width:26px;height:26px;flex:none;position:relative;z-index:1}
