/* Mundus Atlas — the cover. Tokens and fonts are the worlds' (css/style.css); theme via [data-theme] on <html>.
   Type scale (desktop → phone):
     title     Cormorant Garamond 500   clamp(58, 7vw, 114) → 56 px     tracking 0, kerning on
     subtitle  Cormorant Garamond 400 italic   30 → 22 px                tracking 0
     section   Cormorant Garamond 500   32 → 28 px                        tracking .005em
     lead      Manrope 400 16/1.6 → 14.5/1.55, ≤ 52ch
     labels    Manrope 12 caps .08em (meta) · 12.5 (controls) · 12 (hint, footer, tip) · 10.5 tabular (scale numbers)
     Tabula    Cormorant Garamond 500 12.5 caps .14em (the only wide tracking: small capitals may take it) */
:root {
  --accent: #8fb3ff;
  --font-ui: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;   /* Roman capitals for the Latin title (owner 2026-10-19) */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --gutter: clamp(16px, 2.5vw, 28px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --fs-title: clamp(54px, 7.2vw, 120px);   /* Cinzel caps run wide; larger than the old Cormorant (owner 2026-10-19) */
  --fs-sub: clamp(29px, 2.8vw, 45px);   /* +12 % (owner 2026-10-21): the italic's small x-height read closer to the lead than to the title */
  --fs-lead: 16px;
  --fs-name: 32px;
  --title-y: 37%;
  --radius: 18px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080c; --bg-rgb: 7, 8, 12;
  --fg: #f2f2f5;
  --fg-muted: rgba(242,242,245,.66);
  --fg-faint: rgba(242,242,245,.5);
  --panel: rgba(10,12,18,.26);
  --panel-strong: rgba(10,12,18,.8);
  --line: rgba(255,255,255,.1);
  --line-strong: rgba(255,255,255,.2);
  --btn: rgba(255,255,255,.06);
  --btn-hover: rgba(255,255,255,.14);
  --accent-ui: #a9c3ff;
  --accent-glow: rgba(143,179,255,.45);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ef; --bg-rgb: 244, 243, 239;
  --fg: #15161a;
  --fg-muted: rgba(21,22,26,.68);
  --fg-faint: rgba(21,22,26,.56);
  --panel: rgba(255,255,255,.56);
  --panel-strong: rgba(255,255,255,.84);
  --line: rgba(0,0,0,.08);
  --line-strong: rgba(0,0,0,.18);
  --btn: rgba(255,255,255,.5);
  --btn-hover: rgba(255,255,255,.85);
  --accent-ui: #3b5aa0;
  --accent-glow: rgba(143,179,255,.45);
}
@supports (color: color-mix(in oklab, red 50%, blue)) {
  :root[data-theme="dark"] { --accent-ui: color-mix(in oklab, var(--accent) 80%, white); --accent-glow: color-mix(in oklab, var(--accent) 60%, transparent); }
  :root[data-theme="light"] { --accent-ui: color-mix(in oklab, var(--accent) 55%, black); --accent-glow: color-mix(in oklab, var(--accent) 45%, transparent); }
}
/* registered tokens cross-fade on a theme toggle (as in the worlds) */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #07080c; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #f2f2f5; }
@property --fg-muted { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --fg-faint { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --panel-strong { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --line { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --line-strong { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --btn { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --btn-hover { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --accent-ui { syntax: "<color>"; inherits: true; initial-value: #8fb3ff; }
:root { transition: --bg .4s var(--ease), --fg .4s var(--ease), --fg-muted .4s var(--ease), --fg-faint .4s var(--ease),
  --panel .4s var(--ease), --panel-strong .4s var(--ease), --line .4s var(--ease), --line-strong .4s var(--ease), --btn .4s var(--ease), --btn-hover .4s var(--ease), --accent-ui .4s var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* no iOS text autosizing (it blew up the cover's credit line) */
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow: hidden; overscroll-behavior: none; touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-ui); outline-offset: 3px; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the light (canvas) ---------- */
#lumen { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; transition: opacity .35s var(--ease); }

/* ---------- top: the controls ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: flex-end; align-items: flex-start; gap: 16px;
  padding: calc(14px + var(--safe-t)) max(var(--gutter), var(--safe-r)) 0 max(var(--gutter), var(--safe-l)); pointer-events: none; }
:lang(en) .lead { max-width: calc(50ch - 46px + 2 * (var(--px) + var(--fx))); }
.controls { display: flex; gap: 6px; pointer-events: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--btn); border: 1px solid var(--line); color: var(--fg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--btn-hover); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.94); }
.lang-btn span { font: 700 11.5px/1 var(--font-ui); letter-spacing: .06em; }
/* the English hint under the EN button (owner 2026-10-26): a quiet italic line, not a banner */
.controls { position: relative; }
.lang-hint { position: absolute; top: 100%; right: 2px; margin-top: 8px; white-space: nowrap;
  font: italic 400 17px/1.2 var(--font-display); color: var(--fg-muted); transition: color .2s; }
.lang-hint:hover { color: var(--fg); }
.lang-hint[hidden] { display: none; }
.ic-moon { display: none; }
:root[data-theme="light"] .ic-sun { display: none; }
:root[data-theme="light"] .ic-moon { display: block; }

/* ---------- the title, standing in the fall of light ---------- */
.title { position: fixed; left: 0; right: 0; top: var(--title-y); transform: translateY(-50%); z-index: 2; text-align: center;
  padding: 0 var(--gutter); pointer-events: none; }
/* a soft clearing in the strands behind the words (the page colour, fading out) */
.title::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1600px, 135vw); height: 190%; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%;
  /* wider and softer since the Cinzel title (owner 2026-10-19): its edge showed against the mist */
  background: radial-gradient(closest-side, rgba(var(--bg-rgb), .88), rgba(var(--bg-rgb), .62) 40%, rgba(var(--bg-rgb), .26) 70%, rgba(var(--bg-rgb), .07) 88%, rgba(var(--bg-rgb), 0)); }
.title-main { position: relative; display: inline-block; margin: 0; font-family: var(--font-title); font-weight: 400; font-size: var(--fs-title); line-height: 1; letter-spacing: .04em;
  font-kerning: normal; font-feature-settings: "kern" 1, "liga" 1; white-space: nowrap; }
.t-base { position: relative; display: block; }
:root[data-theme="dark"] .t-base { opacity: .82; }
/* the pool of light on the title: the glyphs under the pointer are lit from above (a vertical gradient — white at the
   top of the letter, the colour of the bundle beneath toward its foot) through a soft tall mask that follows the
   pointer, with a narrow falling streak above it; a blurred copy glows around them. Dark theme warm white, light theme
   an ink-gold sheen. --mx/--my/--pool-o/--pool-acc are set by lumen.js */
.t-pool, .t-glow { position: absolute; inset: 0; display: block; pointer-events: none; color: transparent; opacity: var(--pool-o, 0);
  background-image: linear-gradient(to bottom, var(--pool-top) 0%, var(--pool-mid) 52%, var(--pool-low) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-mask-image: radial-gradient(165px 280px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.8) 32%, transparent 72%),
    radial-gradient(36px 520px at var(--mx, 50%) calc(var(--my, 50%) - 70px), rgba(0,0,0,.7), transparent 70%);
  mask-image: radial-gradient(165px 280px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.8) 32%, transparent 72%),
    radial-gradient(36px 520px at var(--mx, 50%) calc(var(--my, 50%) - 70px), rgba(0,0,0,.7), transparent 70%);
  -webkit-mask-composite: source-over; mask-composite: add; }
.t-glow { filter: blur(12px); opacity: calc(var(--pool-o, 0) * var(--glow-k)); }
/* the blurred glow needs room: a mask is applied after the filter and is sized to the element's box, so the blur was cut
   off in a hard rectangle at the edge of the title (owner 2026-10-20). The glow layer is 48 px larger on every side
   (the text keeps its place through the padding; the gradient and the mask are shifted by the same 48 px) */
.t-glow { inset: -48px; padding: 48px; background-origin: content-box; background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(165px 280px at calc(var(--mx, 50%) + 48px) calc(var(--my, 50%) + 48px), #000 0%, rgba(0,0,0,.8) 32%, transparent 72%),
    radial-gradient(36px 520px at calc(var(--mx, 50%) + 48px) calc(var(--my, 50%) - 22px), rgba(0,0,0,.7), transparent 70%);
  mask-image: radial-gradient(165px 280px at calc(var(--mx, 50%) + 48px) calc(var(--my, 50%) + 48px), #000 0%, rgba(0,0,0,.8) 32%, transparent 72%),
    radial-gradient(36px 520px at calc(var(--mx, 50%) + 48px) calc(var(--my, 50%) - 22px), rgba(0,0,0,.7), transparent 70%); }
:root[data-theme="dark"] { --pool-top: #fffdf7; --pool-mid: #fff1d6; --pool-low: #ffe3b0; --glow-k: 1; }
:root[data-theme="light"] { --pool-top: #d9b25a; --pool-mid: #a67f33; --pool-low: #5e4520; --glow-k: .7; }
@supports (color: color-mix(in oklab, red 50%, blue)) {
  :root[data-theme="dark"] .t-pool, :root[data-theme="dark"] .t-glow { --pool-mid: color-mix(in oklab, #fff1d6 74%, var(--pool-acc, #fff1d6)); --pool-low: color-mix(in oklab, #ffe3b0 55%, var(--pool-acc, #ffe3b0)); }
  :root[data-theme="light"] .t-pool, :root[data-theme="light"] .t-glow { --pool-top: color-mix(in oklab, #d9b25a 70%, var(--pool-acc, #d9b25a)); --pool-mid: color-mix(in oklab, #a67f33 68%, var(--pool-acc, #a67f33)); --pool-low: color-mix(in oklab, #5e4520 70%, var(--pool-acc, #5e4520)); }
}
.title-sub { margin: .28em 0 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: var(--fs-sub); line-height: 1.2; letter-spacing: 0;
  color: var(--fg); opacity: .84; }
/* the lead sits on the worlds' description-card glass (css/style.css .panel), only as strong as the ink lines behind it need.
   No border: the glass dissolves into the mist at its edges (owner 2026-10-21). A mask fades it out over --fx / --fy
   (smoothstep stops, so the edge of the solid core leaves no crease); the box grows by the feather on every side through
   the padding and gives it back through the margins, so the text keeps its place and width (the padding also keeps the 1 px
   of the old border, or the lines wrap differently). The blur is light (4 px; was 18) so the strands and the fall of
   light stay faintly visible through the glass (owner 2026-10-21), and the tint is its own, lighter than --panel
   (.14 instead of .26, same owner, same day: a little more see-through; the title's clearing already dims the strands).
   The feather is wide (60 / 40 px, phones 36 / 26; was 30 / 20 and 20 / 14): with the narrow one the strands leaving the
   glass at its foot turned sharp along a line, which read as an edge (owner picked the wide one, 2026-10-21).
   Inside the feather only a thin solid core (--pt / --px / --pb; was the bordered card's 14 / 23 / 15 px, owner 2026-10-21:
   the glass looked too roomy): the text column (52ch less the old card's 46 px of padding) and the text's distance from the
   subtitle (24 + 14 px) and from what follows (15 px) are kept, so only the glass shrinks around the words */
.lead { --fx: 60px; --fy: 40px; --pt: 7px; --px: 8px; --pb: 8px;
  margin: calc(38px - var(--pt) - var(--fy)) auto calc(15px - var(--pb) - var(--fy)); max-width: calc(52ch - 46px + 2 * (var(--px) + var(--fx)));
  padding: calc(var(--pt) + var(--fy)) calc(var(--px) + var(--fx)) calc(var(--pb) + var(--fy));
  font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-muted); text-wrap: pretty; hanging-punctuation: first last;
  background: rgba(10,12,18,.14); -webkit-backdrop-filter: blur(4px) saturate(1.2); backdrop-filter: blur(4px) saturate(1.2);
  --feather-x: linear-gradient(to right, transparent, rgba(0,0,0,.16) calc(var(--fx) * .25), rgba(0,0,0,.5) calc(var(--fx) * .5), rgba(0,0,0,.84) calc(var(--fx) * .75), #000 var(--fx),
    #000 calc(100% - var(--fx)), rgba(0,0,0,.84) calc(100% - var(--fx) * .75), rgba(0,0,0,.5) calc(100% - var(--fx) * .5), rgba(0,0,0,.16) calc(100% - var(--fx) * .25), transparent);
  --feather-y: linear-gradient(to bottom, transparent, rgba(0,0,0,.16) calc(var(--fy) * .25), rgba(0,0,0,.5) calc(var(--fy) * .5), rgba(0,0,0,.84) calc(var(--fy) * .75), #000 var(--fy),
    #000 calc(100% - var(--fy)), rgba(0,0,0,.84) calc(100% - var(--fy) * .75), rgba(0,0,0,.5) calc(100% - var(--fy) * .5), rgba(0,0,0,.16) calc(100% - var(--fy) * .25), transparent);
  -webkit-mask-image: var(--feather-x), var(--feather-y); -webkit-mask-composite: source-in;
  mask-image: var(--feather-x), var(--feather-y); mask-composite: intersect; }

/* ---------- the landing dots: the worlds' nav dots, one link per world ---------- */
.dots { position: fixed; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 3; pointer-events: none; }
.dots li { position: absolute; left: 0; top: 0; }
.dot { position: absolute; left: 0; top: 0; width: min(28px, var(--pitch, 28px)); height: 28px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  pointer-events: auto; cursor: default; -webkit-tap-highlight-color: transparent; }
.dot-mark { width: 7px; height: 7px; border-radius: 50%; transition: transform .25s var(--ease), box-shadow .25s, opacity .4s var(--ease); }
:root[data-theme="dark"] .dot-mark { background: color-mix(in srgb, var(--accent) 65%, white); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); }
:root[data-theme="light"] .dot-mark { background: color-mix(in srgb, var(--accent) 60%, #15161a); box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--accent) 55%, #15161a); }
.dot:hover .dot-mark, .dot:focus-visible .dot-mark, .dot.on .dot-mark { transform: scale(1.25); }
:root[data-theme="dark"] .dot:hover .dot-mark, :root[data-theme="dark"] .dot.on .dot-mark { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent); }
.dot:focus-visible { outline-offset: 0; border-radius: 50%; }
/* "you are here" at world I's dot (Fable 2026-10-21): to its LEFT, on the dot's line - under it, the label ran under
   the next dots and read as "our cosmos = three worlds". Phones have no room left of the first dot: there the dot's
   pill says it ("I Физический · уровни 1–3 · наш космос") */
.dot-here { position: absolute; right: calc(50% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  font-size: 11px; letter-spacing: .04em; color: var(--fg-muted); opacity: .85; }
@media (max-width: 600px) { .dot-here { display: none; } }
@supports not (color: color-mix(in srgb, red 50%, blue)) { .dot-mark { background: var(--accent); } }

/* the name of the world under the pointer (hover / focus / tap), above its dot */
.tip { position: fixed; left: 0; top: 0; z-index: 4; transform: translate(-50%, calc(-100% - 15px)); pointer-events: none;
  display: flex; align-items: baseline; gap: 8px; padding: 6px 13px 7px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--panel-strong); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12.5px; line-height: 1.3; color: var(--fg); opacity: 0; transition: opacity .18s var(--ease); }
.tip.show { opacity: 1; }
.tip[hidden] { display: none; }
.tip b { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--tip-acc, var(--accent-ui)); }
.tip .tip-name { font-weight: 600; }
.tip small { font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums lining-nums; }
html.touch .tip { pointer-events: auto; }
html.touch .dot { height: 40px; }
:root[data-theme="dark"] .tip { --tip-acc: color-mix(in oklab, var(--accent) 80%, white); }
:root[data-theme="light"] .tip { --tip-acc: color-mix(in oklab, var(--accent) 55%, black); }

/* ---------- the sections: where the light has landed ---------- */
.sections { position: fixed; left: 0; right: 0; bottom: calc(50px + var(--safe-b)); z-index: 3; display: flex; justify-content: center; gap: 48px; padding: 0 var(--gutter); }
.sec { display: grid; grid-template-columns: 1fr auto; gap: 0 18px; align-items: center; width: max(var(--sec-w, 680px), 640px); max-width: 100%;   /* ≥ 640: on tablets the dots sit close and the name was cut */ min-width: 0; color: inherit; }
.sec-body { min-width: 0; }
.sec-name { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-name); line-height: 1.05; letter-spacing: .005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-meta { display: block; margin-top: 7px; font-size: 12px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent-ui); color: var(--bg); font-weight: 600; font-size: 14px; line-height: 1.2; box-shadow: 0 0 28px var(--accent-glow);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease); }
.btn:hover, .btn:focus-visible { box-shadow: 0 0 36px var(--accent-glow), 0 0 0 1px var(--accent-ui); outline: none; }
.btn:active { transform: scale(.97); }
.btn-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-left: -4px; }
.sec-go { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center; gap: 10px; }   /* two buttons of one width */
.sec-go .btn { padding-inline: 20px; }
/* narrow desktops / tablets: the name keeps the whole row, the two buttons go under it */
@media (min-width: 761px) and (max-width: 1100px) {
  .sec { grid-template-columns: 1fr; }
  .sec-go { justify-self: start; margin-top: 16px; }
}
/* the second entrance («без звука»): the same size, a glass outline instead of the accent fill */
.btn-ghost { background: var(--btn); color: var(--fg); border-color: var(--line-strong); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--btn-hover); border-color: var(--fg-muted); box-shadow: none; }

/* ---------- the entrance «Нисхождение» (lumen.js): html.pre holds the page dark until the title fonts are in; html.enter
   runs the text in as the light comes down past it; --ik speeds it up (phones 1/0.85, a return visit 3). The button is
   clickable throughout (only opacity changes). Reduced motion: html.fade, one short fade. ---------- */
@keyframes cover-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cover-fade { from { opacity: 0; } to { opacity: 1; } }
html.pre .top, html.pre .title-main, html.pre .title-sub, html.pre .lead, html.pre .sections, html.pre .foot { opacity: 0; }
html.pre .dot-mark, html.enter .dot:not(.landed) .dot-mark { opacity: 0; }
html.enter .title-main { animation: cover-rise calc(1.4s / var(--ik, 1)) var(--ease) calc(1.2s / var(--ik, 1)) backwards; }
html.enter .title-sub { animation: cover-rise calc(1.2s / var(--ik, 1)) var(--ease) calc(1.7s / var(--ik, 1)) backwards; }
html.enter .lead { animation: cover-rise calc(1s / var(--ik, 1)) var(--ease) calc(2.3s / var(--ik, 1)) backwards; }
html.enter .sections { animation: cover-fade calc(.8s / var(--ik, 1)) var(--ease) calc(2.6s / var(--ik, 1)) backwards; }
html.enter .foot, html.enter .top { animation: cover-fade calc(.8s / var(--ik, 1)) var(--ease) calc(3.2s / var(--ik, 1)) backwards; }
html.fade .title, html.fade .sections, html.fade .foot, html.fade .top, html.fade #lumen, html.fade .dots { animation: cover-fade .5s ease backwards; }

/* ---------- letters (Fable 2026-10-19; on by default since 2026-10-20, ?letters=0 = off): the name is lit from above — warmer, brighter serifs at the top,
   the feet in a little shade (static); in the entrance the letters appear from the top down as the light passes through
   them; a tap on the name sends a drop of light through it (lumen.js) ---------- */
:root.letters[data-theme="dark"] .t-base { opacity: 1; color: transparent; -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to bottom, rgba(255,243,222,1) 0%, rgba(246,242,236,.9) 30%, rgba(232,233,238,.74) 62%, rgba(214,216,224,.5) 100%);   /* stronger (owner 2026-10-20: too subtle) */
  -webkit-background-clip: text; background-clip: text; }
@keyframes letters-reveal { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
html.letters.enter .title-main { animation: cover-fade calc(.3s / var(--ik, 1)) linear calc(1.2s / var(--ik, 1)) backwards; }
html.letters.enter .t-base {
  -webkit-mask-image: linear-gradient(to bottom, #000 0 33.3%, transparent 66.6% 100%); mask-image: linear-gradient(to bottom, #000 0 33.3%, transparent 66.6% 100%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: letters-reveal calc(1.6s / var(--ik, 1)) var(--ease) calc(1.2s / var(--ik, 1)) backwards; }

/* ---------- footer: the credit ---------- */
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin: 0;
  padding: 0 max(var(--gutter), var(--safe-r)) calc(15px + var(--safe-b)) max(var(--gutter), var(--safe-l)); font-size: 12px; line-height: 1.4; letter-spacing: .01em; color: var(--fg-faint); }
.foot p { margin: 0; }
.foot a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color .2s, text-decoration-color .2s; }
.foot a:hover { color: var(--fg); text-decoration-color: currentColor; }
.foot-site { font-variant-numeric: lining-nums; }
.foot-year { letter-spacing: .04em; }

/* ---------- OG render (?og): only the picture and the words ---------- */
html.og .top, html.og .foot, html.og .lead { display: none; }
html.og { --fs-title: 104px; --fs-sub: 36px; --title-y: 40%; }
html.og .sections { bottom: 54px; }

/* ---------- phones (portrait) ---------- */
@media (max-width: 600px) {
  :root { --fs-title: clamp(38px, 11vw, 48px); --fs-sub: 24px; --fs-lead: 14.5px; --fs-name: 28px; --title-y: 27%; }
  .title::before { width: 140vw; height: 160%; }
  .title-sub { margin-top: .3em; }
  /* the glass hugs the three short lines (owner 2026-10-21: too much empty glass at the sides): a 25.5ch column (the same
     line breaks as the old 32ch box); :lang(en) too, or its desktop max-width wins here */
  /* the transparent feather may spill into the side gutters (up to --fx each side), or a 320 px screen squeezes the column
     to four lines; centred by margin + translate (transform is the entrance's) */
  /* thin core here too: the text stays 16 + 11 px under the subtitle with 12 px after it */
  .lead, :lang(en) .lead { --fx: 36px; --fy: 26px; --pt: 4px; --px: 2px; --pb: 4px;
    margin: calc(27px - var(--pt) - var(--fy)) 0 calc(12px - var(--pb) - var(--fy)) 50%; translate: -50% 0; max-width: none;
    width: min(calc(25.5ch + 2 * (var(--px) + var(--fx))), calc(100% + 2 * var(--fx))); line-height: 1.55;
    padding: calc(var(--pt) + var(--fy)) calc(var(--px) + var(--fx)) calc(var(--pb) + var(--fy)); }
  .lead-2 { display: none; }
  .sections { bottom: calc(58px + var(--safe-b)); padding: 0 var(--gutter); }   /* 80 → 58 with the second button (2026-11-22), so the stack stays clear of the dots */
  .sec { width: 100%; grid-template-columns: 1fr; gap: 0; }
  .sec-body { margin-bottom: 18px; }
  .sec-meta { margin-top: 5px; }
  .btn { width: 100%; padding: 13px 24px; font-size: 15px; }
  .sec-go { grid-auto-flow: row; gap: 10px; }
  .foot { font-size: 11.5px; gap: 4px 16px; padding-bottom: calc(14px + var(--safe-b)); }
  .foot-src { flex: 0 1 auto; }
  .foot-site { margin-left: auto; }   /* MMXXVI in the bottom right corner, on the credit's line (owner 2026-10-20) */
}
/* ---------- phones (landscape): a short screen — title high, one-line section row, no lead or footer ---------- */
@media (max-height: 500px) {
  :root { --fs-title: 40px; --fs-sub: 20px; --fs-name: 24px; --title-y: 26%; }
  .top { padding-top: calc(10px + var(--safe-t)); }
  .lead, .foot { display: none; }
  .title-sub { margin-top: .2em; }
  .sections { bottom: calc(16px + var(--safe-b)); }
  .sec { gap: 0 14px; }
  .sec-meta { margin-top: 3px; font-size: 11px; }
  .btn { padding: 10px 20px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  #lumen, .dot-mark, .tip, .btn { transition: none; }
  .t-pool, .t-glow { display: none; }
}
