/* ============================================================
   Modium — design system.
   Noir pur + motif discret, barre de navigation escamotable,
   Inter / JetBrains Mono servies en local, cartes arrondies 16px
   à liseré interne, accent rouge Modium.

   Contrainte : la politique de contenu du site est
   `default-src 'none'; script-src 'self'; style-src 'self'; font-src 'self'`.
   Aucun attribut style= dans le HTML, aucune police distante :
   tout passe par des classes et par assets/fonts/.
   ============================================================ */

/* ---------- Polices locales (variables, sous-ensembles latin) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/jbmono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/jbmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --lum: 255, 255, 255;
  --base: #0a0a0a;
  --ink: #fff;
  --ink-hi: #ffffffe0;
  --ink-strong: #ffffffd6;
  --ink-body: #ffffffa8;
  --ink-mid: #ffffff80;
  --ink-meta: #ffffff75;
  --ink-nav: #fff9;
  --ink-decor: #ffffff4d;
  --ink-ghost: #ffffff29;
  --line-0: #ffffff0f;
  --line-1: #ffffff1f;
  --line-2: #fff3;
  --line-3: #ffffff57;
  --line-edge: #ffffff38;
  --line-edge-hi: #ffffff8c;
  --surface-1: #ffffff08;
  --surface-2: #0006;
  --surface-3: #00000085;
  --hover: #ffffff12;
  --invert: #fff;
  --invert-hover: #e8e8e8;
  --invert-down: #d4d4d4;
  --on-invert: #0a0a0a;
  --fil: #ff3b3b;
  --fil-bloom: 0 0 10px rgba(216, 26, 26, .6), 0 0 22px rgba(216, 26, 26, .3);
  --focus-ring: rgba(var(--lum), .75);
  /* accent rouge Modium */
  --accent: #8f0b0b;
  --accent-2: #d81a1a;
  --accent-ink: #ff4a4a;
  --accent-dim: rgba(216, 26, 26, .14);
  --danger: #ef4444;
  --warn: #fbbf24;
  --ok: #34d399;
  --neon: #fff;
  --neon-glow: 0 0 6px rgba(255, 255, 255, .75), 0 0 18px rgba(255, 255, 255, .35), 0 0 40px rgba(255, 255, 255, .15);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pattern-url: url(assets/pattern.svg);
  --r-sm: .5rem; --r: .75rem; --r-lg: 1rem;
  --max: 1280px;
  --pad: clamp(16px, 4vw, 32px);
  --fast: .15s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0; background: var(--base); color: var(--ink-body);
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent-2); color: #fff; }
kbd { font: 500 10.5px/1 var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--surface-1); border: 1px solid var(--line-1); color: var(--ink-meta); }
code { font-family: var(--mono); font-size: .9em; color: var(--ink-hi); background: var(--surface-1); padding: 1px 6px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-meta); font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Fonds motif ---------- */
.pattern-section { background: var(--pattern-url) repeat, var(--base); background-size: 80px 80px, 100%; }
.pattern-bg { background: linear-gradient(to bottom, #0a0a0a 0%, transparent 150px), var(--pattern-url) repeat, var(--base); background-size: 100% 100%, 80px 80px, 100%; }

/* ---------- Structure ---------- */
.page { position: relative; z-index: 1; flex: 1; min-width: 0; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.section { padding: clamp(56px, 7vw, 96px) 0; scroll-margin-top: 110px; }
.section-tight { padding-top: 0; }

/* En-tête de section : barre verticale + libellé, titre, sous-titre */
.sec-head { max-width: 48rem; margin-bottom: 3rem; }
.sec-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head-center .sec-label { justify-content: center; }
.sec-label { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-meta); }
.section-bar { flex: none; width: 3px; height: 1.25rem; border-radius: 9999px; background: linear-gradient(180deg, var(--accent-2) 0%, rgba(216, 26, 26, .2) 100%); }
.sec-title { margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.14; letter-spacing: -.025em; color: var(--ink-hi); text-wrap: balance; }
.sec-sub { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-mid); }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 3rem; }
.sec-head-row .sec-head { margin-bottom: 0; }
.sec-meta { font: 500 12px var(--mono); color: var(--ink-decor); letter-spacing: .04em; }

/* ---------- Barre de navigation ---------- */
.topbar { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 50; width: 95%; max-width: var(--max); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 20px; border-radius: 1rem; border: 1px solid var(--line-0); background: rgba(0, 0, 0, .4); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); transition: background .3s, border-color .3s; }
.topbar.scrolled .topbar-in, .topbar.open .topbar-in { background: rgba(0, 0, 0, .8); border-color: var(--line-1); }
.topbar-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.topbar-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.topbar-logo img { height: 26px; width: auto; object-fit: contain; }
.topbar-nav { display: flex; align-items: center; gap: 2px; }
.tnav { position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 12px; letter-spacing: .01em; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 14px; font-weight: 500; color: var(--ink-nav); background: none; cursor: pointer; transition: all var(--fast); }
.tnav svg { display: none; }
.tnav::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: transparent; transition: background var(--fast), box-shadow var(--fast); }
.tnav:hover { border-color: var(--line-2); background: var(--hover); color: var(--ink-hi); }
.tnav.actif, .tnav[aria-current="page"] { color: var(--ink); }
.tnav.actif::before, .tnav[aria-current="page"]::before { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn.burger { display: none; }
.topbar-mobile { display: none; }
@media (max-width: 1040px) {
  .topbar-nav, .topbar-right .btn, .topbar-right .icon-btn:not(.burger) { display: none; }
  .icon-btn.burger { display: grid; border-color: transparent; background: none; }
  .topbar.open .topbar-mobile { display: grid; gap: 2px; margin-top: 8px; padding: 12px; border-radius: 1rem; border: 1px solid var(--line-1); background: rgba(0, 0, 0, .95); backdrop-filter: blur(24px); max-height: calc(100dvh - 110px); overflow: auto; }
  .topbar-mobile a, .topbar-mobile button { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-left: 2px solid transparent; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; color: var(--ink-nav); background: none; border-top: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
  .topbar-mobile a.actif { border-left-color: var(--fil); background: var(--surface-1); color: var(--ink); font-weight: 600; }
  .topbar-mobile .btn { display: inline-flex; margin-top: 12px; width: 100%; border: 1px solid var(--line-3); border-radius: var(--r-sm); justify-content: center; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .55rem 1.1rem; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; user-select: none; transition: all var(--fast); background: none; color: var(--ink-strong); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-secondary, .btn:not([class*="btn-"]) { border-color: var(--line-3); color: var(--ink-strong); }
.btn-secondary:hover, .btn:not([class*="btn-"]):hover { background: var(--hover); border-color: var(--line-edge-hi); color: var(--ink); }
.btn-primary { background: var(--invert); color: var(--on-invert); font-weight: 600; box-shadow: 0 10px 24px -8px #000000e6; }
.btn-primary:hover { background: var(--invert-hover); box-shadow: 0 5px 14px -8px #000000f2; }
.btn-primary:active { background: var(--invert-down); }
.btn-ghost { color: var(--ink-meta); }
.btn-ghost:hover { background: var(--surface-1); color: var(--ink); }
.btn-lg { padding: .8rem 1.4rem; font-size: 15px; }
.btn-sm { padding: .4rem .8rem; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--line-1); background: var(--surface-1); color: var(--ink-mid); cursor: pointer; display: grid; place-items: center; transition: all var(--fast); }
.icon-btn:hover { color: var(--ink); background: var(--hover); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sound[aria-pressed="false"] .on { display: none; }
#sound[aria-pressed="true"] .off { display: none; }

/* ---------- Tags / pastilles ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; background: rgba(0, 0, 0, .6); border: 1px solid var(--line-1); color: var(--ink-hi); backdrop-filter: blur(6px); }
.tag-white { background: var(--invert); border-color: var(--invert); color: var(--on-invert); font-weight: 700; }
.tag-accent { background: var(--accent-2); border-color: var(--accent-2); color: #fff; font-weight: 700; }
.pill-mono { font: 500 11px var(--mono); padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line-1); background: var(--surface-1); color: var(--ink-strong); }

/* ---------- Cartes & panneaux ---------- */
.s-card { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid var(--line-1); background: var(--surface-2); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: inset 0 1px #ffffff0f, 0 16px 44px #00000052; transition: border-color .25s, box-shadow .25s, transform .25s; }
.s-card:hover { border-color: var(--line-2); box-shadow: inset 0 1px rgba(var(--lum), .1), 0 22px 60px #00000075; }
.panel { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid var(--line-1); background: var(--surface-3); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: inset 0 1px #ffffff0f, 0 20px 60px #0006; }
.panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 2; pointer-events: none; opacity: .4; background: linear-gradient(90deg, transparent 4%, var(--line-edge-hi) 50%, transparent 96%); }

/* Bandeau de chiffres */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.strip > div { padding: 20px 22px; border-radius: 1rem; border: 1px solid var(--line-1); background: var(--surface-2); box-shadow: inset 0 1px #ffffff0f; display: grid; gap: 4px; align-content: start; }
.strip .k { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-meta); }
.strip .v { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--neon); text-shadow: var(--neon-glow); font-variant-numeric: tabular-nums; }
.strip .s { font-size: 12.5px; color: var(--ink-mid); }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip .v { font-size: 24px; } }

/* ---------- Bandeau CTA ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px 36px; }
.cta h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: var(--ink-hi); }
.cta p { margin: 0; color: var(--ink-mid); max-width: 640px; font-size: 14.5px; }
.cta p code { color: var(--ink-hi); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-1); background: var(--base); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0; }
.footer-brand .topbar-logo { font-size: 17px; margin-bottom: 18px; }
.footer-brand .topbar-logo img { height: 30px; }
.footer-brand p { margin: 0 0 22px; max-width: 22rem; font-size: 14px; line-height: 1.6; color: var(--ink-mid); }
.footer-social { display: flex; gap: 10px; }
.footer h4 { margin: 0 0 16px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-strong); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-body); transition: color var(--fast); }
.footer ul a:hover { color: var(--ink-hi); }
.footer-server { display: grid; gap: 8px; }
.footer-server a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-1); background: var(--surface-1); font-size: 13.5px; font-weight: 500; color: var(--ink-hi); transition: all var(--fast); }
.footer-server a:hover { background: var(--hover); border-color: var(--line-2); }
.footer-server a span { display: inline-flex; align-items: center; gap: 8px; }
.footer-server svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { border-top: 1px solid var(--line-0); padding: 28px 0 32px; text-align: center; font-size: 12px; color: var(--ink-meta); display: grid; gap: 10px; }
.footer-bottom small { display: block; max-width: 620px; margin: 0 auto; font-size: 11.5px; line-height: 1.6; color: var(--ink-decor); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
/* Retards d'animation : des classes, pas des attributs style=,
   que la politique de contenu du site interdit. */
.d1 { --d: .06s; } .d2 { --d: .12s; } .d3 { --d: .18s; } .d4 { --d: .24s; }
.d5 { --d: .3s; } .d6 { --d: .36s; } .d7 { --d: .42s; } .d8 { --d: .5s; }
/* prefers-reduced-motion volontairement ignoré : le réglage Windows est
   souvent actif sans que l'utilisateur l'ait demandé, et les animations
   du site sont légères. */

/* ---------- Barre latérale escamotable (desktop) ---------- */
.nav-toggle { display: none; }
@media (min-width: 1041px) {
  .topbar { left: 24px; top: 24px; bottom: 24px; transform: translateX(calc(-100% - 40px)); width: 248px; max-width: none; transition: transform .7s cubic-bezier(.34, 1.25, .5, 1); will-change: transform; }
  .topbar.open { transform: none; }
  .topbar .topbar-in { opacity: 0; transform: scale(.96) translateX(-10px); filter: blur(6px); transition: opacity .45s ease, transform .7s cubic-bezier(.34, 1.25, .5, 1), filter .5s ease, background .3s, border-color .3s; }
  .topbar.open .topbar-in { opacity: 1; transform: none; filter: blur(0); }
  .topbar .topbar-logo { opacity: 0; transform: translateY(-8px); transition: opacity .4s ease .05s, transform .5s cubic-bezier(.22, 1, .36, 1) .05s; }
  .topbar.open .topbar-logo { opacity: 1; transform: none; }
  .topbar .topbar-right { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
  .topbar.open .topbar-right { opacity: 1; transform: none; transition-delay: .4s; }
  .topbar-in { flex-direction: column; align-items: stretch; height: 100%; padding: 22px 14px 16px; gap: 22px; background: rgba(8, 8, 8, .86); border-color: var(--line-1); box-shadow: 0 30px 80px -20px #000; }
  .topbar-left { flex-direction: column; align-items: stretch; gap: 26px; flex: 1; min-width: 0; }
  .topbar-logo { padding: 0 8px; }
  .topbar-logo img { height: 30px; }
  .topbar-nav { flex-direction: column; align-items: stretch; gap: 3px; }
  .tnav { justify-content: flex-start; padding: 10px 12px; font-size: 14px; border-radius: var(--r-sm); opacity: 0; transform: translateX(-14px); transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1), background var(--fast), border-color var(--fast), color var(--fast); }
  .topbar.open .tnav { opacity: 1; transform: none; }
  .topbar.open .tnav:nth-child(1) { transition-delay: .12s; }
  .topbar.open .tnav:nth-child(2) { transition-delay: .17s; }
  .topbar.open .tnav:nth-child(3) { transition-delay: .22s; }
  .topbar.open .tnav:nth-child(4) { transition-delay: .27s; }
  .topbar.open .tnav:nth-child(5) { transition-delay: .32s; }
  .topbar.open .tnav:nth-child(6) { transition-delay: .37s; }
  .tnav.actif { background: var(--surface-1); border-color: var(--line-1); }
  .topbar-right { flex-direction: column; align-items: stretch; gap: 8px; }
  .topbar-right .icon-btn { width: 100%; }
  .topbar-right .btn { width: 100%; justify-content: center; }
  .topbar-mobile { display: none !important; }
  .icon-btn.burger { display: none !important; }
  /* bouton d'ouverture : trois chevrons */
  .nav-toggle { position: fixed; left: 24px; top: 24px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-1); background: rgba(8, 8, 8, .7); backdrop-filter: blur(16px); color: var(--ink-hi); cursor: pointer; transition: transform .7s cubic-bezier(.34, 1.25, .5, 1), background .3s, border-color .3s, color .3s, box-shadow .3s; }
  .nav-toggle:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-2); }
  .nav-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .nav-toggle svg path { animation: chev 1.6s ease-in-out infinite; }
  .nav-toggle svg path:nth-child(2) { animation-delay: .15s; }
  .nav-toggle svg path:nth-child(3) { animation-delay: .3s; }
  @keyframes chev { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
  .nav-toggle[aria-expanded="true"] { transform: translateX(268px) rotate(180deg); background: var(--invert); color: var(--on-invert); border-color: var(--invert); box-shadow: 0 10px 30px -10px #000; }
  .nav-toggle[aria-expanded="true"] svg path { animation: none; opacity: 1; }
  /* voile de fermeture */
  .nav-scrim { position: fixed; inset: 0; z-index: 49; background: radial-gradient(900px 600px at 0% 50%, rgba(216, 26, 26, .10), transparent 60%), rgba(0, 0, 0, .45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .5s ease; }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
  .section { scroll-margin-top: 24px; }
}

/* ---------- Transition entre pages ---------- */
.page, .footer { animation: page-in .7s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } 70% { filter: blur(0); } to { opacity: 1; transform: none; filter: blur(0); } }
body.leaving .page, body.leaving .footer { animation: page-out .32s cubic-bezier(.4, 0, .8, .4) forwards; }
@keyframes page-out { to { opacity: 0; transform: translateY(-14px) scale(.985); filter: blur(6px); } }
.page-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 100; background: linear-gradient(90deg, transparent, var(--accent-2) 30%, #fff 50%, var(--accent-2) 70%, transparent); box-shadow: 0 0 12px var(--accent-2); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
body.leaving .page-bar { animation: bar-sweep .36s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes bar-sweep { 0% { transform: scaleX(0); opacity: 1; } 100% { transform: scaleX(1); opacity: 1; } }
body.arrived .page-bar { animation: bar-out .5s ease forwards; }
@keyframes bar-out { 0% { transform: scaleX(1); opacity: 1; transform-origin: right; } 100% { transform: scaleX(0); opacity: 0; transform-origin: right; } }
