/* Landing page — Paper « Browser Design » (01M6Q7YT14ZKMGET54ASPNGQEC), page p-T-0 « Landing — storytelling »:
   board 1JEG-0 (the page at rest, 1200 x 900), 1JDM-0 (« Plus d'infos » open) and 1JF6-0 (the drawer's content).
   The window replica follows the shipped code (src/design-system.h, src/chrome.h, src/bookmarks-bar.h) where Paper's
   window (a picture, 1JEU-0) does not say more. Values and their sources: web/landing/DESIGN-VALUES.md. */

@font-face {
  font-family: "Inter Display";
  src: url("fonts/InterDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("fonts/InterDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("fonts/InterDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* The profile ink and the tab's fill change colour smoothly (the browser's 120 ms profile fade). */
@property --ink { syntax: "<color>"; inherits: true; initial-value: #4FC3D9; }
@property --tab-fill { syntax: "<color>"; inherits: true; initial-value: #171717; }

:root {
  /* Paper design tokens (get_tokens) */
  --color-browser-canvas: #171717;
  --color-browser-raised: #292929;
  --color-browser-hover: #333333;
  --color-browser-pressed: #3E3E3E;
  --color-browser-text: #FFFFFF;
  --color-browser-accent: #3E67FF;
  --font-browser-inter: "Inter Display";
  --text-browser-14: 14px;
  --text-browser-16: 16px;
  --opacity-browser-secondary: 50%;
  --opacity-browser-focus: 10%;
  --spacing-browser-4: 4px;
  --spacing-browser-6: 6px;
  --spacing-browser-8: 8px;
  --spacing-browser-16: 16px;
  --spacing-browser-24: 24px;
  --features-browser: "cv01", "cv02", "cv03", "cv04", "cv13", "tnum";

  /* Filled accent button: hover and press deepen the fill toward black (design-system.h Accent: 8 %, 16 %) */
  --accent-hover: #395FEB;
  --accent-press: #3457D6;

  /* Motion (src/motion.h, src/downloads.h DrawerMotion, src/tab-motion.h) */
  --hover-ms: 120ms;                     /* Interaction: hover 120 ms */
  --press-ms: 80ms;                      /* Interaction: press 80 ms */
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
  --ease-icon: cubic-bezier(0.2, 0, 0, 1);
  /* A critically damped spring from rest (Spring::At), sampled: drawer in 470 ms (response 0.32 s), out 353 ms (0.24 s) */
  --spring: linear(0, 0.05756, 0.1805, 0.3211, 0.4556, 0.5735, 0.6717, 0.7508, 0.813, 0.861, 0.8975, 0.9249, 0.9454, 0.9606, 0.9717, 0.9799, 0.9858, 0.9901, 0.9932, 0.9954, 0.997, 0.9982, 0.999, 0.9996, 1);

  /* The window replica's scale on the page: Paper draws the 1180-wide window 2588 px wide (1JEU-0); above 1200 app.js
     lets it grow, up to 1.3x */
  --k: 2.1932;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #000000; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: #000000;
  color: var(--color-browser-text);
  font-family: var(--font-browser-inter), system-ui, sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font: inherit; color: inherit; margin: 0; padding: 0; border: 0; background: none; cursor: default; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { display: block; }

/* ------------------------------------------------------------ the first screen (board 1JEG-0) */

.screen {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: clip;
}

.field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.field-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 400ms var(--ease-out); }
.field.is-drawn .field-canvas { opacity: 1; }

.column {
  position: relative;
  width: min(1036px, 100% - 2 * var(--gutter-min, 16px));   /* left at 82 on the 1200 board (1JEI-0) */
  margin-inline: auto;
  padding-top: 72px;
}

.hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--spacing-browser-16); width: fit-content; max-width: 100%; }
/* A soft shade of the page's black under the title and the buttons, so they read cleanly over the dots: a feathered
   ellipse with no edge, between the dots and the text; the window, painted after it, stays untouched. The hero is as
   wide as its text, so the shade sits on the text block itself (a little into the gutter, past the longest line). */
.hero::before {
  content: "";
  position: absolute;
  inset: -80px -120px -64px -96px;
  z-index: -1;
  background: radial-gradient(closest-side, #000000E6 0%, #000000B3 45%, #00000059 75%, #00000000 100%);
  pointer-events: none;
}

/* 1JEK-0 « Constat » */
.title {
  width: 800px;
  max-width: 100%;
  margin: 0;
  color: #FFFFFF;
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.actions { position: relative; z-index: 20; display: flex; align-items: flex-start; gap: 8px; }

/* 1JEM-0 / 1JES-0: 36 high, radius 8, padding 12 / 14, gap 8, 15/20 medium */
.action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--hover-ms) var(--ease-out);
  -webkit-user-select: none;
  user-select: none;
}
.action:focus-visible { outline: 2px solid #FFFFFFE6; outline-offset: 2px; }
.action-primary { background: var(--color-browser-accent); }
.action-icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-secondary { background: var(--color-browser-canvas); }
.action-secondary span { opacity: 0.75; transition: opacity var(--hover-ms) var(--ease-out); }
@media (hover: hover) {
  .action-primary:hover { background: var(--accent-hover); }
  .action-secondary:hover { background: var(--color-browser-hover); }
  .action-secondary:hover span { opacity: 1; }
}
.action-primary:active { background: var(--accent-press); transition-duration: var(--press-ms); }
.action-secondary:active { background: var(--color-browser-pressed); transition-duration: var(--press-ms); }

/* The window: 24 under the buttons, bleeding off the right edge, cut by the bottom of the screen */
.stage { margin-top: var(--spacing-browser-24); }

/* 1JEV-0: the bottom fades to black over 357 px, above the window, under the footer */
.screen-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 357px;
  background-image: linear-gradient(180deg, #00000000 0%, #000000 100%);
  background-image: linear-gradient(in oklab 180deg, #00000000 0%, #000000 100%);
  pointer-events: none;
}

/* 1JEW-0 « Rangée »: 1037 wide, centred, padding 32 */
.foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1037px, 100% - 2 * var(--gutter-min, 16px));
  padding-block: 32px;
  font-size: 14px;
  line-height: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.foot-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px; }
.foot-name { color: #FFFFFF; font-weight: 500; }
.foot-version { color: #FFFFFF99; white-space: nowrap; }
.foot-links { display: flex; gap: 24px; }
.foot-link {
  color: #FFFFFFB8;
  text-decoration: underline 1px;
  text-underline-offset: 3px;
  border-radius: 3px;
  transition: color var(--hover-ms) var(--ease-out);
}
@media (hover: hover) { .foot-link:hover { color: #FFFFFF; } }
.foot-link:focus-visible { outline: 2px solid #FFFFFFE6; outline-offset: 2px; }

/* ------------------------------------------------------------ the window replica
   Everything inside .win is in the browser's DIPs; `zoom` brings it to Paper's size (1180 → 2588 at 1200 wide). */

.win {
  --ink: #4FC3D9;
  position: relative;
  width: 1181px;
  height: 442px;
  border: 1px solid #292929;
  border-radius: 9px;
  background: var(--color-browser-canvas);
  zoom: var(--k);
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  -webkit-user-select: none;
  user-select: none;
  transition: --ink 120ms var(--ease-out);
}

.ic16 { width: 16px; height: 16px; fill: #FFFFFF; opacity: 0.5; flex-shrink: 0; }
.ic14 { width: 14px; height: 14px; fill: #FFFFFF; flex-shrink: 0; }

/* Buttons (design-system.h Resolve): ghost on the canvas, raised and embedded on #292929; hover #333, pressed
   #3E3E3E with the glyph at 0.96; keyboard focus: 1 DIP white at 50 % inside the edge. */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color var(--hover-ms) var(--ease-out);
}
.btn > svg { transition: scale var(--press-ms) var(--ease-out); }
.btn.raised, .btn.embedded { background: var(--color-browser-raised); }
.btn.embedded { background: transparent; }
@media (hover: hover) {
  .btn:hover { background: var(--color-browser-hover); }
}
.btn:active { background: var(--color-browser-pressed); transition-duration: var(--press-ms); }
.btn:active > svg { scale: 0.96; }
.btn:focus-visible, .tab:focus-visible, .bm:focus-visible, .profile:focus-visible, .tab-close:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #FFFFFF80; }

/* Tab row (TabStrip): 2 .. 40, tabs 6 .. 38 */
.tabrow { position: absolute; inset: 0 0 auto 0; height: 40px; }

/* Profile button (design-system.h ProfileButton): plate 32 at (6, 6), radius 8, glyph 16 in the profile ink. The plate
   is the ink at 16 % as Paper's window shows it at rest (the shipped rest is 10 %), 22 % under the pointer and
   pressed (with the glyph at 0.96). */
.profile {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  transition: background-color var(--hover-ms) var(--ease-out);
}
@media (hover: hover) { .profile:hover { background: color-mix(in srgb, var(--ink) 22%, transparent); } }
.profile:active { background: color-mix(in srgb, var(--ink) 22%, transparent); transition-duration: var(--press-ms); }
.profile-glyphs { position: absolute; inset: 8px; transition: scale var(--press-ms) var(--ease-out); }
.profile:active .profile-glyphs { scale: 0.96; }
.profile-glyph { position: absolute; inset: 0; width: 16px; height: 16px; fill: var(--ink); }

/* Tabs: 128 x 32, 6 apart, first at 44 (the strip starts at 38); positions come from app.js */
.tabs { position: absolute; left: 38px; top: 0; height: 40px; width: 900px; }
.tab {
  --tab-fill: var(--color-browser-canvas);
  position: absolute;
  top: 6px;
  left: 0;
  width: 128px;
  height: 32px;
  border-radius: 6px;
  background: var(--tab-fill);
  transition: --tab-fill var(--hover-ms) var(--ease-out);
}
@media (hover: hover) { .tab:hover { --tab-fill: #222222; } }
.tab[aria-selected="true"] { --tab-fill: var(--color-browser-raised); }
.tab-favicon { position: absolute; left: 8px; top: 8px; width: 16px; height: 16px; }
.tab-title {
  position: absolute;
  left: 32px;
  right: 8px;
  top: 0;
  overflow: hidden;
  color: #FFFFFF;
  opacity: 0.4518;                                  /* Text::muted */
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tab[aria-selected="true"] .tab-title { opacity: 0.5; }   /* Text::secondary */
/* Paper « Titre d'onglet trop long — v2 »: with the close showing, the title dissolves over 20 before it */
.tab-veil {
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 4px;
  width: 44px;
  background: linear-gradient(90deg, transparent, var(--tab-fill) 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hover-ms) var(--ease-out);
}
.tab-close {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  opacity: 0;
  transition: opacity var(--hover-ms) var(--ease-out);
}
.tab-close svg { transition: scale var(--press-ms) var(--ease-out); }
.tab-close:active svg { scale: 0.96; }
.tab:hover .tab-close, .tab:focus-within .tab-close, .tab:hover .tab-veil, .tab:focus-within .tab-veil { opacity: 1; }
.tab-content { position: absolute; inset: 0; }

/* Opening and closing (tab-motion.h): the slot grows on a spring, the content eases in after 30 % of it; a closing
   tab blurs out (150 ms) while its neighbours glide over it. app.js drives the positions. */
.tab.is-ghost { pointer-events: none; z-index: 0; }
.tab:not(.is-ghost) { z-index: 1; }

.newtab { position: absolute; top: 6px; left: 178px; width: 32px; height: 32px; }

/* Window controls: 32 x 32, 8 apart, icon 14 #FFFFFF82; close hover #FA6A594D / #FFD0C8CC */
.winctl { position: absolute; right: 6px; top: 4px; display: flex; gap: 8px; }
.wc { width: 32px; height: 32px; color: #FFFFFF82; }
.wc .ic14 { fill: currentColor; }
@media (hover: hover) { .wc-close:hover { background: #FA6A594D; color: #FFD0C8CC; } }

/* Toolbar: 44 .. 76 */
.toolbar { position: absolute; inset: 44px 0 auto 0; height: 32px; }
.navpair { position: absolute; left: 6px; top: 0; display: flex; align-items: center; }
.nav-back, .nav-forward { width: 32px; height: 32px; }
.nav-back { border-radius: 6px 3px 3px 6px; }
.nav-forward { border-radius: 3px 6px 6px 3px; }
.navpair-rule { width: 1px; height: 10px; margin: 0 3px; background: #FFFFFF1A; }
.btn[aria-disabled="true"] > svg { opacity: 0.16; }
.btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { background: var(--color-browser-raised); }
.btn[aria-disabled="true"]:active > svg { scale: 1; }
.reload { position: absolute; left: 83px; top: 0; width: 32px; height: 32px; }

.lottie { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; opacity: 0.5; pointer-events: none; }
.lottie svg { width: 16px !important; height: 16px !important; }
.btn.is-playing > .still { visibility: hidden; }
.btn:not(.is-playing) > .lottie { visibility: hidden; }

/* Address field (address.h): 121 .. tools - 6, radius 6, #292929. URL 16/20, -0.01em, host white, path 50 %,
   clipped under a 24 fade before the embedded buttons. Loading line: white 8 % from the left (DrawLoading). */
.address {
  position: absolute;
  left: 121px;
  right: 133px;
  top: 0;
  height: 32px;
  border-radius: 6px;
  background: var(--color-browser-raised);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 0 11px;
}
.loading {
  --f: 0;
  --o: 0;
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #FFFFFF14;
  clip-path: inset(0 calc(100% - var(--f) * 100%) 0 0);
  opacity: var(--o);
  pointer-events: none;
}
.address-text {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 32px;
  overflow: hidden;
  font-size: 16px;
  line-height: 32px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.url { position: absolute; left: 0; top: 0; display: flex; align-items: center; height: 32px; }
.url-host { color: #FFFFFF; }
.url-path { color: #FFFFFF80; }
.url-search { display: flex; align-items: center; gap: 8px; color: #FFFFFF80; }
.address .btn { position: relative; width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; }

.tools { position: absolute; right: 6px; top: 4px; display: flex; align-items: center; gap: 6px; }
.tool { width: 24px; height: 24px; }
.tool-settings { border-radius: 3px; }
.tools-rule { width: 1px; height: 10px; background: #FFFFFF33; }

/* Favourites band (bookmarks-bar.h): items 32 high, padding 6, 2 apart; inside: 8, icon 16, 6, title 14 medium at 50 %
   (white on hover), folders a 12 caret at 64 %. Titles longer than 160 dissolve (never « … »). */
.band { position: absolute; left: 0; right: 0; top: 83px; height: 32px; display: flex; gap: 2px; padding-left: 7px; }
.bm {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  max-width: 160px;
  padding: 0 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background-color var(--hover-ms) var(--ease-out);
}
@media (hover: hover) { .bm:hover { background: var(--color-browser-hover); } }
.bm:active { background: var(--color-browser-pressed); transition-duration: var(--press-ms); }
.bm-icon { width: 16px; height: 16px; flex-shrink: 0; }
.bm-title {
  min-width: 0;
  overflow: hidden;
  color: #FFFFFF;
  opacity: 0.5;
  font-size: 14px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity var(--hover-ms) var(--ease-out);
}
.bm:hover .bm-title, .bm:focus-visible .bm-title { opacity: 1; }
.bm-caret { width: 12px; height: 12px; fill: #FFFFFF; opacity: 0.32; flex-shrink: 0; transition: opacity var(--hover-ms) var(--ease-out); }
.bm:hover .bm-caret { opacity: 0.5; }
.bm-folder { width: 16px; height: 16px; fill: #FFFFFF; opacity: 0.5; }

/* The page: under the chrome, 4 from the window's edges; a capture of the public page, its top, cross-fading on a change */
.viewport {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 118px;
  bottom: 3px;
  border-radius: 0 0 6px 6px;
  background: #0E0E0E;
  overflow: hidden;
}
.shot { position: absolute; inset: 0; display: block; background: var(--shot-ground, #0E0E0E); transition: opacity 260ms var(--ease-out); }
.shot img { display: block; width: 100%; height: auto; }
.shot.is-entering { opacity: 0; }

/* State changes (app.js): what changes cross-fades with a light blur */
.swap-out { animation: swap-out 180ms var(--ease-out) both; }
.swap-in { animation: swap-in 260ms var(--ease-icon) both; }
@keyframes swap-out { to { opacity: 0; filter: blur(3px); } }
@keyframes swap-in { from { opacity: 0; filter: blur(3px); } }
.glyph-out { animation: glyph-out 160ms var(--ease-out) both; }
.glyph-in { animation: glyph-in 240ms var(--ease-icon) both; }
@keyframes glyph-out { to { opacity: 0; scale: 0.6; filter: blur(2px); } }
@keyframes glyph-in { from { opacity: 0; scale: 0.6; filter: blur(2px); } }

/* ------------------------------------------------------------ « Plus d'infos » (1JF6-0, docked as in 1JDM-0) */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(332px, 100vw - 40px);
  border: 1px solid #FFFFFF05;
  background: var(--color-browser-canvas);
  translate: 100% 0;
  transition: translate 353ms var(--spring), visibility 0s linear 353ms;
  visibility: hidden;
}
.drawer[hidden] { display: none; }
.drawer.is-open { translate: 0 0; visibility: visible; transition: translate 470ms var(--spring), visibility 0s; }
.drawer:focus { outline: none; }
.drawer-scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-browser-24);
  height: 100%;
  padding: 16px var(--spacing-browser-16);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #FFFFFF33 transparent;
}
.drawer-intro {
  margin: 0;
  color: #FFFFFFCC;
  font-size: var(--text-browser-16);
  font-weight: 500;
  line-height: 24px;
  text-wrap: balance;
}
.drawer-close {
  position: absolute;
  right: 14.4px;
  top: 15.587px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  transition: background-color var(--hover-ms) var(--ease-out);
}
.drawer-close svg { width: 14px; height: 14px; fill: #FFFFFFB3; transition: scale var(--press-ms) var(--ease-out); }
@media (hover: hover) { .drawer-close:hover { background: var(--color-browser-hover); } }
.drawer-close:active { background: var(--color-browser-pressed); transition-duration: var(--press-ms); }
.drawer-close:active svg { scale: 0.96; }
.drawer-close:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #FFFFFF80; }

.rule {
  flex-shrink: 0;
  height: 1px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #DDDDDD 10%, transparent);
}

.theme { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.theme-head { display: flex; align-items: center; gap: 8px; padding-bottom: var(--spacing-browser-8); }
.theme-title {
  margin: 0;
  padding-bottom: var(--spacing-browser-8);
  color: #FFFFFFCC;
  font-family: "Inter Display", system-ui, sans-serif;
  font-feature-settings: var(--features-browser);
  font-size: var(--text-browser-16);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
}
.theme-head .theme-title { padding-bottom: 0; }
.chip { padding: 1px 5px; border-radius: 4px; background: #FFFFFF14; color: #FFFFFFA3; font-size: 12px; line-height: 14px; }
.theme-text {
  align-self: stretch;
  margin: 0;
  padding: 0 4px var(--spacing-browser-8) 0;
  color: #FFFFFFA3;
  font-size: var(--text-browser-14);
  line-height: 22px;
  text-wrap: balance;
}
/* 1JJJ-0: Paper's window, 673 x 251, running past the drawer's edge */
.theme-window { display: block; flex-shrink: 0; width: 673px; max-width: none; height: 251px; }

/* Paper « Tiroir — illustrations B · Plans tramés » (1KFS-0): each drawing is drawn at Paper's 298 and brought to the
   drawer's width (app.js sets --fit: width / 298), so it scales whole and is never cut. Ground: a 12 px dot grid. */
.ill { align-self: stretch; }
.ill-box {
  position: relative;
  width: 298px;
  zoom: var(--fit, 1);
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 0.8px, transparent 1.2px) 4px 4px / 12px 12px;
}
.ill-natif, .ill-profils { height: 232px; }
.ill-annot { height: 166px; }
.ill-art { position: absolute; left: 0; top: 0; width: 298px; height: 232px; }
.natif-label {
  position: absolute;
  left: 220px;
  color: #FFFFFFE6;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  white-space: pre;
}
.annot-width { position: absolute; left: 16px; top: 40px; width: 266px; height: 32px; border: 1px dashed #FFFFFF52; border-radius: 8px; }
/* The picked button, at the story's end: it has taken the form's full width (the dashed target, 266), covering the trail.
   The button's ground and frame are one layer that grows from Paper's 180 by scaleX (from the left); its label is a layer
   of its own that slides to the new centre, so nothing depends on measuring. */
.annot-pay {
  position: absolute;
  left: 16px;
  top: 40px;
  width: 266px;
  height: 32px;
  border-radius: 8px;
  background: #3E67FF24;
  box-shadow: #3E67FF 0 0 0 1.5px inset;
  transform-origin: 0 50%;
}
.annot-label {
  position: absolute;
  left: 16px;
  top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 266px;
  height: 32px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.annot-tag {
  position: absolute;
  left: 16px;
  top: 18px;
  display: flex;
  align-items: center;
  height: 16px;
  padding-inline: 5px;
  border-radius: 4px;
  background: var(--color-browser-accent);
  color: #FFFFFF;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  white-space: pre;
}
.annot-cursor { position: absolute; left: 244px; top: 40px; }
.annot-trame { position: absolute; left: 199px; top: 41px; width: 84px; height: 30px; clip-path: inset(0 0 0 100%); }   /* covered: the story's end */
/* Paper 1KXT-0: the conversation bubble at zoom 0.68, its top left at (77.1, 83.1) */
.bubble-think { position: absolute; left: 14px; top: 56px; display: flex; gap: 3px; opacity: 0; }
.bubble-think i { width: 4px; height: 4px; border-radius: 50%; background: #FFFFFF80; }
.ill-annot .bubble { position: absolute; left: calc(77.11px / 0.68); top: calc(83.12px / 0.68); zoom: 0.68; box-shadow: #FFFFFF1A 0 0 0 1px; }
/* Paper 1L2P-0 « Illustration — Sécurité (plan) »: the vault fills the right site only */
.ill-secu { height: 232px; }
.secu-links { position: absolute; left: 0; top: 0; }
.secu-mono { position: absolute; display: flex; align-items: center; gap: 5px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; font-weight: 500; line-height: 12px; white-space: pre; }
.secu-vault { position: absolute; left: 16px; top: 88px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #FFFFFF59; border-radius: 11px; background: var(--color-browser-canvas); }
.secu-dpapi { left: 16px; top: 140px; width: 44px; justify-content: center; color: #FFFFFF99; }
.secu-site { left: 92px; }
.secu-ok { top: 22px; color: #FFFFFFE6; }
.secu-no { top: 146px; color: #FFFFFF80; }
.secu-filled { position: absolute; left: 92px; top: 40px; display: flex; align-items: center; gap: 7px; width: 190px; height: 28px; padding-left: 10px; border-radius: 7px; background: #3E67FF24; box-shadow: #3E67FF 0 0 0 1.5px inset; overflow: clip; }
.secu-filled span { color: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 16px; letter-spacing: 0.12em; }
.secu-dots i { font-style: normal; }
.secu-dash { position: absolute; left: 0; top: 0; }
.secu-empty { left: 92px; top: 164px; width: 190px; height: 28px; padding-left: 10px; border: 1px dashed #FFFFFF52; border-radius: 7px; color: #FFFFFF66; }
/* Paper 1L43-0 « Illustration — Traqueurs (plan) »: the page's own request passes, the trackers stop at the shield */
.ill-track { height: 120px; }
.track-lines { position: absolute; left: 0; top: 0; }
.track-page { position: absolute; left: 16px; top: 16px; width: 60px; height: 88px; border: 1px solid #FFFFFF59; border-radius: 8px; background: var(--color-browser-canvas); overflow: clip; }
.track-page i { position: absolute; left: 8px; height: 3px; border-radius: 2px; background: #FFFFFF33; }
.track-page img { position: absolute; left: 8px; top: 42px; width: 42px; height: 32px; }
.track-shield { position: absolute; left: 143px; top: 67px; display: flex; }
.track-req { left: 166px; color: var(--color-browser-danger, #FF7B6E); }
.track-pass { color: #FFFFFFE6; }
.flux-art { position: absolute; left: 8px; top: 0; width: 298px; height: 232px; }
.flux-from { position: absolute; left: 23px; top: 101px; width: 23px; height: 23px; }
.flux-to { position: absolute; left: 123px; top: 91px; width: 43px; height: 43px; border-radius: 10px; filter: contrast(108%); }
.flux-profile {
  position: absolute;
  left: 192px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFFE6;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: pre;
}
.flux-profile span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.flux-profile svg { width: 14px; height: 14px; fill: var(--ink); }
.bubble { display: flex; flex-direction: column; gap: 12px; width: 305px; padding: 12px; border-radius: 16px; background: #171717; }
.bubble-text { min-height: 40px; color: #FFFFFFE6; font-size: 14px; line-height: 20px; }   /* two lines held while it types */
.bubble-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.bubble-lead { display: flex; }
.bubble-plus { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.bubble-plus svg { opacity: 0.5; }
.bubble-mode { display: flex; align-items: center; gap: 5px; height: 24px; padding-inline: 6px; color: #FFFFFF80; font-size: 14px; line-height: 20px; }
.bubble-mode svg { opacity: 0.9; }
.bubble-trail { display: flex; align-items: center; gap: 4px; }
.bubble-model { display: flex; align-items: center; gap: 4px; height: 24px; padding-inline: 6px; }
.bubble-model-name { margin-left: 0; color: #FFFFFFE6; font-size: 12px; font-weight: 500; line-height: 16px; white-space: pre; }
.bubble-effort { color: #FFFFFF80; font-size: 12px; line-height: 16px; white-space: pre; }
.bubble-send { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--color-browser-accent); }

/* ------------------------------------------------------------ « Changelog » (Paper 1JUV-0, anchored as in 1JX8-0)
   360 x 520 above the footer link (its right edge 14 past the link's, bottom 64), the browser's canvas, radius 10,
   border #FFFFFF0D, shadow 0 16 48 #00000099. In and out on the drawer's spring; on phones a bottom sheet. */
.changelog {
  position: fixed;
  right: 68px;
  bottom: 64px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: 360px;
  height: min(520px, 100vh - 88px);
  border: 1px solid #FFFFFF0D;
  border-radius: 10px;
  background: var(--color-browser-canvas);
  box-shadow: #00000099 0 16px 48px;
  overflow: clip;
  opacity: 0;
  translate: 0 8px;
  scale: 0.98;
  transform-origin: 100% 100%;
  visibility: hidden;
  transition: opacity 200ms var(--ease-out), translate 353ms var(--spring), scale 353ms var(--spring), visibility 0s linear 353ms;
}
.changelog[hidden] { display: none; }
.changelog.is-open { opacity: 1; translate: 0 0; scale: 1; visibility: visible; transition: opacity 200ms var(--ease-out), translate 470ms var(--spring), scale 470ms var(--spring), visibility 0s; }
.changelog:focus { outline: none; }
.cl-head { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; padding: 16px 16px 0; }
.cl-bar { display: flex; align-items: center; justify-content: space-between; }
.cl-name { display: flex; align-items: center; gap: 6px; }
.cl-mark { position: relative; display: block; width: 20px; height: 20px; flex-shrink: 0; }
.cl-mark svg { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.cl-title {
  margin: 0;
  color: #FFFFFFE6;
  font-feature-settings: var(--features-browser);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
}
.cl-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 3px;
  transition: background-color var(--hover-ms) var(--ease-out);
}
.cl-close svg { transition: scale var(--press-ms) var(--ease-out); }
@media (hover: hover) { .cl-close:hover { background: var(--color-browser-hover); } }
.cl-close:active { background: var(--color-browser-pressed); transition-duration: var(--press-ms); }
.cl-close:active svg { scale: 0.96; }
.cl-close:focus-visible, .cl-all:focus-visible, .cl-list:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #FFFFFF80; }
.cl-rule { height: 1px; flex-shrink: 0; border-radius: 999px; background: #DDDDDD1A; }
.cl-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 0%;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #FFFFFF33 transparent;
}
.cl-day { display: flex; flex-direction: column; gap: 12px; }
.cl-day + .cl-day { position: relative; }
.cl-day-rule { height: 1px; flex-shrink: 0; background: #DDDDDD14; }
.cl-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cl-date { margin: 0; color: #FFFFFFE6; font-size: 14px; font-weight: 500; line-height: 20px; white-space: pre; }
.cl-range { color: #FFFFFF66; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; line-height: 18px; white-space: pre; }
.cl-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: #FFFFFF08; }
.cl-kind { display: flex; align-items: center; gap: 6px; margin: 0; color: #FFFFFFCC; font-size: 13px; font-weight: 500; line-height: 18px; }
.cl-kind svg { flex-shrink: 0; }
.cl-items { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
/* Each line: a 22 gutter holding an 8 x 1.5 dash (#FFFFFF4D) on the first line, the text hanging past it */
.cl-items li { display: flex; color: #FFFFFF80; font-size: 14px; line-height: 20px; letter-spacing: 0.01em; }
.cl-items li::before { content: ""; flex-shrink: 0; width: 8px; height: 1.5px; margin: 9px 7px 0; border-radius: 1px; background: #FFFFFF4D; }
.cl-items li span { flex: 1 1 0%; min-width: 0; text-wrap: balance; }
.cl-note { margin: 0; color: #FFFFFF80; font-size: 14px; line-height: 20px; }
.cl-foot { position: relative; display: flex; flex-direction: column; flex-shrink: 0; }
.cl-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: 48px;
  background-image: linear-gradient(180deg, #17171700 0%, #171717 100%);
  background-image: linear-gradient(in oklab 180deg, #17171700 0%, #171717 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}
.cl-fade.is-on { opacity: 1; }
.cl-foot-rule { height: 1px; flex-shrink: 0; margin: 0 16px; background: #DDDDDD1A; }
.cl-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #FFFFFF80;
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
  transition: color var(--hover-ms) var(--ease-out);
}
@media (hover: hover) { .cl-all:hover { color: #FFFFFFCC; } }

@media (max-width: 639px) {
  .changelog {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(560px, 85vh);
    border-width: 1px 0 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    translate: 0 100%;
    scale: 1;
  }
  .changelog.is-open { translate: 0 0; }
}

/* ------------------------------------------------------------ SmartScreen notice
   The browser's own small dialog (Paper p-1-0 « A10 · Récupération WebView2 », QLT-0; src/modal.h): 400, padding 16,
   gap 16, radius 10, 1 px #FFFFFF14, canvas #171717. */
.download-anchor { position: relative; }

.smartscreen {
  --ss-width: min(400px, calc(100vw - 32px));
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: var(--ss-width);
  padding: 16px;
  border: 1px solid #FFFFFF14;
  border-radius: 10px;
  background: var(--color-browser-canvas);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 16px;
  text-align: start;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 60%), 0 8px 16px -8px rgb(0 0 0 / 40%);
  transform-origin: 0 0;
}
.smartscreen[hidden] { display: none; }
.smartscreen:focus { outline: none; }
.ss-head { display: flex; flex-direction: column; gap: 4px; }
.ss-title { margin: 0; color: #FFFFFF; font-size: 16px; font-weight: 500; line-height: 20px; letter-spacing: -0.01em; }
.ss-text-wrap { padding-top: 4px; }
.ss-text { margin: 0; color: #FFFFFF80; font-size: 14px; line-height: 20px; text-wrap: pretty; }
/* Schematic of the Windows warning, drawn with the page's own shapes (no Microsoft UI or branding): title, two
   text bars, the link (1) and the button (2) circled in accent. */
.ss-sketch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid #FFFFFF0F;
  border-radius: 6px;
  background: #FFFFFF0A;
}
.ss-sketch-title { color: #FFFFFFE6; font-size: 13px; font-weight: 500; line-height: 16px; }
.ss-bar { display: block; height: 6px; border-radius: 3px; background: #FFFFFF1F; }
.ss-mark { position: relative; display: inline-flex; padding: 2px; border-radius: 6px; box-shadow: 0 0 0 1.5px var(--color-browser-accent); }
.ss-mark .ss-num { position: absolute; top: -8px; left: -8px; }
.ss-mark-link { margin: 4px 0 0 6px; }
.ss-sketch-link { padding: 1px 4px; color: #FFFFFFB3; font-size: 11px; line-height: 14px; text-decoration: underline; text-underline-offset: 2px; }
.ss-sketch-actions { display: flex; align-self: flex-end; align-items: center; gap: 8px; margin-top: 4px; }
.ss-sketch-btn {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 8px;
  border-radius: 4px;
  background: #FFFFFF14;
  color: #FFFFFFB3;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}
.ss-mark-run .ss-sketch-btn { color: #FFFFFFE6; }
.ss-num {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--color-browser-accent);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.ss-num-lg { width: 18px; height: 18px; border-radius: 9px; font-size: 11px; line-height: 18px; }
.ss-steps { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ss-step { display: flex; align-items: center; gap: 8px; min-height: 32px; padding-right: 4px; color: #FFFFFFE6; font-size: 14px; line-height: 20px; }
.ss-step b { font-weight: 500; }
.smartscreen { transition: opacity 120ms ease-out; }
.smartscreen.is-open { transition: opacity 150ms var(--ease-out), translate 150ms var(--ease-out); }
.smartscreen.is-entering { opacity: 0; translate: 0 4px; }
.smartscreen.is-leaving { opacity: 0; }

/* ------------------------------------------------------------ smaller windows */

/* Wider than the 1200 board: the column stays anchored left on a gutter that grows gently (Paper's 82 at 1200, the
   same 6.83 % after, at most 176), the title grows a little (36 to 45 at 2560, its measure kept), the window fills
   the rest to the right edge; buttons, footer and drawer keep Paper's size. */
@media (min-width: 1201px) {
  .column { width: auto; margin-inline: clamp(82px, 6.83vw, 176px) 0; }
  .foot { width: auto; margin-inline: clamp(82px, 6.83vw, 176px); }
  .title {
    width: 22.23em;                                   /* 800 at 36 */
    font-size: clamp(36px, 36px + (100vw - 1200px) * 0.00662, 45px);
    line-height: 1.2222;                              /* 44 at 36 */
  }
}
@media (max-width: 1099px) {
  :root { --k: 1.6; }
  .column { padding-top: 56px; }
  .title { font-size: 32px; line-height: 40px; }
}
@media (max-width: 639px) {
  :root { --k: 1; }
  .column { padding-top: 40px; }
  .title { font-size: 28px; line-height: 34px; letter-spacing: -0.025em; }
  .foot { padding-block: 24px; font-size: 13px; }
  .foot-links { gap: 16px; }
}
@media (max-width: 379px) {
  .actions { flex-wrap: wrap; }
  .foot-version { display: none; }
}
@media (pointer: coarse) {
  .action { height: 44px; }
}

/* ------------------------------------------------------------ reduced motion: fades only, no travel */
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.is-open { translate: 0 0; opacity: 0; transition: opacity 150ms ease, visibility 0s linear 150ms; }
  .drawer.is-open { opacity: 1; transition: opacity 150ms ease, visibility 0s; }
  .swap-out, .swap-in, .glyph-out, .glyph-in { animation: none; }
  .shot { transition: none; }
  .smartscreen, .smartscreen.is-open { transition: opacity 150ms ease; }
  .changelog, .changelog.is-open { translate: 0 0; scale: 1; transition: opacity 150ms ease, visibility 0s linear 150ms; }
  .changelog.is-open { transition: opacity 150ms ease, visibility 0s; }
  .smartscreen.is-entering { translate: 0 0; }
}

/* ------------------------------------------------------------ the drawer's motion (app.js arms it; never with reduced motion)
   Opening: the themes rise once (8 px, 320 ms, ease-out, 30 ms apart). Each drawing tells its short story (2 to 4 s)
   once when it scrolls into the drawer, again under a fine pointer, and rests on its last frame, which is also what
   reduced motion shows. Transform, opacity, clip-path, stroke, and one width (an absolutely placed button). */
:root { --ease-ui: cubic-bezier(0.23, 1, 0.32, 1); --ease-move: cubic-bezier(0.77, 0, 0.175, 1); }
.drawer-scroll.is-revealing > * { animation: drawer-rise 320ms var(--ease-ui) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes drawer-rise { from { opacity: 0; translate: 0 8px; } }
.ill.is-armed:not(.is-play) .ill-box > :where(:not(.flow)) { opacity: 0; }
/* :where() keeps this default at the specificity of the stories' own rules below (they must win) */
.ill.is-play .ill-box > :where(:not(.flow)) { animation: fade-up 420ms var(--ease-ui) both; }
@keyframes fade-up { from { opacity: 0; translate: 0 6px; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; scale: 0.9; } }
@keyframes line-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wipe-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes grow-x { from { scale: 0 1; } }
@keyframes pulse { 50% { scale: 1.16; } }

/* 2 · Simplement natif (2.4 s): the three layers come down into place, each label lights up as its layer lands */
.ill.is-play .natif-guides { animation: fade-in 600ms var(--ease-ui) both; }
.ill.is-play .natif-base { animation: layer-land 560ms var(--ease-ui) 200ms both; }
.ill.is-play .natif-mid { animation: layer-land 560ms var(--ease-ui) 700ms both; }
.ill.is-play .natif-top { animation: layer-land 560ms var(--ease-ui) 1200ms both; }
@keyframes layer-land { from { opacity: 0; translate: 0 -18px; } }
.ill.is-play .natif-leaders { animation: fade-in 400ms var(--ease-ui) 1500ms both; }
.ill.is-play .natif-label { animation: label-light 700ms var(--ease-ui) both; }
.ill.is-play .natif-l-base { animation-delay: 600ms; }
.ill.is-play .natif-l-mid { animation-delay: 1100ms; }
.ill.is-play .natif-l-top { animation-delay: 1600ms; }
@keyframes label-light { from { opacity: 0; translate: -6px 0; } 40% { opacity: 1; color: #FFFFFF; } }

/* 3 · Montrer… (4 s): the pointer goes to « Payer » (Paper's 180 button), the element is picked and its target shows,
   the request types itself (app.js), it is sent, the agent thinks, then the button widens to the form's full width
   (600 ms, ease-out), the pointer riding its edge. The last frame (also reduced motion's) is the widened button.
   The widening is transform only (scale of the ground, translate of the label and the pointer), from the left edge. */
.ill.is-play .annot-pay { animation: frame-draw 360ms var(--ease-ui) 500ms both, widen 600ms var(--ease-ui) 3450ms both; }
@keyframes frame-draw { from { clip-path: inset(0 100% 0 0 round 8px); } to { clip-path: inset(0 0 0 0 round 8px); } }
@keyframes widen { from { scale: 0.6767 1; } to { scale: 1 1; } }
.ill.is-play .annot-label { animation: fade-in 300ms var(--ease-ui) 600ms both, label-follow 600ms var(--ease-ui) 3450ms both; }
@keyframes label-follow { from { translate: -43px 0; } to { translate: 0 0; } }
.ill.is-play .annot-cursor { animation: cursor-come 700ms var(--ease-move) both, edge-follow 600ms var(--ease-ui) 3450ms both; }
@keyframes cursor-come { from { opacity: 0; transform: translate(40px, 54px); } 20% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes edge-follow { from { translate: -86px 0; } to { translate: 0 0; } }
.ill.is-play .annot-tag { animation: fade-up 300ms var(--ease-ui) 700ms both; }
.ill.is-play .annot-width { animation: fade-in 300ms var(--ease-ui) 800ms both; }
.ill.is-play .annot-trame { animation: trail-story 4050ms linear both; }
/* the trail fills (0.85 s), then the growing button covers it from the left (3.45 s, with the widening) */
@keyframes trail-story {
  0%, 21% { clip-path: inset(0 100% 0 0); animation-timing-function: var(--ease-ui); }
  33.8%, 85.2% { clip-path: inset(0 0 0 0); animation-timing-function: var(--ease-ui); }
  100% { clip-path: inset(0 0 0 100%); }
}
.ill.is-play .bubble { animation: fade-up 360ms var(--ease-ui) 900ms both; }
.ill.is-play .bubble-send { animation: pulse 260ms var(--ease-ui) 2550ms both; }
.ill.is-play .bubble-think { animation: think 700ms linear 2700ms both; }
@keyframes think { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }
.ill.is-play .bubble-think i { animation: think-dot 350ms ease-in-out 2700ms 2 alternate both; }
.ill.is-play .bubble-think i:nth-child(2) { animation-delay: 2800ms; }
.ill.is-play .bubble-think i:nth-child(3) { animation-delay: 2900ms; }
@keyframes think-dot { to { translate: 0 -2px; background: #FFFFFFE6; } }

/* 4 · Vos secrets… (3.2 s): the key line draws to the right site, the password fills dot by dot; then the look-alike:
   its dashed link reaches the vault and stops, a « no », and its field stays empty */
.ill.is-play .secu-ok { animation: fade-up 300ms var(--ease-ui) 100ms both; }
.ill.is-play .secu-links .draw { stroke-dasharray: 1; animation: line-draw 520ms var(--ease-ui) 250ms both; }
.ill.is-play .secu-filled { animation: fade-in 260ms var(--ease-ui) 700ms both; }
.ill.is-play .secu-dots i { animation: fade-in 120ms linear both; }
.ill.is-play .secu-dots i:nth-child(1) { animation-delay: 850ms; }
.ill.is-play .secu-dots i:nth-child(2) { animation-delay: 930ms; }
.ill.is-play .secu-dots i:nth-child(3) { animation-delay: 1010ms; }
.ill.is-play .secu-dots i:nth-child(4) { animation-delay: 1090ms; }
.ill.is-play .secu-dots i:nth-child(5) { animation-delay: 1170ms; }
.ill.is-play .secu-dots i:nth-child(6) { animation-delay: 1250ms; }
.ill.is-play .secu-dots i:nth-child(7) { animation-delay: 1330ms; }
.ill.is-play .secu-dots i:nth-child(8) { animation-delay: 1410ms; }
.ill.is-play .ill.is-play .secu-no { animation: fade-up 300ms var(--ease-ui) 2000ms both; }
.ill.is-play .secu-dash { animation: wipe-down 480ms var(--ease-ui) 2200ms both; }
.ill.is-play .secu-empty { animation: fade-in 260ms var(--ease-ui) 2650ms both, refuse 320ms var(--ease-ui) 2750ms both; }
@keyframes refuse { 25% { translate: -3px 0; } 50% { translate: 3px 0; } 75% { translate: -2px 0; } }

/* 5 · Les traqueurs… (2.6 s): the page loads, its own request passes and gets its ✓; pixel then ads hit the shield,
   which answers each time; they get their × and stay dimmed */
.ill.is-play .track-page { animation: fade-up 360ms var(--ease-ui) both; }
.ill.is-play .track-lines .draw { stroke-dasharray: 1; animation: line-draw 460ms var(--ease-ui) 300ms both; }
.ill.is-play .track-lines .draw-end { animation: fade-in 160ms var(--ease-ui) 760ms both; }
.ill.is-play .track-pass { animation: fade-up 300ms var(--ease-ui) 780ms both; }
.ill.is-play .track-lines .stop { transform-box: fill-box; transform-origin: left center; }
.ill.is-play .track-lines .stop-1 { animation: grow-x 380ms var(--ease-ui) 1050ms both; }
.ill.is-play .track-lines .stop-2 { animation: grow-x 380ms var(--ease-ui) 1650ms both; }
.ill.is-play .track-pixel { animation: blocked 520ms var(--ease-ui) 1430ms both; }
.ill.is-play .track-ads { animation: blocked 520ms var(--ease-ui) 2030ms both; }
@keyframes blocked { from { opacity: 0; translate: -4px 0; } 50% { opacity: 1; } }
.ill.is-play .track-lines .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 300ms var(--ease-ui) 1430ms, pulse 300ms var(--ease-ui) 2030ms; }
.ill.is-play .track-shield { animation: pulse 300ms var(--ease-ui) 1430ms, pulse 300ms var(--ease-ui) 2030ms; }

/* 6 · Vos affaires… : the only loop. Small blue dots flow along Paper's dotted lines from Chrome into Browser, then
   along the branches to the three profiles (2.8 s, soft fades at both ends). The diagram itself does not move.
   app.js runs it only while the drawer is open, the drawing on screen and the tab visible (.is-flowing). */
.flow { position: absolute; left: 0; top: 0; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--color-browser-accent); box-shadow: 0 0 5px 1px #3E67FF80; opacity: 0; animation: 2800ms linear infinite paused; pointer-events: none; }
.ill.is-flowing .flow { animation-play-state: running; }
.flow-a { animation-name: flow-a; }
.flow-b { animation-name: flow-b; animation-delay: -1400ms; }
.flow-up { animation-name: flow-up; }
.flow-mid { animation-name: flow-mid; }
.flow-down { animation-name: flow-down; }
@keyframes flow-a { 0% { translate: 60px 101px; opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50%, 100% { translate: 114px 101px; opacity: 0; } }
@keyframes flow-b { 0% { translate: 60px 124px; opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50%, 100% { translate: 114px 124px; opacity: 0; } }
@keyframes flow-mid { 0%, 50% { translate: 167px 112.5px; opacity: 0; } 56% { opacity: 1; } 84% { opacity: 1; } 92%, 100% { translate: 191px 112.5px; opacity: 0; } }
@keyframes flow-up {
  0%, 50% { translate: 167px 112.5px; opacity: 0; }
  55% { translate: 180.5px 112.5px; opacity: 1; }
  82% { translate: 180.5px 60.5px; }
  87% { translate: 183.5px 50.5px; }
  92% { translate: 189px 48.5px; opacity: 1; }
  98%, 100% { translate: 192.5px 48.5px; opacity: 0; }
}
@keyframes flow-down {
  0%, 50% { translate: 167px 112.5px; opacity: 0; }
  55% { translate: 180.5px 112.5px; opacity: 1; }
  82% { translate: 180.5px 164.5px; }
  87% { translate: 183.5px 174.5px; }
  92% { translate: 189px 176.5px; opacity: 1; }
  98%, 100% { translate: 192.5px 176.5px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-scroll.is-revealing > *, .ill.is-play .ill-box *, .ill.is-play .ill-box > * { animation: none !important; }
  .flow { display: none; }
  .ill.is-armed:not(.is-play) .ill-box > * { opacity: 1; }
}
