/* ==========================================================================
   Alex Stomberg: site styles (Scandinavian direction)
   White canvas, black ink on an alpha ladder, one sans family. Frost is used
   only where text sits on top of media. Motion is a short fade, nothing else.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("assets/fonts/Inter.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --canvas: #fff;
  --ink: #000;
  --ink-2: rgb(0 0 0 / 64%);
  --ink-3: rgb(0 0 0 / 56%);
  --glyph: rgb(0 0 0 / 44%);
  --line: rgb(0 0 0 / 10%);
  --line-2: rgb(0 0 0 / 18%);
  --fill: rgb(0 0 0 / 4%);
  --hover: rgb(0 0 0 / 5%);
  --press: rgb(0 0 0 / 9%);
  --clay: #b84a2b;
  --clay-2: #9a3d22;
  --warm: rgb(184 74 43 / 6%);
  --ok: #1a7f37;
  --ok-fill: rgb(26 127 55 / 9%);
  --err: #b3261e;
  --frost: rgb(255 255 255 / 68%);
  --frost-edge: rgb(255 255 255 / 55%);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(24px, 5vw, 64px);
  --r: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; }
ul { margin: 0; }
::selection { background: rgb(184 74 43 / 22%); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Type ---------- */
.display { font-weight: 600; font-size: clamp(40px, 5.8vw, 80px); line-height: 1.04; letter-spacing: -.032em; }
.h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.025em; }
.h3 { font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.018em; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero-kicker { margin-bottom: 24px; font-size: 15px; color: var(--ink-2); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff;
  font: 500 15px/1 var(--sans);
  transition: background .2s ease;
}
.btn:hover { background: rgb(0 0 0 / 80%); }
.hero-actions .btn:not(.ghost), .cta .btn:not(.ghost) { background: var(--clay); }
.hero-actions .btn:not(.ghost):hover, .cta .btn:not(.ghost):hover { background: var(--clay-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.icon { width: 44px; padding: 0; justify-content: center; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.icon.small { width: 36px; padding: 0; }
.btn.icon svg { flex: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--clay); }
.textlink { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.textlink:hover { text-decoration-color: var(--clay); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 600; font-size: 16px; letter-spacing: -.015em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-toggle { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.band { background: var(--warm); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: 30em; color: var(--ink-2); }

/* ---------- Fade in (the only scroll motion) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .5s ease-out; }
.js [data-reveal].in { opacity: 1; }

/* ==========================================================================
   Home: hero
   ========================================================================== */
.hero { padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; font-size: clamp(40px, 4.7vw, 66px); }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero-proof { margin-top: 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-proof .label { font-size: 13px; line-height: 1.3; color: var(--ink-3); }
.logo-row { display: flex; align-items: center; gap: 28px; }
.logo-row img { height: 18px; width: auto; filter: brightness(0); opacity: .64; }
.logo-row img.ford { height: 26px; filter: grayscale(1) contrast(1.4); opacity: .7; }
.logo-row img.trexoros { height: 24px; }

.hero-media { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; left: 16px; bottom: 16px; max-width: min(340px, calc(100% - 32px));
  padding: 14px 16px; border-radius: 10px;
  background: var(--frost); border: 1px solid var(--frost-edge);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.hero-caption small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.hero-caption strong { display: block; font-size: 15px; line-height: 1.3; }
.hero-caption span { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 500; }
.hero-media:hover .hero-caption span { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Home: case study (agent trace)
   ========================================================================== */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split p { margin-top: 20px; color: var(--ink-2); }
.split .link { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 6vw, 80px); }
.stat strong { display: block; color: var(--clay); font-weight: 600; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat strong sup { font-size: .5em; vertical-align: top; position: relative; top: .1em; margin-left: 2px; }
.stat > span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }

.trace { border-radius: var(--r); background: var(--canvas); box-shadow: 0 0 0 1px var(--line); overflow: hidden; font-size: 14px; }
.trace-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.trace-title { font: 400 12.5px/1 var(--mono); color: var(--ink-2); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--fill); }
.seg button { padding: 7px 14px; border-radius: 6px; font: 500 13px/1 var(--sans); color: var(--ink-2); transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--canvas); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.trace-prompt { padding: 16px 16px 12px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.trace-prompt b { font-weight: 600; color: var(--ink); }
.trace-list { list-style: none; margin: 0; padding: 0 10px; min-height: 318px; }
.trace-list li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px; font: 13px/1.3 var(--mono); color: var(--ink);
  animation: rowIn .3s ease-out both;
}
.trace-list li .ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 600 11px/1 var(--sans); background: var(--fill); color: var(--ink-2); }
.trace-list li.ok .ic { background: var(--ok-fill); color: var(--ok); }
.trace-list li.err .ic { background: rgb(179 38 30 / 10%); color: var(--err); }
.trace-list li .note { font: 12.5px/1.3 var(--sans); color: var(--ink-3); text-align: right; }
.trace-list li.err .note { color: var(--err); }
.trace-list li.done { background: var(--ok-fill); font-family: var(--sans); font-weight: 500; }
.trace-list li.done .ic { background: var(--ok); color: #fff; }
@keyframes rowIn { from { opacity: 0; } to { opacity: 1; } }
.trace-meter { height: 2px; background: var(--fill); margin-top: 8px; }
.trace-meter i { display: block; height: 100%; width: 0; background: var(--clay); transition: width .4s ease-out; }
.trace-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.trace-foot div { padding: 14px 16px; }
.trace-foot small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; }
.trace-foot strong { font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trace-caption { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.trace-caption a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ==========================================================================
   Home: work
   ========================================================================== */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 24px; }
.work-card { display: flex; flex-direction: column; justify-content: flex-start; align-self: start; grid-column: span 2; text-align: left; width: 100%; }
.work-card.wide { grid-column: span 3; }
.work-card .visual { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--fill); transition: box-shadow .2s; }
.work-card:hover .visual { box-shadow: 0 0 0 1px var(--line-2); }
.work-card .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-card .visual svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(1.05); }
.work-card .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 10px; border-radius: 6px;
  background: var(--frost); border: 1px solid var(--frost-edge);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  font: 500 12.5px/1 var(--sans);
}
.work-card .go { display: none; }
.work-card .badge b { color: var(--clay); font-weight: 600; margin-right: 6px; font-size: 10px; vertical-align: 1px; }
.work-card .body { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.work-card .kind { font-size: 13px; color: var(--ink-3); }
.work-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.work-card.wide h3 { font-size: clamp(22px, 2.2vw, 26px); }
.work-card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.work-card:hover h3 { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; min-width: 0; }
.tags span { padding: 4px 8px; border-radius: 6px; background: var(--fill); font-size: 12.5px; color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-float, .art-spin, .art-draw, .art-pulse { animation: none !important; }
.art-draw { stroke-dasharray: none; stroke-dashoffset: 0; }

/* ==========================================================================
   Home: toolkit, offer, principles
   ========================================================================== */
.toolkit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.toolkit h3 { font-size: 15px; margin-bottom: 16px; color: var(--clay); }
.toolkit ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.toolkit li { font-size: 15.5px; line-height: 1.35; }
.toolkit li small { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }

.offer, .timeline { border-top: 1px solid var(--line); }
.offer-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.offer-row .n { font-size: 15px; font-weight: 600; color: var(--clay); }
.offer-row h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.018em; margin-bottom: 12px; }
.offer-row p { color: var(--ink-2); font-size: 16px; }
.offer-row ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }


/* ==========================================================================
   Experience (home and about)
   ========================================================================== */
.tl { display: grid; grid-template-columns: 180px 160px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl time { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.tl .who { min-height: 28px; display: flex; align-items: center; }
.tl .who img { height: 22px; width: auto; filter: brightness(0); opacity: .8; }
.tl .who img.ford { height: 30px; filter: grayscale(1) contrast(1.4); opacity: .8; }
.tl .who img.trexoros { height: 28px; }
.tl .who .asu { font-size: 15px; font-weight: 600; line-height: 1.2; }
.tl h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; margin-bottom: 8px; }
.tl p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.earlier { margin-top: 24px; font-size: 15.5px; color: var(--ink-2); max-width: 44em; }
.kind-words { margin: clamp(48px, 6vw, 80px) 0 0; }
.kind-words blockquote { margin: 0; max-width: 24em; font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.02em; }
.kind-words figcaption { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

/* ==========================================================================
   Call to action and footer
   ========================================================================== */
.cta { padding-block: clamp(72px, 9vw, 128px); }
.cta p { margin: 20px 0 32px; color: var(--ink-2); max-width: 32em; font-size: 18px; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; }
.email-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); max-width: 640px; }
.email-card > a { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.015em; }

.site-footer { background: var(--warm); padding: 64px 0 32px; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.foot-top h4 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 14px; }
.foot-top a { display: block; padding: 4px 0; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.foot-top a:hover { color: var(--ink); }
.foot-top .say { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.foot-top .sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 22em; }
.clock { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.foot-bottom button { color: var(--ink-3); font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot-bottom button:hover { color: var(--ink); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-head .display { max-width: 14em; }
.page-head .lede { margin-top: 24px; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 9px 16px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, color .2s; }
.chips button:hover { background: var(--hover); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--clay); color: #fff; box-shadow: none; }
.chips button sup { font-size: 11px; margin-left: 4px; opacity: .7; }
.search { position: relative; }
.search input { width: 260px; height: 42px; border-radius: var(--r-sm); border: 0; padding: 0 14px 0 40px; font: 15px var(--sans); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--glyph); }
.archive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; grid-auto-flow: dense; }
.archive .work-card { grid-column: auto; }
.empty { padding: 60px 0; color: var(--ink-2); grid-column: 1 / -1; }
.count { font-size: 14px; color: var(--ink-3); }

dialog.sheet { width: min(960px, 100% - 32px); max-height: min(90vh, 900px); border: 0; padding: 0; border-radius: var(--r); background: var(--canvas); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 64px -24px rgb(0 0 0 / 35%); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheetIn .25s ease-out; }
dialog.sheet::backdrop { background: rgb(255 255 255 / 55%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@keyframes sheetIn { from { opacity: 0; } }
.sheet-scroll { overflow-y: auto; overflow-x: hidden; min-width: 0; width: 100%; }
.sheet-art { height: 240px; position: relative; background: var(--fill); }
.sheet-art svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) contrast(1.05); }
.sheet-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--frost); border: 1px solid var(--frost-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; transition: background .2s; }
.sheet-close:hover { background: rgb(255 255 255 / 90%); }
.sheet-body { padding: 40px clamp(24px, 5vw, 56px) 48px; }
.sheet-body .kind { font-size: 14px; color: var(--ink-3); }
.sheet-body h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.028em; margin: 10px 0 16px; }
.sheet-body .summary { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; margin-top: 40px; }
.sheet-grid > * { min-width: 0; }
.sheet-grid h3 { font-size: 14px; color: var(--ink-3); font-weight: 500; margin: 0 0 8px; }
.sheet-grid section + section { margin-top: 28px; }
.sheet-grid p { color: var(--ink-2); line-height: 1.7; }
.sheet-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.sheet-side .box { padding: 18px; border-radius: var(--r-sm); background: var(--fill); font-size: 14px; }
.sheet-side .box h4 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 8px; }
.sheet-side .box p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.sheet-side .result p { color: var(--ink); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }

/* Case studies */
.cs-hero { padding: clamp(40px, 6vw, 88px) 0 0; }
.cs-hero .display { font-size: clamp(38px, 5vw, 68px); max-width: 14em; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 32px; font-size: 15px; }
.cs-meta b { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 4px; }
.tldr { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.tldr > div { padding: 28px 24px 0 0; }
.tldr strong { display: block; color: var(--clay); font-weight: 600; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tldr strong small { font-size: .5em; color: var(--clay); }
.tldr > div > span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }

.article { display: grid; grid-template-columns: minmax(0, 720px); padding-top: clamp(64px, 8vw, 104px); }
.prose { min-width: 0; }
.prose > section { padding-bottom: clamp(56px, 7vw, 88px); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 20px; }
.prose p { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose p + p { margin-top: 1.1em; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose .pull { margin: 36px 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.prose ul.clean { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.prose ul.clean li { display: grid; grid-template-columns: 24px 1fr; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
.prose ul.clean li::before { content: "–"; color: var(--clay); font-weight: 600; }
.callout { margin: 32px 0 0; padding: 24px 26px; border-radius: var(--r); background: var(--warm); }
.callout h4 { font-size: 14px; margin-bottom: 8px; color: var(--clay); }
.callout p { font-size: 16.5px !important; line-height: 1.65 !important; }
.fig { border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 32px); overflow: hidden; background: var(--canvas); }
.fig-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fig-head h4 { font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* About */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.about-intro .prose p { font-size: 19px; }
.facts { border-top: 2px solid var(--clay); margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; font-size: 15.5px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }

.sessions { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.session-pick { display: grid; gap: 8px; align-content: start; }
.session-pick button { text-align: left; padding: 16px 18px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); background: var(--canvas); transition: box-shadow .2s; }
.session-pick button:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.session-pick button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--clay); }
.session-pick b { display: block; font-weight: 600; font-size: 16px; }
.session-pick span { font-size: 13.5px; color: var(--ink-3); }
.session-view { padding: 28px; border-radius: var(--r); background: var(--canvas); box-shadow: 0 0 0 1px var(--line); }
.session-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 28px; }
.session-stats strong { display: block; font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.session-stats span { font-size: 14px; color: var(--ink-2); }
.session-chart { display: flex; align-items: flex-end; gap: 4px; height: 190px; }
.session-chart i { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; background: var(--clay); height: 0; transition: height .5s ease-out; }
.session-chart i.zero { background: var(--line); }
.session-axis { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--ink-3); }

.heat-wrap { --cell: 21px; --gap: 5px; overflow-x: auto; padding-bottom: 6px; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--cell)); grid-auto-columns: var(--cell); gap: var(--gap); width: max-content; }
.heat .d { width: var(--cell); height: var(--cell); border-radius: 4px; background: rgb(0 0 0 / 6%); }
.heat button.d:hover, .heat button.d.sel { box-shadow: 0 0 0 2px var(--ink); }
.heat .d.l1 { background: rgb(184 74 43 / 22%); } .heat .d.l2 { background: rgb(184 74 43 / 45%); } .heat .d.l3 { background: rgb(184 74 43 / 72%); } .heat .d.l4 { background: rgb(184 74 43 / 100%); }
.heat .d.out { background: transparent; }
.heat-months { display: flex; font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
.heat-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.heat-scale { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; }
.heat-scale i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: rgb(0 0 0 / 6%); }
.heat-scale i:nth-child(2) { background: rgb(184 74 43 / 22%); } .heat-scale i:nth-child(3) { background: rgb(184 74 43 / 45%); } .heat-scale i:nth-child(4) { background: rgb(184 74 43 / 72%); } .heat-scale i:nth-child(5) { background: rgb(184 74 43 / 100%); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px); opacity: 0; padding: 12px 18px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 14px; z-index: 90; transition: opacity .2s ease-out, transform .2s ease-out; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.credits p { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.credits p + p { margin-top: 20px; }
.credits strong { color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card, .work-card.wide { grid-column: span 1; }
  .archive { grid-template-columns: repeat(2, 1fr); }
  .toolkit { grid-template-columns: repeat(2, 1fr); }
  .offer-row { grid-template-columns: 1fr 1fr; }
  .offer-row .n { grid-column: 1 / -1; }
  .about-intro { grid-template-columns: 1fr; }
  .sessions { grid-template-columns: 1fr; }
  .session-pick { grid-template-columns: repeat(3, 1fr); }
  .tl { grid-template-columns: 150px minmax(0, 1fr); }
  .tl .who { grid-column: 2; }
  .tl > div:last-child { grid-column: 2; }
  .heat-wrap { --cell: 13px; --gap: 4px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header { position: relative; }
  .menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line-2); }
  .menu-toggle span { width: 16px; height: 1.5px; background: var(--ink); position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); }
  .menu-toggle span::before { transform: translateY(-5px); } .menu-toggle span::after { transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); } .menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
  .nav { position: absolute; top: 68px; left: 0; right: 0; z-index: 30; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: var(--r); background: var(--frost); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); opacity: 0; pointer-events: none; transition: opacity .2s ease-out; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 17px; }
  .nav .btn { margin-top: 6px; justify-content: center; height: 44px; }
  .section-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .work-grid, .archive { grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: 1fr; gap: 16px; }
  .toolkit { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .sheet-grid { grid-template-columns: 1fr; gap: 28px; }
  .tl { grid-template-columns: 1fr; gap: 10px; }
  .tl .who, .tl > div:last-child { grid-column: auto; }
  .session-pick { grid-template-columns: 1fr; }
  .search, .search input { width: 100%; }
  .trace-foot strong { font-size: 20px; }
  .hero-caption { left: 10px; bottom: 10px; padding: 12px 14px; }
}
@media (max-width: 480px) {
  .toolkit { grid-template-columns: 1fr; }
  .trace-list li .note { display: none; }
  .logo-row { gap: 20px; }
  .logo-row img { height: 14px; }
  .logo-row img.ford { height: 22px; }
  .logo-row img.trexoros { height: 18px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; }
}
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion [data-reveal] { opacity: 1 !important; }

/* Booking panel: the Cal.com iframe is added by site.js only after a click. */
.book-panel { margin: 0 0 24px; max-width: 900px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.book-panel[hidden] { display: none; }
.book-panel .book-note { margin: 0; padding: 12px 20px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); max-width: none; }
.book-panel iframe { display: block; width: 100%; height: 680px; border: 0; background: #fff; }
@media (max-width: 720px) { .book-panel iframe { height: 760px; } }
