/* josaillier.com v5 · direction A "Workspace, light"
   One metaphor: every block is a window (title bar + body + hard shadow).
   One accent: cobalt. Type: Inter Tight (display), Inter (body), JetBrains Mono (labels). Upright only. */

:root {
  --paper: #F2F0EC;
  --paper-2: #F7F6F2;
  --surface: #FFFFFF;
  --tint: #EEF1FF;
  --ink: #0A1236;
  --ink-2: #363C5C;
  --ink-3: #5F6480;
  --cobalt: #1F4FFF;
  --navy: #0A1A70;
  --on-cobalt: #E4E9FF;
  --line: rgba(10, 18, 54, 0.14);
  --dot: rgba(10, 18, 54, 0.13);
  --ok: #1E9E63;

  --peach: #FFCDB8;
  --butter: #F5E096;
  --mint: #BFE9D2;

  --f-display: "Inter Tight", Inter, "Helvetica Neue", Arial, sans-serif;
  --f-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --bw: 1.5px;
  --r: 6px;
  --r-sm: 4px;
  --header-h: 64px;
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
em, i, cite, address, var, dfn, q { font-style: normal; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  background: rgba(242, 240, 236, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: var(--bw) solid var(--ink);
}
.top__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand__cap { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: var(--r-sm); font-size: 14px; font-weight: 800; letter-spacing: -0.02em; box-shadow: 2px 2px 0 var(--cobalt); }
.nav { display: flex; gap: 28px; margin-left: auto; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { color: var(--ink); padding: 10px 0; }
.nav a:hover { color: var(--cobalt); }

/* ---------- motion switch ---------- */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border: var(--bw) solid var(--ink); border-radius: var(--r-sm);
  font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--cobalt); }
.btn--primary:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cobalt); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn--white { background: #fff; color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--white:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--lg.btn--primary { box-shadow: 4px 4px 0 var(--cobalt); }
.btn--lg.btn--primary:hover { box-shadow: 5px 5px 0 var(--cobalt); }

/* flow: on hover a dot grows from the centre and floods the button, the arrow leaves on the right and
   comes back in on the left while the label slides across. Rebuilt in plain CSS from a React "flow
   button"; the site's square corners and hard shadows stay (no pill shape). Markup is written by
   tools/build_v5.py from <a class="btn btn--flow">Label <span aria-hidden="true">→</span></a> */
.btn--flow { --flow: var(--ink); position: relative; overflow: hidden; isolation: isolate; padding: 0 30px; transition: color .6s cubic-bezier(.23, 1, .32, 1), transform .12s ease, box-shadow .12s ease; }
.btn--primary.btn--flow { --flow: var(--cobalt); }
.btn--flow .flow__label { position: relative; z-index: 1; white-space: nowrap; transform: translateX(-12px); transition: transform .8s cubic-bezier(.23, 1, .32, 1); }
.btn--flow .flow__dot { position: absolute; top: 50%; left: 50%; z-index: 0; width: 16px; aspect-ratio: 1; border-radius: 50%; background: var(--flow); opacity: 0; transform: translate(-50%, -50%); transition: width .8s cubic-bezier(.19, 1, .22, 1), opacity .8s cubic-bezier(.19, 1, .22, 1); }
.btn--flow svg { position: absolute; top: 50%; z-index: 2; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: left .8s cubic-bezier(.34, 1.56, .64, 1), right .8s cubic-bezier(.34, 1.56, .64, 1); }
.btn--flow .flow__in { left: -28px; }
.btn--flow .flow__out { right: 14px; }
.btn--flow:hover, .btn--flow:focus-visible { color: #fff; }
.btn--ghost.btn--flow:hover, .btn--ghost.btn--flow:focus-visible { background: var(--surface); }
.btn--flow:hover .flow__label, .btn--flow:focus-visible .flow__label { transform: translateX(12px); }
.btn--flow:hover .flow__dot, .btn--flow:focus-visible .flow__dot { width: calc(100% + 60px); opacity: 1; }
.btn--flow:hover .flow__in, .btn--flow:focus-visible .flow__in { left: 14px; }
.btn--flow:hover .flow__out, .btn--flow:focus-visible .flow__out { right: -28px; }
.btn--flow:active { transform: scale(.97); }
/* the blue flood on a dark button: its shadow turns ink so the two blues do not merge */
.btn--primary.btn--flow:hover, .btn--lg.btn--primary.btn--flow:hover { box-shadow: 5px 5px 0 var(--ink); }

/* ---------- window: the one container ---------- */
.win { background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.win--cobalt { box-shadow: 6px 6px 0 var(--cobalt); }
.win--flat { box-shadow: none; }
.win__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px; border-bottom: var(--bw) solid var(--ink); background: var(--paper-2);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
}
.win__bar--cobalt { background: var(--cobalt); color: #fff; }
.win__bar--ink { background: var(--ink); color: #fff; }
.win__meta { color: var(--ink-3); font-weight: 400; }
.win__bar--cobalt .win__meta { color: var(--on-cobalt); }
.win__btns { display: flex; gap: 5px; }
.win__btns span { width: 10px; height: 10px; border: var(--bw) solid var(--ink); border-radius: 2px; }
.win__btns span:last-child { background: var(--ink); }

/* ---------- sections ---------- */
.sec { padding-bottom: 120px; scroll-margin-top: calc(var(--header-h) + 24px); }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.035em; }
.sec__h { margin-bottom: 40px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: clamp(24px, 5vh, 56px);
}
.hero__in { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 30vw, 380px); align-items: center; gap: 48px; }
.hero__copy { min-width: 0; }
.hero__eyebrow { margin: 0 0 20px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--cobalt); }
.hero__h1 { margin: 0 0 0 -0.04em; font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 9.6vw, 136px); line-height: 0.92; letter-spacing: -0.05em; }
.hero__h1 > span { display: block; }
.hero__h1 .dot { color: var(--cobalt); }
.hero__p { margin: 28px 0 0; max-width: 580px; font-size: 19px; color: var(--ink-2); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.portrait { min-width: 0; }
.portrait .win { box-shadow: 8px 8px 0 var(--cobalt); }
.portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  max-height: calc(100vh - var(--header-h) - 190px);
  max-height: calc(100svh - var(--header-h) - 190px);
}
.portrait figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: var(--bw) solid var(--ink); font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.portrait figure { margin: 0; }

.hero + .sec { padding-top: 24px; }

/* ---------- services: three cards, each opens a detail panel in the page ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; align-items: stretch; }
.svc { position: relative; grid-row: 1; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.svc:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--cobalt); } /* same lift and blue as the work cards */
.svc.is-open { box-shadow: 6px 6px 0 var(--cobalt); transform: none; }
.svc.is-open .win__bar { background: var(--cobalt); color: #fff; }
.svc.is-open .win__meta { color: var(--on-cobalt); }
.win__bar--tab { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.win__bar--tab .win__meta { letter-spacing: 0.04em; text-transform: none; }
.svc__body { padding: 26px 24px 0; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.svc__h { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -0.025em; }
.svc__p { margin: 0; color: var(--ink-2); font-size: 16px; }
.svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; }
.tag { font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.svc__more {
  margin: auto -24px 0; padding: 16px 24px; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper-2); border: 0; border-top: var(--bw) solid var(--ink);
  font: 600 15px/1 var(--f-body); color: var(--ink); text-align: left; cursor: pointer;
}
.svc__more::after { content: ""; position: absolute; inset: 0; } /* the whole card is the button's hit area */
.svc__more:focus-visible { outline: none; }
.svc:has(.svc__more:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.svc:hover .svc__more { color: var(--cobalt); }
.svc.is-open .svc__more { background: var(--tint); color: var(--cobalt); }
.svc__icon { position: relative; width: 14px; height: 14px; flex: none; }
.svc__icon::before, .svc__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; transition: transform .2s ease; }
.svc__icon::after { transform: rotate(90deg); }
.svc.is-open .svc__icon::after { transform: rotate(0deg); }

/* opening: slow and soft, the panel grows down out of the card you clicked (js/services.js widens it from
   that card's column and brings the contents in one by one); closing: quicker */
.svc-panel { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s cubic-bezier(.4, 0, .2, 1); }
.svc-panel.is-open { transition: grid-template-rows .75s cubic-bezier(.22, 1, .36, 1); }
.svc-panel.is-open { grid-template-rows: 1fr; }
.svc-panel__clip { min-height: 0; overflow: hidden; margin-right: -8px; padding-right: 8px; }
.svc-panel__win { margin: 28px 0 8px; box-shadow: 6px 6px 0 var(--cobalt); transform: translateY(-18px); transition: transform .42s cubic-bezier(.4, 0, .2, 1); }
.svc-panel.is-open .svc-panel__win { transition: transform .75s cubic-bezier(.22, 1, .36, 1); }
.svc-panel.is-open .svc-panel__win { transform: none; }
.svc-panel__close { min-height: 30px; padding: 0 10px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--r-sm); font: 500 12px/1 var(--f-mono); cursor: pointer; }
.svc-panel__close:hover { background: rgba(255, 255, 255, .14); }
.svc-panel__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 32px 32px 34px; }
.svc-panel__hook { margin: 0 0 24px; font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; }
.svc-panel__k { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); }
.svc-panel__proof { margin: 0 0 26px; padding: 0; list-style: none; }
.svc-panel__proof li { position: relative; padding: 0 0 10px 18px; font-size: 15px; color: var(--ink-2); }
.svc-panel__proof li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--cobalt); border-radius: 2px; }
/* each service in a card's list opens its panel at that service (js/services.js) */
.svc__list li { padding: 0; }
.svc__item {
  position: relative; z-index: 1; /* above .svc__more's whole-card hit area */
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 11px 0;
  background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.svc__item:hover, .svc__item:focus-visible { color: var(--cobalt); }
.svc__item:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

/* the services inside a panel: one dropdown each (What / How / Why / Related, or What you get / How it works) */
.svc-acc { border-top: 1px solid var(--line); align-self: start; }
.acc { border-bottom: 1px solid var(--line); }
.acc__h { margin: 0; }
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%; padding: 18px 0;
  background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; font: inherit;
}
.acc__btn .svc__icon { margin-top: 7px; }
.acc__btn:hover .acc__name, .acc__btn:focus-visible .acc__name { color: var(--cobalt); }
.acc__btn:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.acc__t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.acc__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-family: var(--f-display); font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; transition: color .15s ease; }
.acc__sum { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.acc.is-open .acc__name { color: var(--cobalt); }
.acc.is-open .svc__icon::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.4, 0, .2, 1); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; transition-duration: .5s; transition-timing-function: cubic-bezier(.22, 1, .36, 1); }
.acc__clip { min-height: 0; overflow: hidden; }
.acc__in { padding: 2px 0 22px; display: grid; gap: 16px; font-size: 15px; color: var(--ink-2); }
.acc__in p, .acc__in ul, .acc__in ol { margin: 0; }
.acc__lead { font-size: 16px; color: var(--ink); }
.acc__sec { position: relative; display: grid; gap: 6px; padding-left: 112px; } /* label in a left column, text beside it */
.acc__sec h5 { position: absolute; left: 0; top: 3px; width: 100px; margin: 0; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); }
.acc__sec ul, .acc__sec ol { padding-left: 18px; display: grid; gap: 4px; }
.acc__sec b { color: var(--ink); font-weight: 600; }
.acc__for { font-size: 14px; color: var(--ink-3); }
.acc__rel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.acc__rel span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.acc__rel a { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.acc__rel a::after { content: " →"; }
.acc__rel a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { display: block; color: var(--ink); transition: transform .14s ease, box-shadow .14s ease; }
.card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--cobalt); }
.card__media { border-bottom: var(--bw) solid var(--ink); background: #E6E9F1; }
.card__media .mk { display: block; }
.card__body { padding: 20px 22px 24px; }
.card__role { margin: 0 0 8px; font-family: var(--f-mono); font-size: 12px; color: var(--cobalt); }
.card__h { margin: 0 0 6px; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.card__p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card__more { display: inline-block; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--ink); }
.card:hover .card__more { color: var(--cobalt); }


/* ---------- profile ---------- */
.profile { display: flex; flex-wrap: wrap; gap: 48px; }
.profile__copy { flex: 1 1 420px; min-width: 0; }
.profile__copy p { margin: 0 0 16px; color: var(--ink-2); font-size: 18px; }
.profile__langs { font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); margin-top: 24px !important; }
.path { flex: 1 1 460px; min-width: 0; align-self: flex-start; }
.path ol { list-style: none; margin: 0; padding: 6px 0; }
.path li { display: grid; grid-template-columns: 124px 1fr; gap: 16px; padding: 12px 20px; border-bottom: 1px solid rgba(10, 18, 54, 0.1); }
.path li:last-child { border-bottom: 0; }
.path time, .path .when { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.path li:first-child .when { color: var(--cobalt); }
.path b { font-weight: 600; }

/* ---------- contact ---------- */
.contact { scroll-margin-top: calc(var(--header-h) + 24px); background: var(--cobalt); color: #fff; box-shadow: 8px 8px 0 var(--ink); }
.contact__in { padding: 56px 40px; }
.contact__copy { flex: 1 1 520px; min-width: 0; }
.contact .h2 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 14px; }
.contact__copy p { margin: 0; max-width: 560px; font-size: 18px; color: var(--on-cobalt); }
/* three ways to reach Jo: equal buttons with an icon, filling the width of the window */
.reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.reach__btn { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 60px; padding: 0 18px; background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: 4px 4px 0 var(--ink); font: 600 16px/1.2 var(--f-body); transition: transform .12s ease, box-shadow .12s ease; }
.reach__btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.reach__btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.reach__ico { width: 22px; height: 22px; flex: none; }
.reach__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reach__end { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: color .12s ease; }
.reach__btn:hover .reach__end { color: var(--cobalt); }
.i-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* "Email address copied": a small notice at the bottom of the screen (js/copy.js) */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: 4px 4px 0 var(--cobalt); font: 500 13px/1.2 var(--f-mono); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .2s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.toast::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 2px; background: var(--ok); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; row-gap: 28px; }
  .svc, .svc-panel { grid-row: auto; }
  .svc-panel__win { margin-top: 0; }
  .svc-panel:not(.is-open) { margin-top: -28px; }
  .svc-panel__in { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 22px 26px; }
  .acc__sec { padding-left: 0; }
  .acc__sec h5 { position: static; width: auto; }
}
@media (max-width: 860px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 58px; --gutter: 18px; }
  .nav { display: none; }
  .top__in { gap: 10px; }
  .top__in { justify-content: space-between; }
  body { font-size: 16px; }
  .hero { padding-block: 24px 32px; }
  .hero__in { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
  .portrait { order: -1; }
  .portrait .win { box-shadow: 4px 4px 0 var(--cobalt); display: grid; grid-template-columns: 88px 1fr; }
  .portrait img { width: 88px; height: 88px; aspect-ratio: auto; max-height: none; border-right: var(--bw) solid var(--ink); }
  .portrait figcaption { border-top: 0; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; }
  .hero__eyebrow { margin-bottom: 14px; font-size: 12px; }
  .hero__h1 { font-size: clamp(56px, 18vw, 84px); }
  .hero__p { margin-top: 18px; font-size: 17px; }
  .hero__cta { margin-top: 24px; }
  .hero__cta .btn { flex: 1 1 140px; }
  .sec { padding-bottom: 88px; }
  .path li { grid-template-columns: 1fr; gap: 2px; }
  .contact__in { padding: 36px 22px; }
  .btn--flow { padding: 0 26px; }
  .btn--flow .flow__label { transform: translateX(-10px); }
  .btn--flow:hover .flow__label, .btn--flow:focus-visible .flow__label { transform: translateX(10px); }
  .reach { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }
  .reach__btn { gap: 10px; padding: 0 16px; font-size: 15px; } /* the full address fits on a phone */
}

/* ---------- hero build (agent cursors, first visit only) ---------- */
.build-pending [data-b] { visibility: hidden; }
.crew { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.agent { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; opacity: 0; will-change: transform; }
.agent svg { flex: none; display: block; }
.agent__hat {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; line-height: 1.3; color: var(--ink); white-space: nowrap;
}
.agent--designer .agent__hat { background: var(--peach); }
.agent--editor .agent__hat { background: var(--butter); }
.agent--writer .agent__hat { background: #DCD3FF; }
.agent--qa .agent__hat { background: var(--mint); }
.agent--reviewer .agent__hat { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.agent--designer, .agent--editor, .agent--writer { margin: -12px 0 0 -12px; }
.agent--reviewer { margin: -21px 0 0 -3px; } /* the pencil's tip sits on the point */
.squig { position: absolute; left: 0; top: 0; width: 0; overflow: hidden; line-height: 0; }
.squig svg { display: block; }
/* the Reviewer's check: pops in with a little overshoot, the tick draws itself, a ring fades out */
.tick { position: absolute; left: 0; top: 0; }
.tick__box { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--cobalt); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); animation: tick-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.tick__box::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--cobalt); border-radius: 8px; opacity: 0; animation: tick-ring .7s .12s ease-out; }
.tick svg { width: 64%; height: 64%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick-draw .34s .16s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes tick-pop { 0% { transform: scale(0) rotate(-14deg); } 60% { transform: scale(1.18) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
@keyframes tick-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.caret { position: absolute; left: 0; top: 0; width: 3px; background: var(--cobalt); border-radius: 1px; opacity: 0; }
.badge { position: absolute; left: 0; top: 0; padding: 2px 6px; background: var(--cobalt); color: #fff; border-radius: 3px; font-family: var(--f-mono); font-size: 11px; white-space: nowrap; opacity: 0; }
.ch { visibility: hidden; }
.ch.on { visibility: visible; }
