/* ==========================================================================
   Florian Chavelet — CV & portfolio
   Paper, ink, one accent red. Print conventions (crop marks, colour bar) as the grid.
   ========================================================================== */

@font-face { font-family: 'Newsreader'; src: url(../fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(../fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url(../fonts/ibm-plex-sans-latin-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #f1ede4;
  --paper-2: #e8e2d6;
  --ink: #17140f;
  --ink-2: #4a453d;
  --ink-3: #8a8377;
  --rule: #cdc5b6;
  --red: #d2231b;          /* correction pen */
  --c: #00a3e0; --m: #e4007c; --y: #ffe100; --k: #17140f;

  --serif: 'Newsreader', 'Times New Roman', serif;
  --sans: 'Plex Sans', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;

  --margin: clamp(20px, 5vw, 72px);
  --col: min(1240px, 100vw - 2 * var(--margin));
  --bleed: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* paper tooth — very faint */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .33  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--y); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.red { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Slug line — the strip printers put outside the trim
   -------------------------------------------------------------------------- */
.slug {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: baseline; gap: 18px;
  padding: 9px var(--margin);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
  font: 400 11px/1 var(--mono); letter-spacing: .03em; color: var(--ink-2);
  white-space: nowrap;
}
/* the cover name settles into the strip once the big one has scrolled away */
.slug__name {
  position: relative; top: 2px; /* optical centring: the serif caps are taller than the mono menu */
  white-space: nowrap; text-decoration: none; color: var(--ink);
  font: 400 17px/1 var(--serif); letter-spacing: -.01em; font-variation-settings: 'opsz' 20;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.slug__name.is-on { opacity: 1; transform: none; pointer-events: auto; }
.slug__role { font: 400 11px/1 var(--mono); letter-spacing: .03em; color: var(--ink-3); }
.slug__name:hover { color: var(--red); }
@media (max-width: 1100px) and (min-width: 901px) { .slug__role { display: none; } }
@media (max-width: 520px) { .slug__role { display: none; } }
.slug__nav { display: flex; gap: 16px; margin-left: auto; }
.slug__nav a { text-decoration: none; }
.slug__nav a:hover, .slug__nav a[aria-current] { color: var(--red); }
.colorbar { display: inline-flex; height: 9px; }
.colorbar i { width: 9px; }
.colorbar i:nth-child(1) { background: var(--c); }
.colorbar i:nth-child(2) { background: var(--m); }
.colorbar i:nth-child(3) { background: var(--y); }
.colorbar i:nth-child(4) { background: var(--k); }
.colorbar i:nth-child(5) { background: color-mix(in srgb, var(--k) 50%, var(--paper)); }
.colorbar i:nth-child(6) { background: color-mix(in srgb, var(--k) 20%, var(--paper)); }
.lang { display: inline-flex; border: 1px solid var(--ink-3); }
.lang button { border: 0; background: none; padding: 3px 7px; font: inherit; cursor: pointer; color: var(--ink-3); }
.lang button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .slug__nav { display: none; } .slug__name { margin-right: auto; } }

/* --------------------------------------------------------------------------
   Sheet = a trimmed page with crop marks at the corners
   -------------------------------------------------------------------------- */
.sheet { position: relative; width: var(--col); margin: 0 auto; }
.crop { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--ink); }
.crop::before { width: 22px; height: 1px; }
.crop::after { width: 1px; height: 22px; }
.crop--tl { top: calc(-1 * var(--bleed)); left: calc(-1 * var(--bleed)); transform: translate(-100%, -100%); }
.crop--tl::before { bottom: 0; } .crop--tl::after { right: 0; }
.crop--tr { top: calc(-1 * var(--bleed)); right: calc(-1 * var(--bleed)); transform: translate(100%, -100%); }
.crop--tr::before { bottom: 0; } .crop--tr::after { left: 0; }
.crop--bl { bottom: calc(-1 * var(--bleed)); left: calc(-1 * var(--bleed)); transform: translate(-100%, 100%); }
.crop--bl::before { top: 0; } .crop--bl::after { right: 0; }
.crop--br { bottom: calc(-1 * var(--bleed)); right: calc(-1 * var(--bleed)); transform: translate(100%, 100%); }
.crop--br::before { top: 0; } .crop--br::after { left: 0; }
@media (max-width: 700px) { .crop { display: none; } }

.reg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; color: var(--ink); }

/* section heads read like a folio */
.folio {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px;
  padding-bottom: 10px; margin-bottom: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--ink);
  font: 400 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
}
.folio b { font-weight: 500; color: var(--ink); }
.folio__line { height: 1px; }
/* sub-sections (03.1 …): lighter rule, parent number greyed */
.folio--sub { border-bottom: 1px dashed var(--ink-3); margin-left: clamp(16px, 3vw, 40px); }
.folio i, .pi__n i { font-style: normal; color: var(--ink-3); font-weight: 400; }

/* --------------------------------------------------------------------------
   01 — Cover / CV
   -------------------------------------------------------------------------- */
.cover { padding: clamp(56px, 9vh, 110px) 0 clamp(48px, 8vh, 96px); }
.cover .sheet { min-height: calc(100svh - 34px - clamp(56px, 9vh, 110px) * 2); display: grid; grid-template-rows: auto 1fr auto; }

.cover__top { display: flex; justify-content: space-between; gap: 20px; color: var(--ink-2); }

.cover__name {
  margin: clamp(28px, 6vh, 64px) 0 0;
  font: 380 clamp(64px, 12.2vw, 196px)/.86 var(--serif);
  font-variation-settings: 'opsz' 72;
  letter-spacing: -.035em;
}
.cover__name span { display: block; }
.cover__name em { font-style: italic; font-weight: 300; letter-spacing: -.045em; }

/* misregistration that settles — "calage" */
.calage { text-shadow: 0 0 0 transparent; }
.js .calage { animation: calage 1.5s cubic-bezier(.2, .7, .1, 1) .25s both; }
@keyframes calage {
  0%   { text-shadow: -7px 2px 0 rgba(0,163,224,.75), 6px -3px 0 rgba(228,0,124,.7), 2px 5px 0 rgba(255,225,0,.9); }
  60%  { text-shadow: -1px 0 0 rgba(0,163,224,.5), 1px 0 0 rgba(228,0,124,.45), 0 1px 0 rgba(255,225,0,.6); }
  100% { text-shadow: 0 0 0 rgba(0,163,224,0), 0 0 0 rgba(228,0,124,0), 0 0 0 rgba(255,225,0,0); }
}

.cover__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
  align-items: end; margin-top: clamp(28px, 5vh, 56px);
}
.cover__role { margin: 0 0 18px; font: 500 clamp(19px, 1.9vw, 25px)/1.25 var(--sans); letter-spacing: -.01em; }
.cover__role span + br + span { color: var(--ink-3); font-weight: 400; }
.cover__pitch { margin: 0; max-width: 34em; font: 400 clamp(17px, 1.5vw, 20px)/1.5 var(--serif); font-variation-settings: 'opsz' 18; color: var(--ink-2); }
.cover__pitch strong { color: var(--ink); font-weight: 500; }

/* job ticket */
.ticket { border: 1px solid var(--ink); font: 400 12.5px/1.35 var(--mono); }
.ticket__head { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--ink); color: var(--paper); letter-spacing: .05em; text-transform: uppercase; font-size: 11px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; }
.ticket dt, .ticket dd { margin: 0; padding: 8px 12px; border-top: 1px solid var(--rule); }
.ticket dt { color: var(--ink-3); border-right: 1px solid var(--rule); }
.ticket dd b { font-weight: 500; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(31,157,85,.15); }

.cover__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--ink); background: transparent; cursor: pointer;
  font: 500 13px/1 var(--mono); letter-spacing: .02em; text-decoration: none;
  transition: background .18s, color .18s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--red); border-color: var(--red); }
.btn svg { width: 14px; height: 14px; }

/* contact dock: slides in once the cover is gone, steps aside when Contact is on screen */
.dock {
  position: fixed; right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 28px); z-index: 58;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 400 12px/1 var(--mono); letter-spacing: .02em;
  box-shadow: 0 12px 28px -14px rgba(23, 20, 15, .7);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1), background-color .18s;
}
.dock.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dock b { font-weight: 500; }
.dock__sep { opacity: .45; }
.dock .status-dot { margin: 0; box-shadow: 0 0 0 3px rgba(31,157,85,.3); }
.dock:hover, .dock:focus-visible { background: var(--red); outline: none; }
.imm-on .dock { bottom: 132px; }
@media (max-width: 560px) { .dock > span:not(.status-dot), .dock__sep { display: none; } }

.cover__foot { display: flex; justify-content: space-between; align-items: end; margin-top: clamp(28px, 6vh, 60px); color: var(--ink-3); }
.cover__jump { color: inherit; text-decoration: none; }
.cover__jump:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }

/* proof-reader notes in the margin */
.note {
  position: absolute; font: 400 11.5px/1.3 var(--mono); color: var(--red); max-width: 15em;
  opacity: 0; transform: translateY(4px); transition: opacity .5s, transform .5s;
}
.note.is-in { opacity: 1; transform: none; }
.note::before { content: ''; position: absolute; background: var(--red); }
.cover__namewrap { position: relative; display: inline-block; }
.note--name { top: 22%; left: calc(100% + 28px); white-space: nowrap; padding-left: 64px; }
.note--name::before { width: 52px; height: 1px; left: 0; top: .65em; }
.note--name::after { content: ''; position: absolute; left: -4px; top: calc(.65em - 3px); width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--red); }
@media (max-width: 1100px) { .note { display: none; } }

@media (max-width: 860px) {
  .cover__grid { grid-template-columns: 1fr; align-items: start; }
}

/* --------------------------------------------------------------------------
   02 — Version history (career)
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--tint { background: var(--paper-2); }

.h2 { margin: 0 0 clamp(28px, 4vw, 48px); font: 380 clamp(40px, 6vw, 84px)/.95 var(--serif); letter-spacing: -.03em; font-variation-settings: 'opsz' 60; }
.h2 em { font-weight: 300; }
.lede { max-width: 38em; margin: 0 0 clamp(36px, 5vw, 64px); font: 400 clamp(17px, 1.4vw, 19px)/1.55 var(--serif); color: var(--ink-2); font-variation-settings: 'opsz' 16; }

.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.log li {
  display: grid; grid-template-columns: 8.5em minmax(0, 1.1fr) minmax(0, 1.6fr) 7.5em; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.log__v { font: 500 13px/1 var(--mono); }
.log__v small { display: block; margin-top: 6px; font-weight: 400; color: var(--ink-3); font-size: 11px; }
.log__who { font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--serif); letter-spacing: -.015em; }
.log__who span { display: block; margin-top: 6px; font: 400 13.5px/1.35 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.log__what { margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.log__what li { display: block; padding: 0 0 4px 16px; border: 0; position: relative; }
.log__what li::before { content: '–'; position: absolute; left: 0; color: var(--ink-3); }
.log__tag { justify-self: end; white-space: nowrap; font: 400 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.log__tag--live { color: var(--red); }
@media (max-width: 860px) {
  .log li { grid-template-columns: 1fr; gap: 10px; }
  .log__tag { justify-self: start; }
}

.inks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 80px); border: 1px solid var(--ink); }
.ink { padding: 18px 18px 22px; border-right: 1px solid var(--rule); }
.ink:last-child { border-right: 0; }
.ink h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.ink h3 i { width: 10px; height: 10px; display: inline-block; }
.ink p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
/* 5 skill boxes: 5 columns, then 3 + 2, then stacked */
@media (max-width: 1100px) {
  .inks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ink { grid-column: span 2; border-right: 1px solid var(--rule); }
  .ink:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .ink:nth-child(n+4) { grid-column: span 3; }
  .ink:nth-child(3), .ink:last-child { border-right: 0; }
}
@media (max-width: 560px) {
  .inks { grid-template-columns: 1fr; }
  .ink, .ink:nth-child(n+4) { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .ink:last-child { border-bottom: 0; }
}

.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; font-size: 14px; color: var(--ink-2); }
.edu b { display: block; color: var(--ink); font: 400 19px/1.2 var(--serif); margin-bottom: 4px; }
@media (max-width: 700px) { .edu { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   03 — Plates (work)
   -------------------------------------------------------------------------- */
.plates-index { list-style: none; margin: 0 0 clamp(64px, 8vw, 110px); padding: 0; border-top: 1px solid var(--ink); counter-reset: p; }
.plates-index a {
  display: grid; grid-template-columns: 4em 1fr auto auto; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: padding .25s;
}
.plates-index a:hover { padding-left: 10px; }
.plates-index a:hover .pi__t { color: var(--red); }
.pi__n { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.pi__t { font: 400 clamp(26px, 3.4vw, 46px)/1 var(--serif); letter-spacing: -.02em; transition: color .2s; }
.pi__m { font: 400 12px/1 var(--mono); color: var(--ink-3); }
.pi__s { font: 400 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 7px; border: 1px solid currentColor; }
.pi__s--ok { color: var(--ink); }
.pi__s--wip { color: var(--red); }
@media (max-width: 700px) { .plates-index a { grid-template-columns: 3em 1fr; } .pi__m, .pi__s { grid-column: 2; } }

.plate { padding-top: clamp(40px, 5vw, 70px); }
.plate__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.plate__head .h2 { margin: 0; }
.plate__head p { margin: 0; font: 400 17px/1.55 var(--serif); color: var(--ink-2); font-variation-settings: 'opsz' 16; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 18px; border-top: 1px solid var(--rule); }
.facts div { padding: 12px 22px 0 0; margin-right: 22px; }
.facts b { display: block; font: 400 34px/1 var(--serif); letter-spacing: -.02em; }
.facts span { font: 400 11px/1.3 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 860px) { .plate__head { grid-template-columns: 1fr; } }

/* --- the feed row (DCO remote) --- */
.feed { border: 1px solid var(--ink); background: var(--paper); margin-bottom: 28px; }
.feed__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--ink); font: 400 11px/1 var(--mono); color: var(--ink-2); }
.feed__bar b { color: var(--ink); font-weight: 500; }
.feed__table { width: 100%; border-collapse: collapse; font: 400 13px/1.2 var(--mono); }
.feed__table th { text-align: left; font-weight: 400; color: var(--ink-3); font-size: 11px; padding: 8px 12px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); background: color-mix(in srgb, var(--paper-2) 60%, var(--paper)); }
.feed__table th:first-child, .feed__table td:first-child { width: 3em; text-align: center; color: var(--ink-3); }
.feed__table td { padding: 0; border-right: 1px solid var(--rule); vertical-align: middle; }
.feed__table th:last-child, .feed__table td:last-child { border-right: 0; }
.cell { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 52px; }
.cell output { min-width: 4.2em; font-weight: 500; color: var(--ink); }
.cell select {
  appearance: none; border: 0; background: transparent; font: 500 13px var(--mono); color: var(--ink); cursor: pointer; padding: 4px 18px 4px 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 6px center, right 2px center; background-size: 4px 4px; background-repeat: no-repeat;
}
.cell:focus-within { outline: 2px solid var(--red); outline-offset: -2px; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px; height: 18px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 18px; margin-top: -9px; background: var(--ink); border: 0; }
input[type=range]::-moz-range-thumb { width: 12px; height: 18px; background: var(--ink); border: 0; border-radius: 0; }
input[type=range]:focus { outline: none; }
.feed__presets { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rule); font: 400 11px/1 var(--mono); color: var(--ink-3); align-items: center; }
.feed__presets button { border: 1px solid var(--rule); background: none; padding: 6px 9px; cursor: pointer; font: 400 11px/1 var(--mono); color: var(--ink-2); }
.feed__presets button:hover { border-color: var(--ink); color: var(--ink); }
.feed__presets .spacer { flex: 1; }
.feed__toggle { border: 0 !important; text-decoration: underline; text-underline-offset: 3px; }
/* the feed as its Google Sheet: deliberately the real tool's look (Arial, grey grid, Sheets blue) */
.gs { display: none; border-top: 1px solid var(--rule); background: #fff; color: #202124; font: 400 13px/1 Arial, Helvetica, sans-serif; }
.gs.is-open { display: block; }
.gs__top { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; }
.gs__top svg { width: 15px; height: 21px; flex: none; }
.gs__top b { font-weight: 400; font-size: 16px; }
.gs__top span { font-size: 11.5px; color: #5f6368; }
.gs__fx { display: flex; align-items: center; gap: 0; height: 30px; border-top: 1px solid #e1e3e1; border-bottom: 1px solid #e1e3e1; font-size: 12.5px; }
.gs__ref { width: 64px; padding: 0 10px; color: #444746; border-right: 1px solid #e1e3e1; line-height: 30px; }
.gs__fx i { padding: 0 10px; color: #80868b; font-style: italic; font-family: Georgia, serif; border-right: 1px solid #e1e3e1; line-height: 30px; }
.gs__fxv { padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs__scroll { overflow-x: auto; }
.gs__grid { border-collapse: collapse; font-size: 12.5px; }
.gs__grid th { height: 22px; min-width: 46px; padding: 0 6px; background: #f8f9fa; color: #5f6368; font-weight: 400; font-size: 11px; text-align: center; border: 1px solid #e1e3e1; }
.gs__grid thead th.is-col, .gs__grid tr.is-served th { background: #d3e3fd; color: #0b57d0; font-weight: 700; }
.gs__grid .gs__corner { min-width: 40px; width: 40px; }
.gs__grid tbody th { width: 40px; min-width: 40px; }
.gs__grid td { height: 23px; padding: 0 7px; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid #e1e3e1; transition: background-color 1.2s; }
.gs__grid td.gs__head { font-weight: 700; background: #fff; }
.gs__grid td.gs__num { text-align: right; }
.gs__grid tr.is-served td { background: #e8f0fe; }
.gs__grid td.is-sel { outline: 2px solid #1a73e8; outline-offset: -2px; background: #fff !important; }
.gs__grid td.is-new { animation: gs-new 1.4s ease-out; }
@keyframes gs-new { 0%, 30% { background: #fde293; } }
.gs__tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #f8f9fa; border-top: 1px solid #e1e3e1; overflow-x: auto; }
.gs__tabs button { padding: 8px 14px; border: 0; border-radius: 6px 6px 0 0; background: none; color: #444746; font: 500 12.5px/1 Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.gs__tabs button:hover { background: #e9eef6; }
.gs__tabs button[aria-selected='true'] { background: #e1e9f7; color: #0b57d0; box-shadow: inset 0 -3px 0 #0b57d0; }
.gs__note { margin: 0; padding: 10px 14px; border-top: 1px solid var(--rule); background: var(--paper); color: var(--ink-3); font: 400 11px/1.5 var(--mono); }
@media (max-width: 760px) {
  .feed__table thead { display: none; }
  .feed__table tr { display: grid; grid-template-columns: 1fr; }
  .feed__table td:first-child { display: none; }
  .feed__table td { border-right: 0; border-bottom: 1px solid var(--rule); }
  .cell::before { content: attr(data-label); width: 6.5em; flex: none; font-size: 11px; color: var(--ink-3); }
}

/* --- the wall of live banners --- */
.wall { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px) clamp(20px, 2.6vw, 36px); align-items: flex-start; }
.ad { margin: 0; }

/* wide screens: the wall bleeds out of the text column and is composed like a plate */
@media (min-width: 1400px) {
  .wall {
    display: grid; justify-content: center; align-items: start;
    grid-template-columns: repeat(4, 300px); gap: 40px 36px;
    width: calc(100vw - 2 * var(--margin)); margin-left: calc((var(--col) - (100vw - 2 * var(--margin))) / 2);
  }
  /* three skyscrapers, then two medium rectangles stacked */
  .ad[data-id='lm-250']     { grid-area: 1 / 4 / 2 / 5; }
  .ad[data-id='auchan-250'] { grid-area: 1 / 4 / 2 / 5; align-self: end; }
}
.ad__frame { position: relative; overflow: hidden; background: #fff; outline: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 18px 30px -24px rgba(23,20,15,.45); }
.ad__frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #fff; transition: opacity .25s; }
.ad__frame.is-loading iframe { opacity: .25; }
.ad figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; font: 400 10.5px/1.3 var(--mono); color: var(--ink-3); }
.ad figcaption b { font-weight: 500; color: var(--ink-2); }
.ad__delta { color: var(--red); opacity: 0; transition: opacity .3s; }
.ad__delta.is-on { opacity: 1; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(560px, 92vw); padding: 12px 16px; background: var(--ink); color: var(--paper);
  font: 400 12px/1.45 var(--mono); transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--y); font-weight: 500; }

/* tongue-in-cheek legal note under the wall: archives, not advertising (Loi Evin) */
.disclaimer { display: grid; grid-template-columns: 12em minmax(0, 1fr) auto; gap: 20px 32px; align-items: start; margin-top: clamp(36px, 5vw, 56px); padding: 14px 0 0; border-top: 1px solid var(--rule); }
.disclaimer b { font: 500 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.disclaimer p { margin: 0; font: 400 12px/1.6 var(--mono); color: var(--ink-3); }
.disclaimer p { max-width: 62em; }
/* the immersive switch, drawn as a reserved ad slot on a layout mock-up (hatched box + tag on the frame) */
.imm-btn {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 8px; align-items: center;
  width: 100%; max-width: 22em; margin-top: 4px; padding: 22px 18px 16px; border: 1px solid var(--ink); color: var(--ink);
  background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(23, 20, 15, .08) 7px 8px), var(--paper);
  text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, color .2s;
}
.imm-btn__tag { position: absolute; top: -8px; left: 12px; padding: 0 6px; background: var(--paper); color: var(--red); font: 500 9.5px/15px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.imm-btn__t { font: 400 26px/1 var(--serif); font-variation-settings: 'opsz' 36; letter-spacing: -.01em; }
.imm-btn__s { grid-column: 1; font: 400 10.5px/1.45 var(--mono); color: var(--ink-3); transition: color .2s; }
.imm-btn__sw { grid-column: 2; grid-row: 1 / 3; position: relative; width: 46px; height: 26px; border: 1px solid var(--ink); border-radius: 13px; background: var(--paper); transition: border-color .2s, background .2s; }
.imm-btn__sw i { position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), background .2s; }
.imm-btn:hover { border-color: var(--red); animation: hatch 1.1s linear infinite; }
.imm-btn:hover .imm-btn__sw i { transform: translateX(5px); }
@keyframes hatch { to { background-position: 45.25px 0, 0 0; } }
.imm-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.imm-btn[aria-pressed='true'] { color: #fff; border-color: var(--red); background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(255, 255, 255, .14) 7px 8px), var(--red); }
.imm-btn[aria-pressed='true'] .imm-btn__s { color: rgba(255, 255, 255, .82); }
.imm-btn[aria-pressed='true'] .imm-btn__sw { border-color: #fff; background: transparent; }
.imm-btn[aria-pressed='true'] .imm-btn__sw i { background: #fff; transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) { .imm-btn:hover { animation: none; } }

/* rotating slots: countdown in the label, quick fade on swap */
.imm__n { font-variant-numeric: tabular-nums; }
.imm__box iframe { transition: opacity .25s; }
.imm.is-swap iframe { opacity: 0; }
@media (max-width: 1000px) { .disclaimer { grid-template-columns: 12em minmax(0, 1fr); } .imm-btn { grid-column: 2; } }
@media (max-width: 700px) { .disclaimer { grid-template-columns: 1fr; gap: 10px; } .imm-btn { grid-column: auto; } }

/* --- immersive mode: the site as an over-monetised news site --- */
.imm { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.imm__label { font: 400 9px/1 Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a8377; }
.imm__box { position: relative; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(23, 20, 15, .1); }
.imm__box iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; }
.imm--band { padding: 12px 8px 16px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.imm--inline { margin: clamp(32px, 4vw, 48px) auto; }
.imm--side { position: fixed; top: calc(50% - 38px); transform: translateY(-50%); z-index: 45; }
.imm--left { left: 6px; }
.imm--right { right: 6px; }
.imm--anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 6px 8px 8px; background: rgba(232, 226, 214, .97); border-top: 1px solid var(--rule); box-shadow: 0 -12px 30px -20px rgba(23, 20, 15, .6); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.imm--anchor.is-gone { transform: translateY(110%); }
.imm__close { position: absolute; top: -27px; right: 14px; width: 28px; height: 27px; border: 1px solid var(--rule); border-bottom: 0; background: var(--paper-2); color: var(--ink); font: 400 12px/1 var(--mono); cursor: pointer; }
.imm-exit { position: fixed; top: 48px; right: 16px; z-index: 56; padding: 10px 16px; border: 0; background: var(--red); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(23, 20, 15, .7); }
.imm-exit:hover { background: var(--ink); }
.imm-inter { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(23, 20, 15, .74); }
.imm-inter__card { padding: 10px 10px 12px; background: var(--paper); }
.imm-inter__bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 9px; font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.imm-inter__bar button { padding: 7px 10px; border: 1px solid var(--ink); background: none; color: var(--ink); font: inherit; cursor: pointer; }
.imm-inter__bar button:disabled { opacity: .45; cursor: wait; }
.imm--inter .imm__label { display: none; }
body.imm-on { padding-bottom: 120px; }
.imm-on .toast { bottom: 128px; }

.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); }
.howto div { padding: 18px 24px 0 0; }
.howto b { display: block; margin-bottom: 8px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.howto p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }

/* --- emailing: a two-message inbox and a reading pane you can resize --- */
.mbox { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); border: 1px solid var(--ink); background: var(--paper); }
.mbox__list { display: flex; flex-direction: column; border-right: 1px solid var(--ink); }
.mbox__head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--ink); font: 400 11px/1 var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.mbox__msg { display: grid; gap: 4px; padding: 14px 14px 14px 17px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; cursor: pointer; position: relative; transition: background-color .2s; }
.mbox__msg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background-color .2s; }
.mbox__msg:hover { background: color-mix(in srgb, var(--paper-2) 55%, var(--paper)); }
.mbox__msg[aria-selected='true'] { background: var(--paper-2); }
.mbox__msg[aria-selected='true']::before { background: var(--red); }
.mbox__msg:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.mbox__from { display: flex; justify-content: space-between; gap: 8px; font: 500 13px/1.2 var(--sans); }
.mbox__from time { font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.mbox__subj { font: 400 17px/1.2 var(--serif); letter-spacing: -.01em; }
.mbox__pre { font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.mbox__pre span { color: var(--red); }
.mbox__tools { margin-top: auto; padding: 16px 14px; border-top: 1px solid var(--ink); display: grid; gap: 12px; }
.mbox__label { font: 400 11px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.mbox__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.mbox__presets button { border: 1px solid var(--rule); background: none; padding: 6px 9px; cursor: pointer; font: 400 11px/1 var(--mono); color: var(--ink-2); }
.mbox__presets button:hover, .mbox__presets button.is-on { border-color: var(--ink); color: var(--ink); }
.mbox__presets button.is-on { background: var(--ink); color: var(--paper); }

.mbox__pane { display: flex; flex-direction: column; min-width: 0; }
.mbox__bar { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--ink); font: 400 11px/1 var(--mono); color: var(--ink-2); }
.mbox__w output { font-weight: 500; color: var(--ink); }
.mbox__mode { padding: 4px 6px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .06em; }
.mbox__mode.is-mobile { color: var(--red); }
.mbox__hint { margin-left: auto; color: var(--red); }
.mbox__hint[hidden] { display: none; }
.mbox__shuffle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--ink); background: none; cursor: pointer; font: 400 11px/1 var(--mono); color: var(--ink); }
.mbox__shuffle::before { content: '↻'; font-size: 13px; transition: transform .4s; }
.mbox__shuffle:hover { background: var(--ink); color: var(--paper); }
.mbox__shuffle:hover::before { transform: rotate(180deg); }
.mbox__shuffle b { font-weight: 500; color: var(--red); }
.mbox__shuffle:hover b { color: var(--paper); }
.mbox__shuffle[hidden] { display: none; }
/* the stage: a cutting mat with a centimetre grid, the email frame sits on it */
.mbox__stage {
  flex: 1; display: flex; justify-content: center; padding: 22px 30px; overflow: hidden;
  background: color-mix(in srgb, var(--paper-2) 70%, var(--paper));
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center top;
}
.mbox__frame { position: relative; width: 700px; max-width: 100%; height: clamp(520px, 74vh, 780px); background: #fff; box-shadow: 0 0 0 1px var(--ink), 0 14px 40px -18px rgba(23,20,15,.45); }
.mbox__frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.mbox__veil { position: fixed; inset: 0; z-index: 1000; cursor: ew-resize; }
.mbox__grip { position: absolute; top: 50%; right: -22px; width: 22px; height: 64px; margin-top: -32px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; background: var(--ink); }
.mbox__grip i { width: 6px; height: 22px; border-left: 1px solid var(--paper); border-right: 1px solid var(--paper); }
.mbox__grip:hover, .mbox__grip:focus-visible { background: var(--red); outline: none; }
.mbox__frame.is-loading::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(23,20,15,.04) 10px 11px); }
@media (max-width: 860px) {
  .mbox { grid-template-columns: 1fr; }
  .mbox__list { border-right: 0; border-bottom: 1px solid var(--ink); }
  .mbox__stage { padding: 16px 26px 16px 10px; }
}

/* --- placeholders for plates still in proof --- */
.pending {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px);
  padding: clamp(24px, 3vw, 40px); border: 1px dashed var(--ink-3);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(23,20,15,.025) 10px 11px);
}
.pending .h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 14px; }
.pending p { margin: 0; color: var(--ink-2); }
.pending ul { margin: 14px 0 0; padding: 0; list-style: none; font: 400 12px/1.8 var(--mono); color: var(--ink-3); }
.pending__stamp { position: absolute; top: 18px; right: 18px; transform: rotate(4deg); padding: 6px 10px; border: 2px solid var(--red); color: var(--red); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) { .pending { grid-template-columns: 1fr; } }
.pending + .pending { margin-top: 28px; }

/* --------------------------------------------------------------------------
   04 — Sign-off
   -------------------------------------------------------------------------- */
.signoff { padding: clamp(56px, 7vw, 100px) 0 clamp(40px, 6vw, 80px); }
.signoff__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.signoff .h2 { font-size: clamp(48px, 8vw, 128px); }
/* business card: a printed card resting on the page, every line copies on click */
.vcard { display: grid; gap: 22px; justify-items: start; }
.vcard__card {
  position: relative; width: min(500px, 100%); padding: clamp(22px, 3vw, 32px);
  background: #faf8f3; border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(23,20,15,.04), 0 18px 34px -22px rgba(23,20,15,.45);
  transform: rotate(-1.2deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.vcard__card::before { content: ''; position: absolute; left: 0; top: 0; width: 34px; height: 3px; background: var(--red); }
.vcard__card:hover, .vcard__card:focus-within { transform: rotate(0); }
.vcard__head { display: grid; gap: 8px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.vcard__name { font: 400 clamp(28px, 3.2vw, 36px)/1 var(--serif); letter-spacing: -.02em; font-variation-settings: 'opsz' 36; }
.vcard__role { font: 400 11px/1.6 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.vcard__rows { list-style: none; margin: 0; padding: 0; }
.vcard__row {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 12px; align-items: baseline; width: 100%;
  padding: 11px 0; border: 0; border-bottom: 1px dashed var(--rule); background: none; color: inherit;
  text-align: left; text-decoration: none; cursor: pointer;
}
.vcard__rows li:last-child .vcard__row { border-bottom: 0; }
.vcard__k { font: 400 11px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.vcard__v { font-size: 15px; overflow-wrap: anywhere; }
.vcard__c { font: 400 11px/1 var(--mono); color: var(--ink-3); transition: color .15s; }
.vcard__row:hover .vcard__v, .vcard__row:focus-visible .vcard__v { color: var(--red); }
.vcard__row:hover .vcard__c, .vcard__row:focus-visible .vcard__c { color: var(--red); }
.vcard__row:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.vcard__row.is-done .vcard__c { color: #1f9d55; }
.vcard__loc { display: block; margin-top: 14px; font: 400 11px/1.4 var(--mono); color: var(--ink-3); }
.vcard__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .vcard__row { grid-template-columns: 1fr auto; } .vcard__k { grid-column: 1 / -1; } }

.stamp {
  justify-self: center; width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; cursor: pointer;
  border: 3px solid var(--red); color: var(--red); background: none;
  transform: rotate(-9deg) scale(.96); opacity: .22; transition: opacity .35s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
  position: relative;
}
.stamp::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid var(--red); }
.stamp:hover { opacity: .5; }
.stamp.is-on { opacity: .92; transform: rotate(-9deg) scale(1); }
.stamp b { display: block; font: 500 clamp(44px, 5vw, 64px)/1 var(--mono); letter-spacing: .06em; }
.stamp span { display: block; margin-top: 8px; font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.stamp small { display: block; margin-top: 10px; font: 400 11px/1 var(--mono); }
@media (max-width: 860px) { .signoff__grid { grid-template-columns: 1fr; } }

.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--margin); border-top: 1px solid var(--rule); font: 400 11px/1.4 var(--mono); color: var(--ink-3); }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .note { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .cover__name { font-size: 21vw; }
}

/* ======================================================================
   03.3 GMAO: annotated screens
   ====================================================================== */
.gm { border: 1px solid var(--ink); background: var(--paper); }
.gm__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.gm__tabs button { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border: 0; border-right: 1px solid var(--rule); background: none; text-align: left; cursor: pointer; font: 400 15px/1.25 var(--serif); color: var(--ink-2); position: relative; transition: background-color .2s, color .2s; }
.gm__tabs button:last-child { border-right: 0; }
.gm__tabs button i { font: 500 11px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.gm__tabs button:hover { background: color-mix(in srgb, var(--paper-2) 55%, var(--paper)); color: var(--ink); }
.gm__tabs button[aria-selected='true'] { background: var(--paper-2); color: var(--ink); }
.gm__tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); }
.gm__tabs button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

.gm__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: clamp(20px, 3vw, 36px); padding: clamp(16px, 2.4vw, 28px); }
.gm__panel[hidden] { display: none; }
.gm__win { margin: 0; border: 1px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 var(--paper-2); }
.gm__bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--rule); background: var(--paper); font: 400 11px/1 var(--mono); color: var(--ink-3); }
.gm__bar > i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-3); }
.gm__bar > span { margin-left: 10px; }
.gm__shot { position: relative; line-height: 0; }
.gm__shot img { width: 100%; height: auto; display: block; }
.gm__pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); font: 500 12px/1 var(--mono); }

.gm__notes { list-style: none; margin: 0; padding: 0; counter-reset: n; align-self: center; }
.gm__notes li { counter-increment: n; position: relative; padding: 0 0 18px 36px; font: 400 16px/1.45 var(--serif); color: var(--ink-2); }
.gm__notes li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); font: 500 11px/1 var(--mono); }

@media (max-width: 900px) {
  .gm__tabs { grid-template-columns: 1fr 1fr; }
  .gm__tabs button:nth-child(2) { border-right: 0; }
  .gm__tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .gm__panel { grid-template-columns: 1fr; }
  .gm__pin { width: 18px; height: 18px; font-size: 10px; box-shadow: 2px 2px 0 var(--paper); }
}
.gm__zoom { display: block; cursor: zoom-in; }
.gm__box { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 64px 3vmin 3vmin; background: rgba(23, 20, 15, .88); cursor: zoom-out; }
.gm__box img { width: auto; height: auto; max-width: calc(100vw - 6vmin); max-height: calc(100vh - 64px - 3vmin); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #fff; }
.gm__box button { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.6); border-radius: 0; background: rgba(23,20,15,.6) !important; color: #fff !important; font: 400 18px/1 var(--sans); cursor: pointer; outline: none; }
.gm__box button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.colophon__link { color: inherit; text-decoration: none; } .colophon__link:hover { color: var(--red); text-decoration: underline; }

/* ======================================================================
   03.4 D&D sheet: live demo in a window, loaded on click
   ====================================================================== */
.dd { border: 1px solid var(--ink); background: #0b0a0a; box-shadow: 6px 6px 0 var(--paper-2); }
.dd__bar { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-bottom: 1px solid var(--ink); background: var(--paper); font: 400 11px/1 var(--mono); color: var(--ink-2); }
.dd__bar > span:first-child { display: flex; gap: 6px; }
.dd__bar > span:first-child i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-3); }
.dd__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__full { color: var(--ink); text-decoration: none; padding: 5px 8px; border: 1px solid var(--ink); }
.dd__full:hover { background: var(--ink); color: var(--paper); }
.dd__stage { position: relative; height: min(760px, 80vh); overflow: hidden; }
.dd__stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.dd__poster { position: absolute; inset: 0; padding: 0; border: 0; background: #0b0a0a; cursor: pointer; overflow: hidden; }
.dd__poster img { width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: .72; transition: opacity .3s, transform .6s; }
.dd__poster::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,10,10,.15) 0%, rgba(11,10,10,.65) 75%); pointer-events: none; }
.dd__poster:hover img { opacity: .85; transform: scale(1.015); }
.dd__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 18px; padding: 18px 22px 18px 20px; background: var(--red); color: #fff; border: 1px solid var(--paper); box-shadow: 6px 6px 0 var(--paper); text-align: left; transition: transform .2s, box-shadow .2s; }
.dd__poster:hover .dd__play { transform: translate(calc(-50% - 2px), calc(-50% - 2px)); box-shadow: 9px 9px 0 var(--paper); }
.dd__poster:active .dd__play { transform: translate(calc(-50% + 3px), calc(-50% + 3px)); box-shadow: 2px 2px 0 var(--paper); }
.dd__die { width: 46px; height: 46px; flex: none; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.dd__poster:hover .dd__die { transform: rotate(72deg); }
.dd__txt { display: grid; gap: 6px; }
.dd__play b { font: 400 28px/1 var(--serif); letter-spacing: -.01em; }
.dd__play small { font: 400 12px/1.3 var(--mono); color: rgba(255,255,255,.82); }
.dd__go { font: 400 26px/1 var(--serif); font-style: normal; margin-left: 4px; transition: transform .2s; }
.dd__poster:hover .dd__go { transform: translateX(4px); }
.dd__poster:focus-visible .dd__play { outline: 2px solid #fff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .dd__die, .dd__go, .dd__play, .dd__poster img { transition: none; } }
@media (max-width: 700px) { .dd__stage { height: 78vh; } .dd__play { gap: 12px; padding: 14px 16px; } .dd__play b { font-size: 21px; } .dd__die { width: 34px; height: 34px; } .dd__go { display: none; } }
#projets { padding-bottom: clamp(40px, 5vw, 72px); }
