/* Design B, "draw to board": the page starts as a blueprint schematic and becomes a live circuit board as you scroll.
   Each section has its own net colour (--net), like the wire colours on a schematic. */
/* Shared with assets/css/frame-player.css (owned by Avatars): .btn, the global :focus-visible rule, and the
   tokens --text, --dim, --cyan, --amber, --line, --panel, --bg, --scrim (used as rgba(var(--scrim), a)) and
   --mono. Tell Avatars before you rename or remove any of them. */
:root {
  --bg: #0a1a2f;
  --bg-2: #0c1d33;
  --panel: #0d1c30;
  --panel-2: #10233b;
  --line: #2b4661;
  --text: #e7f0fb;
  --dim: #b4c9e0;
  --mute: #8aa9c9;
  --ink: #0a1a2f;
  --cyan: #8fd3ff;
  --amber: #ffb547;
  --gold: #f2c14e;
  --copper: #e8a06a;
  --rose: #ff8fc7;
  --violet: #b8a4ff;
  --red: #ff6b7a;
  --net: var(--cyan);
  --scrim: 10, 26, 47;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --title: "Chakra Petch", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
/* No title ends with one word alone on a line: headings balance across their lines where the browser can. */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; }
b, strong { color: var(--text); font-weight: 600; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* SECTION NETS */
#top { --net: var(--cyan); }
#work { --net: var(--violet); }
#experience { --net: var(--copper); }
#lab { --net: var(--rose); }
#contact { --net: var(--amber); }
#method { --net: var(--cyan); }

/* BOARD: a fixed canvas behind the page, a scrim over it, and the sheet label */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .scrim { position: absolute; inset: 0;
  /* Contrast first (WCAG 2.2 AA, checked against the brightest board pixel, a white trace glow): the content
     column carries a 90% haze, so body text stays above 11:1, secondary text above 7:1 and the smallest muted
     labels above 5:1 wherever a trace runs behind them. The margins keep the board visible and calm.
     --depth (the scroll fraction, set by initBoard) deepens both as the board goes live further down. */
  --a0: calc(.40 + .30 * var(--depth, 0));
  --a1: calc(.90 + .06 * var(--depth, 0));
  background: linear-gradient(90deg,
    rgba(var(--scrim), var(--a0)) 0,
    rgba(var(--scrim), var(--a0)) max(0px, calc(50% - 640px)),
    rgba(var(--scrim), var(--a1)) max(0px, calc(50% - 600px)),
    rgba(var(--scrim), var(--a1)) min(100%, calc(50% + 600px)),
    rgba(var(--scrim), var(--a0)) min(100%, calc(50% + 640px)),
    rgba(var(--scrim), var(--a0)) 100%); }
/* The body tones lift with depth: dim text ends near white where the board is darkest. */
@supports (color: color-mix(in srgb, red calc(1 * 10%), blue)) {
  :root { --dim: color-mix(in srgb, #b4c9e0, #ffffff calc(var(--depth, 0) * 45%)); --mute: color-mix(in srgb, #8aa9c9, #e7f0fb calc(var(--depth, 0) * 40%)); }
}
.sheet { position: absolute; right: 16px; bottom: 16px; font: 600 11px var(--mono); letter-spacing: .12em; color: var(--cyan); background: var(--bg); border: 1px solid var(--line); padding: 6px 10px; }
.nav, main, .foot { position: relative; z-index: 1; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(7, 14, 26, .94);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px;
}
.nav__brand { font: 800 26px/1 var(--display); letter-spacing: .12em; text-decoration: none; color: var(--cyan); }
.nav__brand span { color: var(--amber); }
.nav nav { display: flex; gap: 20px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--dim); }
.nav nav a:hover { color: var(--amber); }
.nav nav .nav__cta { color: var(--ink); background: var(--amber); padding: 7px 14px; font-weight: 600; }
.nav nav .nav__cta:hover { color: var(--ink); background: var(--text); }
/* The current page (aria-current="page", set in the markup) and the current section (set by initSectionNav in site.js). */
.nav nav a[aria-current="page"]:not(.nav__cta), .nav nav a[aria-current="true"]:not(.nav__cta) { color: var(--amber); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* HERO */
.hero { position: relative; padding: clamp(48px, 9vw, 120px) var(--gutter) 40px; max-width: var(--max); margin: 0 auto; }
.hero__grid { display: none; }
.tag { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); border: 1px solid var(--cyan); background: var(--bg); padding: 9px 12px; margin: 0 0 28px; }
.dot { width: 8px; height: 8px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 10px var(--amber); }

.hero__title { font: 800 clamp(56px, 11.5vw, 176px)/.9 var(--display); text-transform: uppercase; margin: 0 0 40px; letter-spacing: .005em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--amber); }
.hero__title em { font-style: normal; -webkit-text-stroke: 2px var(--cyan); color: transparent; text-shadow: none; }


.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none;
  font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 16px 22px; border: 1px dashed var(--cyan); color: var(--cyan); background: var(--bg);
  transition: transform .12s, background .12s, color .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--gold); }
.btn--primary { background: var(--amber); border: 1px solid var(--amber); color: var(--ink); }
.btn--primary:hover { box-shadow: 6px 6px 0 var(--cyan); }
.btn--xl { font-size: 16px; padding: 20px 28px; }

/* STATS: one plain row of numbers, not boxes. The values are static text; the counter only animates them. */
.stats { list-style: none; padding: 16px 0 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px 40px; border-top: 1px dashed var(--line); }
.stats b { font: 800 clamp(34px, 4vw, 52px)/1 var(--display); color: var(--amber); }
.stats span { font: 12px/1.4 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }

/* HERO NAME: one H1, the name on the first line and the title on the second. */
.hero__name { margin: 0 0 20px; }
.hero__name-main { display: block; font: 800 clamp(64px, 11vw, 168px)/.9 var(--display); text-transform: uppercase; letter-spacing: .005em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hero__role { display: block; margin-top: 14px; font: 600 clamp(18px, 2.2vw, 28px)/1.25 var(--title); color: var(--cyan); }
.hero__tagline { margin: 0 0 12px; font: 800 clamp(26px, 3.4vw, 44px)/1.05 var(--display); text-transform: uppercase; }
.hero__tagline span { color: var(--amber); }
.hero__where { margin: 0; font: 600 13px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.hero__copy p { color: var(--dim); margin: 0 0 16px; max-width: 68ch; }
.hero__copy .lede { font-size: 20px; color: var(--text); line-height: 1.45; }


/* SECTIONS */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
/* A full-width band. Padding, not child margins, keeps the content in the column, so a child's own
   margin shorthand cannot pull it out of line. */
.section--alt { max-width: none; background: rgba(7, 14, 26, .45); border-block: 1px solid rgba(43, 70, 97, .5);
  padding-inline: max(var(--gutter), calc(50% - var(--max) / 2 + var(--gutter))); }
.section__head { margin-bottom: 48px; }
.section__head p { color: var(--dim); max-width: 68ch; margin: 0; }
.num { display: inline-block; font: 600 12px var(--mono); letter-spacing: .12em; color: var(--ink); background: var(--net); padding: 4px 9px; margin: 0 0 16px; }
.num::before { content: attr(data-ref) " · "; }
.section h2, .handshake h2 { font: 800 clamp(40px, 7vw, 96px)/.95 var(--display); text-transform: uppercase; margin: 0 0 20px; letter-spacing: .005em; }
.hl { color: var(--net); }
.section h3 { font: 600 20px/1.25 var(--title); margin: 0 0 10px; }

/* Reference designators on the panels, numbered per section. */
.section { counter-reset: ref; }
.v { position: relative; counter-increment: ref; }
.v::after { position: absolute; top: 8px; right: 10px; font: 10px var(--mono); color: var(--mute); }
.v::after { content: "U" counter(ref); }







/* PORTRAIT */
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 26vw, 340px); gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: 40px; }
.hero__top .hero__title { margin: 0; }
.portrait { margin: 0; padding: 6px; border: 1px solid var(--cyan); background: var(--bg); }
.portrait img { display: block; width: 100%; height: auto; }
.portrait figcaption { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); margin-top: 8px; }
.portrait figcaption::before { content: "Fig. 1 · "; }

/* PLAY BUTTONS */
.play { all: unset; cursor: pointer; flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--net); color: var(--ink); border: 2px solid var(--net); transition: transform .12s; }
.play:hover { transform: scale(1.06); }
.play:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.play__icon { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.play.is-playing .play__icon { width: 14px; height: 16px; border: 0; margin: 0; background: linear-gradient(90deg, currentColor 0 38%, transparent 38% 62%, currentColor 62%); }
.play--lg { width: 64px; height: 64px; }
.play--lg .play__icon { border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; }

/* ARGUMENT */
.argue { margin-top: 32px; border: 1px solid var(--net); background: var(--panel); }
/* The argument player takes the speaking persona's colour (initArgument sets --net on .argue). */
.argue, .argue .play, .argue__progress i, .argue__time, .argue__lines li.is-now b { transition: border-color .3s, background-color .3s, color .3s; }
.argue__bar { display: flex; gap: 20px; align-items: center; padding: 20px 24px; }
.argue__bar h3 { font: 800 34px/1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.argue__bar p { margin: 0; color: var(--dim); font-size: 15px; max-width: 70ch; }
.argue__time { margin-left: auto; font: 600 13px var(--mono); color: var(--net); white-space: nowrap; }
.argue__progress { height: 4px; background: var(--line); }
.argue__progress i { display: block; height: 100%; width: 0; background: var(--net); }
.argue__lines { list-style: none; margin: 0; padding: 12px 24px 20px; max-height: 360px; overflow-y: auto; }
.argue__lines li { border-bottom: 1px dashed var(--line); color: var(--mute); transition: color .2s; }
.argue__jump { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 120px 1fr; gap: 14px; width: 100%; padding: 8px 0; color: inherit; cursor: pointer; }
.argue__jump:hover { color: var(--text); }
.argue__jump:focus-visible { outline: 2px solid var(--net); outline-offset: 2px; }
.argue__lines li b { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.argue__lines li.is-now { color: var(--text); }
.argue__lines li.is-now b { color: var(--net); }
.argue__lines li.is-done { color: var(--dim); }

/* METHOD */

/* HEATMAP */
.heat { margin-top: 56px; border: 1px solid var(--net); padding: 24px; background: var(--panel); }
.heat__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 18px; }
.heat__head h3 { font: 800 30px/1 var(--display); text-transform: uppercase; margin: 0; }
.heat__head p { margin: 0; color: var(--dim); font: 13px var(--mono); }
.heat__scroll { overflow-x: auto; padding-bottom: 6px; }
.heat__grid { display: grid; grid-auto-flow: column; grid-template-rows: 14px repeat(7, clamp(11px, 2vw, 24px)); grid-auto-columns: minmax(11px, 1fr); gap: 4px; width: 100%; min-width: 440px; }
.heat__grid .c { border-radius: 2px; background: #152a44; }
.heat__grid .mo { grid-row: 1; font: 10px/14px var(--mono); color: var(--mute); white-space: nowrap; }
.l0 { background: #152a44; } .l1 { background: #1f5680; } .l2 { background: #2f7fb4; } .l3 { background: #58aee4; } .l4 { background: var(--cyan); }
.heat__grid .c.l1 { background: #1f5680; } .heat__grid .c.l2 { background: #2f7fb4; } .heat__grid .c.l3 { background: #58aee4; } .heat__grid .c.l4 { background: var(--cyan); box-shadow: 0 0 6px rgba(143,211,255,.6); }
.heat__legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 12px; font: 11px var(--mono); color: var(--mute); }
.heat__legend i { width: 12px; height: 12px; border-radius: 2px; }
.heat__legend span { margin: 0 4px; }
.heat__updated { margin: 8px 0 0; text-align: right; font: 11px var(--mono); color: var(--mute); }

/* BUILT */
.v { border: 1px solid var(--line); background: var(--panel); padding: 24px; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s, border-color .12s; }
.v p { color: var(--dim); margin: 0 0 16px; }
.b__tag { font: 600 11px var(--mono) !important; text-transform: uppercase; letter-spacing: .1em; color: var(--net) !important; margin: 0 0 10px !important; }
.v h3 { font: 600 26px/1.1 var(--title); margin: 0 0 12px; }
.b__nums { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font: 12px var(--mono); color: var(--dim); }
.b__nums b { color: var(--net); font-size: 15px; }

/* LATEST: the newest lab pages on the home page, as parts on the board. */
.latest { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.latest .v { padding: 0; }
.latest a { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 18px; text-decoration: none; color: inherit; }
.latest h3 { font: 600 21px/1.2 var(--title); margin: 0 0 10px; transition: color .12s; }
.latest .v:hover h3 { color: var(--net); }
.latest p { color: var(--dim); margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.latest__more { margin-top: auto; font: 600 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--net); }
@media (max-width: 1000px) { .latest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .latest { grid-template-columns: 1fr; } }

/* VOICE */
.voice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.v--hero { grid-column: span 2; }
.v--hero h3 { font-size: 40px; }
.v:hover { border-color: var(--net); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--net); }
.personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 0 0 18px; }
.personas__hint { font: 600 12px var(--mono) !important; color: var(--net) !important; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px !important; }
.wave { width: 100%; height: 48px; margin: 0 0 16px; }
.wave rect { fill: var(--net); }
.board { list-style: none; margin: 0; padding: 0; font: 12px var(--mono); color: var(--dim); }
.board li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.board span { color: var(--text); }
.board em { font-style: normal; color: var(--mute); }
.board .win { color: var(--net); font-weight: 600; }
.board .bad { color: var(--red); }
.aside { margin: 32px 0 0; padding: 18px 20px; border-left: 4px solid var(--red); background: var(--panel); color: var(--dim); max-width: 80ch; }

/* AVATAR GALLERY */
.avpipe { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; font: 12px var(--mono); color: var(--dim); }
.avpipe li { border: 1px dashed var(--line); padding: 8px 12px; }
.avpipe b { display: block; color: var(--net); text-transform: uppercase; letter-spacing: .08em; }
.avgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.av { background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--pc); padding: 0 0 12px; transition: box-shadow .15s, transform .15s; }
.av h4 { font: 800 24px/1 var(--display); text-transform: uppercase; margin: 12px 12px 4px; }
.av p { margin: 0 12px 6px !important; font-size: 13px; color: var(--dim); }
.av small { display: block; margin: 0 12px; font: 11px var(--mono); color: var(--pc); filter: brightness(2); }
.av__play { all: unset; cursor: pointer; position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; }
.av__play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.av__play:hover img { transform: scale(1.04); }
.av__play:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.av__icon { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--pc); box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.av__icon::before { content: ""; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.av__play.is-playing .av__icon::before { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 36%, transparent 36% 64%, #fff 64%); }
.av:has(.is-playing) { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--pc), 0 0 28px var(--pc); }
.av__tx { margin: 6px 12px 0; font-size: 12px; color: var(--dim); }
.av__tx summary { cursor: pointer; font: 11px var(--mono); color: var(--mute); }
.av__tx p { margin: 6px 0 0 !important; }
/* The standard AI disclosure label, shown beside every AI character image or video. */
.ai-label { display: block; margin: 6px 12px 0; font: 11px/1.4 var(--mono); color: var(--mute); }
.argue__stage .ai-label { margin: 4px 0 0; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--mute); }
.ai-note { margin: 16px 0 0; max-width: 900px; font: 13px/1.5 var(--mono); color: var(--dim); }
.av__note { font: 12px/1.5 var(--mono) !important; color: var(--mute) !important; margin: 0 0 16px !important; }
@media (max-width: 1100px) { .avgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .avgrid { grid-template-columns: 1fr 1fr; } }

/* Lip-sync video: stacked over the still, shown only while it plays. */
.av__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.av__play.is-video .av__vid { opacity: 1; }
.argue__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px 24px 0; }
.argue__body .argue__lines { padding: 0 0 20px; }
.argue__stage { margin: 0; align-self: start; }
.argue__stage video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); border: 1px solid var(--line); }
.argue__stage figcaption { margin-top: 6px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--net); }


/* AVATAR SERVICES */
.avatars { margin-top: 32px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px 40px; padding: 28px; background: var(--panel); border: 1px solid var(--net); border-top-width: 4px; }
.avatars__head h3 { font: 800 44px/1 var(--display); text-transform: uppercase; margin: 0 0 12px; }
.avatars__head p { margin: 0; color: var(--dim); }
.avatars__steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.avatars__steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.avatars__steps li::before { content: "0" counter(s); grid-row: span 2; font: 800 24px/1 var(--display); color: var(--net); }
.avatars__steps b { font-weight: 600; }
.avatars__steps span { grid-column: 2; font-size: 15px; color: var(--dim); }
.avatars .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 900px) { .avatars { grid-template-columns: 1fr; padding: 20px; } .avatars__head h3 { font-size: 34px; } }

/* CASE STUDIES: plain sections separated by rules, not framed cards. */
.case { padding: 32px 0; border-top: 1px dashed var(--line); }
.case:first-of-type { border-top: 2px solid var(--net); }
.case__tag { margin: 0 0 8px; font: 600 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--net); }
.case h3 { font: 600 clamp(26px, 3vw, 36px)/1.1 var(--title); margin: 0 0 18px; }
.case__body { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 24px; margin: 0; max-width: 900px; }
.case__body dt { font: 600 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.case__body dd { margin: 0; color: var(--dim); }
.case__body dt:last-of-type + dd { color: var(--text); font-weight: 600; }
.list-title { font: 600 12px var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--net); margin: 32px 0 12px !important; padding-top: 24px; border-top: 1px dashed var(--line); }
.also, .practice { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.also li, .practice li { padding: 8px 0 8px 18px; position: relative; color: var(--dim); border-bottom: 1px dashed var(--line); }
.also li::before, .practice li::before { content: "▸"; position: absolute; left: 0; color: var(--net); }
.practice + .line-list { margin-bottom: 40px; }
.line-list { margin: 24px 0 0; color: var(--dim); max-width: 900px; }
.line-list b { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--net); margin-right: 6px; }

/* RECORD */
.record-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.glow { margin: 0; padding: 6px; border: 1px solid var(--net); background: var(--bg); }
.glow img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.1); }
.glow figcaption { font: 12px var(--mono); color: var(--net); margin-top: 8px; }
.record { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--net); }
.record li { display: grid; grid-template-columns: 130px 260px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.record li:last-child { border-bottom: 0; }
.r__when { font: 600 13px var(--mono); color: var(--net); }
.r__role { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
.r__what { color: var(--dim); }

/* HANDSHAKE: the connector at the end of the board */
.handshake { position: relative; text-align: center; padding: clamp(80px, 12vw, 160px) var(--gutter); background: rgba(7, 11, 18, .7); border-top: 1px solid var(--amber); }
.handshake .num { background: var(--amber); color: var(--ink); }
.handshake .num::before { content: "J1 · "; }
.handshake h2 { font-size: clamp(44px, 9vw, 132px); }
.handshake .lede { font-size: 22px; margin: 0 auto 12px; max-width: 60ch; color: var(--dim); }
.handshake .cta-row { justify-content: center; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px var(--gutter); font: 12px var(--mono); color: var(--mute); border-top: 1px solid var(--line); background: var(--bg); }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .record-wrap { grid-template-columns: 1fr; }
  .glow { max-width: 260px; }
  .record li { grid-template-columns: 110px 1fr; }
  .r__what { grid-column: 2; }
}
@media (max-width: 720px) {
  .case__body { grid-template-columns: 1fr; gap: 2px; }
  .case__body dd { margin-bottom: 10px; }
  body { font-size: 16px; }
  /* The section links become a second row that scrolls sideways. "contact" stays in the top row. */
  html { scroll-padding-top: 124px; }
  .nav { flex-wrap: wrap; padding-bottom: 0; }
  .nav nav { flex: none; width: calc(100% + 2 * var(--gutter)); margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter);
    gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-top: 1px solid var(--line); }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a:not(.nav__cta) { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; border-bottom: 2px solid transparent; }
  .nav nav a[aria-current="page"]:not(.nav__cta), .nav nav a[aria-current="true"]:not(.nav__cta) { text-decoration: none; border-bottom-color: var(--amber); background: rgba(255, 181, 71, .08); }
  .nav nav .nav__cta { position: absolute; top: 6px; right: var(--gutter); min-height: 44px; display: flex; align-items: center; }
  .stage .scrim { background: rgba(var(--scrim), calc(.92 + .05 * var(--depth, 0))); }
  .sheet { display: none; }  /* On a phone the label sits behind body text. */
  .voice { grid-template-columns: 1fr; }
  .v--hero { grid-column: auto; }
  .v--hero h3 { font-size: 32px; }
  .record li { grid-template-columns: 1fr; gap: 4px; }
  .r__what { grid-column: auto; }
  .hero__title em { -webkit-text-stroke-width: 1.5px; }
  .heat { padding: 16px; }
  .hero__top { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; align-items: start; }
  .hero__top .tag { grid-column: 1 / -1; }
  .portrait { padding: 3px; }
  .portrait figcaption { display: none; }
  .argue__bar { flex-wrap: wrap; }
  .argue__time { margin-left: 0; }
  .argue__jump { grid-template-columns: 1fr; gap: 2px; }
  .argue__body { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .argue__stage { max-width: 180px; }
}
@media (max-width: 420px) {
    .nav__brand { font-size: 22px; letter-spacing: .08em; }
    /* A long persona name must not set the width of its grid column on a small phone. */
    .av { min-width: 0; }
    .av h4 { font-size: 20px; overflow-wrap: anywhere; }
}
.hero__top .hero__title { font-size: clamp(44px, 8.2vw, 132px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* LEGIBILITY: a soft dark halo behind the type, so a trace passing behind a word never cuts through a letter.
   Colour is never the only signal: links are underlined, states carry words, numbers carry labels. */
.hero__name-main, .hero__title, .hero__role, .hero__tagline, .hero__where, .hero__copy p, .stats b, .stats span,
.section__head h2, .section__head p, .practice li, .line-list, .record, .handshake h2, .handshake .lede {
  text-shadow: 0 0 2px rgba(var(--scrim), .9), 0 0 14px rgba(var(--scrim), .85), 0 1px 2px rgba(0, 0, 0, .6);
}
@media (prefers-contrast: more) {
  .stage .scrim { --a0: .85; --a1: .97; }
  :root { --dim: #d6e3f1; --mute: #c3d4e6; }
}

/* ON THIS PAGE: the long pages' section jumps, one quiet row under the site menu (not sticky, so it never stacks). */
.onpage { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 10px var(--gutter); border-bottom: 1px dashed var(--line);
  background: rgba(7, 14, 26, .82); font: 12px/1.6 var(--mono); }
.onpage::before { content: "On this page"; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.onpage a { color: var(--dim); text-decoration: none; }
.onpage a:hover { color: var(--amber); text-decoration: underline; }
@media (max-width: 720px) {
  .onpage { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .onpage::-webkit-scrollbar { display: none; }
  .onpage a { display: inline-flex; align-items: center; min-height: 36px; }
}

/* The contact dialog (assets/js/contact.js), on every page of the site and the lab. It fits the screen without
   scrolling: name and email, company and topic sit in pairs, and the message box takes whatever height is left.
   On a mobile device the dialog is the whole screen. */
html.cf-open { overflow: hidden; }
.cf { padding: 0; margin: auto; border: 0; background: transparent; color: var(--text); width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; }
.cf::backdrop { background: rgba(var(--scrim), .82); backdrop-filter: blur(3px); }
.cf[open] { display: flex; animation: cf-in .18s ease-out; }
@keyframes cf-in { from { opacity: 0; transform: translateY(12px); } }
.cf__panel { flex: 1; display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--amber); border-top-width: 4px; padding: 20px clamp(16px, 3vw, 28px) 20px; box-shadow: 10px 10px 0 rgba(0, 0, 0, .45); }
.cf__head { position: relative; display: flex; align-items: baseline; gap: 12px; padding-right: 40px; }
.cf__kicker { flex: none; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--amber); padding: 3px 8px; margin: 0; transform: translateY(-4px); }
.cf h2 { font: 800 clamp(30px, 4.6vw, 44px)/1 var(--display); text-transform: uppercase; margin: 0; }
.cf__x { all: unset; position: absolute; top: -8px; right: -10px; width: 44px; height: 44px; display: grid; place-items: center; font: 400 30px/1 var(--body); color: var(--dim); cursor: pointer; }
.cf__x:hover, .cf__x:focus-visible { color: var(--amber); }
.cf__intro { color: var(--dim); margin: 6px 0 14px; font-size: 15px; }
.cf__form { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cf__field { margin: 0 0 12px; display: flex; flex-direction: column; min-width: 0; }
.cf__field label { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin: 0 0 5px; }
.cf input, .cf select, .cf textarea { width: 100%; min-width: 0; font: 400 16px/1.4 var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line); padding: 9px 11px; border-radius: 0; }
.cf select { padding-right: 28px; }
.cf textarea::placeholder { color: var(--mute); opacity: 1; }
.cf__field[data-field="message"] { flex: 1; min-height: 0; }
.cf textarea { flex: 1 1 auto; resize: none; min-height: 96px; height: clamp(96px, calc(100dvh - 560px), 240px); }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.cf__field.is-bad input, .cf__field.is-bad select, .cf__field.is-bad textarea { border-color: var(--red); }
.cf__hint { font: 400 13px/1.35 var(--body); color: var(--mute); margin: 5px 0 0; }
.cf__hint:empty { display: none; }
.cf__fix { all: unset; cursor: pointer; color: var(--amber); text-decoration: underline; }
.cf__err { font: 600 13px/1.35 var(--body); color: var(--red); margin: 5px 0 0; }
.cf__err:empty { display: none; }
.cf__err--form { margin: 0 0 10px; }
.cf__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf__check:not(:empty) { margin: 0 0 10px; }
.cf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cf__actions .btn { padding: 13px 20px; }
.cf__send.is-busy { cursor: progress; opacity: .85; }
.cf__send.is-busy::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: cf-spin .7s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf__done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0 8px; outline: none; }
.cf__done[hidden] { display: none; }
.cf__done h3 { font: 800 40px/1 var(--display); text-transform: uppercase; margin: 16px 0 8px; color: var(--amber); }
.cf__done p { color: var(--dim); margin: 0 auto 20px; max-width: 42ch; }
.cf__tick { width: 72px; height: 72px; border: 3px solid var(--amber); border-radius: 50%; position: relative; animation: cf-pop .35s ease-out; }
.cf__tick::after { content: ""; position: absolute; left: 23px; top: 12px; width: 18px; height: 34px; border: solid var(--amber); border-width: 0 4px 4px 0; transform: rotate(45deg); animation: cf-draw .35s .15s ease-out both; }
@keyframes cf-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes cf-draw { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
/* Mobile devices: the dialog fills the screen, name and email stack, company and topic stay paired, and the
   buttons stay at the bottom. */
@media (max-width: 600px) {
  .cf { width: 100vw; height: 100dvh; max-height: none; margin: 0; }
  .cf__panel { max-height: none; height: 100dvh; border: 0; border-top: 4px solid var(--amber); box-shadow: none; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .cf__grid { grid-template-columns: 1fr 1fr; }
  .cf__field[data-field="name"], .cf__field[data-field="email"] { grid-column: 1 / -1; }
  .cf__intro { margin: 4px 0 10px; font-size: 14px; }
  .cf__field { margin-bottom: 10px; }
  .cf textarea { height: auto; }
  .cf__actions { margin-top: auto; }
  .cf__actions .btn { flex: 1; text-align: center; justify-content: center; }
}
/* Short screens: drop the introduction before anything scrolls. */
@media (max-height: 640px) { .cf__intro { display: none; } .cf h2 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .cf[open], .cf__tick, .cf__tick::after, .cf__send.is-busy::after { animation: none; } }
