/* =========================================================================
   Keystone Construction Analytics — Data & AI for General Contractors
   "SIGNAL" direction — light, cobalt, product-led. The page carries a quiet
   running-system chrome: a live status strip in the hero, echoed on every
   dashboard window, and a daily-run pipeline. The design itself is the
   aptitude proof: air, precision, restraint.

   Type: Geist (display + body) · Geist Mono (labels, figures, statuses).
   Accent: one electric cobalt, used with total discipline.
   ========================================================================= */

:root {
  /* Type */
  --sans: 'Geist', system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: 'Geist Mono', ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Surfaces */
  --bg:        #FFFFFF;
  --ground:    #F6F8FA;   /* cool section ground */
  --bar:       #F3F5F8;   /* app-window title bars */
  --track:     #EDF1F5;   /* chart tracks / rails */

  /* Ink */
  --ink:    #0B1623;      /* headings, primary (18.2:1 on white) */
  --body:   #3D4B5C;      /* paragraphs (8.9:1) */
  --muted:  #5D6E82;      /* meta, labels only (5.2:1 white · 4.9:1 ground) */

  /* Lines */
  --hairline:   #E3E8EE;
  --hairline-2: #D5DCE4;

  /* The accent — cobalt, rationed */
  --accent:        #2F5CFF;  /* CTAs, links, key data (5.1:1 as text on white) */
  --accent-deep:   #1E3FD0;  /* hover, small accent text on light (7.8:1) */
  --accent-bright: #8FA8FF;  /* accent text on the navy band (8.1:1) */
  --accent-tint:   #EDF1FF;
  --accent-line:   #C9D6FF;

  /* The one dark band */
  --navy:      #0A1424;
  --navy-2:    #101D33;              /* panels on navy */
  --on-navy:   #E8EEF6;              /* 15.8:1 on navy */
  --on-navy-2: #9FB0C6;              /* 8.3:1 on navy */
  --hair-navy: rgba(232, 238, 246, .14);

  /* Dashboard semantics */
  --pos:        #0E7A47;             /* 5.4:1 on white */
  --pos-bright: #3ECF8E;             /* pos on navy (9.2:1) */
  --pos-tint:   rgba(14, 122, 71, .08);
  --pos-line:   rgba(14, 122, 71, .28);
  --neg:        #C03A2B;             /* 5.4:1 on white */
  --neg-tint:   rgba(192, 58, 43, .08);
  --neg-line:   rgba(192, 58, 43, .28);
  --warn:       #7A5C00;             /* awaiting / to-do (6.3:1 on white) */
  --warn-tint:  rgba(180, 120, 0, .10);
  --warn-line:  rgba(180, 120, 0, .32);

  /* Layout */
  --max:     1160px;
  --gutter:  clamp(20px, 5vw, 48px);
  --sy:      clamp(72px, 8.5vw, 118px);
  --overlap: 64px;                   /* hero window dips into the next band */

  /* Shape & depth — barely there */
  --r-btn:  8px;
  --r-card: 10px;
  --shadow-card: 0 1px 2px rgba(11, 22, 35, .04);
  --shadow-win:  0 1px 2px rgba(11, 22, 35, .06), 0 28px 56px -36px rgba(11, 22, 35, .25);
  --shadow-win-navy: 0 1px 2px rgba(0, 0, 0, .3), 0 44px 88px -48px rgba(0, 0, 0, .6);
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* the hero window bleeds off the right edge by design */
}
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
input, textarea, button, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--navy :focus-visible { outline-color: var(--accent-bright); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--r-btn); font-size: 14px;
}
.skip:focus-visible { top: 12px; }

/* ===== Layout primitives ===== */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sy); }
.section--ground { background: var(--ground); border-top: 1px solid var(--hairline); }
.section--navy { background: var(--navy); }
[id] { scroll-margin-top: 76px; }

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 16px;
}
.section--navy .eyebrow { color: var(--accent-bright); }
.sec-t {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.section--navy .sec-t { color: var(--on-navy); }
.lead {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.65;
  color: var(--body);
  max-width: 62ch;
  margin: 18px 0 0;
}
.section--navy .lead { color: var(--on-navy-2); }
.sec-head { max-width: 780px; }
.fine {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--muted);
  margin: 0;
}
.section--navy .fine { color: var(--on-navy-2); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn--quiet { background: #fff; color: var(--ink); border-color: var(--hairline-2); }
.btn--quiet:hover { border-color: var(--muted); color: var(--ink); }
.btn--sm { font-size: 13.5px; padding: 9px 15px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max); margin-inline: auto;
  padding-inline: var(--gutter);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600; font-size: 15.5px; letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }

/* ── The mark — a five-stone arch, keystone proud of the crown.
   At 16px the mark's ink band sits inside the wordmark's: the voussoir shoulders land
   just above the cap line and the flat base just below the baseline, so the arch reads
   as part of the name rather than a badge beside it. One size serves both the 15.5px nav
   and the 15px footer — the half-pixel is invisible and a second rule is a drift risk.
   All paint comes from the tokens: the voussoirs take currentColor (= --ink in both
   places), the keystone is the one accent event. Geometry lives inline in index.html. ── */
.brand-mark {
  height: 16px; width: auto; flex: none; display: block;   /* 16 × 1.824 = 29.2px wide */
  fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round;
}
.brand-mark .brand-key { fill: var(--accent); stroke: var(--accent); stroke-width: 3; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.btn) { font-size: 14px; color: var(--body); }
.nav-links > a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* ===== Live status strip — the signature ===== */
.live {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .01em;
  color: var(--muted);
}
.live > .live-dot { margin-top: 5px; }
.live b { color: var(--pos); font-weight: 500; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pos); flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--pos);
  animation: ping 2.6s cubic-bezier(.2, .6, .4, 1) infinite;
}
.section--navy .live { color: var(--on-navy-2); }
.section--navy .live b { color: var(--pos-bright); }
.section--navy .live-dot { background: var(--pos-bright); }
.section--navy .live-dot::after { border-color: var(--pos-bright); }
/* …but dots inside the white app windows keep the on-light green */
.section--navy .win .live-dot { background: var(--pos); }
.section--navy .win .live-dot::after { border-color: var(--pos); }

/* ===== Hero ===== */
.hero { padding: clamp(44px, 6vw, 80px) 0 clamp(36px, 4vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero-copy { max-width: 50ch; }
.hero-copy h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.032em;
  color: var(--ink);
  margin: 14px 0 0;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  line-height: 1.62;
  color: var(--body);
  max-width: 52ch;
  margin: 22px 0 0;
}
.hero .live { margin-top: 30px; }

/* The product IS the hero image: the executive window reaches toward the
   viewport edge (never past it — always ≥24px of air) and dips into the band below. */
.hero-visual {
  position: relative; z-index: 2;
  margin-right: calc(-1 * max(0px, (100vw - var(--max)) / 2 - 24px));
  transform: translateY(var(--overlap));
}
.section--idea { padding-top: calc(var(--sy) * .75 + var(--overlap)); }

/* Hero KPI stagger — the one orchestrated moment */
.hero-visual .kpi { animation: kpi-rise .6s cubic-bezier(.2, .7, .3, 1) both; }
.hero-visual .kpi:nth-child(1) { animation-delay: .15s; }
.hero-visual .kpi:nth-child(2) { animation-delay: .24s; }
.hero-visual .kpi:nth-child(3) { animation-delay: .33s; }
.hero-visual .kpi:nth-child(4) { animation-delay: .42s; }

/* =========================================================================
   APP-WINDOW KIT — dashboards framed like the real product
   ========================================================================= */
.win {
  background: #fff;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-win);
}
.section--navy .win { border-color: rgba(232, 238, 246, .1); box-shadow: var(--shadow-win-navy); }

.win-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px;
  background: var(--bar);
  border-bottom: 1px solid var(--hairline);
}
.win-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--ink); letter-spacing: .01em;
}
.win-brand::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.win-tabs { display: flex; gap: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.win-tabs .on { color: var(--ink); font-weight: 500; box-shadow: 0 13px 0 -11px var(--accent); }
.win-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  color: var(--pos);
  border: 1px solid var(--pos-line); background: var(--pos-tint);
  border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.win-status .live-dot { width: 6px; height: 6px; }
.win-body { padding: 16px; }
.win-t { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.win-s { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }

/* KPI band */
.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: 8px; overflow: hidden;
}
.kpi { background: #fff; padding: 12px 14px; min-width: 0; }
.kpi-k {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.kpi-v {
  font-family: var(--mono); font-weight: 500; font-size: 21px;
  color: var(--ink); margin-top: 5px; font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.kpi-v.pos { color: var(--pos); }
.kpi-d { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.kpi-d.up { color: var(--pos); }

/* Panels */
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.panel-grid--one { grid-template-columns: 1fr; }
.panel { border: 1px solid var(--hairline); border-radius: 8px; padding: 14px 16px; background: #fff; min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-t { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; }
.panel-m {
  font-family: var(--mono); font-size: 10px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* Fee bridge (waterfall) — every bar carries its signed value */
.bridge { display: flex; align-items: flex-end; gap: 10px; height: 136px; padding-top: 4px; }
.bcol { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.bval { font-family: var(--mono); font-size: 10.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bbar { width: 100%; border-radius: 3px 3px 0 0; min-height: 3px; }
.bbar--base { background: var(--ink); }
.bbar--up { background: var(--pos); }
.bbar--dn { background: var(--neg); }
.bbar--end { background: var(--accent); }
.blab {
  font-family: var(--mono); font-size: 9px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}

/* Margin-by-structure bars — one measure, one hue */
.hbars { display: flex; flex-direction: column; gap: 11px; }
.hrow { display: grid; grid-template-columns: 76px 1fr 56px; align-items: center; gap: 10px; font-size: 12px; }
.hrow-lab { color: var(--body); }
.htrack { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.hfill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.hfill--dim { background: #AEBBCA; }
.hrow-val { font-family: var(--mono); font-size: 11.5px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

/* Needs-attention table — scrolls in its own container on small screens */
.tscroll { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 8px; }
.tscroll:focus-visible { outline-offset: 0; }
.dtable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12.5px; }
.dtable th {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 9px 12px;
  border-bottom: 1px solid var(--hairline-2); background: #FAFBFC;
}
.dtable td { padding: 10px 12px; border-top: 1px solid var(--hairline); color: var(--ink); }
.dtable tr:first-child td { border-top: none; }
.dtable td.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.dtable .flag { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.dtable .flag--neg { color: var(--neg); }
.dtable .flag--warn { color: var(--warn); }
.dtable td.ask { font-weight: 500; }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  border: 1px solid; border-radius: 999px; padding: 4px 10px;
}
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip--ok { color: var(--pos); border-color: var(--pos-line); background: var(--pos-tint); }
.chip--warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-tint); }
.chip--neg { color: var(--neg); border-color: var(--neg-line); background: var(--neg-tint); }
.chip--dim { color: var(--muted); border-color: var(--hairline-2); background: var(--ground); }

/* SOP scoreboard / reconciliation rows */
.srow {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  font-size: 13px; color: var(--body); padding: 7px 0;
}
.srow + .srow { border-top: 1px solid var(--hairline); }
.tickbox { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid; display: grid; place-items: center; flex: none; }
.tickbox--ok { border-color: var(--pos); }
.tickbox--ok::after {
  content: ""; width: 4px; height: 7px;
  border: 1.5px solid var(--pos); border-top: 0; border-left: 0;
  transform: rotate(40deg) translateY(-1px);
}
.tickbox--warn { border-color: var(--warn); background: var(--warn-tint); }
.tickbox--warn::after { content: ""; width: 6px; height: 2px; background: var(--warn); border-radius: 1px; }
.srow .val { font-family: var(--mono); font-size: 11.5px; color: var(--pos); font-variant-numeric: tabular-nums; }

/* Job drill-down — schedule movers (diverging from a center plan-line) */
.mvrow, .cbrow {
  display: grid; grid-template-columns: 96px 1fr 76px; align-items: center; gap: 10px;
  font-size: 12px; padding: 7px 0;
}
.mvrow + .mvrow, .cbrow + .cbrow { border-top: 1px solid var(--hairline); }
.mv-lab { color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-val { font-family: var(--mono); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-val.pos { color: var(--pos); }
.mv-val.neg { color: var(--neg); }
.mv-val.dim { color: var(--muted); }
.mvtrack { position: relative; height: 12px; }
.mvtrack::before {   /* the plan line */
  content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px;
  width: 1.5px; background: var(--hairline-2);
}
.mvbar { position: absolute; top: 2px; height: 8px; border-radius: 4px; }
.mvbar--early { right: 50%; background: var(--pos); border-radius: 4px 0 0 4px; }
.mvbar--late { left: 50%; background: var(--neg); border-radius: 0 4px 4px 0; }
.mvdot {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: var(--muted); transform: translate(-50%, -50%);
}
.panel-note {
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted);
}
.panel-note .pos { color: var(--pos); }
.panel-note b { color: var(--ink); font-weight: 500; }

/* Job drill-down — cost vs budget (tick = budget) */
.cbtrack { position: relative; height: 8px; background: var(--track); border-radius: 4px; }
.cbtrack::after {   /* the budget tick at 80% of the track */
  content: ""; position: absolute; left: 80%; top: -4px; bottom: -4px;
  width: 1.5px; background: var(--ink); opacity: .55;
}
.cbfill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 4px 0 0 4px; }
.cbover { position: absolute; left: 80%; top: 0; bottom: 0; background: var(--neg); border-radius: 0 4px 4px 0; }

/* ===== Why a platform — the connective diagram ===== */
.flowwrap { margin-top: 44px; }
.flow-svg { display: block; width: 100%; max-width: 980px; height: auto; }
.fx-col { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--muted); }
.fx-col--out { fill: var(--accent-deep); }
.fx-node { fill: #fff; stroke: var(--hairline-2); stroke-width: 1; }
.fx-node--out { fill: var(--accent-tint); stroke: var(--accent-line); }
.fx-name { font: 600 14px var(--sans); letter-spacing: -.01em; fill: var(--ink); }
.fx-cap { font: 400 10px var(--mono); letter-spacing: .02em; fill: var(--muted); }
.fx-hub { fill: var(--navy); }
.fx-hub-t { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--on-navy); }
.fx-hub-s { font: 400 9.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--on-navy-2); }
.fx-hub-dot { fill: var(--pos-bright); }
.fx-hub-run { font: 400 9px var(--mono); letter-spacing: .05em; text-transform: uppercase; fill: var(--on-navy-2); }
.fx-wire-base path { fill: none; stroke: var(--hairline-2); stroke-width: 1.5; marker-end: url(#fxarr); }
.fx-wire path {
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-linecap: round; stroke-dasharray: 3 15;
  animation: flowdash 1.5s linear infinite;
}
.flow-closing {
  margin: 26px 0 0;
  font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.6;
  color: var(--body); max-width: 62ch;
}
.flow-closing a { font-weight: 500; }

/* Narrow-screen fallback stack */
.flow { display: none; max-width: 900px; }
.flow-srcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.src-chip {
  background: #fff; border: 1px solid var(--hairline-2); border-radius: 8px;
  padding: 12px 14px; text-align: center;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.flow-join { width: 1px; height: 26px; background: var(--hairline-2); margin: 12px auto; }
.flow-hub {
  background: var(--navy); border-radius: var(--r-card);
  padding: 18px 22px; text-align: center;
}
.flow-hub .t {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy);
  display: block;
}
.flow-hub .s {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on-navy-2);
  display: block; margin-top: 7px;
}
.flow-outs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.out-chip { background: #fff; border: 1px solid var(--hairline-2); border-radius: 8px; padding: 13px 15px; }
.out-chip .n {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.out-chip .n::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
.out-chip .g { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* ===== Proof — the navy band ===== */
.case-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 30px; }
.cstat b {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px); color: var(--on-navy); letter-spacing: -.01em;
}
.cstat span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--on-navy-2); }
.win-cap {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy-2);
  margin: clamp(36px, 4vw, 52px) 0 12px;
}
.case-note { margin-top: 26px; }

/* ===== Value buckets — each with its own working viz ===== */
.buckets {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: 48px;
}
.bucket {
  background: #fff; border: 1px solid var(--hairline-2);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.6vw, 28px);
  min-width: 0; display: flex; flex-direction: column;
}
.bucket-no {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep);
}
.bucket h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 10px 0 8px; }
.bucket p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0; }

/* shared viz well */
.bviz {
  margin-top: 18px; position: relative; overflow: hidden;
  background: var(--ground); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 14px 16px;
  min-height: 148px;
  display: flex; flex-direction: column; justify-content: center;
}
.bviz .srow { font-size: 12.5px; padding: 6px 0; }
.bviz .srow + .srow { border-top: 1px solid var(--hairline); }

/* 01 — the scanline sweep */
.scanline {
  position: absolute; left: 10px; right: 10px; height: 30px; top: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(47, 92, 255, .07), transparent);
  border-top: 1px solid rgba(47, 92, 255, .18);
  border-bottom: 1px solid rgba(47, 92, 255, .18);
  animation: scansweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

/* 02 — reports assembling */
.bviz-auto { gap: 11px; }
.arow { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; }
.alab { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.atrack { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.afill {
  display: block; height: 100%; background: var(--accent); border-radius: 4px;
  transform-origin: left; animation: fillgrow 1s cubic-bezier(.2, .7, .3, 1) both;
}
.adone { font-family: var(--mono); font-size: 10.5px; color: var(--pos); font-variant-numeric: tabular-nums; }
.anote { font-family: var(--mono); font-size: 11.5px; color: var(--ink); margin: 4px 0 0 !important; letter-spacing: .01em; }
.afine { color: var(--muted); font-size: 10px; }

/* 03 — small trend graphs that make the decision visible */
.bviz-dec { justify-content: flex-start; gap: 0; }
.bid-h {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px !important;
}
.dec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dtile {
  background: #fff; border: 1px solid var(--hairline); border-radius: 8px;
  padding: 11px 13px; min-width: 0;
}
.dt-k {
  font-family: var(--mono); font-size: 10px; line-height: 1.5; color: var(--muted);
  margin: 0 0 6px !important;
}
.dt-spark { display: block; width: 100%; height: auto; }
.dt-base { stroke: var(--hairline); stroke-width: 1; }
.dt-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dt-line--up { stroke: var(--pos); }
.dt-line--dn { stroke: var(--neg); }
.dt-dot--up { fill: var(--pos); }
.dt-dot--dn { fill: var(--neg); }
.dt-v {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 8px 0 0 !important;
  font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums;
}
.dt-v .pos { color: var(--pos); }
.dt-v .neg { color: var(--neg); }

/* 04 — the agent work feed */
.bviz-agent { justify-content: flex-start; gap: 0; }
.agrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 12.5px; color: var(--body);
}
.agrow + .agrow { border-top: 1px solid var(--hairline); }
.ag-d { min-width: 0; }
.askflow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; color: var(--muted); margin: 10px 0 0 !important; }

/* ===== How it's built ===== */
.how-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px); align-items: start;
}
.how-plumb { font-size: 15.5px; line-height: 1.65; color: var(--body); margin: 16px 0 0; max-width: 52ch; }
.cred {
  margin-top: 28px;
  background: #fff; border: 1px solid var(--hairline);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14.5px; line-height: 1.6; color: var(--body);
}
.cred b { color: var(--ink); }
.spec { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 8px 22px; box-shadow: var(--shadow-card); }
.spec-row { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 16px 0; }
.spec-row + .spec-row { border-top: 1px solid var(--hairline); }
.spec-k {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep);
  padding-top: 3px;
}
.spec-d { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.spec-d b { color: var(--ink); font-weight: 600; }

/* ===== The engagement — 3-step timeline ===== */
.tl {
  margin-top: 52px; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.tl::before {
  content: ""; position: absolute; top: 5px; left: 0; right: 0;
  height: 1px; background: var(--hairline-2);
}
.tl-step { position: relative; padding-top: 28px; min-width: 0; }
.tl-step::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
.tl-week {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep);
}
.tl-step h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 10px 0 8px; }
.tl-step p { font-size: 14.5px; line-height: 1.62; color: var(--body); margin: 0; }
.tl-flag {
  display: inline-block; margin: 12px 0 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-tint);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 4px 10px;
}
.tl-time { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--muted); }
.tl-time b { color: var(--ink); font-weight: 500; }
.commit {
  margin-top: 40px;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 14px 20px;
  display: flex; flex-wrap: wrap; gap: 10px 30px;
}
.commit span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; color: var(--body);
}
.commit span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }

/* ===== The shipped record — quiet conviction inside the engagement ===== */
.shiplog {
  margin-top: clamp(40px, 5vw, 56px);
  background: #fff; border: 1px solid var(--hairline-2);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.8vw, 30px);
}
.shiplog-h {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 18px; margin-bottom: 8px;
}
.shiplog-t { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 0; }
.shiplog-m {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.ship {
  display: grid; grid-template-columns: 76px 1fr auto; align-items: baseline; gap: 14px;
  padding: 11px 0; font-size: 14px; line-height: 1.55; color: var(--body);
}
.ship + .ship { border-top: 1px solid var(--hairline); }
.ship-w {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep);
}
.ship .chip { align-self: center; }
/* The one real receipt — lives with the case study, on navy */
.receipt {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--navy-2); border: 1px solid var(--hair-navy);
  border-radius: var(--r-card); padding: 15px 20px;
  font-size: 14.5px; line-height: 1.55; color: var(--on-navy);
}
.receipt .chip { flex: none; }
.receipt .chip--neg {
  color: #F49C86;                        /* 6.1:1 on navy-2 */
  border-color: rgba(244, 156, 134, .4);
  background: rgba(244, 156, 134, .1);
}

/* ===== Custom-built — principles + the fit visual ===== */
.custom-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  margin-top: 44px; align-items: start;
}
.fit { padding-top: 18px; }   /* optically aligns the chips with the first principle */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.principles--stack { grid-template-columns: 1fr; gap: 0; }
.principles--stack .principle { padding: 18px 0; }
.principles--stack .principle + .principle { margin-top: 0; }
.principles--stack .founder-line { margin-top: 22px; }
.principle { border-top: 1px solid var(--hairline-2); padding-top: 18px; min-width: 0; }

.fit { min-width: 0; }
.fit-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fit-chip {
  background: var(--ground); border: 1px solid var(--hairline-2); border-radius: 8px;
  padding: 11px 13px; min-width: 0;
}
.fit-k {
  display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.fit-v { display: block; font-size: 12.5px; color: var(--body); margin-top: 4px; line-height: 1.45; }
.fit-v b, .echo { color: var(--accent-deep); font-weight: 600; }
.fit-arrow { display: flex; justify-content: center; padding: 10px 0; }
.fit-arrow span {
  width: 1px; height: 22px; background: var(--hairline-2); position: relative;
}
.fit-arrow span::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateX(-50%) rotate(45deg);
}
.win--fit .win-body { padding: 8px 16px 10px; }
.win--fit .srow { font-size: 13px; }
.fit-cap {
  margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted);
}
.principle h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 0 0 7px; }
.principle p { font-size: 14.5px; line-height: 1.6; color: var(--body); margin: 0; }
.founder-line {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 11px 20px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.founder-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ===== Pricing — simple flow + transparent tiers ===== */
.pflow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 36px; }
.pstep {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: #fff; border: 1px solid var(--hairline-2); border-radius: 999px;
  padding: 9px 17px; font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.pstep small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.parrow { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.ladder-cap {
  margin: 16px 0 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--muted);
}
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); gap: 20px; margin-top: 30px; }
.tier {
  position: relative;
  background: #fff; border: 1px solid var(--hairline-2);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.tier--featured { border: 1.5px solid var(--accent); }
.tier-badge {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  border-radius: 999px; padding: 4px 10px;
}
.tier h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; }
.tier-scope { font-size: 13px; color: var(--muted); margin: 5px 0 16px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; }
.price-row + .price-row { border-top: 1px solid var(--hairline); }
.price-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price-v { font-family: var(--mono); font-weight: 500; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-v small { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.tier ul {
  list-style: none; margin: 14px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 9px;
  font-size: 13.5px; color: var(--body);
}
.tier li { display: flex; gap: 9px; align-items: flex-start; }
.tier li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 2px; background: var(--muted); margin-top: 7px; }
.incentive {
  margin-top: 24px;
  display: flex; align-items: center; gap: 14px;
  background: var(--accent-tint); border: 1px solid var(--accent-line);
  border-radius: var(--r-card); padding: 15px 20px;
}
.incentive-k {
  flex: none; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; color: #fff; background: var(--accent);
  border-radius: 6px; padding: 4px 9px;
}
.incentive p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }
.incentive b { color: var(--accent-deep); }
.pricing .fine { margin-top: 16px; }

/* General notes — the commitments */
.notes {
  margin-top: clamp(40px, 5vw, 60px);
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--r-card); box-shadow: var(--shadow-card);
  padding: clamp(22px, 3vw, 30px);
}
.notes-h { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.notes-h p {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin: 0;
}
.notes-h .rule { flex: 1; height: 1px; background: var(--hairline); }
.notes-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.notes-grid li { display: grid; grid-template-columns: auto 1fr; gap: 11px; font-size: 14px; line-height: 1.55; color: var(--body); }
.notes-grid b { color: var(--ink); font-weight: 600; }
.notes-grid .n {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--hairline-2); border-radius: 6px;
  padding: 2px 7px; height: max-content;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-copy { max-width: 46ch; }
.contact-actions { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.contact-alt { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-alt .btn { flex: 1 1 140px; }

.form {
  background: #fff;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-win);
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 15px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 15px; }
.field { display: block; min-width: 0; }
.form-row .field { flex: 1 1 150px; }   /* basis is width only inside the row —
                                           never a height in the column-flex form */
.field > span {
  display: block; margin-bottom: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  background: #FBFCFD;
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink); font-size: 15px;
  outline: none;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #64748B; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--neg); }
.form-error { color: var(--neg); font-size: 13.5px; margin: 0; }
.form-success { color: var(--pos); font-size: 14px; margin: 0; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--hairline); padding: 36px 0 44px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.foot-name { font-weight: 600; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.foot-tag { font-size: 13px; color: var(--muted); }
.foot-legal { margin: 16px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 94ch; }

/* ===== Keyframes ===== */
@keyframes kpi-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes flowdash { to { stroke-dashoffset: -18; } }
@keyframes scansweep {
  0%   { top: 6px; opacity: 0; }
  12%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { top: calc(100% - 40px); opacity: 0; }
}
@keyframes fillgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ===== Forced colours (Windows High Contrast) =====
   The browser forces SVG fills to system colours, which would flatten the keystone into
   the arch. Keep the two-tone relationship using the system's own accent. ===== */
@media (forced-colors: active) {
  .brand-mark { fill: CanvasText; stroke: CanvasText; }
  .brand-mark .brand-key { fill: Highlight; stroke: Highlight; }
}

/* ===== Reduced motion — no added animation, ever ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual .kpi { animation: none; }
  .live-dot::after { animation: none; opacity: .35; transform: scale(1.3); }
  .btn, .btn:hover, .btn:active { transform: none; transition: none; }
  .fx-wire path { animation: none; opacity: .45; stroke-dasharray: none; }
  .scanline { display: none; }
  .afill { animation: none; transform: scaleX(1); }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 60ch; }
  .hero-visual { margin-right: 0; transform: none; margin-top: 6px; }
  .hero { padding-bottom: clamp(44px, 6vw, 64px); }
  .section--idea { padding-top: var(--sy); }
  .how-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { max-width: 60ch; }
  .custom-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; gap: 30px; }
  .tl::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .tl-step { padding-top: 0; padding-left: 32px; }
  .tl-step::before { top: 4px; }
  /* the connective diagram hands off to the stacked fallback */
  .flow-svg { display: none; }
  .flow { display: block; }
  .flow-srcs { grid-template-columns: 1fr 1fr; }
  .flow-outs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .panel-grid { grid-template-columns: 1fr; }
  .buckets { grid-template-columns: 1fr; }
  .ship { grid-template-columns: 64px 1fr; }
  .ship .chip { grid-column: 2; justify-self: start; }
  .fit-inputs { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links > a:not(.btn) { display: none; }
}
/* The full lockup (279px) plus the links and the button (490px) needs ~885px of bar.
   Below that the wordmark wrapped to two lines and broke the 60px height — it did so
   with the old placeholder too. The mark carries the identity in the narrow band;
   .brand's aria-label keeps the full name for assistive tech, and the footer spells
   it out in full at every width. */
@media (max-width: 920px) {
  .brand-rest { display: none; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .win-tabs { display: none; }
  .notes-grid { grid-template-columns: 1fr; }
  .hrow { grid-template-columns: 64px 1fr 52px; }
}
@media (max-width: 560px) {
  .flow-outs { grid-template-columns: 1fr; }
  .arow { grid-template-columns: 82px 1fr auto; gap: 8px; }
}

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about-photo img, .about-photo-ph { width: 100%; max-width: 280px; aspect-ratio: 1 / 1; border-radius: var(--r-card); display: block; }
.about-photo img { object-fit: cover; border: 1px solid var(--hairline); box-shadow: var(--shadow-card); }
.about-photo-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-tint), var(--ground)); border: 1px dashed var(--hairline-2); }
.about-photo-ph span { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }

/* ── Custom-fit puzzle viz ── */
.puzzle { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 26px 22px; }
.puzzle svg { width: 100%; height: auto; display: block; }
.puzzle-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.puzzle-cap { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; justify-items: start; }
  .about-photo img, .about-photo-ph { max-width: 200px; }
}
@media (min-width: 861px) {
  .tl--4 { grid-template-columns: repeat(4, 1fr); }
}
