/* Case pages, modern look (the default since 2026-11-24; ?look=old = the one before). Laid over case.css, which is that one, untouched.
   The wall, grid and header are the quiet homepage's; pictures lie on the wall as they are. At rest everything is
   plain and straight; the hand shows up in three places only: the opening picture (drawn first, then real: modern.js),
   lines that are drawn when you hover, and the orange pen at the very end. ?h=serif = titles in Inria Serif bold. */
html[data-look="modern"] {
  --paper: #f4f4f2; --ink: #111;
  --accent: #ec5a2c;
  --plate: color-mix(in srgb, var(--ink) 7%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 16%, var(--paper));
  --text: color-mix(in srgb, var(--ink) 86%, var(--paper));
  --soft: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --title: 400 1em "Jost", "Futura", system-ui, sans-serif;
  --e: 22px; --max: 1920px; --m: max(var(--e), (100vw - var(--max)) / 2 + var(--e)); --g: 20px; --gut: var(--m);   /* the page in a box at most --max wide, in the middle (case.js) */
  --col: 640px; --wide: none; --pic-r: 6px; --pic-shadow: none;
  --fs-xs: 12px; --fs-sm: 12px; --fs-body-lg: 18px; --fs-md: 20px; --fs-lg: 28px; --fs-call: clamp(26px, 2.2vw, 32px); --fs-xl: 36px;
  --fs-2xl: clamp(36px, 4.9vw, 72px);
  --page-top: 88px; --section-gap: 168px; --block-gap: 56px; --head-after: 28px; --cap-gap: 12px; --head-gap: 0px;
  --toc-dy: clamp(48px, 20.75vh - 107px, 240px);   /* contents rail nudged down with the window's height: Jacky's 80px at ~902 high, 152px at 1249 (2026-11-30, tuned at #toc) */
  --rise-dur: 1s;
}
html[data-look="modern"][data-wide="1600"] { --max: 1600px; }
html[data-look="modern"][data-wide="2240"] { --max: 2240px; }
html[data-look="modern"][data-wide="edge"] { --m: var(--e); }
html[data-look="modern"][data-h="serif"] { --title: 700 1em "Inria Serif", Georgia, serif; }
/* Lights off (the homepage's switch, kept for the tab in sessionStorage "lights", read in each page's <head>): the homepage's
   dark wall, and its brighter text tone as the ink, so titles and body read as the homepage's words do with the lights off */
html[data-look="modern"].lights-off {
  --paper: #020d22; --ink: color-mix(in srgb, #9e9d9a 35%, #f4f5f7);
  /* the second tone (captions, labels, contents): 62% sank into the navy (about 5:1, Jacky, 2026-11-30); 78% is about 7.5:1,
     as the homepage's second tone */
  --soft: color-mix(in srgb, var(--ink) 78%, var(--paper));
  color-scheme: dark;
}
html[data-look="modern"] body::before, html[data-look="modern"] .bar::before { content: none; }

/* ---- type ---- */
html[data-look="modern"] :is(.t-h1, .t-h2, .t-h3) { font: var(--title); text-wrap: balance; }
html[data-look="modern"] .t-h1 { font-size: var(--fs-2xl); line-height: 1.04; letter-spacing: -.025em; }
html[data-look="modern"] .t-h2 { font-size: var(--fs-xl); line-height: 1.12; letter-spacing: -.015em; }
html[data-look="modern"] .t-h3 { font-size: var(--fs-md); line-height: 1.3; letter-spacing: -.005em; }
html[data-look="modern"][data-h="serif"] .t-h1 { font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -.015em; }
/* body: 300, as in About, so it sits under the titles (400) by weight; 400 made the two compete */
html[data-look="modern"] :is(.t-body-lg, .t-body) { font-weight: 300; line-height: 1.55; }
html[data-look="modern"] .t-note { font-weight: 300; line-height: 1.5; }
html[data-look="modern"] .t-quote { font: 400 var(--fs-lg)/1.2 var(--serif); letter-spacing: -.005em; }
html[data-look="modern"] .t-pull { font: var(--title); font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -.015em; }
/* a callout on its own between two sections: read as a title, wider than the words, stopping where the page title does (column 10) */
html[data-look="modern"] .alone .pull { width: calc((100% - 8 * var(--g)) / 9 * 7 + 6 * var(--g)); max-width: 864px; }
html[data-look="modern"] .alone .pull .t-pull { font-size: var(--fs-call); line-height: 1.2; }
html[data-look="modern"] .alone.long .pull .t-pull { text-wrap: pretty; }
html[data-look="modern"] :is(.t-caps, .t-spec, .t-caption, .t-plain) { font-size: 12px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; }
html[data-look="modern"] .t-caption { text-transform: none; letter-spacing: 0; }

/* ---- header: the homepage's, on the same columns (1, 4, 11) ---- */
html[data-look="modern"] .bar { display: block; padding: var(--e) var(--m); background: var(--paper); transition: transform .45s cubic-bezier(.22,1,.36,1); }
html[data-look="modern"] .bar > :is(.name, .back, .progress) { visibility: hidden; }   /* until modern.js puts its own header in */
html[data-look="modern"] .bar.away { transform: translateY(-100%); }   /* scrolling down; back as soon as you scroll up */
html[data-look="modern"] .bar:focus-within { transform: none; }
.mh { --hs: clamp(12px, 6px + .667vmin, 16px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); font: 400 var(--hs)/calc(var(--hs) * 4 / 3) var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.mh > * { margin-block: calc(var(--hs) * -.25); white-space: nowrap; }
.mh a { text-decoration: none; color: inherit; }
.mh .who { grid-column: 1 / span 3; justify-self: start; }
.mh .at { grid-column: 4 / span 6; }
/* Back: the Work page's, Lab's and About's mono pill (crumple/src/grid.js .wg-back), 32px = the header's two lines (2026-11-30, Jacky) */
.mh .out { grid-column: 11 / -1; justify-self: start; align-self: start; margin-block: 0; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 11px;
  border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--paper); transition: opacity .15s; }
/* filled at rest on the case pages only, so it reads as the way out (Jacky, 2026-11-30); hover: the arrow nudges, a touch lighter */
html:not(.touch) .mh .out:hover { opacity: .82; }
.mh .out:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.mh .out:hover svg { animation: out-nudge 1.2s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes out-nudge { 50% { transform: translateX(-3px); } }
.mh :is(.who, .at) span { display: block; }
.mh .at time { display: block; }
.mh :is(.who span + span, .at time) { color: var(--soft); }   /* second lines in the second tone, as on the homepage */
.mh .at .narrow { display: none; }
@media (max-width: 760px) { .mh .at .wide { display: none; } .mh .at .narrow { display: block; } }
.mh .hand-ul { bottom: -7px; height: 8px; }
.mh .hand-ul path { transition: stroke-dashoffset .18s ease-in; }
.mh a:focus-visible { outline: none; }
.mh .who:is(:hover, :focus-visible) { color: var(--accent); } .mh .who:is(:hover, :focus-visible) span { color: inherit; }   /* the name is the way home (as on the homepage and the Lab page) */

/* ---- page: 12 columns; words and pictures from column 4, under the header's second block ---- */
html[data-look="modern"] main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; padding-inline: var(--m); }
html[data-look="modern"] main > * { grid-column: 4 / -1; min-width: 0; }
html[data-look="modern"] .wide { max-width: none; }
html[data-look="modern"] :is(section, .cluster, .alone) { align-items: flex-start; justify-content: flex-start; }

html[data-look="modern"] .intro { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; gap: 72px var(--g); }
html[data-look="modern"] :is(.overview, .heading) { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; max-width: none; gap: 0 var(--g); }
html[data-look="modern"] .overview { row-gap: 64px; }
html[data-look="modern"] .corner { display: none; }   /* the number is in the header */
html[data-look="modern"] h1.t-h1 { grid-column: 4 / span 7; max-width: 11em; }   /* stops at column 10, or sooner on a wide screen: two lines for every title, with air on its right */
html[data-look="modern"] .details { grid-column: 4 / -1; }
html[data-look="modern"] .details > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html[data-look="modern"] .rows { display: flex; flex-wrap: wrap; gap: 24px var(--g); letter-spacing: 0; }
html[data-look="modern"] .rows li { display: flex; flex-direction: column; gap: 4px; padding: 0; flex: 1 1 140px; }
html[data-look="modern"] .rows .k { text-transform: uppercase; letter-spacing: .04em; }
html[data-look="modern"] .rows .v { font: 400 16px/1.4 var(--sans); text-transform: none; }
html[data-look="modern"] .intro > figure { grid-column: 1 / -1; }

/* ---- pictures: on the wall as they are. They come framed already (a window on a desktop, a board, a slide), so a plate
   behind them was a frame round a frame (tried, taken off 2026-11-24). A hairline keeps the near-white ones from melting
   into the wall; a cut-out has its own shadow, and its see-through margin is pulled out past the column (modern.js) ---- */
html[data-look="modern"] figcaption { text-align: left; }
html[data-look="modern"] :is(figure:not(.slides) .frame :is(img.solid, video), :is(.grid, .cards) img.solid) { outline: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); outline-offset: -1px; }
html[data-look="modern"] .intro > figure .frame :is(img, video) { outline: 0; }
html[data-look="modern"] .frame img { max-width: none; }
html[data-look="modern"] .phones .frame img { width: 108%; margin-left: -2.7%; }
html[data-look="modern"] .intro > figure :is(img, video) { border-radius: 0; }
html[data-look="modern"] .marked { width: 100%; max-width: 1240px; }
html[data-look="modern"] .compare { max-width: clamp(640px, (100vh - 140px) * 1.407, 1520px); }   /* all of it on screen while you drag */
html[data-look="modern"] .compare .frame { outline: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); outline-offset: -1px; }
html[data-look="modern"] .compare .frame img { outline: 0 !important; border-radius: 0; box-shadow: none; }
html[data-look="modern"] .pair { gap: var(--g); width: 100%; }
html[data-look="modern"] .work { grid-template-columns: 3fr 6fr; gap: var(--g); align-items: start; }
html[data-look="modern"] .works { gap: 72px; }
html[data-look="modern"] .work > div { padding-right: 24px; }
html[data-look="modern"] section > figure.col { max-width: 100%; }
html[data-look="modern"] .cluster figure.col { max-width: 100%; }
html[data-look="modern"] .strip, html[data-look="modern"] .strip.slides { width: calc(100% + var(--m)); margin-left: 0; }
html[data-look="modern"] .strip .pan { padding-inline: 0 var(--m); margin-left: 0; }
html[data-look="modern"] .strip.slides .pan { padding-inline: 0 calc(100% - var(--slide)); }
html[data-look="modern"] .strip.scrolled .pan { mask-image: none; }
html[data-look="modern"] :is(.strip .pan-btns, .slides figcaption, .slides-foot) { margin-left: 0; }
html[data-look="modern"] .slides-foot { max-width: calc(100% - var(--m)); }

/* the opening picture: its drawing lies over it (modern.js) */
html[data-look="modern"] .intro > figure .frame:not(.mk, .plain) > * { visibility: hidden; }   /* so the real picture doesn't flash before its sketch */
.mk { position: relative; }
html[data-look="modern"] .mk-sketch { position: absolute; inset: -1px; background: var(--plate); pointer-events: none;
  clip-path: inset(0 0 0 0); transition: clip-path 1.3s cubic-bezier(.65,0,.2,1); }
html[data-look="modern"] .mk-sketch canvas { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
html[data-look="modern"] .mk-sketch canvas.on { visibility: visible; }
html[data-look="modern"] .mk.real .mk-sketch { clip-path: inset(0 0 0 100%); }
html[data-look="modern"] .mk.done .mk-sketch { display: none; }

/* ---- straight at rest, drawn on hover ---- */
/* the line under the one you're on: the straight one goes and the brush one is drawn in its place */
html[data-look="modern"] .acc details { position: relative; border-top: 1px solid var(--line); transition: border-color .2s ease; }
html[data-look="modern"] .acc details:has(> summary:is(:hover, :focus-visible)) + details { border-top-color: transparent; }
html[data-look="modern"] .acc:has(> details:last-of-type > summary:is(:hover, :focus-visible)) { border-bottom-color: transparent; }
html[data-look="modern"] .acc summary { position: static; }
html[data-look="modern"] .acc summary .hand-rule { top: auto; bottom: -5px; }
html[data-look="modern"] .acc { border-bottom: 1px solid var(--line); padding-bottom: 0; transition: border-color .2s ease; }
html[data-look="modern"] .acc > .hand-rule { display: none; }
html[data-look="modern"] .acc summary { padding: 16px 0; grid-template-columns: 34px 1fr 14px; }
html[data-look="modern"] .acc .body { padding: 0 0 32px 42px; }
html[data-look="modern"] .acc summary .hand-rule path { stroke-dashoffset: 1; transition: stroke-dashoffset .2s ease-in; }
html[data-look="modern"] .acc summary:is(:hover, :focus-visible) .hand-rule path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s cubic-bezier(.3,.6,.3,1); }
html[data-look="modern"] .acc-tools { margin-bottom: 4px; }
html[data-look="modern"] .chips { gap: 0; }
html[data-look="modern"] .chips li { border: 0; padding: 0; color: var(--soft); }
html[data-look="modern"] .chips li + li::before { content: "/"; padding: 0 10px; }
html[data-look="modern"] blockquote { padding-left: 1.5em; max-width: 720px; }
html[data-look="modern"] .qm-open { width: 1.1em; height: .76em; top: .2em; }
html[data-look="modern"] .qm-close { margin-left: .5em; vertical-align: .02em; }   /* a graphic, not a raised mark: on the line, clear of the word (Jacky, 2026-11-30: raised and .2em off it, it sat on the words) */
html[data-look="modern"] .pull { align-items: flex-start; text-align: left; gap: 0; }
html[data-look="modern"] .pull > .t-caps { margin-bottom: 16px; }
html[data-look="modern"] .pull-rule { display: none; }
html[data-look="modern"] :is(.pan-btn, .gate-field) .back-box { filter: none !important; }
html[data-look="modern"] .stat-rule { display: none; }
html[data-look="modern"] .stats li { border-top: 1px solid var(--line); padding-top: 16px; }
html[data-look="modern"] .stats { width: 100%; }
/* numbers and quotes in the same two columns as short points (textcols) */
html[data-look="modern"] :is(.stats.two, .quotes.side) { max-width: 1240px; column-gap: calc(var(--g) * 2); width: 100%; }
html[data-look="modern"] .quotes.side blockquote { padding: calc(.76em + 16px) 24px 0 0; text-wrap: pretty; align-self: start; }
html[data-look="modern"] .quotes.side .qm-open { top: 0; }

/* ---- contents: in the empty first columns, where the header's name is ---- */
html[data-look="modern"] .toc { left: var(--m); top: calc(var(--e) * 2 + 32px + var(--page-top) - 10px + var(--toc-dy, 0px)); transform: none; gap: 0; font: 400 12px/16px var(--mono); letter-spacing: .04em; }   /* under the header (2 × edge + Back's 32), as far down as the page's words start; - the first link's 10px padding; --toc-dy = Jacky's nudge, tuned at #toc (toc-panel.js) */
html[data-look="modern"][data-toc="third"] .toc { top: 33vh; }
html[data-look="modern"][data-toc="center"] .toc { top: 50%; transform: translateY(-50%); }
html[data-look="modern"] .toc a { gap: 16px; padding: 10px 0; }   /* 20 between lines (the gutter): room for the underline, and no dead strip between links */
html[data-look="modern"] .toc .hand-ul { bottom: -7px; height: 8px; }
html[data-look="modern"] section > .head .label { margin-bottom: 12px; color: var(--soft); }   /* 01 Background */
html[data-look="modern"] section > .head.same .label span + span { display: none; }   /* the title says the same: the number alone */
html[data-look="modern"] .cluster.tight > p + .accs { margin-top: calc(24px - var(--cluster-tight)); }   /* a paragraph and the list it opens ("the following…:") are one thing */
html[data-look="modern"] .textcols { column-gap: calc(var(--g) * 2); }
html[data-look="modern"] .textcols > div { border-top: 1px solid var(--line); padding-top: 16px; }
html[data-look="modern"] .cards { gap: 40px var(--g); }
html[data-look="modern"] .cards.n-2 { row-gap: 56px; }
html[data-look="modern"] :is(.textcols, .card) p { max-width: 34em; }
html[data-look="modern"] :is(.grid:not(:has(.cols-1)), .cards, .textcols) { max-width: 1240px; }   /* photographs (small files) and short words: no use going wider */
html[data-look="modern"] .toc .hand-ul path { stroke: var(--ink); }

/* the last line and the roll side by side (2026-11-30, Jacky): the roll first, as the thing to press, the line beside it, both on one middle */
html[data-look="modern"] .end { flex-direction: row; align-items: center; gap: 20px; --end-roll: 64px !important; --end-text: 22px !important; --end-above: 144px !important; --end-below: 144px !important; }   /* over END's inline values: as much room over it as under it, so it stands on its own between the words and the footer (Jacky, 2026-11-30: 180 over and 120 under read as off) */
html[data-look="modern"] .end .home { display: none; }   /* the roll went (Jacky, 2026-11-30: the footer under it already says Work); the line stands alone */
html[data-look="modern"] .end .thanks { text-align: left; margin: 0; }
html[data-look="modern"] .say { justify-items: start; }   /* its code line on hover stays on the left too, not in the middle of the plain line's width */
@media (max-width: 760px) { html[data-look="modern"] .end { gap: 16px; --end-roll: 52px !important; --end-text: 18px !important; --end-above: 96px !important; --end-below: 96px !important; } }
html[data-look="modern"] .say s { position: relative; text-decoration: none; }
/* the homepage title's orange pen; in CSS, as the glitch writes the line anew */
html[data-look="modern"] .say s::after { content: ""; position: absolute; inset: 18% -6% 10%; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14C22 11 41 12 60 9.8S86 8.4 98 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14C22 11 41 12 60 9.8S86 8.4 98 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* ---- a note by a list (modern.js): no brush line, a small label like Year and Role; beside the list, or under it where that's too narrow ---- */
.note-row { width: 100%; display: flex; flex-direction: column; gap: 40px; }
.quote-row { gap: var(--block-gap); }
.facts { gap: 40px; }
html[data-look="modern"] .note-row .note { position: static; width: auto; max-width: var(--col); padding: 0; gap: 12px; }
html[data-look="modern"] .note-row :is(.note-rule, .note-top) { display: none; }
html[data-look="modern"] .note-row .note h3 { font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
html[data-look="modern"] .note-row .note p { font-size: var(--fs-body-lg); line-height: 1.55; }
/* beside it wherever the row is 860 or more: from 1200 (words from column 4), and from 904 while the words have the whole width.
   The list keeps its 640 first, then the note gets 260 to 320, then the list gives way */
@media (min-width: 1200px), (min-width: 904px) and (max-width: 1099px) {
  .note-row { --ng: clamp(40px, 4.7vw, 68px); display: grid; grid-template-columns: minmax(0, var(--col)) clamp(260px, 100% - var(--col) - var(--ng), 320px); column-gap: var(--ng); align-items: start; }   /* 68 = column 10 at 1440; stays by the list on a wide screen */
  html[data-look="modern"] .note-row .note { padding: 16px 0 0; border-top: 1px solid var(--line); }
  html[data-look="modern"] .note-row .accs:has(.acc-tools) + .note { margin-top: 28px; }   /* its line on the list's first one, under "Open all" */
  html[data-look="modern"] .note-row .note p { font-size: 16px; }
  /* quotes there: their first line sits on the words' first line, and the opening mark hangs over it */
  .quote-row { align-items: first baseline; }
  .quote-row .quotes { gap: 68px; }
  .quote-row:has(.acc-tools) { align-items: start; }
  html[data-look="modern"] .quote-row:has(.acc-tools) .quotes { padding-top: 37.5px; }   /* on the list's first item */
  html[data-look="modern"] .quote-row blockquote { padding: 0; text-wrap: pretty; }
  html[data-look="modern"] .quote-row .qm-open { top: auto; bottom: calc(100% + 16px); }
}

@media (min-width: 1360px) { html[data-look="modern"] .note-margin { left: calc(var(--col) + 60px); } }
@media (min-width: 1100px) and (max-width: 1399px) { html[data-look="modern"] .toc { display: flex; } }
@media (max-width: 1099px) {
  html[data-look="modern"] .toc { display: none; }
  html[data-look="modern"] main > *, html[data-look="modern"] :is(h1.t-h1, .details) { grid-column: 1 / -1; }
  html[data-look="modern"] h1.t-h1 { grid-column: 1 / span 9; }
  html[data-look="modern"] .alone .pull { width: min(100%, 720px); }
}
@media (max-width: 760px) {
  html[data-look="modern"] { --e: 20px; --page-top: 48px; --section-gap: 112px; --block-gap: 40px; --fs-body-lg: 17px; --fs-lg: 23px; --fs-call: 23px; --fs-xl: 28px; --fs-2xl: 38px; }
  .mh .at { grid-column: 7 / span 4; justify-self: start; } .mh .out { justify-self: end; }
  .mh .who { grid-column: 1 / span 6; }
  html[data-look="modern"] h1.t-h1 { grid-column: 1 / -1; }
  html[data-look="modern"] .intro { row-gap: 40px; } html[data-look="modern"] .overview { row-gap: 36px; }
  html[data-look="modern"] .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--g); }
  html[data-look="modern"] .rows li { grid-column: auto; }
  html[data-look="modern"] .intro > figure { width: calc(100% + 2 * var(--m)); margin-inline: calc(-1 * var(--m)); }
  html[data-look="modern"] .intro > figure .frame { overflow: hidden; }
  html[data-look="modern"] .work, html[data-look="modern"] .pair { grid-template-columns: 1fr; }
  html[data-look="modern"] .work > div { padding: 0; }
  html[data-look="modern"] .acc .body { padding-left: 0; }
}

/* ---- The lock of a protected case (lock.js), modern: a plain card over a soft veil instead of the torn sheet.
   Same type as the rest of the page: a Jost title (no label over it), the words in the second tone, a pill field and button
   (the Work page's and About's Back pill). The one orange is the "wrong" line. Values by Claude, not tuned by Jacky. */
html[data-look="modern"] {
  --gate-r: 12px; --gate-h: 48px;
  --gate-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 24px 64px -12px rgb(0 0 0 / .16);
}
html[data-look="modern"].lights-off { --gate-shadow: 0 24px 64px -12px rgb(0 0 0 / .6); }
html[data-look="modern"] .gate-veil { background: color-mix(in srgb, var(--paper) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-look="modern"] :is(.sheet-paper, dialog.gate .back-box, .stub .back-box) { display: none; }
html[data-look="modern"] .sheet { max-width: 480px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--gate-r); box-shadow: var(--gate-shadow); }
html[data-look="modern"] .sheet form { padding: 32px 32px 24px; }
html[data-look="modern"] .sheet-corner { position: absolute; top: 16px; right: 16px; }   /* only the close button: no label over the title */
html[data-look="modern"] .sheet-close { width: 40px; height: 40px; margin: 0; border-radius: 99px; color: var(--soft); transition: color .15s ease, background-color .15s ease; }
html[data-look="modern"] .sheet-close svg { width: 16px; height: 16px; stroke-width: 1.5px; filter: none !important; }
html[data-look="modern"] .sheet-close:is(:hover, :focus-visible) { color: var(--ink); background: var(--plate); }
html[data-look="modern"] .sheet-close:is(:hover, :focus-visible) svg { stroke-width: 1.5px; }
html[data-look="modern"] .sheet-title { font: var(--title); font-size: 28px; line-height: 1.2; letter-spacing: -.015em; margin: 0 40px 10px 0; text-wrap: balance; }
html[data-look="modern"] .sheet-title + .t-caption { font: 300 16px/1.5 var(--sans); color: var(--soft); text-transform: none; letter-spacing: 0; }
html[data-look="modern"] .sheet-title + .t-caption a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line); transition: text-decoration-color .15s ease; }
html[data-look="modern"] .sheet-title + .t-caption a:is(:hover, :focus-visible) { text-decoration-color: currentColor; outline: none; }
html[data-look="modern"] .sheet.vacant .sheet-title + p { visibility: visible; }
html[data-look="modern"] .gate-row { gap: 8px; margin-top: 28px; }
html[data-look="modern"] :is(.gate-field, .gate-btn) { height: var(--gate-h); border-radius: 99px; }
html[data-look="modern"] .gate-field { border: 1px solid var(--line); transition: border-color .15s ease; }
html[data-look="modern"] .gate-field:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--paper)); }
html[data-look="modern"] .gate-field:focus-within { border-color: var(--ink); }
html[data-look="modern"] .gate-field input { padding: 0 20px; border-radius: 99px; font: 400 16px/1 var(--sans); }
html[data-look="modern"] .gate-field input[aria-invalid="true"] { color: var(--accent); }
html[data-look="modern"] .gate-field:has([aria-invalid="true"]) { border-color: var(--accent); }
/* the button: filled, the one thing to press; the stub's on the page is the outline pill, like Back */
html[data-look="modern"] .gate-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; text-indent: 0;
  border: 1px solid var(--ink); transition: color .15s ease, background-color .15s ease, opacity .15s ease; }
html[data-look="modern"] dialog.gate .gate-btn { background: var(--ink); color: var(--paper); }
html[data-look="modern"] dialog.gate .gate-btn::after { content: "→"; font-family: var(--sans); font-size: 15px; transition: transform .2s ease; }
html[data-look="modern"] dialog.gate .gate-btn:not(:disabled):is(:hover, :focus-visible) { color: var(--paper); }
html[data-look="modern"] dialog.gate .gate-btn:not(:disabled):is(:hover, :focus-visible)::after { transform: translateX(3px); }
html[data-look="modern"] dialog.gate .gate-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
html[data-look="modern"] .gate-btn:disabled { opacity: .55; }
html[data-look="modern"] .sheet .gate-msg { min-height: 16px; margin-top: 12px; font: 400 12px/16px var(--mono); color: var(--soft); text-transform: none; letter-spacing: 0; }
html[data-look="modern"] .sheet.wrong .gate-msg { color: var(--accent); }
@keyframes gate-no-modern { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } 88% { transform: translateX(1px); } }
html[data-look="modern"] .sheet.wrong { animation: gate-no-modern .36s ease; }
/* where the case is cut: a hairline instead of the perforation, the words in the second tone, the outline pill */
html[data-look="modern"] .stub .perf { height: 1px; background: var(--line); margin-bottom: 8px; }
html[data-look="modern"] .stub .t-caption { font: 300 16px/1.5 var(--sans); text-transform: none; letter-spacing: 0; }
html[data-look="modern"] .stub .gate-btn { height: 40px; padding: 0 18px; background: none; color: var(--ink); }
html[data-look="modern"] .stub .gate-btn:is(:hover, :focus-visible) { background: var(--ink); color: var(--paper); outline: none; }
@media (max-width: 480px) {
  html[data-look="modern"] .sheet form { padding: 24px 20px 20px; }
  html[data-look="modern"] .sheet-title { font-size: 24px; }
  html[data-look="modern"] .sheet-corner { top: 12px; right: 12px; }
  html[data-look="modern"] .gate-row { gap: 8px; }
}

/* ---- the slider's arrows (2026-11-30, Jacky: the hand boxes read old next to the rest): round outline buttons like Back, filled on hover ---- */
html[data-look="modern"] .pan-btns { gap: 8px; }
html[data-look="modern"] .pan-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); transition: color .15s, background-color .15s, border-color .15s, opacity .2s; }
html[data-look="modern"] .pan-btn .back-box { display: none; }
html[data-look="modern"] .pan-btn .pan-arrow { display: none; }
html[data-look="modern"] .pan-btn::before { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4m0 0 6-6m-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4m0 0 6-6m-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-look="modern"] .pan-btn[data-dir="1"]::before { transform: scaleX(-1); }
html[data-look="modern"] .pan-btn:not(:disabled):is(:hover, :focus-visible, :active) { background: var(--ink); border-color: var(--ink); color: var(--paper); outline: none; }
html[data-look="modern"] .pan-btn:disabled { opacity: .35; }

/* ---- footer (modern.js): the header's columns and mono, under a hairline ---- */
/* always on the window's foot when the page is shorter than the window (Jacky, 2026-11-30: it came up under short pages) */
html[data-look="modern"] body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
html[data-look="modern"] body > main { flex: 1 0 auto; }
html[data-look="modern"] .mf { margin-top: auto; }
.mf { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--g); row-gap: 48px; margin: 0 var(--m); padding: 24px 0 var(--e); border-top: 1px solid var(--line);
  font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.mf ul { list-style: none; margin: 0; padding: 0; }
.mf a { color: inherit; text-decoration: none; transition: color .15s; }
html:not(.touch) .mf a:is(:hover, :focus-visible) { color: var(--soft); outline: none; }
.mf .who, .mf .mail { display: flex; flex-direction: column; }
.mf .who span + span, .mf .mail span, .mf .c { color: var(--soft); }
.mf .who { grid-column: 1 / span 3; }
.mf .site { grid-column: 4 / span 4; }
.mf .else { grid-column: 8 / span 3; }
.mf .mail { grid-column: 11 / -1; }
.mf .mail a { white-space: nowrap; }
.mf .c { grid-column: 1 / -1; margin: 0; }
@media (max-width: 1099px) { .mf .mail { grid-column: 10 / -1; } }
@media (max-width: 760px) {
  .mf { grid-template-columns: 1fr 1fr; row-gap: 32px; margin: 0 var(--m); }
  .mf :is(.who, .site, .else, .mail) { grid-column: auto; }
}

/* ---- before & after, other layouts (trying, 2026-11-30, Jacky: the notes on the outer sides were narrow columns, hard to
   read). Both put numbered pins on the phones instead of lines, and give the notes one wide column. ?ba=list = both phones
   side by side, all the notes beside them, the "before" ones then the "after" ones; ?ba=tabs = one phone at a time, a
   Before / After switch over it, its notes beside it. Below 904 the notes go under the phones. ---- */
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked .leads { display: none; }
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked li { position: static !important; top: auto !important; counter-increment: note; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; align-items: start; }
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked ul { position: static; height: auto !important; margin: 0; padding: 0; border: 0; gap: 16px; }
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked li::before,
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked .pin {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font: 400 11px/1 var(--mono); letter-spacing: 0; }
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked li::before { content: counter(note); margin-top: 1px; }
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked .pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--paper); z-index: 1; }
html[data-look="modern"]:is([data-ba="list"], [data-ba="tabs"]) .marked .t-note { font-size: 17px; line-height: 1.45 !important; color: var(--text); }

/* list */
html[data-look="modern"][data-ba="list"] .mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto auto 1fr; column-gap: 32px; row-gap: 40px; align-items: start; }
html[data-look="modern"][data-ba="list"] .marked figure { display: contents; }
html[data-look="modern"][data-ba="list"] .marked .before .shot { grid-column: 1; grid-row: 1 / span 3; }
html[data-look="modern"][data-ba="list"] .marked .after .shot { grid-column: 2; grid-row: 1 / span 3; }
html[data-look="modern"][data-ba="list"] .marked .before ul { grid-column: 3; grid-row: 1; padding-left: 16px; }
html[data-look="modern"][data-ba="list"] .marked .after ul { grid-column: 3; grid-row: 2; padding-left: 16px; }
html[data-look="modern"][data-ba="list"] .marked ul::before { content: attr(data-t); display: block; font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--soft); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 903px) {
  html[data-look="modern"][data-ba="list"] .mrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; column-gap: 16px; row-gap: 32px; }
  html[data-look="modern"][data-ba="list"] .marked :is(.before, .after) .shot { grid-row: 1; }
  html[data-look="modern"][data-ba="list"] .marked :is(.before, .after) ul { grid-column: 1 / -1; padding-left: 0; }
  html[data-look="modern"][data-ba="list"] .marked .before ul { grid-row: 2; }
  html[data-look="modern"][data-ba="list"] .marked .after ul { grid-row: 3; }
}

/* tabs */
html[data-look="modern"][data-ba="tabs"] .mrow { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 30em); grid-template-rows: auto auto; column-gap: 64px; row-gap: 20px; align-items: start; }
html[data-look="modern"][data-ba="tabs"] .mswitch { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 99px; }
html[data-look="modern"][data-ba="tabs"] .mswitch button { height: 30px; padding: 0 14px; border: 0; border-radius: 99px; background: none; color: var(--soft); cursor: pointer;
  font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: background-color .15s, color .15s; }
html[data-look="modern"][data-ba="tabs"] .mswitch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html:not(.touch)[data-look="modern"][data-ba="tabs"] .mswitch button[aria-pressed="false"]:hover { color: var(--ink); }
html[data-look="modern"][data-ba="tabs"] .mswitch button:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }
html[data-look="modern"][data-ba="tabs"] .marked figure { display: contents; }
html[data-look="modern"][data-ba="tabs"] .marked .shot { grid-column: 1; grid-row: 2; }
html[data-look="modern"][data-ba="tabs"] .marked ul { grid-column: 2; grid-row: 2; align-self: center; }
html[data-look="modern"][data-ba="tabs"] .marked figcaption { display: none; }
html[data-look="modern"][data-ba="tabs"] .mrow .after :is(.shot, ul),
html[data-look="modern"][data-ba="tabs"] .mrow.show-after .before :is(.shot, ul) { display: none; }
html[data-look="modern"][data-ba="tabs"] .mrow.show-after .after :is(.shot, ul) { display: block; animation: ba-in .35s cubic-bezier(.22, 1, .36, 1); }
html[data-look="modern"][data-ba="tabs"] .mrow.show-after .after ul { display: flex; }
@keyframes ba-in { from { opacity: 0; } }
@media (max-width: 903px) {
  html[data-look="modern"][data-ba="tabs"] .mrow { grid-template-columns: minmax(0, 1fr); }
  html[data-look="modern"][data-ba="tabs"] .marked .shot { max-width: 320px; }
  html[data-look="modern"][data-ba="tabs"] .marked ul { grid-column: 1; grid-row: 3; }
}

/* fold (the default, Jacky, 2026-11-30): on phones and small tablets only (Jacky: the desktop's lines are fine), just the two phones side by side, no numbers or lines; "Show notes" under them opens
   each phone's notes under it, in its own half of the row */
@media (max-width: 903px) {
  html[data-look="modern"][data-ba="fold"] .mrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; row-gap: 0; align-items: start; }
  html[data-look="modern"][data-ba="fold"] .marked figure { display: contents; }
  html[data-look="modern"][data-ba="fold"] .marked :is(.leads, .pin) { display: none; }
  html[data-look="modern"][data-ba="fold"] .marked .shot { grid-row: 1; max-width: 320px; }
  html[data-look="modern"][data-ba="fold"] .marked .before .shot, html[data-look="modern"][data-ba="fold"] .marked .before ul { grid-column: 1; }
  html[data-look="modern"][data-ba="fold"] .marked .after .shot, html[data-look="modern"][data-ba="fold"] .marked .after ul { grid-column: 2; }
  /* a plain line of text with a chevron that turns (Jacky, 2026-11-30: the pill with a + read as a filter) */
  html[data-look="modern"][data-ba="fold"] .mfold { display: inline-flex; grid-row: 2; grid-column: 1 / -1; justify-self: start; align-items: center; gap: 6px; margin-top: 20px; padding: 4px 0;
    border: 0; background: none; color: var(--ink); cursor: pointer; font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
  html[data-look="modern"][data-ba="fold"] .mfold span { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s; }
  html:not(.touch)[data-look="modern"][data-ba="fold"] .mfold:hover span, html[data-look="modern"][data-ba="fold"] .mfold:focus-visible span { text-decoration-color: currentColor; }
  html[data-look="modern"][data-ba="fold"] .mfold:focus-visible { outline: none; }
  html[data-look="modern"][data-ba="fold"] .mfold svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
  html[data-look="modern"][data-ba="fold"] .mfold[aria-expanded="true"] svg { transform: rotate(180deg); }
  html[data-look="modern"][data-ba="fold"] .marked ul { grid-row: 3; display: none; position: static; height: auto !important; margin: 0; padding: 20px 0 0; border: 0; gap: 14px; max-width: 30em; }
  html[data-look="modern"][data-ba="fold"] .mrow.open ul { display: flex; animation: ba-in .4s cubic-bezier(.22, 1, .36, 1); }
  /* each note a bullet of its own, so they read as separate points */
  html[data-look="modern"][data-ba="fold"] .marked li { position: static !important; top: auto !important; padding-left: 18px; }
  html[data-look="modern"][data-ba="fold"] .marked li::before { content: ""; position: absolute; margin: .62em 0 0 -18px; width: 5px; height: 5px; border-radius: 50%; background: var(--soft); }
  html[data-look="modern"][data-ba="fold"] .marked .t-note { font-size: 17px; line-height: 1.45 !important; color: var(--text); }
  @media (max-width: 760px) {
    html[data-look="modern"][data-ba="fold"] .mrow { column-gap: 16px; }
    html[data-look="modern"][data-ba="fold"] .marked .t-note { font-size: 15px; }
    /* too narrow for two columns of words: the notes go full width, each phone's under its name */
    html[data-look="modern"][data-ba="fold"] .marked :is(.before, .after) ul { grid-column: 1 / -1; max-width: none; }
    html[data-look="modern"][data-ba="fold"] .marked .after ul { grid-row: 4; padding-top: 24px; }
    html[data-look="modern"][data-ba="fold"] .marked ul::before { content: attr(data-t); display: block; font: 400 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
  }
}
