:root{
  /* The page is the instruction manual of the house: white paper, black ink, line drawings,
     numbered figures and parts, tables for messages, faults and specifications.
     One spot colour, taken from the dashboard's own accent, marks what can be touched.
     Layout: side headings on a document grid; figures run wider than the text. */
  --paper:#FFFFFF;
  --field:#EEEFF1;
  --ink:#161616;
  --ink-2:#55575B;
  --rule:#C8CACE;
  --spot:#2852D6;
  --spot-fill:#2852D6;
  --caution:#FFC21A;
  /* derived roles, so the dark theme can tune them: the line around screens and photos, text on a
     spot or caution fill, the pale spot behind a selected number, the border of a control without fill */
  --frame:var(--ink);
  --on-spot:#FFFFFF;
  --on-caution:#161616;
  --spot-tint:#E8EEFF;
  --ui-line:var(--rule);
  --font:"Atkinson Hyperlegible Next","Atkinson Hyperlegible",Verdana,sans-serif;
  --mono:"Atkinson Hyperlegible Mono","Atkinson Hyperlegible Next",ui-monospace,Menlo,monospace;
  color-scheme:light;
}
/* Dark: the same manual printed in light ink on the night blue of the hero's stage (Enguerran, 2026-11-12; was a neutral #0F1012).
   Body text 16.6:1, secondary text 8.3:1, the spot 6.6:1 on the paper (5.9:1 on the field); controls without fill keep a 4.2:1 edge.
   Under the brightest of the stage's lights (see below) text stays above 6.5:1, the spot 5.2:1, edges 3.3:1.
   Screens and photos keep their own colours inside a quieter frame. Screen only: print stays light. */
@media screen{
  html[data-theme="dark"]{
    --paper:#0A0E1A;
    --field:#121A2E;
    --ink:#ECEEF3;
    --ink-2:#A3AABD;
    --rule:rgba(150,170,255,.16);
    --spot:#5B95FF;
    --caution:#FFC21A;
    --frame:#3D4762;
    --on-spot:#FFFFFF;
    --spot-fill:#3660E2; /* filled blue (buttons, badges): white text 5.3:1, 3.6:1 on the paper */
    --spot-tint:#1C2650;
    --ui-line:#6C7590;
    color-scheme:dark;
  }
}
*{box-sizing:border-box}
html{background:var(--paper);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:18px;line-height:1.56;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
img{height:auto}
a{color:var(--spot);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
::selection{background:var(--spot-fill);color:var(--on-spot)}
:focus-visible{outline:2px solid var(--spot);outline-offset:3px}
code,.mono{font-family:var(--mono);font-size:.86em}
p{margin:0 0 .9em;max-width:66ch}
h1,h2,h3{margin:0;font-weight:700;text-wrap:balance}

.page{max-width:2400px;margin:0 auto;padding:0 clamp(20px,4vw,72px)}
.wide{max-width:1360px;margin:0 auto;padding:0 28px}

/* header */
.top{display:flex;justify-content:space-between;gap:16px;padding-top:22px;padding-bottom:22px;font-size:18px}
.top a{color:var(--ink);text-decoration:none}
.top a:hover{text-decoration:underline}
.top span{color:var(--ink-2)}

/* cover */
.cover{padding-top:56px;padding-bottom:40px}
.cover h1{font-size:clamp(76px,13vw,168px);font-weight:800;letter-spacing:-.035em;line-height:.86;margin-left:-.04em}
.cover .sub{font-size:clamp(23px,2.6vw,32px);line-height:1.22;font-weight:600;max-width:24ch;margin:26px 0 0;letter-spacing:-.01em}
.cover-row{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:end}
.cover .intro{font-size:19px;max-width:46ch;margin:0}
.cover .meta{margin:18px 0 0;font-size:15px;color:var(--ink-2)}
@media (max-width:860px){.cover-row{grid-template-columns:1fr;gap:24px}}

.device{border:2px solid var(--frame);border-radius:26px;padding:12px;background:var(--paper)}
.device img{border-radius:12px;width:100%}
.fig{margin:0}
.fig figcaption{margin-top:12px;font-size:14.5px;line-height:1.5;color:var(--ink-2);max-width:92ch}
.fig figcaption b{color:var(--ink);font-weight:700;margin-right:6px}
.hero{margin-top:44px}

/* document sections with side headings */
.sec{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:0 40px;padding-top:88px;margin-top:88px;border-top:2px solid var(--ink)}
.sec > h2{font-size:30px;line-height:1.1;letter-spacing:-.015em;position:sticky;top:24px;align-self:start;padding-right:12px}
.sec > .body{min-width:0}
.sec .lead{font-size:21px;line-height:1.5;margin-bottom:1em}
.sec h3{font-size:21px;margin:48px 0 14px}
.sec h3:first-child{margin-top:0}
.sec > .span{grid-column:1 / -1;margin-top:40px}
@media (max-width:860px){.sec{grid-template-columns:1fr;padding-top:56px;margin-top:64px}.sec > h2{position:static;margin-bottom:22px;font-size:27px}.sec .lead{font-size:19px}.cover .intro{font-size:18px}}

/* system diagram */
.sys{display:grid;grid-template-columns:minmax(0,1.35fr) 48px minmax(0,.85fr) 48px minmax(0,1fr);align-items:center;font-size:15px;line-height:1.4}
.box{border:1.5px solid var(--ink);padding:16px 18px}
.box h4{margin:0 0 10px;font-size:15px}
.box dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 14px}
.box dt{font-weight:700}
.box dd{margin:0;color:var(--ink-2)}
.box ul{margin:0;padding-left:18px;color:var(--ink-2)}
.box li+li{margin-top:6px}
.core{background:var(--field)}
.core .n{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:baseline}
.core .n b{font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.core .n span{color:var(--ink-2)}
.arr{display:flex;justify-content:center;align-items:center}
.arr svg{width:34px;height:14px}
@media (max-width:980px){.sys{grid-template-columns:1fr}.arr{height:40px}.arr svg{transform:rotate(90deg)}}

/* rules */
.warn-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:26px}
.warn-head svg{flex:none;width:40px;height:36px}
.rules{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.rules li{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:8px 24px;padding:22px 0 24px;border-bottom:1px solid var(--rule)}
.rules .ico{width:36px;height:36px;stroke:var(--ink);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;grid-row:span 2}
.rules h3{grid-column:2 / -1;font-size:20px;margin:4px 0 4px}
.rules blockquote{margin:0;font-size:16.5px;line-height:1.5}
.rules blockquote p{margin:0}
.rules .lang{display:block;font-size:12.5px;font-weight:700;color:var(--ink-2);margin-bottom:4px}
.rules .src{grid-column:2 / -1;font-size:14px;color:var(--ink-2)}
@media (max-width:640px){.rules li{grid-template-columns:36px 1fr}.rules .ico{grid-row:auto}.rules blockquote{grid-column:2}.rules h3,.rules .src{grid-column:2}}

/* parts figure */
.parts-fig{margin:30px 0 0}
.parts-fig svg{width:100%;height:auto}
.parts-fig .ln{stroke:var(--ink);stroke-width:2.2;fill:none}
.parts-fig .halo{stroke:var(--paper);stroke-width:6;fill:none;opacity:.9}
.parts-fig .dot{fill:var(--ink);stroke:var(--paper);stroke-width:3}
.parts-fig .num circle{fill:var(--paper);stroke:var(--ink);stroke-width:2.2}
.parts-fig .num text{font-family:var(--font);font-weight:700;font-size:30px;fill:var(--ink);text-anchor:middle;dominant-baseline:central}
.parts-fig .num.big circle{stroke-width:4}
.parts-fig .num.big text{font-size:46px}
.parts-fig .p.on .ln,.parts-fig .p.on .num circle{stroke:var(--spot)}
.parts-fig .p.on .dot,.parts-fig .p.on .num text{fill:var(--spot)}
.parts-fig .p.on .num circle{fill:var(--spot-tint)}
.parts-fig svg > rect[stroke="#161616"]{stroke:var(--frame)}
.plist{list-style:none;margin:26px 0 0;padding:0;columns:2;column-gap:40px}
.plist li{break-inside:avoid;display:grid;grid-template-columns:30px 1fr;gap:10px;padding:10px 0 12px;border-top:1px solid var(--rule);cursor:default}
.plist li:focus-visible{outline:2px solid var(--spot);outline-offset:2px}
.plist .k{width:26px;height:26px;border:1.6px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-size:13.5px;font-weight:700;margin-top:1px;color:var(--ink)}
.plist b{display:block;color:var(--ink)}
.plist .d{display:block;color:var(--ink-2);font-size:16px;line-height:1.45}
.plist li.on .k{border-color:var(--spot);color:var(--spot);background:var(--spot-tint)}
@media (max-width:760px){.plist{columns:1}}

/* earlier versions */
.gens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:8px}
.gens figure{margin:0}
.phone{border:2px solid var(--frame);border-radius:30px;padding:9px;background:var(--paper);aspect-ratio:646/1400;max-width:220px}
.phone > img,.phone > .screen{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:21px;overflow:hidden}
.gens figcaption{margin-top:12px;font-size:15px;line-height:1.45;color:var(--ink-2);max-width:30ch}
.gens figcaption b{display:block;color:var(--ink)}
.wire{background:#F4F5F7;padding:14px 11px;display:grid;grid-template-columns:1fr 1fr;gap:7px;align-content:start}
.wire i{display:block;height:46px;border:1.2px solid #9A9DA3;border-radius:4px;position:relative}
.wire i::after{content:"";position:absolute;left:9px;right:24px;bottom:10px;height:5px;background:#C9CBCF}
.wire .bar{grid-column:1 / -1;height:22px;background:#9A9DA3;border:0}
.wire .bar::after{display:none}
.wire .w{grid-column:1 / -1;height:70px}
@media (max-width:640px){.gens{grid-template-columns:1fr 1fr}.gens figure:first-child{grid-column:1 / -1}}

/* lighting */
.light{margin-top:28px;background:var(--field);padding:24px}
.light-stage{position:relative;aspect-ratio:1160/810;max-width:880px;margin:0 auto;background:#0C0F19;isolation:isolate}
.light-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .6s ease}
.light-stage .glow{mix-blend-mode:screen}
@supports (mix-blend-mode:plus-lighter){.light-stage .glow{mix-blend-mode:plus-lighter}}
.controls{display:flex;flex-wrap:wrap;gap:18px 36px;margin-top:22px;align-items:flex-end}
.controls fieldset{border:0;margin:0;padding:0}
.controls legend{font-size:14px;font-weight:700;margin-bottom:8px;padding:0}
.seg{display:inline-flex;border:1.5px solid var(--ink);background:var(--paper)}
.seg label{position:relative;cursor:pointer}
.seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.seg span{display:block;padding:9px 15px;font-size:15px;border-left:1.5px solid var(--ink)}
.seg label:first-child span{border-left:0}
.seg input:checked + span{background:var(--ink);color:var(--paper)}
.seg input:focus-visible + span{outline:2px solid var(--spot);outline-offset:-4px}
.seg label:hover span{text-decoration:underline}
.readout{font-size:15px;color:var(--ink-2);margin-left:auto}
@media (max-width:640px){.light{padding:12px}.seg span{padding:9px 10px;font-size:14px}.readout{margin-left:0}}

/* plain lists */
.notes{margin:0;padding-left:20px}
.notes li{margin:0 0 10px;max-width:64ch}

/* tables */
.table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.45;margin-top:22px}
.table th{text-align:left;font-size:14px;font-weight:700;padding:0 14px 10px 0;border-bottom:2px solid var(--ink);vertical-align:bottom}
.table td{padding:14px 14px 14px 0;border-bottom:1px solid var(--rule);vertical-align:top}
.table td:first-child{font-weight:600}
.table .fr{font-style:italic}
.table td .sub.fr{margin-top:6px}
.table td .sub{display:block;font-weight:400;color:var(--ink-2);font-size:14.5px;margin-top:2px}
.spec td:first-child{width:34%;font-weight:600}
.spec td{font-variant-numeric:tabular-nums}
.spec a{overflow-wrap:anywhere}
@media (max-width:700px){
  .table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .table.stack tr{display:block;border-bottom:1px solid var(--rule);padding:12px 0}
  .table.stack td{display:block;border:0;padding:3px 0}
  .table.stack td::before{content:attr(data-label);display:block;font-size:13px;font-weight:700;color:var(--ink-2)}
  .table.stack td:first-child::before{display:none}
}

/* messages */
.msgs{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;align-items:start;margin-top:22px}
.mlist{list-style:none;margin:0;padding:0;border-top:2px solid var(--ink)}
.mlist li{border-bottom:1px solid var(--rule)}
.mlist button{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:62px 1fr;gap:4px 16px;width:100%;padding:14px 10px 15px 8px}
.mlist button:focus-visible{outline:2px solid var(--spot);outline-offset:-2px}
.mlist .t{font-weight:700;font-variant-numeric:tabular-nums;font-size:17px}
.mlist .w{font-size:16px;line-height:1.4}
.mlist .w small{display:block;color:var(--ink-2);font-size:14.5px;margin-top:3px}
.mlist button[aria-selected="true"]{background:var(--field)}
.mlist button[aria-selected="true"] .t{color:var(--spot)}
.mlist button:hover .w{text-decoration:underline}
.gloss{margin-top:18px;font-size:15.5px;line-height:1.5;color:var(--ink-2);display:grid;gap:10px;max-width:62ch}
.gloss b{color:var(--ink)}
.handset{position:sticky;top:24px}
.tg{border:2px solid var(--frame);border-radius:34px;padding:9px;background:var(--paper);aspect-ratio:9/18.6;max-height:640px}
.tg-screen{height:100%;border-radius:25px;overflow:hidden;display:grid;grid-template-rows:auto 1fr auto;background:#0E1621;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:13.5px;line-height:1.38;color:#F2F5F8}
.tg-head{display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:center;padding:14px 14px 10px;background:#17212B}
.tg-av{width:36px;height:36px;border-radius:50%;background:#3E6B9A;display:grid;place-items:center}
.tg-av svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linejoin:round}
.tg-head b{display:block;font-size:14.5px}
.tg-head span{font-size:12px;color:#7F91A4}
.tg-body{overflow-y:auto;padding:12px 10px 14px;display:flex;flex-direction:column;gap:7px;background:#0E1621}
.tg-day{align-self:center;font-size:11.5px;color:#B7C3CF;background:rgba(255,255,255,.07);padding:2px 9px;border-radius:999px}
.msg{max-width:90%;align-self:flex-start;background:#182533;border-radius:12px 12px 12px 4px;padding:7px 10px 5px;white-space:pre-line}
.msg.me{align-self:flex-end;background:#2B5278;border-radius:12px 12px 4px 12px}
.msg b{display:block;margin-bottom:2px}
.msg .meta{display:block;text-align:right;font-size:10.5px;color:#7F91A4;margin-top:2px}
.msg.me .meta{color:#A8C3DE}
.kb{align-self:flex-start;width:90%;display:grid;gap:4px;margin-top:-3px}
.kb button{border:0;cursor:pointer;background:#22344A;color:#F2F5F8;border-radius:7px;padding:8px;font-size:13px;font-family:inherit}
.kb button:hover{background:#2D4560}
.toast{align-self:center;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:5px 11px;border-radius:999px}
.tool{align-self:flex-start;font-family:var(--mono);font-size:11px;color:#B7C3CF;border:1px dashed #5B6B7D;border-radius:5px;padding:3px 7px}
.typing{align-self:flex-start;background:#182533;border-radius:12px;padding:9px 11px;display:flex;gap:4px}
.typing i{width:6px;height:6px;border-radius:50%;background:#7F91A4;animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.tg-input{padding:9px 12px 14px;background:#17212B;color:#788A9E;font-size:13px}
.tg-input span{display:block;background:#0E1621;border-radius:999px;padding:8px 13px}
.handset p{font-size:14px;color:var(--ink-2);margin:12px 4px 0}
@media (max-width:900px){.msgs{grid-template-columns:1fr}.handset{position:static;max-width:300px}}

/* log */
.log td:first-child{white-space:nowrap;font-variant-numeric:tabular-nums}
@media (min-width:701px){.log td:nth-child(2){font-weight:600;width:24%}}
.log td:nth-child(2){font-weight:600}

/* published parts */
.repos{list-style:none;margin:20px 0 0;padding:0;border-top:2px solid var(--ink)}
.repos li{padding:16px 0 18px;border-bottom:1px solid var(--rule);display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:6px 28px}
.repos :is(h3,h4){margin:0;font-size:17px}
.repos :is(h3,h4) small{display:block;font-weight:400;color:var(--ink-2);font-size:14.5px;margin-top:2px}
.repos p{margin:0;font-size:16px;line-height:1.5}
@media (max-width:700px){.repos li{grid-template-columns:1fr}}

/* closing */
.next{display:block;margin-top:40px;padding:28px 0;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);text-decoration:none;color:var(--ink)}
.next small{display:block;font-size:15px;color:var(--ink-2)}
.next strong{display:block;font-size:clamp(34px,4.6vw,54px);letter-spacing:-.02em;line-height:1.05;margin-top:4px}
.next:hover strong{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px}
.foot{padding-top:28px;padding-bottom:72px;font-size:14.5px;color:var(--ink-2);display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 40px}
.foot p{max-width:70ch;margin:0}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* ---------- chapters ---------- */
.toc{list-style:none;margin:28px 0 0;padding:0;border-top:2px solid var(--ink);counter-reset:none}
.toc li{border-bottom:1px solid var(--rule)}
.toc a{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:8px 32px;padding:22px 0 24px;color:var(--ink);text-decoration:none;align-items:center}
.toc a:hover h3{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.toc h3{font-size:24px;margin:0 0 6px;letter-spacing:-.01em}
.toc p{margin:0;font-size:16px;color:var(--ink-2)}
.toc img{width:100%;border:2px solid var(--frame);border-radius:14px}
@media (max-width:760px){.toc a{grid-template-columns:1fr}}
.chap-nav{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:15px;margin:0;padding:0;list-style:none}
.chap-nav a{color:var(--ink);text-decoration:none}
.chap-nav a:hover{text-decoration:underline}
.chap-nav [aria-current="page"]{font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.top{align-items:baseline}
.chap-head{padding-top:48px;padding-bottom:12px}
.chap-head .kicker{font-size:15px;color:var(--ink-2);margin:0 0 10px}
.chap-head h1{font-size:clamp(52px,8vw,104px);font-weight:800;letter-spacing:-.03em;line-height:.92;margin:0}
.chap-head .sub{font-size:clamp(20px,2.2vw,26px);line-height:1.3;max-width:38ch;margin:22px 0 0}
.next-chap{display:block;margin:72px 0 0;padding:26px 0;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);text-decoration:none;color:var(--ink)}
.next-chap small{display:block;font-size:15px;color:var(--ink-2)}
.next-chap strong{display:block;font-size:clamp(30px,4vw,46px);letter-spacing:-.02em;line-height:1.05;margin-top:4px}
.next-chap:hover strong{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px}

/* ---------- playable demo ---------- */
.play{margin:36px 0 0}
.play-stage{display:flex;justify-content:center;background:var(--field);padding:28px 20px}
.play-frame{position:relative;border:2px solid var(--frame);border-radius:28px;padding:12px;background:#0b0f19;box-sizing:border-box;overflow:hidden}
.play-frame[data-device="phone"]{border-radius:44px;padding:10px}
.play-frame iframe{display:block;border:0;transform-origin:0 0;border-radius:16px;background:#0b0f19}
.play-frame[data-device="phone"] iframe{border-radius:34px}
.play-controls{display:flex;flex-wrap:wrap;gap:16px 30px;align-items:flex-end;margin-top:18px}
.play-controls fieldset{border:0;margin:0;padding:0;min-width:0}
.play-controls legend{font-size:14px;font-weight:700;margin-bottom:8px;padding:0}
.play-controls .seg{flex-wrap:wrap}
.play-open{font-size:15px;margin-left:auto;align-self:center}
.play-readout{font-size:15px;color:var(--ink-2);margin:12px 0 0}
@media (max-width:700px){.play-stage{padding:16px 8px}.play-open{margin-left:0}}

/* ---------- galleries ---------- */
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:26px 22px;margin-top:26px}
.gal figure{margin:0}
/* captures of the home screen, on the screen it runs on: a dark bezel */
.gal img{width:100%;display:block;border:clamp(6px,1.1vw,12px) solid #17181B;border-radius:16px;background:#0b0f19;box-shadow:0 0 0 2px var(--frame),0 18px 40px -18px rgba(0,0,0,.35)}
.gal figcaption{margin-top:10px;font-size:15px;line-height:1.45;color:var(--ink-2)}
.gal figcaption b{display:block;color:var(--ink)}
.gal.two{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
@media (max-width:640px){.gal,.gal.two{grid-template-columns:1fr}}
.phones{display:flex;flex-wrap:wrap;gap:26px;margin-top:26px;align-items:flex-start}
.phones figure{margin:0;width:230px}
.phones .phone{max-width:none;width:100%}
.phones figcaption{margin-top:10px;font-size:15px;line-height:1.45;color:var(--ink-2)}
.phones figcaption b{display:block;color:var(--ink)}
@media (max-width:700px){.top{flex-direction:column;align-items:flex-start;gap:10px}}
.sec:has(> .span) > h2{position:static}

/* =================================================================
   Portfolio: the same paper, ink and side headings as the Maison
   manual, extended to a CV, case studies and a home page.
   ================================================================= */
.skip{position:fixed;left:-9999px;top:8px;background:var(--ink);color:var(--paper);padding:8px 12px;border-radius:8px;font-weight:700;z-index:200} /* above the sticky header (60) */
.skip:focus{left:8px}
.top .name{font-weight:700;color:var(--ink);text-decoration:none}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 30px;margin:0;padding:0;list-style:none}
.site-nav a{color:var(--ink);text-decoration:none}
.site-nav a:hover{text-decoration:underline}
.site-nav [aria-current="page"]{font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.site-nav .lang{padding-left:22px;border-left:1px solid var(--rule)}
.site-nav .lang a{color:var(--spot)}
@media (max-width:700px){.site-nav .lang{padding-left:0;border-left:0}}
/* the light and dark switch, last in the header (site.js): a moon to go dark, a sun to come back.
   The drawn button stays inside the line of the links; its touch target is 44px all round. */
.site-nav .theme{display:flex;align-items:center}
.theme-toggle{position:relative;display:grid;place-items:center;width:32px;height:32px;margin:-2px -3px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.theme-toggle::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%}
.theme-toggle svg{grid-area:1 / 1;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .tt-sun,html[data-theme="dark"] .theme-toggle .tt-moon{display:none}
html[data-theme="dark"] .theme-toggle .tt-sun{display:block}
html:not(.js) .site-nav .theme{display:none}
@media (max-width:359px){.site-nav{column-gap:18px}}
@media (hover:hover) and (pointer:fine){.theme-toggle:hover{background:var(--field)}}
.motion .theme-toggle svg{transition:transform 260ms var(--ease-out,ease-out)}
.motion .theme-toggle:active svg{transform:scale(.88) rotate(-12deg)}
/* switching theme: colours cross-fade for 180ms, only when the reader has not asked for reduced motion */
html.motion.theme-fade,html.motion.theme-fade *,html.motion.theme-fade *::before,html.motion.theme-fade *::after{
  transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,box-shadow,text-shadow!important;
  transition-duration:180ms!important;transition-timing-function:cubic-bezier(0.23,1,0.32,1)!important;transition-delay:0s!important}

/* secondary navigation inside a multi-page case study */
.subnav{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;padding-top:12px;padding-bottom:12px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);font-size:15px}
.subnav > span{color:var(--ink-2)}

/* buttons */
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 14px;margin-top:26px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border:1.5px solid var(--ink);border-radius:999px;color:var(--ink);background:var(--paper);text-decoration:none;font-weight:600;font-size:16px;line-height:1.2;font-family:inherit;cursor:pointer}
.btn.primary{background:var(--ink);color:var(--paper)}
.btn:hover{text-decoration:underline;text-underline-offset:3px}
.btn svg{width:16px;height:16px;flex:none}
.copy{font:inherit;font-size:14px;font-weight:600;border:1.5px solid var(--ink);background:var(--paper);color:var(--ink);padding:5px 10px;cursor:pointer;vertical-align:middle}
.copy:hover{background:var(--field)}

/* home cover */
.home-cover h1{font-size:clamp(64px,12vw,158px)}
.home-cover .sub{max-width:21ch}
.home-cover .sub span{display:block;font-weight:400;color:var(--ink-2);margin-top:10px;max-width:24ch}

/* fact strip, like the header of a data sheet */
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:52px 0 0;border-top:2px solid var(--ink)}
.facts.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.facts > div{padding:14px 22px 16px 0;border-bottom:1px solid var(--rule)}
.facts > div + div{padding-left:18px;border-left:1px solid var(--rule)}
.facts dt{font-size:13.5px;font-weight:700;color:var(--ink-2);letter-spacing:.01em}
.facts dd{margin:5px 0 0;font-size:16.5px;line-height:1.42}
@media (max-width:980px){.facts,.facts.five{grid-template-columns:1fr 1fr}.facts > div + div{padding-left:0;border-left:0}.facts > div:nth-child(even){padding-left:18px;border-left:1px solid var(--rule)}}
@media (max-width:520px){.facts,.facts.five{grid-template-columns:1fr}.facts > div:nth-child(even){padding-left:0;border-left:0}}

/* selected work */
.work{list-style:none;margin:30px 0 0;padding:0;border-top:2px solid var(--ink)}
.work li{border-bottom:1px solid var(--rule)}
.work a{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:10px 32px;padding:28px 0 30px;color:var(--ink);text-decoration:none;align-items:start}
.work .n{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums;padding-top:9px}
.work h3{font-size:clamp(30px,3.6vw,44px);letter-spacing:-.022em;line-height:1;margin:0 0 10px}
.work .role{display:block;font-size:15px;color:var(--ink-2);margin:0 0 16px}
.work p{margin:0;font-size:17px;max-width:42ch}
.work .more{display:inline-block;margin-top:16px;font-size:15px;font-weight:600;color:var(--spot)}
.work img{width:100%;border:2px solid var(--frame);border-radius:14px;background:var(--field)}
.work a:hover h3{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px}
.work a:hover img{outline:2px solid var(--ink);outline-offset:3px}
@media (max-width:860px){.work a{grid-template-columns:minmax(0,1fr)}.work .n{padding-top:6px}.work figure,.work .pic{grid-column:1}}

/* experience and CV */
.table td.when{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:400;color:var(--ink-2);width:1%}
.more-link{display:inline-block;margin-top:22px;font-weight:600}
.jobs{list-style:none;margin:0;padding:0}
/* no rule above the first job: it sits level with « Experience », like the first line of the other sections (Enguerran, 2026-11-12) */
.jobs > li:first-child{padding-top:0}
.jobs > li{display:grid;grid-template-columns:120px minmax(0,1fr);gap:4px 28px;padding:24px 0 26px;border-bottom:1px solid var(--rule)}
.jobs .when{font-variant-numeric:tabular-nums;font-weight:600;font-size:16px;padding-top:3px}
.jobs h3{font-size:22px;margin:0;letter-spacing:-.01em}
.jobs .org{display:block;color:var(--ink-2);font-size:16px;margin:3px 0 0}
.jobs h4{font-size:17px;margin:20px 0 8px}
.jobs h4 span{font-weight:400;color:var(--ink-2)}
.jobs ul{margin:10px 0 0;padding-left:19px}
.jobs ul li{margin:0 0 7px;max-width:66ch;font-size:16.5px;line-height:1.5}
@media (max-width:640px){.jobs > li{grid-template-columns:1fr}}
.cv-head{padding-top:40px}
.cv-head h1{font-size:clamp(48px,7vw,88px);font-weight:800;letter-spacing:-.03em;line-height:.95}
.cv-head .sub{font-size:clamp(21px,2.3vw,27px);font-weight:600;margin:14px 0 0}.cv-head .sub-line{display:block;margin-top:6px;font-size:.78em;font-weight:400;color:var(--ink-2)} /* same line as the home page and LinkedIn */
.cv-head .contact{margin:18px 0 0;font-size:16px;color:var(--ink-2);display:flex;flex-wrap:wrap;gap:6px 22px;align-items:center}
.cv-head .contact a{color:var(--spot)}

/* case study cover */
.cs-head{padding-top:44px}
.cs-head .kicker{font-size:15px;color:var(--ink-2);margin:0 0 14px}
.cs-head .kicker a{color:var(--ink-2)}
.cs-head h1{font-size:clamp(60px,10vw,132px);font-weight:800;letter-spacing:-.035em;line-height:.88;margin:0 0 0 -.03em}
.cs-head .sub{font-size:clamp(21px,2.4vw,29px);line-height:1.28;max-width:36ch;margin:26px 0 0;font-weight:600;letter-spacing:-.01em}
.cs-head .facts{margin-top:44px}
/* Screenshots of web products sit in a browser window: a title bar with its three dots and an address field */
.shot{position:relative;border:2px solid var(--frame);border-radius:14px;padding-top:34px;background:var(--paper);overflow:hidden}
.shot::before{content:"";position:absolute;left:14px;top:12px;width:10px;height:10px;border-radius:50%;background:color-mix(in srgb,var(--frame) 30%,transparent);
  box-shadow:16px 0 0 color-mix(in srgb,var(--frame) 30%,transparent),32px 0 0 color-mix(in srgb,var(--frame) 30%,transparent)}
.shot::after{content:"";position:absolute;left:50%;top:9px;width:min(38%,300px);height:16px;transform:translateX(-50%);border-radius:8px;background:color-mix(in srgb,var(--frame) 9%,transparent)}
.shot img{display:block;width:100%;border-top:2px solid var(--frame)}

/* plain figures inside the text column */
.figs{display:grid;gap:30px;margin-top:30px}
.figs .fig img{border:2px solid var(--frame);border-radius:12px;width:100%}
.tray{background:var(--field);padding:30px 26px;display:flex;flex-wrap:wrap;gap:26px 22px;justify-content:center;align-items:flex-start;margin-top:30px}
.tray figure{margin:0;flex:0 1 auto}
.tray img{border:2px solid var(--frame);border-radius:10px;background:#fff}
.tray figcaption{margin-top:10px;font-size:14.5px;line-height:1.45;color:var(--ink-2);max-width:34ch}
.tray figcaption b{display:block;color:var(--ink)}
.cap{margin-top:14px;font-size:14.5px;line-height:1.5;color:var(--ink-2);max-width:92ch}
.cap b{color:var(--ink);margin-right:6px}
.masonry{columns:3 230px;column-gap:22px;margin-top:28px}
.masonry figure{break-inside:avoid;margin:0 0 22px}
.masonry img{width:100%;border:2px solid var(--frame);border-radius:10px}
.masonry figcaption{margin-top:7px;font-size:14.5px;font-weight:600}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px;margin-top:28px}
.pair.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.pair figure{margin:0}
.pair img{width:100%;border:2px solid var(--frame);border-radius:12px}
.pair figcaption{margin-top:10px;font-size:14.5px;line-height:1.45;color:var(--ink-2)}
.pair figcaption b{color:var(--ink);margin-right:6px}
@media (max-width:760px){.pair,.pair.three{grid-template-columns:1fr}}

/* diagram: four platforms into one */
.merge{display:grid;grid-template-columns:minmax(0,1fr) 60px minmax(0,1.25fr);align-items:center;margin-top:30px}
.merge .olds{list-style:none;margin:0;padding:0 22px 0 0;display:grid;gap:10px;border-right:2px solid var(--ink);position:relative}
.merge .old{border:1.5px dashed var(--ink-2);padding:12px 16px;color:var(--ink-2);font-size:15.5px;position:relative;background:var(--paper)}
.merge .old::after{content:"";position:absolute;top:50%;right:-24px;width:22px;border-top:2px solid var(--ink)}
.merge .arr svg{width:46px;height:14px}
.merge .new{border:2px solid var(--ink);background:var(--field);padding:20px 22px}
.merge .new h4{margin:0 0 10px;font-size:24px;letter-spacing:-.01em}
.merge .new ul{margin:0;padding-left:19px;font-size:16px}
.merge .new li+li{margin-top:5px}
@media (max-width:760px){.merge{grid-template-columns:1fr}.merge .olds{padding:0;border-right:0}.merge .old::after{display:none}.merge .arr{height:48px}.merge .arr svg{transform:rotate(90deg)}}

/* diagram: numbered steps */
.steps{list-style:none;margin:30px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:2px solid var(--ink);counter-reset:st}
.steps li{counter-increment:st;padding:16px 14px 18px 0;position:relative}
.steps li + li{padding-left:16px;border-left:1px solid var(--rule)}
.steps li::before{content:counter(st);display:grid;place-items:center;width:30px;height:30px;border:1.6px solid var(--ink);border-radius:50%;font-weight:700;font-size:14px;margin-bottom:12px}
.steps b{display:block;font-size:17px;line-height:1.3}
@media (max-width:760px){.steps{grid-template-columns:1fr}.steps li,.steps li + li{display:grid;grid-template-columns:44px 1fr;align-items:center;padding:12px 0;border-left:0;border-bottom:1px solid var(--rule)}.steps li::before{margin:0}}

/* diagram: team over time */
.team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:30px;border-top:2px solid var(--ink)}
.team > div{padding:16px 20px 20px 0}
.team > div + div{padding-left:20px;border-left:1px solid var(--rule)}
.team .when{display:block;font-size:14px;font-weight:700;color:var(--ink-2)}
.team .count{display:flex;align-items:center;gap:14px;margin:12px 0 10px}
.team .count b{font-size:52px;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.team .dots{display:flex;gap:6px}
.team .dots i{width:16px;height:16px;border-radius:50%;background:var(--ink)}
.team p{margin:0;font-size:15.5px;line-height:1.45;color:var(--ink-2)}
@media (max-width:760px){.team{grid-template-columns:1fr}.team > div + div{padding-left:0;border-left:0;border-top:1px solid var(--rule)}}

/* diagram: before / after */
.flow{margin-top:30px;display:grid;gap:14px}
.flow .row{display:grid;grid-template-columns:90px minmax(0,1fr) 40px minmax(0,1.4fr) 40px minmax(0,1fr);align-items:center}
.flow .lab{font-size:14px;font-weight:700;color:var(--ink-2)}
.flow .b{border:1.5px solid var(--ink);padding:12px 14px;font-size:15.5px;line-height:1.35;background:var(--paper)}
.flow .b.hl{border-width:2px;background:var(--field);font-weight:600}
.flow .b.dim{border-style:dashed;color:var(--ink-2)}
.flow .arr svg{width:30px;height:12px}
@media (max-width:760px){.flow .row{grid-template-columns:1fr;gap:6px}.flow .arr{height:26px}.flow .arr svg{transform:rotate(90deg)}}

/* side projects and contact */
.repos a{font-weight:600}
.mail{font-size:clamp(26px,3.4vw,40px);font-weight:700;letter-spacing:-.015em;line-height:1.15;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:6px 0 4px}
.mail a{color:var(--ink);text-decoration-thickness:2px;text-underline-offset:6px;word-break:break-all}
.mail a:hover{color:var(--spot)}
.foot .note{flex-basis:100%;max-width:92ch}

@media print{
  @page{margin:14mm 15mm}
  body{font-size:10.5pt;line-height:1.42}
  .skip,.site-nav,.foot,.cta,.copy,.no-print{display:none!important}
  .top{padding:0 0 8pt}
  .page{max-width:none;padding:0}
  a{color:inherit;text-decoration:none}
  .cv-head{padding-top:0}
  .cv-head h1{font-size:30pt}
  .cv-head .sub{font-size:14pt;margin-top:4pt}
  .cv-head .contact{font-size:10pt;margin-top:6pt}
  .sec{display:block;margin-top:14pt;padding-top:8pt;border-top-width:1.5pt}
  .sec > h2{position:static;font-size:13pt;margin-bottom:6pt}
  .sec .lead{font-size:11pt}
  .jobs > li{grid-template-columns:80pt 1fr;padding:8pt 0 9pt;break-inside:avoid}
  .jobs h3{font-size:12pt}
  .jobs h4{font-size:11pt;margin:8pt 0 3pt}
  .jobs ul{margin-top:4pt}
  .jobs ul li{font-size:10pt;margin-bottom:2pt}
  .table{font-size:10pt;margin-top:6pt}
  .table td{padding:4pt 8pt 4pt 0}
}
.work .pic{display:block}
@media (max-width:700px){.table.stack td.co{color:var(--ink-2)}.table.stack td.co::before,.table.stack td.when::before{display:none}.table td.when{width:auto}}
.tray figure img{width:100%}
/* enlarged figure */
.shot img,.pair img,.masonry img,.tray img,.fig > img,.gal img,.phones img{cursor:zoom-in}
.lb-open,.lb-open body{overflow:hidden}
.lb{position:fixed;inset:0;z-index:100;background:rgba(14,14,16,.94);display:flex;align-items:center;justify-content:center;padding:64px 18px 18px;overflow:auto;cursor:zoom-out}
.lb-in{display:flex;align-items:center;justify-content:center;min-height:100%;width:100%}
.lb img{max-width:min(1600px,100%);max-height:calc(100vh - 90px);width:auto;height:auto;border-radius:8px;background:#fff;cursor:auto}
.lb-x{position:fixed;top:14px;right:16px;font:inherit;font-size:15px;font-weight:600;padding:9px 14px;border:1.5px solid #fff;background:transparent;color:#fff;cursor:pointer}
.lb-x:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media print{
  @page{margin:12mm 14mm}
  body{font-size:9.8pt;line-height:1.38}
  .top{display:none!important}
  .cv-head h1{font-size:26pt}
  .cv-head .sub{font-size:13pt}
  .sec{margin-top:9pt;padding-top:6pt}
  .sec > h2{font-size:12pt;margin-bottom:4pt}
  .sec .lead{font-size:10.2pt;margin-bottom:4pt}
  .sec p{margin-bottom:4pt;max-width:none}
  .jobs > li{grid-template-columns:72pt 1fr;padding:6pt 0 7pt}
  .jobs .when{font-size:9.5pt}
  .jobs h3{font-size:11pt}
  .jobs .org{font-size:9.5pt}
  .jobs h4{font-size:10pt;margin:6pt 0 2pt}
  .jobs ul li{font-size:9.4pt;line-height:1.36;margin-bottom:1.5pt;max-width:none}
  .table{font-size:9.4pt}
  .spec td:first-child{width:22%}
}
.jobs > li{grid-template-columns:148px minmax(0,1fr)}
@media (max-width:640px){.jobs > li{grid-template-columns:1fr}}
@media print{@page{margin:10mm 13mm}body{font-size:9.2pt;line-height:1.32}.sec{margin-top:6pt;padding-top:5pt}.sec > h2{margin-bottom:3pt}.cv-head .sub{font-size:12pt}.jobs > li{grid-template-columns:64pt 1fr;break-inside:auto;padding:5pt 0 6pt}.jobs ul li{font-size:9pt;line-height:1.32;margin-bottom:1pt}.jobs h4{margin:4pt 0 1pt}.table{font-size:9pt}.table td{padding:2.5pt 8pt 2.5pt 0}.sec .lead{font-size:9.8pt}.cv-head h1{font-size:24pt}.jobs h3,.jobs h4{break-after:avoid}.jobs ul li{break-inside:avoid}#cv-side li,#cv-edu li{font-size:9.4pt;margin-bottom:1.5pt}.sec .body,.sec .body *,.cv-head .contact{max-width:none!important}}

/* =================================================================
   Motion system ("plotted": lines draw, figures develop, numbers count)
   Rules from Emil Kowalski's `animate` and LottieFiles' `motion-design` skills:
   strong ease-out for entrances, transform/opacity/clip-path only,
   staggers under 500ms, reveal once, reduced motion = fewer and gentler.
   ================================================================= */
:root{
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --ease-in-out:cubic-bezier(0.77,0,0.175,1);
  --dur-quick:180ms;
  --dur-std:600ms;
  --dur-slow:1000ms;
}
/* interface rebuilds: drawn at a fixed size, scaled to the column */
.ui-stage{position:relative;overflow:hidden;width:100%;height:calc(var(--uh,760px) * var(--s,1));border-radius:9px;background:#fff}
.ui-stage > .ui{position:absolute;left:0;top:0;transform:scale(var(--s,1));transform-origin:0 0}

/* ---------- page transitions: cross-document View Transitions ----------
   The case-study title and thumbnail on the home page travel to the case-study
   page (shared view-transition-name); everything else cross-fades and rises. */
@view-transition{navigation:auto}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}
.top{view-transition-name:site-top}
::view-transition-group(site-top){animation-duration:0s}
::view-transition-old(root){animation:180ms var(--ease-out) both vt-out}
::view-transition-new(root){animation:560ms var(--ease-out) both vt-in}
::view-transition-group(*){animation-duration:620ms;animation-timing-function:var(--ease-in-out)}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;transform:translateY(16px)}}

/* ---------- kinetic titles: each word rises out of its own mask ---------- */
.kw{display:inline-block;overflow:hidden;vertical-align:top;padding:.14em .05em .2em;margin:-.14em -.05em -.2em}
.ki{display:inline-block}
.motion .ki{animation:ki-in 1000ms var(--ease-out) both;animation-delay:calc(var(--i,0) * 90ms + var(--k0,60ms))}
@keyframes ki-in{from{transform:translateY(112%)}}
.vt .ki{animation:none}

/* ---------- load choreography for covers ---------- */
.motion [data-rise]{animation:rise 800ms var(--ease-out) both;animation-delay:var(--d,0ms)}
@keyframes rise{from{opacity:0;transform:translateY(16px)}}
.facts{position:relative;border-top:0;padding-top:2px}
.facts::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--ink);transform-origin:left center}
.motion .facts::before{animation:draw 1100ms var(--ease-in-out) both;animation-delay:var(--d,380ms)}
.motion .facts > div{animation:rise 700ms var(--ease-out) both;animation-delay:calc(var(--d,380ms) + 240ms + var(--n,0) * 60ms)}
@keyframes draw{from{transform:scaleX(0)}}

/* ---------- section rules draw from the left ---------- */
.sec{border-top:0;position:relative}
.sec::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--ink);transform-origin:left center}
.motion .sec::before{transition:transform 1100ms var(--ease-in-out)}
.motion .sec:not(.in)::before{transform:scaleX(0)}
.motion .now,.motion .now::before{transition:none!important} /* a section reached by a link shows at once (js/site.js) */

/* ---------- scroll reveals (once): blocks rise, figures develop ---------- */
.motion :is(.sec > h2, .sec > .body > *:not(.table):not(.notes):not(.jobs):not(.repos):not(.toc):not(.work):not(.rules), .sec > .span > *:not(.work):not(.toc), .table tbody tr, .jobs > li, .repos > li, .notes > li, .toc > li, .work > li, .rules > li, .next-chap, .foot > p){transition:opacity 800ms var(--ease-out),transform 800ms var(--ease-out);transition-delay:var(--rd,0ms)}
.motion :is(.sec > h2, .sec > .body > *:not(.table):not(.notes):not(.jobs):not(.repos):not(.toc):not(.work):not(.rules), .sec > .span > *:not(.work):not(.toc), .table tbody tr, .jobs > li, .repos > li, .notes > li, .toc > li, .work > li, .rules > li, .next-chap, .foot > p):not(.in){opacity:0;transform:translateY(18px)}
.motion :is(.table tbody tr, .notes > li, .repos > li):not(.in){transform:translateY(8px)}
.motion :is(.fig > .shot, .fig > .device, .fig > img, .gal figure > img, .pair figure > img, .masonry figure > img, .tray figure > img, .work .pic, .toc a > img, .phones .phone, .gens .phone){transition:clip-path 1000ms var(--ease-in-out);transition-delay:var(--rd,0ms)}
.motion :is(.fig > .shot, .fig > .device, .fig > img, .gal figure > img, .pair figure > img, .masonry figure > img, .tray figure > img, .work .pic, .toc a > img, .phones .phone, .gens .phone):not(.in){clip-path:inset(0 0 100% 0)}
.motion :is(.fig > .shot, .fig > .device) img{transition:transform 1500ms var(--ease-out)}
.motion :is(.fig > .shot, .fig > .device):not(.in) img{transform:scale(1.045)}
.vt .fig.hero > :is(.shot, .device){clip-path:none!important;transition:none}
.vt .fig.hero > :is(.shot, .device) img{transform:none!important}

/* ---------- diagram: four platforms into one ---------- */
.merge .olds{border-right:0}
.merge .olds::after{content:"";position:absolute;right:0;top:23px;bottom:23px;width:2px;background:var(--ink);transform-origin:center}
.motion .merge .old{transition:opacity 600ms var(--ease-out),transform 600ms var(--ease-out)}
.motion .merge .old:nth-child(2){transition-delay:70ms}
.motion .merge .old:nth-child(3){transition-delay:140ms}
.motion .merge .old:nth-child(4){transition-delay:210ms}
.motion .merge:not(.in) .old{opacity:0;transform:translateX(-14px)}
.merge .old::after{transform-origin:left center}
.motion .merge .old::after{transition:transform 420ms var(--ease-out) 420ms}
.motion .merge:not(.in) .old::after{transform:scaleX(0)}
.motion .merge .olds::after{transition:transform 520ms var(--ease-in-out) 700ms}
.motion .merge:not(.in) .olds::after{transform:scaleY(0)}
.merge .arr path,.flow .arr path{stroke-dasharray:1 1}
.motion .merge .arr path{transition:stroke-dashoffset 520ms var(--ease-out) 1000ms}
.motion .merge:not(.in) .arr path{stroke-dashoffset:1}
.motion .merge .new{transition:opacity 700ms var(--ease-out) 1250ms,transform 700ms var(--ease-out) 1250ms}
.motion .merge:not(.in) .new{opacity:0;transform:translateY(10px) scale(.97)}
.motion .merge .new li{transition:opacity 500ms var(--ease-out),transform 500ms var(--ease-out)}
.motion .merge .new li:nth-child(1){transition-delay:1450ms}
.motion .merge .new li:nth-child(2){transition-delay:1510ms}
.motion .merge .new li:nth-child(3){transition-delay:1570ms}
.motion .merge:not(.in) .new li{opacity:0;transform:translateY(6px)}
@media (max-width:760px){.merge .olds::after{display:none}}

/* ---------- diagram: numbered steps, with a progress line ---------- */
.steps{border-top:0;position:relative;padding-top:2px}
.steps::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--ink);transform-origin:left center}
.motion .steps::before{transition:transform 1200ms linear}
.motion .steps:not(.in)::before{transform:scaleX(0)}
.motion .steps li{transition:opacity 500ms var(--ease-out),transform 500ms var(--ease-out)}
.motion .steps li:nth-child(2){transition-delay:240ms}
.motion .steps li:nth-child(3){transition-delay:480ms}
.motion .steps li:nth-child(4){transition-delay:720ms}
.motion .steps li:nth-child(5){transition-delay:960ms}
.motion .steps:not(.in) li{opacity:0;transform:translateY(10px)}

/* ---------- diagram: team over time ---------- */
.team{border-top:0;position:relative;padding-top:2px}
.team::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--ink);transform-origin:left center}
.motion .team::before{transition:transform 1000ms var(--ease-in-out)}
.motion .team:not(.in)::before{transform:scaleX(0)}
.motion .team > div{transition:opacity 700ms var(--ease-out),transform 700ms var(--ease-out);transition-delay:calc(var(--c,0) * 160ms + 150ms)}
.motion .team:not(.in) > div{opacity:0;transform:translateY(14px)}
.motion .team .dots i{transition:opacity 420ms var(--ease-out),transform 420ms var(--ease-out);transition-delay:calc(var(--c,0) * 160ms + 450ms + var(--j,0) * 70ms)}
.motion .team:not(.in) .dots i{opacity:0;transform:scale(.8)}

/* ---------- diagram: before and after ---------- */
.motion .flow .row{transition:opacity 700ms var(--ease-out),transform 700ms var(--ease-out)}
.motion .flow .row:nth-child(2){transition-delay:420ms}
.motion .flow:not(.in) .row{opacity:0;transform:translateY(12px)}
.motion .flow .arr path{transition:stroke-dashoffset 480ms var(--ease-out) 300ms}
.motion .flow .row:nth-child(2) .arr path{transition-delay:720ms}
.motion .flow:not(.in) .arr path{stroke-dashoffset:1}
.motion .flow.in .b.hl{animation:hl 1400ms var(--ease-out) 1100ms both}
@keyframes hl{from{box-shadow:0 0 0 0 color-mix(in srgb,var(--spot) 38%,transparent)}to{box-shadow:0 0 0 12px color-mix(in srgb,var(--spot) 0%,transparent)}}
/* arrows drawn with the ink in their markup */
.arr svg[stroke="#161616"],.arr svg [stroke="#161616"]{stroke:var(--ink)}

/* ---------- reading progress ---------- */
.progress{position:fixed;left:0;top:0;width:100%;height:3px;background:var(--ink);transform-origin:left center;transform:scaleX(var(--p,0));z-index:60;pointer-events:none}
@supports (animation-timeline:scroll()){.progress{animation:progress linear both;animation-timeline:scroll(root)}}
@keyframes progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){.progress{display:none}}

/* ---------- hover and press (pointer devices only) ---------- */
html.motion{scroll-behavior:smooth}
.site-nav a,.chap-nav a{background:linear-gradient(currentColor,currentColor) 0 100% / 0 1.5px no-repeat;padding-bottom:2px}
.work .pic{display:block;border:2px solid var(--frame);border-radius:14px;overflow:hidden;background:var(--field)}
.work img{border:0;border-radius:0}
.work .more::after{content:"\2192";display:inline-block;margin-left:7px}
.next-chap strong::after{content:"\2192";display:inline-block;margin-left:.35em}
.btn:active{transform:scale(.97)}
.btn{transition:transform 140ms var(--ease-out)}
@media (hover:hover) and (pointer:fine){
  .site-nav a,.chap-nav a{transition:background-size 240ms var(--ease-out)}
  .site-nav a:hover,.chap-nav a:hover{text-decoration:none;background-size:100% 1.5px}
  .work img{transition:transform 900ms var(--ease-out)}
  .work a:hover img{transform:scale(1.03);outline:0}
  .work .more::after,.btn svg,.next-chap strong::after{transition:transform 260ms var(--ease-out)}
  .work .more:hover::after,.work a:focus-visible .more::after,.btn:hover svg{transform:translateX(4px)}
  .next-chap:hover strong::after{transform:translateX(10px)}
  .toc img{transition:transform 900ms var(--ease-out)}
}

/* ---------- lightbox ---------- */
.motion .lb{animation:lb-in 220ms var(--ease-out) both}
.motion .lb img{animation:lb-img 360ms var(--ease-out) both}
@keyframes lb-in{from{opacity:0}}
@keyframes lb-img{from{opacity:0;transform:scale(.96)}}

/* never print a half-revealed page */
@media print{
  .motion *,.motion *::before,.motion *::after{opacity:1!important;transform:none!important;clip-path:none!important;animation:none!important;transition:none!important}
  .progress{display:none}
}
/* elements that exist on one side of a transition only: leave fast, arrive softly */
::view-transition-old(*):only-child{animation:180ms var(--ease-out) both vt-out}
::view-transition-new(*):only-child{animation:560ms var(--ease-out) both vt-in}

/* ---------- the living name (home cover; js/alive.js) ---------- */
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.alive{position:relative}
.alive .aw{white-space:nowrap}
.alive.is-alive{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.alive.is-alive .lt{display:inline-block;position:relative;will-change:transform}
.alive .alive-ref{position:absolute;left:0;top:0;visibility:hidden;white-space:pre;pointer-events:none}
.alive .tittle{position:absolute;left:0;top:0;will-change:transform}
@media (hover:hover) and (pointer:fine){.alive.is-alive .lt{cursor:pointer}}
.alive .lt.up,.alive .tittle.up{text-shadow:.032em 0 var(--paper),-.032em 0 var(--paper),0 .032em var(--paper),0 -.032em var(--paper),.023em .023em var(--paper),-.023em .023em var(--paper),.023em -.023em var(--paper),-.023em -.023em var(--paper)}

/* ---------- pain-point tours on interface rebuilds (site.js) ----------
   Numbered pins over the rebuild; picking one frames its region and lets the reader
   switch the region between before and after the fix. */
@property --z{syntax:'<number>';inherits:true;initial-value:1}
@property --tx{syntax:'<length>';inherits:true;initial-value:0px}
@property --ty{syntax:'<length>';inherits:true;initial-value:0px}
.tour .ui-stage > .ui,.tour .tour-layer{position:absolute;left:0;top:0;transform-origin:0 0;transform:translate(var(--tx,0px),var(--ty,0px)) scale(calc(var(--s,1) * var(--z,1)))}
.motion .tour .ui-stage{transition:--z 820ms var(--ease-in-out),--tx 820ms var(--ease-in-out),--ty 820ms var(--ease-in-out)}
.tour-layer{pointer-events:none;z-index:5}
.tour > .shot{margin-inline:auto}
.tour-spot{position:absolute;opacity:0;pointer-events:none;border-radius:calc(8px / (var(--s,1) * var(--z,1)));outline:calc(2px / (var(--s,1) * var(--z,1))) solid var(--spot);box-shadow:0 0 0 9999px rgba(22,22,22,.26)}
.motion .tour-spot{transition:opacity 420ms var(--ease-out)}
.tour.zoomed .tour-spot{opacity:1}
.tour-pin{position:absolute;pointer-events:auto;width:30px;height:30px;margin:0;padding:0;border-radius:50%;border:2px solid #fff;background:var(--spot-fill);color:var(--on-spot);font:700 14px/26px var(--font);text-align:center;cursor:pointer;box-shadow:0 1px 0 rgba(0,0,0,.18),0 0 0 1px rgba(22,22,22,.18);transform:translate(-50%,-50%) scale(calc(1 / (var(--s,1) * var(--z,1))))}
.tour.zoomed .tour-pin{background:#fff;color:var(--ink);border-color:var(--ink)}
.tour.zoomed .tour-pin.on{background:var(--spot-fill);color:var(--on-spot);border-color:#fff}
.motion .tour .tour-pin{transition:background-color 180ms var(--ease-out),color 180ms var(--ease-out),opacity 400ms var(--ease-out)}
.motion .tour:not(.pins-in) .tour-pin{opacity:0}
.motion .tour.pins-in .tour-pin{animation:pin-hello 1200ms var(--ease-out) both;animation-delay:calc(var(--k,0) * 90ms)}
@keyframes pin-hello{0%{box-shadow:0 0 0 0 rgba(40,82,214,.5)}70%{box-shadow:0 0 0 14px rgba(40,82,214,0)}100%{box-shadow:0 1px 0 rgba(0,0,0,.18),0 0 0 1px rgba(22,22,22,.18)}}
.tour-badge{position:absolute;left:14px;bottom:14px;z-index:6;width:min(440px,calc(100% - 28px));box-sizing:border-box;padding:14px 16px 15px;border-radius:14px;background:#16171A;color:#ECEDEE;box-shadow:0 18px 40px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.06);opacity:0;pointer-events:none;font:500 15px/1.45 var(--font)}
.tour-badge b{display:inline;font-weight:700;font-size:16px;margin-right:10px}
.tour-badge i{display:inline-block;vertical-align:2px;font:800 11.5px/1 var(--font);font-style:normal;letter-spacing:.05em;text-transform:uppercase;padding:5px 9px 4px;border-radius:999px;background:#3FBF7F;color:#0F1012}
.tour-badge.before i{background:#F6C453}
.tour-badge span{display:block;margin-top:8px;color:#C9CBD0}
.tour-badge.under{position:static;display:block;width:100%;margin:12px 0 0;box-shadow:none}.tour:not(.zoomed) .tour-badge.under{display:none}
@media (max-width:620px){.tour-badge{padding:12px 14px 13px;font-size:14.5px}.tour-badge b{font-size:15.5px}}
.motion .tour-badge{transition:opacity 240ms var(--ease-out)}
.tour.zoomed .tour-badge{opacity:1}
@media (hover:hover) and (pointer:fine){.tour-pin:hover{filter:brightness(1.12)}}

.tour-panel{margin-top:26px;border-top:2px solid var(--ink);padding-top:16px}
.tour-top{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-bottom:16px}
.tour-top h3{font-size:19px;margin:0;letter-spacing:-.005em}
.tour-top p{margin:0;color:var(--ink-2);font-size:15px;flex:1 1 280px}
.tour-ctl{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-left:auto}
.tour-ctl .btn{padding:8px 13px;font-size:15px}
.tour-ctl .btn[hidden]{display:none}
.tour-mode[aria-disabled="true"]{opacity:.38;pointer-events:none}
.tour-mode button{all:unset;cursor:pointer;display:block;padding:8px 14px;font-size:15px;font-weight:600;border-left:1.5px solid var(--ink)}
.tour-mode button:first-child{border-left:0}
.tour-mode button[aria-checked="true"]{background:var(--ink);color:var(--paper)}
.tour-mode button:focus-visible{outline:2px solid var(--spot);outline-offset:2px} /* outside the switch: on the paper, not on the ink */
.tour-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.tour-item{all:unset;box-sizing:border-box;cursor:pointer;display:block;width:100%;height:100%;padding:14px 16px 16px;border:1.5px solid var(--ui-line);border-radius:12px;background:var(--paper)}
.tour-item:focus-visible{outline:2px solid var(--spot);outline-offset:2px}
.tour-item .k{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--spot-fill);color:var(--on-spot);font-weight:700;font-size:13px;margin-right:8px;vertical-align:2px}
.tour-item .t{font-weight:700;font-size:16.5px;line-height:1.3}
.tour-item .p{display:block;margin-top:9px;font-size:15px;line-height:1.45;color:var(--ink-2)}
.tour-item .p b{display:block;color:var(--ink);font-size:13px;letter-spacing:.02em;margin-bottom:1px}
.tour-item[aria-pressed="true"]{border:2px solid var(--ink);padding:13.5px 15.5px 15.5px;background:var(--field)}
.tour-item[aria-pressed="true"] .p{color:var(--ink)}
.tour-item[aria-pressed="true"][data-mode="before"] .p.fix,.tour-item[aria-pressed="true"][data-mode="after"] .p.pb{color:var(--ink-2)} /* set back by colour, still readable (6.3:1), not by fading */
.motion .tour-item{transition:background-color 200ms var(--ease-out),border-color 200ms var(--ease-out)}
.motion .tour-item .p{transition:opacity 220ms var(--ease-out)}
@media (hover:hover) and (pointer:fine){.tour-item:hover{border-color:var(--ink)}.tour-item:hover .t{text-decoration:underline;text-underline-offset:3px}}
@media (max-width:700px){.tour-ctl{margin-left:0}.tour-pin{width:26px;height:26px;font-size:13px;line-height:22px}}

/* ---------- methods strip under a case-study cover ---------- */
.kit{margin:30px 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.kit-h{font-size:13.5px;font-weight:700;color:var(--ink-2);margin-right:6px}
.kit ul{display:contents}
.kit li{list-style:none}
.kit a{display:inline-block;padding:6px 12px 7px;border:1.5px solid var(--ui-line);border-radius:999px;font-size:14.5px;line-height:1.2;color:var(--ink);text-decoration:none;background:var(--paper)}
.kit a:focus-visible{outline:2px solid var(--spot);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.kit a{transition:border-color 180ms var(--ease-out),background-color 180ms var(--ease-out)}.kit a:hover{border-color:var(--ink);background:var(--field)}}
.sec{scroll-margin-top:12px}

/* ---------- audit of real captures, next to the corrected version ---------- */
.audit-grid{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(0,1fr);gap:20px;align-items:stretch}
.audit-caps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:var(--field);padding:20px;border-radius:14px;align-items:start}
.audit-cap{position:relative;margin:0}
.audit-cap .img{position:relative}
.audit-cap img{display:block;width:100%;border:2px solid var(--frame);border-radius:10px;background:#fff}
.audit-lab{display:block;margin:0 0 9px;font-size:13.5px;font-weight:700;color:var(--ink-2)}
.apin{all:unset;box-sizing:border-box;position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border-radius:50%;background:var(--spot-fill);color:var(--on-spot);font:700 13.5px/24px var(--font);text-align:center;border:2px solid #fff;box-shadow:0 0 0 1px rgba(22,22,22,.22);cursor:pointer}
.apin:focus-visible{outline:2px solid var(--spot);outline-offset:3px}
.apin.on{background:var(--caution);color:var(--ink);border-color:var(--ink);z-index:2}
.motion .apin{transition:background-color 180ms var(--ease-out),transform 260ms var(--ease-out)}
.motion .apin.on{transform:translate(-50%,-50%) scale(1.18)}
.audit-fix{border:2px solid var(--frame);border-radius:14px;padding:18px 18px 20px;background:#F6F8FB;display:flex;flex-direction:column}
.ob{font-family:"Nunito Sans",var(--font);color:#1B2B4B;background:#fff;border:1px solid #DCE3EC;border-radius:12px;padding:16px 16px 18px;box-shadow:0 1px 2px rgba(16,32,64,.06)}
.ob-head{display:grid;grid-template-columns:32px 1fr;gap:2px 10px;align-items:center;margin-bottom:14px}
.ob-head svg{grid-row:span 2;width:30px;height:30px}
.ob-head b{font-size:16px;font-weight:700;color:#122450}
.ob-head small{font-size:12.5px;color:#4A5876}
.ob-steps{list-style:none;margin:0;padding:0;position:relative}
.ob-steps::before{content:"";position:absolute;left:11px;top:12px;bottom:12px;width:2px;background:#DCE3EC}
.ob-steps li{position:relative;display:grid;grid-template-columns:24px 1fr auto;gap:0 12px;align-items:start;padding:0 0 12px;border-radius:8px}
.ob-steps li:last-child{padding-bottom:0}
.ob-n{position:relative;z-index:1;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11.5px;font-weight:800;background:#fff;border:2px solid #C3CDDB;color:#4A5876}
.ob-steps .done .ob-n{background:#21A365;border-color:#21A365;color:#fff}
.ob-steps .cur .ob-n{border-color:#0B2E6F;color:#0B2E6F}
.ob-t{padding-top:2px}
.ob-t b{display:block;font-size:13.5px;font-weight:700;color:#122450;line-height:1.3}
.ob-t small{display:block;font-size:12px;line-height:1.4;color:#4A5876;margin-top:2px}
.ob-steps .done .ob-t b{color:#167A4A}
.ob-steps .cur .ob-t{background:#0B2E6F;border-radius:9px;padding:10px 12px 12px;margin-top:-4px}
.ob-steps .cur .ob-t b{color:#fff}
.ob-steps .cur .ob-t small{color:#C9D6EE}
.ob-btn{display:inline-block;margin-top:9px;background:#fff;color:#0B2E6F;font-size:12px;font-weight:700;padding:6px 10px;border-radius:5px}
.ob-steps .lock .ob-t b{color:#5F6B83}
.ob-lock{width:14px;height:14px;margin-top:5px;color:#8C97AD}
.audit-fix .audit-lab{margin-bottom:12px}
.audit-fix .hl{outline:2px solid var(--spot);outline-offset:3px;border-radius:7px}
.ob-steps .ob-n.hl{outline-offset:2px;border-radius:50%}
.audit-list{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.audit-list button{all:unset;box-sizing:border-box;cursor:pointer;display:block;width:100%;height:100%;padding:13px 14px 15px;border:1.5px solid var(--ui-line);border-radius:12px;background:var(--paper)}
.audit-list button:focus-visible{outline:2px solid var(--spot);outline-offset:2px}
.audit-list .k{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--spot-fill);color:var(--on-spot);font-weight:700;font-size:12.5px;margin-right:6px;vertical-align:1px}
.audit-list .t{font-weight:700;font-size:15.5px;line-height:1.35}
.audit-list .f{display:block;margin-top:8px;font-size:14.5px;line-height:1.45;color:var(--ink-2)}
.audit-list .f b{display:block;color:var(--ink);font-size:12.5px;letter-spacing:.02em}
.audit-list button[aria-pressed="true"]{border:2px solid var(--ink);padding:12.5px 13.5px 14.5px;background:var(--field)}
.audit-list button[aria-pressed="true"] .k{background:var(--caution);color:var(--on-caution)}
@media (hover:hover) and (pointer:fine){.audit-list button:hover{border-color:var(--ink)}}
@media (max-width:980px){.audit-grid{grid-template-columns:1fr}}
@media (max-width:640px){.audit-caps{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:76%;overflow-x:auto;scroll-snap-type:x mandatory;padding:14px}.audit-cap{scroll-snap-align:start}}
.tour-ctl .btn[aria-pressed="true"]{background:var(--ink);color:var(--paper)}
html:not(.js) .tour-ctl,html:not(.js) .tour-top p{display:none}
.tour-item .p b,.audit-list .f b{text-transform:none}

/* ---------- narrative acts and the closing call to action ---------- */
.sec > h2 .act{display:block;font-size:12.5px;line-height:1.3;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--spot);margin-bottom:10px}
.end-cta{margin:72px 0 0;padding:26px 28px 28px;background:var(--field);border-radius:16px;display:grid;gap:8px}
.end-cta p{margin:0;font-size:19px;line-height:1.45;max-width:58ch}
.end-cta .end-mail{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:clamp(20px,2.4vw,26px);font-weight:700;letter-spacing:-.01em}
.end-cta .end-mail a{color:var(--ink);text-decoration-thickness:2px;text-underline-offset:5px;word-break:break-all}
.end-cta .end-mail a:hover{color:var(--spot)}
.end-cta + .next-chap{margin-top:40px}
@media print{.end-cta{display:none}}
.audit-list button{font-size:15.5px;line-height:1.4}
.tour-item{font-size:16px;line-height:1.4}
.tour-item,.audit-list button{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}
.tour-item .h,.audit-list .h{display:block}

/* =================================================================
   Dark theme, beyond the variables. Product surfaces keep the light palette because they
   show real products: the interface rebuilds (with the tour's pins and spotlight drawn on
   them), the rebuilt onboarding checklist, the real captures with their pins, the live
   home screen. Only what surrounds them follows the page: the frame, the tray, the caption.
   ================================================================= */
html[data-theme="dark"] :is(.ui-stage,.ob,.audit-cap .img,.play-frame){
  --paper:#FFFFFF;--field:#EEEFF1;--ink:#161616;--ink-2:#55575B;--rule:#C8CACE;--spot:#2852D6;--spot-fill:#2852D6;
  --on-spot:#FFFFFF;--spot-tint:#E8EEFF;--ui-line:#C8CACE;color-scheme:light}
/* the tray around the rebuilt checklist is the page's own */
html[data-theme="dark"] .audit-fix{background:var(--field)}
/* an image framed inline with the ink takes the quieter frame of the other screens */

/* Mogi (formerly Maison): its logo, a house whose roof has a cat's ears, beside the project name */
.mogi-mark{display:inline-block;width:.78em;height:.78em;vertical-align:-.02em;margin-right:.2em;color:#B4570A}
html[data-theme="dark"] .mogi-mark{color:#F5B33B}

/* ---------- Header logo: a pill made of the E (rounded left end) and the A (rounded right end) ----------
   The E's bars, the A's triangle and notch are holes (SVG masks), so the header shows through.
   On hover (or keyboard focus) the logo folds into its round, as in its round moments (js/ea-alive.js): the bars, the triangle
   and the notch fill in, each half shrinks to its round end (15px) and the two meet in the middle of the logo's place, a blue
   round button. Its eye says where it goes: the triangle points up on the home page (back to top), a house on the other pages
   (home: the triangle as a roof over a square, the A's notch as its door). No label: the link's name is its hidden text (Enguerran, 2026-11-12). */
.top .name.ea{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:64px;height:30px;color:var(--ink);text-decoration:none;transition:color 240ms}
.top .name.ea .ea-c,.top .name.ea .ea-m{color:inherit} /* not the grey of .top span */
.ea-c{flex:none;display:flex;width:30.5px;height:30px;overflow:hidden;transition:width 460ms var(--ease-out)}
.ea-a{justify-content:flex-end}
.ea-c svg{flex:none;display:block;width:30.5px;max-width:none;height:30px;fill:currentColor}
.ea-cut{fill:#000;transform-box:fill-box;transform-origin:50% 50%;transition:transform 300ms var(--ease-out)}
.ea-notch{transform-origin:50% 100%}
/* the A's triangle turns about its centre (js/site.js): towards the cursor, or a turn / a tilt now and then */
.ea-tri{transform-origin:50% 66.7%;transform:rotate(var(--r,0deg));transition:transform 420ms var(--ease-out)}
.ea-tri.ea-spin{animation:ea-spin 1100ms cubic-bezier(.45,0,.2,1.25)}
.ea-tri.ea-tilt{animation:ea-tilt 1400ms ease-in-out}
.ea-tri.ea-peek{animation:ea-peek 1600ms cubic-bezier(.5,0,.2,1)}
.ea-tri.ea-nod{animation:ea-nod 700ms ease-in-out}
@keyframes ea-spin{to{transform:rotate(calc(var(--r,0deg) + 360deg))}}
@keyframes ea-peek{25%,40%{transform:rotate(-90deg)}60%,75%{transform:rotate(90deg)}100%{transform:rotate(0)}}
@keyframes ea-nod{30%{transform:translateY(-1.6px)}55%{transform:translateY(.6px)}100%{transform:none}}
@keyframes ea-tilt{20%{transform:rotate(-28deg)}45%{transform:rotate(22deg)}65%{transform:rotate(-10deg)}80%,100%{transform:rotate(0)}}
.ea-m{display:grid;grid-template-columns:0fr;align-self:stretch;align-items:center;padding:0 1.4325px;transition:grid-template-columns 460ms var(--ease-out),padding 460ms var(--ease-out),background-color 240ms}
.top .name.ea .ea-h{display:inline-flex;align-items:center;gap:7px;overflow:hidden;min-width:0;color:var(--on-spot);font-size:15px;font-weight:700;letter-spacing:0;white-space:nowrap;opacity:0;transition:opacity 160ms}
.ea-ic{display:none} /* the old label's arrow: the round's eye (::after below) took its place */
.top .name.ea:hover,.top .name.ea:focus-visible{color:var(--spot-fill)}
.top .name.ea:hover .ea-c,.top .name.ea:focus-visible .ea-c{width:15px}
.top .name.ea:hover .ea-cut,.top .name.ea:focus-visible .ea-cut{transform:scale(0);animation:none}
.top .name.ea:hover .ea-m,.top .name.ea:focus-visible .ea-m{padding:0}
/* the round's eye, in the middle once the halves have met: the logo's own triangle (same size, same rounded corners: the golden spiral's of 2026-11-15) pointing up; or a house */
.top .name.ea::after{content:"";position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;background:var(--on-spot);pointer-events:none;opacity:0;transform:translateY(3px) scale(.3);transition:opacity 120ms,transform 260ms var(--ease-out);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 10.9017L18.9587 17.0491H11.0413Z' stroke='%23000' stroke-width='1.3526' stroke-linejoin='round'/%3E%3C/svg%3E") center/30px 30px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 10.9017L18.9587 17.0491H11.0413Z' stroke='%23000' stroke-width='1.3526' stroke-linejoin='round'/%3E%3C/svg%3E") center/30px 30px no-repeat}
.top .name.ea-back::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9.4L20.6 14.2H9.4Z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath fill-rule='evenodd' d='M12.1 16H17.9A1.1 1.1 0 0 1 19 17.1V20.5A1.1 1.1 0 0 1 17.9 21.6H12.1A1.1 1.1 0 0 1 11 20.5V17.1A1.1 1.1 0 0 1 12.1 16ZM13.9 21.6V19.5A1.1 1.1 0 0 1 16.1 19.5V21.6Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9.4L20.6 14.2H9.4Z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath fill-rule='evenodd' d='M12.1 16H17.9A1.1 1.1 0 0 1 19 17.1V20.5A1.1 1.1 0 0 1 17.9 21.6H12.1A1.1 1.1 0 0 1 11 20.5V17.1A1.1 1.1 0 0 1 12.1 16ZM13.9 21.6V19.5A1.1 1.1 0 0 1 16.1 19.5V21.6Z'/%3E%3C/svg%3E")}
.top .name.ea:hover::after,.top .name.ea:focus-visible::after{opacity:1;transform:none;transition:opacity 200ms 200ms,transform 420ms var(--ease-out) 200ms}
/* keyboard focus: a ring round the round, not a box round the logo's place */
.top .name.ea:focus-visible{outline:none}
.top .name.ea::before{content:"";position:absolute;left:50%;top:50%;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;pointer-events:none}
.top .name.ea:focus-visible::before{outline:2px solid var(--spot)}
@media (prefers-reduced-motion:reduce){.top .name.ea,.ea-c,.ea-cut,.ea-m,.ea-h,.ea-ic,.top .name.ea::after{transition:none!important}}
/* the « ajusté » logo (19/11/2026): the gap between E and A is 7.5/φ² = 2.865 (the .ea-m padding, 2 × 1.4325px) and the eye sits on the golden line 30/φ² = 11.459 */
/* side by side with the menu, the header lines things up on the text baseline: the logo sat on it, 9px too high. Down 9px, the E's middle bar meets the middle of the links; the menu does not move (19/11/2026) */
@media (min-width:701px){.top .name.ea{top:9px}}

/* The header stays at the top on every page, as on the home page; what sticks below it starts under it */
:root{--hdr:82px}
@media (min-width:701px){
  header.top{position:sticky;top:0;z-index:60;background:color-mix(in srgb,var(--paper) 82%,transparent);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}
  html{scroll-padding-top:calc(var(--hdr) + var(--sub,0px) + 12px)}
  .sec > h2,.handset{top:calc(var(--hdr) + var(--sub,0px) + 20px)}
  .subnav{top:var(--hdr)}
  html .c-atomic .at-right{top:calc(var(--hdr) + 14px)}
  html.js .c-qa__head{top:var(--hdr)}
}
/* Mogi's chapter bar stays reachable while scrolling: under the header on desktop, at the top on phones */
.subnav{position:sticky;top:0;z-index:59;background:color-mix(in srgb,var(--paper) 88%,transparent);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)}
:root:has(.subnav){--sub:47px}
@media (min-width:701px){.subnav{top:var(--hdr)}}
/* Phones, pages with a chapter bar: the header scrolls away (css/cmdk.css gives it position:relative) but keeps a z-index, so the menu card opens above the page.
   Without one, the header's own layer (view-transition-name makes one) sat under the page and the open card showed the title through it (seen 14/11/2026) */
@media (max-width:700px) and (orientation:portrait){html.cmdk:has(.subnav) header.top:not(.home-top){z-index:61}}
@media (max-width:700px){.site-nav{column-gap:18px;font-size:16px}}
@media (max-width:700px){
  .subnav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
  .subnav::-webkit-scrollbar{display:none}
  .subnav > span{display:none}
  .subnav .chap-nav{flex-wrap:nowrap}
}
@media print{.jobs > li{display:block!important}.jobs .when{display:block;font-size:9pt;padding:0;margin:0 0 1pt;color:var(--ink-2)}}

/* ---------- Touch: every link and button of the page gets a hit area of at least 44 × 44 px ----------
   Nothing moves or changes size on screen. Short words and bordered chips get an invisible ::after
   that reaches past them; longer links get padding that the negative margin takes back, so the line
   keeps its height. The interface rebuilds keep their own scale. */
@media (max-width:860px){
  .site-nav a,.chap-nav a,.kit a,.copy,#cv-work a{position:relative}
  .site-nav a::after,.chap-nav a::after,.kit a::after,.copy::after,#cv-work a::after{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:44px;transform:translate(-50%,-50%)}
  .kicker a,.repos small a,.proof a,.cv-head .contact a,.mail a,.end-mail a,.spec a,.fig figcaption a,.principles .proofs a{padding-block:13px;margin-block:-13px}
  .principles .proofs a{display:inline-block}
  .btn{min-height:44px}
  /* the logo: a transparent frame around it, for a bigger touch target */
  .top .name.ea{box-sizing:content-box;padding:7px;margin:-7px}
}

/* five menu entries since Method: tighter on small phones so they stay on one line */
@media (max-width:440px){.site-nav{column-gap:12px}}

/* ---------- Case study: "Go further", the detail behind the story, folded at the end (details/summary) ----------
   Closed, it is one row on the section rule; open, its sections read as usual. A link to a section inside opens it (js/site.js). */
.deep{display:block}
.deep > summary{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:0 40px;align-items:baseline;list-style:none;cursor:pointer}
.deep > summary::-webkit-details-marker{display:none}
.deep-k{display:inline-flex;align-items:center;gap:12px;font-size:30px;font-weight:800;line-height:1.15;letter-spacing:-.01em}
.deep-k::after{content:"";flex:none;width:30px;height:30px;border:1.5px solid var(--ink);border-radius:50%;background:linear-gradient(var(--ink),var(--ink)) center / 12px 1.5px no-repeat,linear-gradient(var(--ink),var(--ink)) center / 1.5px 12px no-repeat;transition:transform 260ms var(--ease-out)}
.deep[open] > summary .deep-k::after{transform:rotate(45deg)}
.deep-d{font-size:19px;line-height:1.5;color:var(--ink-2)}
.deep > summary:hover .deep-k::after{background-color:var(--field)}
.deep > summary:focus-visible{outline:2px solid var(--spot);outline-offset:6px;border-radius:4px}
.deep > .sec:first-of-type{margin-top:56px}
@media (max-width:860px){.deep > summary{grid-template-columns:1fr;gap:10px}.deep-k{font-size:26px}.deep-d{font-size:17px}}
@media print{.deep > summary{display:none}}

/* Phones: on the case studies and the CV the header steps aside while you read down and comes back as soon as you
   scroll up, so "Back" and the menu are always one gesture away (pages with Mogi's chapter bar keep that bar instead) */
@media (max-width:700px){
  html:not(:has(.subnav)) header.top:not(.home-top){position:sticky;top:0;z-index:60;background:color-mix(in srgb,var(--paper) 90%,transparent);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);transition:transform 300ms var(--ease-out)}
  html:not(:has(.subnav)) header.top:not(.home-top).hid{transform:translateY(-110%)}
}
@media (max-width:700px) and (prefers-reduced-motion:reduce){html header.top{transition:none}}

/* ---------- tour bar: steps, before / after and play sit right under the screen (10 Nov 2026) ---------- */
.tour > .shot{scroll-margin-top:12px}
.tour-bar{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:12px auto 0;padding:8px 10px;border:1.5px solid var(--ui-line);border-radius:14px;background:var(--paper)}
.tour-steps{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 auto;min-width:0}
.tour-step{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 12px 6px 7px;border-radius:999px;border:1.5px solid transparent;font-size:15px;font-weight:600;color:var(--ink-2)}
.tour-step .n{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;border:1.5px solid var(--ui-line);color:var(--ink);font-weight:700;font-size:14px}
.tour-step .t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:22ch}
.tour-step[aria-pressed="true"]{background:var(--field);border-color:var(--ink);color:var(--ink)}
.tour-step[aria-pressed="true"] .n{background:var(--spot-fill);border-color:var(--spot-fill);color:var(--on-spot)}
.tour-step:focus-visible{outline:2px solid var(--spot);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.tour-step:hover{color:var(--ink)}.tour-step:hover .n{border-color:var(--ink)}}
.tour-bar .tour-ctl{margin-left:auto;flex:none}
.tour-barred .tour-top p{display:none}
.tour-barred .tour-panel{margin-top:22px}
.tour-step:not([aria-pressed="true"]) .t{display:none}.tour-step:not([aria-pressed="true"]){padding:6px 7px}
@media (max-width:620px){.tour-bar{padding:6px 8px;gap:8px}.tour-step .t{display:none}.tour-step{padding:6px 7px}.tour-bar .tour-ctl{margin-left:0;width:100%;justify-content:space-between}}

/* ---------- how the team worked: a static summary of the handbook (10 Nov 2026) ---------- */
.th-grid{display:grid;gap:34px}
.th-block h3{font-size:19px;margin:0 0 14px;padding-top:14px;border-top:2px solid var(--ink);letter-spacing:-.005em}
.th-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 28px;margin:0 0 18px}
.th-facts dt{font-size:13px;font-weight:700;color:var(--ink-2)}
.th-facts dd{margin:2px 0 0;font-size:15px;line-height:1.45}
.th-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.th-steps li{display:flex;flex-direction:column;gap:6px;padding:12px 12px 14px;border:1.5px solid var(--ui-line);border-radius:12px;background:var(--paper);font-size:14.5px;line-height:1.4}
.th-steps .n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--ink);color:var(--paper);font-weight:700;font-size:13px}
.th-steps b{font-size:15.5px;line-height:1.25}
.th-steps .col{align-self:flex-start;font-weight:600;font-size:12px;line-height:1;letter-spacing:.03em;text-transform:uppercase;padding:5px 7px 4px;border-radius:6px;background:var(--field);color:var(--ink)}
.th-steps .who{color:var(--ink-2);font-size:13.5px}
.th-scroll{overflow-x:auto}
.th-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
.th-table th,.th-table td{text-align:left;vertical-align:top;padding:11px 16px 12px 0;border-bottom:1px solid var(--ui-line)}
.th-table thead th{font-size:13px;font-weight:700;color:var(--ink-2);padding-top:0}
.th-table tbody th{font-weight:700;white-space:nowrap}
.th-sub{font-size:13px;font-weight:700;color:var(--ink-2);margin:22px 0 10px}
.th-half{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px 28px;font-size:15px;line-height:1.45}
.th-half li{display:flex;flex-direction:column;gap:2px}
.th-half .when{color:var(--ink-2);font-size:13.5px}
.th-intro{margin:0 0 12px;color:var(--ink-2);font-size:15px}
.th-qalist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;align-items:start}
.th-d{border-bottom:1px solid var(--ui-line)}
.th-d summary{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer;list-style:none;font-size:15.5px}
.th-d summary::-webkit-details-marker{display:none}
.th-d summary::after{content:"+";margin-left:8px;font-weight:700;font-size:18px;line-height:1;color:var(--ink-2)}
.th-d[open] summary::after{content:"−"}
.th-d summary:focus-visible{outline:2px solid var(--spot);outline-offset:2px}
.th-d .n{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;border:1.5px solid var(--ink);font-weight:700;font-size:13px}
.th-d .nm{font-weight:700}
.th-d .ct{margin-left:auto;color:var(--ink-2);font-size:13.5px;white-space:nowrap}
.th-d ul{margin:0 0 14px 36px;padding:0 0 0 18px;font-size:15px;line-height:1.5}
.th-d li{margin:4px 0}
@media (max-width:1000px){.th-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.th-steps{grid-template-columns:1fr}.th-qalist{grid-template-columns:1fr}.th-table{min-width:640px}.th-d ul{margin-left:0}.th-d .ct{font-size:12.5px}}

@media (max-width:620px){.tour-bar .tour-ctl .btn{padding:7px 11px;font-size:14px}.tour-bar .tour-mode button{padding:7px 11px;font-size:14px}.tour-bar .tour-ctl{gap:8px}}
.th-intro{display:none}

/* tour bar v2: one button walks the tour (10 Nov 2026) */
.tour-barred .tour-ctl{display:none}
.tour-nav{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
.tour-go{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:11.5em;padding:8px 20px;border-radius:999px;background:var(--ink);color:var(--paper);font-size:15.5px;font-weight:700;text-align:center}
.tour-go.alt{background:var(--paper);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.tour-prev{all:unset;box-sizing:border-box;cursor:pointer;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--ui-line);font-size:18px;color:var(--ink)}
.tour-prev:disabled{opacity:.35;cursor:default}
.tour-go:focus-visible,.tour-prev:focus-visible{outline:2px solid var(--spot);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.tour-prev:not(:disabled):hover{border-color:var(--ink)}.tour-go:hover{filter:brightness(1.15)}}
@media (max-width:620px){.tour-nav{width:100%;margin-left:0}.tour-go{flex:1 1 auto;min-width:0}}

/* ---------- Micro-interactions (10 Nov 2026): quick, quiet, the same everywhere ----------
   Only under html.motion (no reduced-motion setting); hover effects have the same effect on keyboard focus.
   1 the press (buttons sink a little, js/site.js), 2 the copy button, 3 the theme switch, 4 links in running
   text, 5 the language link, 6 the case-study cards. */
/* 2 · copy: the button turns into "Copied ✓", the tick draws itself */
.copy{min-width:var(--copy-w,auto);transition:background-color 180ms,color 180ms}
.copy.is-done{background:var(--ink);color:var(--paper)}
.copy .cp-tick{display:inline-block;width:.95em;height:.95em;margin:0 .35em -.12em 0;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.motion .copy .cp-tick path{stroke-dasharray:20;stroke-dashoffset:20;animation:cp-draw 380ms var(--ease-out) 60ms forwards}
@keyframes cp-draw{to{stroke-dashoffset:0}}
.copy .cp-tick path{stroke-dashoffset:0}
/* 3 · theme: the new icon turns in (the page itself is revealed in a circle from the switch, js/site.js) */
.motion.tt-anim .theme-toggle svg{animation:tt-in 460ms var(--ease-out)}
@keyframes tt-in{from{transform:rotate(-120deg) scale(.4);opacity:0}}
html.theme-vt::view-transition-old(root),html.theme-vt::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.theme-vt::view-transition-new(root){z-index:2}
/* 4 · links in running text: a faint line at rest, a full line drawn from the left on hover or focus */
.motion :is(p,li,dd,td,figcaption) > a:not([class]):not(:is(.site-nav,.chap-nav,.kit,.work,.toc,.mail,.foot,.end-cta) *){text-decoration-color:color-mix(in srgb,currentColor 38%,transparent);background:linear-gradient(currentColor,currentColor) 0 100% / 0 2px no-repeat;transition:background-size 280ms var(--ease-out),text-decoration-color 200ms}
.motion :is(p,li,dd,td,figcaption) > a:not([class]):not(:is(.site-nav,.chap-nav,.kit,.work,.toc,.mail,.foot,.end-cta) *):is(:hover,:focus-visible){background-size:100% 2px;text-decoration-color:transparent}
/* 5 · the language link: no roll any more (14/11/2026, Enguerran: the word came back as itself, like a switch that did nothing); it underlines like the other menu links.
   Same look as before: a grey word (the rolling copy sat in spans, grey through .top span) and a blue line on hover; html…li.lang a[href] outweighs the phone menu rule of css/cmdk.css */
html header.top .site-nav li.lang a[href]{color:var(--ink-2);background-image:linear-gradient(var(--spot),var(--spot))}
/* 6 · case-study cards: the same answer to the pointer and to the keyboard */
@media (hover:hover) and (pointer:fine){
  .motion .toc a > img{transition:transform 420ms var(--ease-out),clip-path 1000ms var(--ease-in-out)}
}
.motion .toc a:is(:hover,:focus-visible) > img{transform:translateY(-3px)}
.motion .work a:focus-visible .pic img{transform:scale(1.03)}
.motion .toc a:focus-visible h3{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

/* ---------- Pain-point tour v3 (10 Nov 2026): the screen on the left, the pain points on the right ----------
   Everything on one screen: the list reads at a glance, the open pain point shows its problem and its fix,
   and one button walks on. On a phone the list sits under the screen. js/site.js adds .tour-side. */
.tour-side .tour-panel{margin-top:18px;border-top:0;padding-top:0}
.tour-side .tour-top{display:block;margin-bottom:12px}
.tour-side .tour-top h3{margin:0 0 12px}
.tour-side .tour-top p{display:none}
.tour-side .tour-ctl{display:flex;justify-content:space-between;gap:10px;margin:0}
.tour-side .tour-ctl .tour-whole{display:none}
.tour-side .tour-list{grid-template-columns:1fr;gap:8px}
.tour-side .tour-list > li{border:1.5px solid var(--ui-line);border-radius:12px;background:var(--paper)}
.tour-side .tour-list > li.open{border:2px solid var(--ink);background:var(--field)}
.tour-side .tour-item{border:0;border-radius:10px;background:transparent;padding:13px 16px;min-height:52px;justify-content:center}
.tour-side .tour-item[aria-pressed="true"]{border:0;padding:15px 16px 4px;background:transparent}
.tour-side .tour-item .p{display:none}
.tour-side .tour-item[aria-pressed="true"] .p{display:block}
.tour-side .tour-list > li:not(.open):hover{border-color:var(--ink)}
.tour-acts{display:flex;padding:8px 16px 16px}
.tour-side .tour-go{flex:1 1 auto;min-width:0}
@media (min-width:1000px){
  .tour-side{display:grid;grid-template-columns:minmax(0,1fr) 360px;column-gap:28px;align-items:start}
  .tour-side > .shot{grid-column:1;grid-row:1;margin:0;width:100%}
  .tour-side > figcaption{grid-column:1;grid-row:2}
  .tour-side > .tour-panel{grid-column:2;grid-row:1 / span 2;margin-top:0;position:sticky;top:calc(var(--hdr,82px) + 16px)}
}
.tour-side .tour-list{grid-auto-rows:auto;align-items:start}
.tour-side .tour-item{height:auto;justify-content:flex-start}
@media (max-width:999px){
  .tour-side{display:flex;flex-direction:column}
  .tour-side > figcaption{order:3;margin-top:14px}
}
.tour-side > .shot{width:100%;box-sizing:border-box}

/* =================================================================
   The stage's universe beyond the header (Enguerran, 2026-11-12): the lights of the hero's stage spill onto every page. One fixed layer
   sits between the page colour (carried by the html) and the content (the body is transparent): blue from the top left, violet from the
   right, cyan from the bottom left, as the stage's spots and washes; in the dark theme the edges darken as round the stage. In the light
   theme the same lights are barely there. The glass header lets them through a little more in the dark theme (74%: nav text still 7:1 over
   a white screenshot passing under it); left clear at the very top of the home page. Screen only.
   ================================================================= */
@media screen{
  body{background:transparent}
  body::before{content:'';position:fixed;left:0;top:0;width:100%;height:100vh;height:100lvh;z-index:-1;pointer-events:none;background:
    radial-gradient(ellipse 60% 50% at 10% -8%,rgba(60,107,255,.08),rgba(60,107,255,0) 70%),
    radial-gradient(ellipse 48% 42% at 94% 34%,rgba(140,92,255,.07),rgba(140,92,255,0) 70%),
    radial-gradient(ellipse 50% 38% at 28% 108%,rgba(94,225,255,.06),rgba(94,225,255,0) 70%)}
  html[data-theme="dark"] body::before{background:
    radial-gradient(ellipse 60% 50% at 10% -8%,rgba(60,107,255,.24),rgba(60,107,255,0) 70%),
    radial-gradient(ellipse 48% 42% at 94% 34%,rgba(140,92,255,.15),rgba(140,92,255,0) 70%),
    radial-gradient(ellipse 50% 38% at 28% 108%,rgba(94,225,255,.09),rgba(94,225,255,0) 70%),
    radial-gradient(ellipse 130% 95% at 50% 45%,rgba(2,3,10,0) 55%,rgba(2,3,10,.55) 100%)}
  html[data-theme="dark"] header.top:not(.at-top){background-color:color-mix(in srgb,var(--paper) 74%,transparent)}
}

/* 14 Nov 2026: the menu has one more entry (Experience / Parcours). On tablets it still fits on one line: tighter, one size down
   (the same size as on phones). */
@media (min-width:701px) and (max-width:899px){.site-nav{column-gap:16px;font-size:16px}.site-nav .lang{padding-left:14px}}

/* =================================================================
   Nothing is blurred behind the header any more (Enguerran, 2026-11-14: "le flou met du temps à se calculer avant de s'appliquer").
   The glass header (74 to 90 % of the page colour over a 16 px blur) and the bar under it (88 %, blurred too) had to be recomputed
   on every frame of a scroll. On the case studies, full of white screenshots on a dark page, the page showed through sharp for an
   instant before the blur caught up, and the two strips, of different strengths, flashed as each picture passed. Both are opaque now:
   nothing to compute while the page scrolls. The stage's lights, which the glass let through, are painted on them at the strength it
   gave them (26 % for the header in the dark theme, 18 % in the light one, 12 % for the bar) and in the place of the fixed layer
   behind the page (body::before, above), so at rest they look as they did. The home page's header keeps its glass over the 3D stage
   (.home-top, css/home.css). Screen only.
   ================================================================= */
@media screen{
  :root{
    --lights-hdr:radial-gradient(ellipse 60% 50% at 10% -8%,rgba(60,107,255,.0144),rgba(60,107,255,0) 70%),radial-gradient(ellipse 48% 42% at 94% 34%,rgba(140,92,255,.0126),rgba(140,92,255,0) 70%);
    --lights-sub:radial-gradient(ellipse 60% 50% at 10% -8%,rgba(60,107,255,.0096),rgba(60,107,255,0) 70%),radial-gradient(ellipse 48% 42% at 94% 34%,rgba(140,92,255,.0084),rgba(140,92,255,0) 70%)}
  html[data-theme="dark"]{
    --lights-hdr:radial-gradient(ellipse 60% 50% at 10% -8%,rgba(60,107,255,.0624),rgba(60,107,255,0) 70%),radial-gradient(ellipse 48% 42% at 94% 34%,rgba(140,92,255,.039),rgba(140,92,255,0) 70%),radial-gradient(ellipse 130% 95% at 50% 45%,rgba(2,3,10,0) 55%,rgba(2,3,10,.143) 100%);
    --lights-sub:radial-gradient(ellipse 60% 50% at 10% -8%,rgba(60,107,255,.0288),rgba(60,107,255,0) 70%),radial-gradient(ellipse 48% 42% at 94% 34%,rgba(140,92,255,.018),rgba(140,92,255,0) 70%),radial-gradient(ellipse 130% 95% at 50% 45%,rgba(2,3,10,0) 55%,rgba(2,3,10,.066) 100%)}
  .subnav{background-color:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none;background-image:var(--lights-sub);background-repeat:no-repeat;background-size:100% 100vh;background-size:100% 100lvh;background-position:0 0}
}
@media screen and (min-width:701px){
  .subnav{background-position:0 calc(-1 * var(--hdr))}
  header.top:not(.home-top),html[data-theme="dark"] header.top:not(.home-top):not(.at-top){background-color:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none;background-image:var(--lights-hdr);background-repeat:no-repeat;background-size:100% 100vh;background-size:100% 100lvh;background-position:0 0}
}
@media screen and (max-width:700px){
  html:not(:has(.subnav)) header.top:not(.home-top),html[data-theme="dark"]:not(:has(.subnav)) header.top:not(.home-top):not(.at-top){background-color:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none;background-image:var(--lights-hdr);background-repeat:no-repeat;background-size:100% 100vh;background-size:100% 100lvh;background-position:0 0}
}

/* the methods list, after « At a glance » rather than in the first screen (17/11/2026) */
.glance .kit.kit-after{margin-top:clamp(22px,2.4vw,34px)}

/* ---------- Session replay consent (js/consent.js, 19/11/2026): a card at the bottom left, both answers alike ---------- */
.consent{position:fixed;left:24px;bottom:24px;z-index:60;max-width:400px;padding:20px 20px 18px;background:var(--paper);color:var(--ink);border:1.5px solid var(--ink);border-radius:18px;box-shadow:0 10px 30px rgba(22,22,22,.14);opacity:0;transform:translateY(12px);transition:opacity .22s var(--ease-out,ease),transform .22s var(--ease-out,ease)}
.consent.in{opacity:1;transform:none}
.consent p{margin:0 0 16px;font-size:16px;line-height:1.45}
/* the vote: the E and the A of the logo are the two answers, same size, same place */
.consent-tag{display:inline-block;margin-bottom:10px;padding:4px 9px;border-radius:999px;background:var(--spot-fill);color:var(--on-spot);font:600 12px/1.1 var(--mono)}
.consent-vote{display:flex;gap:10px}
.consent-vote button{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 8px;border:1.5px solid var(--ink);border-radius:16px;background:var(--paper);color:var(--ink);font:600 15px/1.2 var(--font);cursor:pointer}
.consent-vote button:hover{background:var(--field)}
.consent-vote button:hover b{text-decoration:underline;text-underline-offset:3px}
.consent-vote small{font-weight:400;font-size:13px;color:var(--ink-2)}
.consent-chr{display:block;height:40px;width:auto;overflow:visible;margin-bottom:2px;transition:transform .2s var(--ease-out,ease)}
.consent-vote button:hover .consent-chr{transform:translateY(-3px) rotate(-4deg)}
.consent-vote button:active{transform:scale(.97)}
.c-e{fill:var(--spot-fill)} .c-eye{fill:#fff} .c-a{fill:var(--ink)} .c-aeye{fill:var(--paper)}
.consent.in .consent-chr{animation:c-bob 2.4s ease-in-out infinite}
.consent.in [data-v=yes] .consent-chr{animation-delay:-1.2s}
.consent.in .c-blink{animation:c-blink 4.2s infinite;transform-origin:center;transform-box:fill-box}
.consent.in [data-v=yes] .c-blink{animation-delay:-2s}
@keyframes c-bob{0%,100%{translate:0 0}50%{translate:0 -3px}}
@keyframes c-blink{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.1)}}
.consent-note{max-width:2400px;margin:0 auto;padding:28px clamp(20px,4vw,72px) 40px;font-size:14px;color:var(--ink-2)}
.consent-change{font:inherit;color:inherit;background:none;border:0;padding:6px 2px;min-height:24px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.consent-change:hover{color:var(--ink)}
@media (max-width:700px){.consent{left:16px;right:16px;bottom:16px;max-width:none}}
