/* Kalman the Calm Man: one evening on the plain.
   The stage (a fixed WebGL canvas, js/world.e3b3497f.js) is the page's background; the words scroll over it.
   No inline style or script anywhere (the CSP in _headers allows neither). */

@font-face { font-family: "Anybody"; src: url("../fonts/anybody-v7.08c9e534.woff2") format("woff2"); font-weight: 500 850; font-stretch: 60% 150%; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic-v7.78e79348.woff2") format("woff2"); font-weight: 380 520; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-v7.8f7a179e.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-v7.77d020be.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0b0d16;          /* the night behind everything */
  --dusk: #1a2040;
  --bone: #efe8dc;         /* words */
  --mist: #dcd8e3;         /* quieter words: near-white too, every word reads on the night (D-082) */
  --dim: #c9c5d3;
  --ice: #cfe9ff;          /* his eyes */
  --amber: #f2a65e;        /* the far road's lights, the moon low */
  --ember: #ff6a45;
  --hot: #f2a65e;          /* whatever can be clicked or tapped, on hover and on focus: the accounts' orange (D-082) */
  --rule: rgba(239, 232, 220, .16);
  --f-display: "Anybody", "Arial Black", system-ui, sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --f-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --g: clamp(16px, 4.2vw, 56px);                 /* the side gutter */
  --wrap: 1180px;                                 /* the page's one container, centred on wide screens */
  --pad: max(var(--g), calc((100vw - var(--wrap)) / 2));
  --read: 1.0625rem;                              /* the size the words are read at */
  --sec: clamp(88px, 13lvh, 150px);               /* the space between sections, the same everywhere */
  --col: 23rem;                                   /* half the reading column */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-calm: cubic-bezier(.45, 0, .2, 1);
  /* his figure on the first screen; js/stage.10e5d365.js uses the same numbers */
  --fig-h: min(74lvh, calc((100vw - 24px) * 2048 / 1849));   /* both tips of the moustache on the screen */
  --fig-row: .2149;                               /* the moustache's tips, on his picture */
  --hz: max(62lvh, calc(100lvh - var(--fig-h) * .7851 + 2px));   /* the horizon: his shins leave the screen */
  --fig-x: 50vw;
}
@media (min-aspect-ratio: 4/5) {
  :root { --fig-h: 100lvh; --fig-row: .2148; --hz: 54lvh; --fig-x: 64vw; }
}
@media (min-width: 1440px) { :root { --read: 1.15rem; } }
@media (min-width: 1800px) { :root { --read: 1.22rem; --col: 26rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* the text colour is stated on the root and the body too: a page framed by another (claude.ai's preview) took the
   frame's dark text, black on the night (D-082) */
:root, body { color: var(--bone); }
body { margin: 0; font: 400 1.0625rem/1.55 var(--f-sans); background: transparent; min-height: 100vh; overflow-x: clip; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--hot); text-decoration-color: var(--hot); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 2px; }
p, ul, dl, h1, h2, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--g); top: -100px; z-index: 50; background: var(--bone); color: var(--ink); padding: .6em 1em; border-radius: 4px; }
.skip:focus { top: 12px; }
.skip:hover, .skip:focus-visible { background: var(--hot); color: var(--ink); outline-color: var(--hot); }

/* ---------- the stage ---------- */
.stage { position: fixed; inset: 0 0 auto 0; height: 100lvh; z-index: 0; pointer-events: none; overflow: hidden; contain: paint;
  background:
    radial-gradient(120% 60% at 72% var(--hz), rgba(242, 166, 94, .22), transparent 55%),
    linear-gradient(180deg, #121733 0%, #2c2b55 calc(var(--hz) - 12lvh), #5d4e72 calc(var(--hz) - 2lvh), #12131c var(--hz), #0d0e14 100%); }
.stage__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.stage__figure { position: absolute; height: var(--fig-h); width: auto; max-width: none;
  left: calc(var(--fig-x) - var(--fig-h) * 1849 / 2048 / 2); top: calc(var(--hz) - var(--fig-h) * var(--fig-row)); }
.gl .stage__gl { opacity: 1; }
.gl .stage__figure, .gl-fig .stage__figure { visibility: hidden; }
/* his small placeholder, blurred, where he will stand, until his picture is ready (a slow connection) */
.stage__ph { position: absolute; height: var(--fig-h); width: auto; max-width: none; filter: blur(5px); opacity: .85; transition: opacity .35s;
  left: calc(var(--fig-x) - var(--fig-h) * 1849 / 2048 / 2); top: calc(var(--hz) - var(--fig-h) * var(--fig-row)); }
.gl-fig .stage__ph, .gl-domfig .stage__ph, .no-gl .stage__ph, .still-on .stage__ph { opacity: 0; }
.no-gl .stage__figure { opacity: 0; transition: opacity .3s; }
.no-gl .stage__figure.ready { opacity: 1; }
.gl-domfig .stage__figure { visibility: visible; }
.lvh-probe { position: fixed; top: 0; left: 0; width: 0; height: 100lvh; visibility: hidden; pointer-events: none; }
/* no WebGL: the evening as a still picture (rendered from the stage), he stands on it on the first screen only.
   The picture covers the screen and is placed so that its horizon (62.52 % down the portrait one, 54 % down the
   landscape one) lands on --hz, his moustache */
.no-gl .stage { position: absolute; height: 100lvh; background: #0d0f1c url("../img/stage-portrait.7dfb8598.jpg") no-repeat;
  background-size: max(100vw, calc(100lvh * 780 / 1688)) auto;
  background-position: 50% calc(var(--hz) - .6252 * max(calc(100vw * 1688 / 780), 100lvh)); }
@media (min-aspect-ratio: 4/5) { .no-gl .stage { background-image: url("../img/stage-landscape.efcdf0f6.jpg");
  background-size: max(100vw, calc(100lvh * 1920 / 1080)) auto;
  background-position: 50% calc(var(--hz) - .54 * max(calc(100vw * 1080 / 1920), 100lvh)); } }
.no-gl .narrator, .no-gl .still, .no-gl .qa__motion { display: none; }   /* nothing moves: nothing to pause or explain */
.no-gl .stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30lvh; background: linear-gradient(rgba(11, 13, 22, 0), var(--ink)); }   /* the still evening fades into the night below */
.no-gl .ending { min-height: 0; padding-bottom: 14lvh; }
.no-gl .stage__figure { filter: brightness(.86) saturate(.92); }   /* near the stage's own grade for the blue hour */

/* ---------- the bar ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 1.2rem;
  padding: max(10px, env(safe-area-inset-top)) var(--g) 10px; font: 500 .8125rem/1 var(--f-sans); letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(11, 13, 22, .55), rgba(11, 13, 22, 0)); }
.bar { transition: background-color .3s; }
.bar--solid { background: rgba(11, 13, 22, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bar__mark { font: 800 1rem/1 var(--f-display); font-stretch: 150%; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; margin-right: auto;
  opacity: 0; transition: opacity .3s; }
.bar--mark .bar__mark, .bar--page .bar__mark, .bar__mark:focus-visible { opacity: 1; }   /* one KALMAN at a time on the first screen */
.bar__nav { display: none; gap: 1.4rem; }
.bar__nav a { text-decoration: none; color: var(--mist); padding: .5rem 0; transition: color .2s; }
.bar__nav a[aria-current="true"] { color: var(--bone); text-decoration: underline; text-decoration-color: var(--hot); }
.bar__nav a:hover, .bar__nav a:focus-visible { color: var(--hot); }
.still, .bar__menu { appearance: none; border: 1px solid var(--rule); background: rgba(11, 13, 22, .35); color: var(--bone); font: inherit;
  border-radius: 999px; padding: .55rem .9rem; min-height: 40px; display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.still:hover, .bar__menu:hover, .still:focus-visible, .bar__menu:focus-visible { color: var(--hot); border-color: var(--hot); }
.still { min-width: 40px; justify-content: center; padding-left: .75rem; padding-right: .75rem; }
.still, .bar__menu { white-space: nowrap; flex-shrink: 0; }
.still__dot { width: .62em; height: .7em; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.still-on .still__dot { width: 0; height: 0; border: 0; border-left: .62em solid currentColor; border-top: .38em solid transparent; border-bottom: .38em solid transparent; }
@media (max-width: 359px) { .still__label { display: none; } }   /* the narrowest phones: the glyph alone */
.bar__progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, rgba(242, 166, 94, .0), rgba(242, 166, 94, .7)); }
/* the language switch (D-085): EN | FR on every page, the current language plain, the other a link to the same page
   in it; nothing automatic, nothing stored */
.lang { display: inline-flex; align-items: center; flex-shrink: 0; font: 600 .75rem/1 var(--f-sans); letter-spacing: .12em;
  text-shadow: 0 0 8px rgba(8, 9, 16, .95); }
.lang__on, .lang__to { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .55rem; }
.lang__on { color: var(--bone); text-decoration: underline; text-decoration-color: var(--hot); text-underline-offset: .45em; text-decoration-thickness: 1px; }
.lang__to { color: var(--mist); text-decoration: none; }
.lang__to:hover, .lang__to:focus-visible { color: var(--hot); }
.lang__sep { width: 1px; height: 1em; background: rgba(239, 232, 220, .45); }
@media (max-width: 459px) {          /* phones, 320 px up: the switch, Pause and Menu fit beside his name on one row */
  .bar { gap: .45rem; }
  .lang__on, .lang__to { padding: 0 .3rem; }
  .still { padding-left: .55rem; padding-right: .55rem; }
  .bar__menu { padding-left: .65rem; padding-right: .65rem; }
}
@media (min-width: 960px) {
  .bar__nav { display: flex; }
  /* the links stay readable over the bright sky */
  .bar { background: linear-gradient(180deg, rgba(11, 13, 22, .8), rgba(11, 13, 22, .45) 70%, rgba(11, 13, 22, 0)); }
  .bar__nav a { text-shadow: 0 0 10px rgba(8, 9, 16, .95); }
  .bar.bar--solid { background: rgba(11, 13, 22, .95); }   /* past the name the bar is solid here too: a cream print scrolls under it (D-082) */
  .bar__menu { display: none; }
}
.menu { position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: 0 var(--g);
  background: rgba(8, 9, 16, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.menu[hidden] { display: none; }
.menu a { font: 700 clamp(2rem, 9vw, 3.4rem)/1.15 var(--f-display); font-stretch: 125%; text-decoration: none; text-transform: uppercase; letter-spacing: .01em; padding: .2rem 0; }
.menu a:hover, .menu a:focus-visible, .menu a:active { color: var(--hot); }
@media (max-height: 520px) {
  .menu { justify-content: flex-start; padding-top: calc(64px + 2vh); overflow-y: auto; }
  .menu a { font-size: clamp(1.3rem, 7.5vh, 2.2rem); }
}

/* ---------- the first screen ---------- */
main { position: relative; z-index: 2; transition: opacity .45s var(--ease-calm); }
.hero { position: relative; min-height: 140lvh; }
.hero__text { position: relative; padding: calc(64px + 3.2lvh) var(--g) 0; text-align: center; }
.hero__name { font: 850 clamp(2.2rem, 13.2vw, 11rem)/.86 var(--f-display); font-stretch: 150%; letter-spacing: -.01em; text-transform: uppercase;
  white-space: nowrap; color: var(--bone); text-shadow: 0 2px 30px rgba(10, 12, 30, .35); }
.hero__name .kin { display: inline-block; }
.hero__name-probe { position: absolute; visibility: hidden; white-space: nowrap; font-stretch: 150%; }
.hero__name .ch { display: inline-block; }
.hero__sub { margin-top: .5rem; font: italic 430 clamp(1.35rem, 6.4vw, 2.6rem)/1.1 var(--f-serif); color: var(--bone); }
/* the tagline (D-083): one voice for both sentences, the name's own typeface in small spaced capitals, a third step
   under KALMAN and "the Calm Man"; on one line on every phone */
.hero__tag { margin-top: 1.05rem; font: 620 clamp(.82rem, 3.5vw, 1rem)/1.4 var(--f-display); font-stretch: 115%; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bone); }
/* a dark edge round each letter and a soft halo: readable over the stars and the moon */
.hero__sub, .hero__tag { text-shadow: 0 0 1px rgba(5, 6, 14, .9), 0 0 3px rgba(5, 6, 14, .8), 0 0 14px rgba(5, 6, 14, .55); }
.tag__a, .tag__b { display: inline-block; }
.hero__tag .ch { display: inline-block; white-space: pre; }
@media (min-aspect-ratio: 4/5) and (max-height: 520px) {
  .hero__text { padding-top: calc(56px + 1lvh) !important; }
  .hero__name { font-size: clamp(2rem, 13vh, 4.2rem) !important; }
  .hero__sub { font-size: clamp(1.1rem, 6vh, 1.6rem) !important; margin-top: .2rem; }
  .hero__tag { font-size: clamp(.72rem, 3vh, .9rem) !important; margin-top: .35rem; }
}
@media (min-aspect-ratio: 4/5) {
  .hero__text { text-align: left; max-width: min(calc(58vw + var(--pad)), calc(860px + var(--pad))); padding-top: calc(70px + 9lvh); padding-left: var(--pad); }
  .hero__name { font-size: clamp(3rem, 7.4vw, 10.5rem); }
  .hero__sub { font-size: clamp(1.6rem, 2.6vw, 2.8rem); }
  .hero__tag { font-size: clamp(.95rem, 1.28vw, 1.38rem); margin-top: 1.4rem; letter-spacing: .11em; }
}

/* the kinetic first second (js/site.36538330.js adds .intro, then removes it); without scripts the words still come */
@media (prefers-reduced-motion: no-preference) {
  .no-js .hero__text, .css-words .hero__text { animation: kz-show .6s .9s both; }
}
@keyframes kz-show { from { opacity: 0; } to { opacity: 1; } }
.intro .hero__name .ch { opacity: 0; font-stretch: 60%; }
.intro .hero__sub, .intro .tag__a .ch, .intro .tag__b .ch { opacity: 0; }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--sec) var(--g) calc(var(--sec) * .8); scroll-margin-top: max(0px, calc(76px + env(safe-area-inset-top) - var(--sec))); }   /* a link lands its label below the bar */
.label { font: 800 clamp(1.9rem, 8.6vw, 2.6rem)/1 var(--f-display); font-stretch: 120%; letter-spacing: .01em; text-transform: uppercase;
  color: var(--bone); margin-bottom: 2rem; text-shadow: 0 0 6px var(--ink), 0 0 18px rgba(11, 13, 22, .8); }   /* each section clearly marked (D-083) */
@media (min-aspect-ratio: 4/5) { .label { font-size: clamp(2.3rem, 2.9vw, 3.2rem); } }
.section__lead { max-width: 34rem; font: italic 430 clamp(1.25rem, 4.6vw, 1.7rem)/1.3 var(--f-serif); color: var(--bone); margin-bottom: 2rem; }
.section__small { max-width: 34rem; margin-top: 1.6rem; color: var(--mist); font-size: calc(var(--read) * .9); }
/* a wide screen: one centred container for the whole page */
@media (min-aspect-ratio: 4/5) {
  .section { padding-left: var(--pad); padding-right: var(--pad); }
}
/* a wide screen: every section starts on the container's left edge; the reading sections keep their label in a rail
   there and their words in the wider column beside it, so the page has one edge and no empty half */
@media (min-aspect-ratio: 4/5) and (min-width: 900px) {
  .accounts, .factsec, .questions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); column-gap: clamp(32px, 4vw, 80px); align-items: start; }
  .accounts > .label, .factsec > .label, .questions > .label { grid-column: 1; grid-row: 1 / span 12; margin: .45rem 0 0; }
  .accounts > :not(.label), .factsec > :not(.label), .questions > :not(.label) { grid-column: 2; min-width: 0; }
  .facts__h { margin-top: 2.6rem; }
}

/* who he is: the credits, centred in the sky; three instant prints of him below them (beside them on a wide screen) */
.who { text-align: center; margin: 0 auto; max-width: 44rem; padding-top: calc(var(--sec) + 7lvh); }
.who .label { margin-bottom: 2.6rem; scroll-margin-top: max(14lvh, calc(76px + env(safe-area-inset-top))); }   /* the link lands on the title, below the bar */
.credits { display: grid; gap: 2.2rem; }
.credit dt { font: 600 .72rem/1 var(--f-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--bone); margin-bottom: .7rem; text-shadow: 0 1px 10px rgba(8, 9, 16, .8); }
.credit dd { margin: 0; font: italic 420 clamp(1.7rem, 7.4vw, 3rem)/1.08 var(--f-serif); color: var(--bone); text-shadow: 0 1px 22px rgba(8, 9, 16, .7); }
.nw { white-space: nowrap; }   /* "AI-generated" never splits at its hyphen */
/* the prints (D-082): instant photographs, as the card of the game was: the photo in a cream frame, a wide strip
   below it with one big word and a line in his character, the day the pictures were made stamped in the corner as
   film cameras printed it. Loose, each a little off the last: a small pile, not a row of frames, and on a computer
   not one big picture and two small ones (Jean Phil's "studies" are laid out so, D-082). Each caption lies on top */
.snaps { display: grid; margin: 3.8rem auto 0; max-width: 27rem; padding: 0 6px; text-align: left; }
.snap { --tilt: -1.4deg; position: relative; rotate: var(--tilt); container-type: inline-size; padding: 10px 10px 16px; border-radius: 3px;
  background: #f1ebe0; color: #15161b; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 60px rgba(0, 0, 0, .5); }
.snap figure { margin: 0; }
.snap__photo { position: relative; overflow: hidden; background: #1a1d2c; }
.snap__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.snap--wide .snap__photo img { aspect-ratio: 3 / 2; }
.snap__date { position: absolute; right: 6%; bottom: 5%; font: 600 .82rem/1 var(--f-mono); letter-spacing: .05em; color: #ffa24c; text-shadow: 0 0 6px rgba(255, 110, 40, .7); }
@supports (font-size: 1cqi) { .snap__date { font-size: max(.66rem, 3.6cqi); } }
.snap figcaption { padding: 13px 3px 0; }
.snap__word { display: block; font: 850 1.7rem/1 var(--f-display); font-stretch: 135%; text-transform: uppercase; white-space: nowrap; color: #15161b; }
@supports (font-size: 1cqi) { .snap__word { font-size: min(2.1rem, 10.6cqi); } }
.snap__line { display: block; margin-top: 7px; font: italic 460 1.08rem/1.25 var(--f-serif); color: #15161b; text-wrap: balance; }
.snap + .snap { margin-top: -14px; }
.snap--wide { margin-right: 5%; z-index: 3; }
.snap--tip { --tilt: 2deg; width: 76%; margin-left: auto; z-index: 2; }
.snap--belt { --tilt: -1deg; width: 78%; margin-left: 3%; z-index: 1; }
@media (min-aspect-ratio: 4/5) {
  .who { margin: 0; max-width: none; text-align: left; }
  .who > * { width: min(100%, var(--wrap)); margin-left: auto; margin-right: auto; }
  .who__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 112px); align-items: start; }
  .credits { grid-column: 1; grid-row: 1; gap: 2.3rem; }
  .snaps { grid-column: 2; grid-row: 1 / span 2; display: block; width: min(100%, 34rem); justify-self: end; margin: .4rem 0 0; max-width: none; padding: 0; }
  .snap--wide { width: 78%; margin: 0; }
  .snap--tip { width: 56%; margin: -26px 0 0 auto; }
  .snap--belt { width: 56%; margin: -46px 0 0 5%; }
  .credit dd { font-size: clamp(1.7rem, 2.9vw, 3rem); }
}
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease-calm), transform 1.1s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

/* rides: a strip to swipe */
.reel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--g) 18px; margin: 0 calc(-1 * var(--g));
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reel::-webkit-scrollbar { display: none; }
.reel__item { flex: 0 0 min(64vw, 300px); scroll-snap-align: center; }
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #15172a; }
.reel figcaption { margin-top: .7rem; font: italic 430 1.1rem/1.3 var(--f-serif); color: var(--bone); }
.reel__n { font: 500 .72rem/1 var(--f-mono); color: var(--bone); margin-right: .6em; font-style: normal; letter-spacing: .05em; }

/* accounts */
.handles { border-top: 1px solid var(--rule); }
@media (min-aspect-ratio: 4/5) and (min-width: 900px) {
  .handles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); border-top: 0; }
  .handles li { border-top: 1px solid var(--rule); }
  .handles a { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.25rem 0 1.35rem; }
  /* the handles fit their column at every width (D-086): this size never applied before, the base rule's font shorthand
     comes later; on a landscape tablet the handles ran into each other and past the screen's edge */
  .handles .handles__h { text-align: left; font-size: min(2rem, 2.5vw); white-space: nowrap; overflow-wrap: normal; }
}
.handles a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; transition: padding .35s var(--ease-out), color .2s; }
.handles__p { font: 600 .72rem/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.handles__h { font: 750 clamp(1.25rem, 5.6vw, 2.2rem)/1.05 var(--f-display); font-stretch: 112%; overflow-wrap: anywhere; text-align: right; }
.handles a:hover, .handles a:focus-visible { padding-left: .6rem; color: inherit; }
.handles a:hover .handles__h, .handles a:focus-visible .handles__h { color: var(--hot); }

/* the token notice: plain, nothing near it */
.factsec { padding-top: 12lvh; padding-bottom: 12lvh; }
.facts__h { font: italic 450 1.4rem/1.2 var(--f-serif); margin: 3rem 0 1rem; }
.notice { max-width: 36rem; font: 400 calc(var(--read) * 1.02)/1.6 var(--f-sans); color: var(--bone); }
.notice strong { font-weight: 600; }

.safe__list { max-width: 34rem; border-top: 1px solid var(--rule); }
.safe__list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); font-size: var(--read); }

.qa { max-width: 36rem; border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font: 600 var(--read)/1.35 var(--f-sans); color: var(--bone); transition: color .2s; }
.qa summary:hover, .qa summary:focus-visible { color: var(--hot); }
.qa summary:hover::after, .qa summary:focus-visible::after { border-color: var(--hot); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--mist); border-bottom: 1.5px solid var(--mist);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease-out); }
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa p { padding: 0 0 1.2rem; color: var(--mist); max-width: 36rem; font-size: var(--read); }

/* the ending: night, the camera finds him again */
.ending { min-height: 135lvh; display: flex; flex-direction: column; justify-content: flex-start; padding-top: calc(var(--sec) + 5lvh); }
.ending__sign { font: italic 420 clamp(2.2rem, 10vw, 5rem)/1 var(--f-serif); color: var(--bone); margin-bottom: 5lvh; }
.contact { font: 700 clamp(1.15rem, 5vw, 2rem)/1.2 var(--f-display); font-stretch: 112%; overflow-wrap: anywhere; text-shadow: 0 0 2px rgba(8, 9, 16, .9), 0 0 18px rgba(8, 9, 16, .85); }
.contact a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: .1em; }
.contact a:hover, .contact a:focus-visible { color: var(--hot); border-color: var(--hot); }
.contact__note { margin-top: .9rem; color: var(--mist); font: italic 430 1.15rem/1.3 var(--f-serif); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; padding: 3.5rem var(--pad) calc(2.5rem + env(safe-area-inset-bottom)); font-size: .85rem; color: var(--mist);
  background: linear-gradient(180deg, rgba(8, 9, 16, 0), rgba(8, 9, 16, .9) 22%, rgba(8, 9, 16, .96) 50%); display: grid; gap: .5rem; text-wrap: balance; }
.foot__sound { font: italic 430 1.15rem/1.3 var(--f-serif); color: var(--bone); margin-bottom: .8rem; }

/* ---------- the bird: comes when nothing moves for a while, lands on his brim, leaves at the first scroll ---------- */
.bird { position: fixed; left: 0; top: 0; z-index: 1; width: 64px; height: 40px; pointer-events: none; opacity: 0; fill: url(#bird-shade); filter: blur(.4px);
  transform-origin: 0 0; will-change: transform; }
.bird.on { opacity: 1; }
.calm .bird { opacity: 0; }   /* never near the token block */
.bird g { display: none; }
.bird[data-pose="sit"] .bird__sit, .bird[data-pose="up"] .bird__up, .bird[data-pose="down"] .bird__down { display: inline; }
.bird[data-pose="up"], .bird[data-pose="down"] { filter: blur(.9px); }
.bird__legs { fill: none; stroke: #0c0d14; stroke-width: 1.2; stroke-linecap: round; }
.bird__far { fill: #1a1c28; }

/* ---------- the narrator: in the sky above his hat, crossing the first stretch ---------- */
.narrator { position: fixed; left: 0; right: 0; top: calc(64px + 7lvh); z-index: 3; text-align: center; pointer-events: none; padding: 0 var(--g);
  font: italic 430 clamp(1.9rem, 8.6vw, 3.4rem)/1.1 var(--f-serif); color: var(--bone); text-shadow: 0 1px 24px rgba(5, 6, 14, .6); }
.narrator span { position: absolute; left: 0; right: 0; opacity: 0; }
@media (min-aspect-ratio: 4/5) { .narrator { left: var(--g); right: auto; text-align: left; top: calc(70px + 12lvh); width: min(52vw, 760px); } }

/* ---------- Still mode and reduced motion ---------- */
.still-on .stage__gl { opacity: 1; }
.still-on .rv { opacity: 1; transform: none; transition: none; }
.still-on .narrator, .still-on .bird { display: none; }
.still-on *, .still-on *::before, .still-on *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .intro .hero__name .ch { opacity: 1; font-stretch: 150%; }
  .intro .hero__sub, .intro .tag__a .ch, .intro .tag__b .ch { opacity: 1; }
}

/* ---------- the quiet pages: legal notice, 404 (no stage, no script) ---------- */
.page { background: radial-gradient(120% 70% at 70% 0%, #2a2a52 0%, #151831 45%, var(--ink) 80%) fixed; min-height: 100vh; }
.bar--page { position: sticky; background: rgba(11, 13, 22, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bar__back { color: var(--mist); text-decoration: none; font: 500 .85rem/1 var(--f-sans); }
.bar__back:hover, .bar__back:focus-visible { color: var(--hot); }
/* the legal page (D-084): the strict minimum, in English and French (D-085); each part marked as the home page's sections are */
.legal { max-width: 42rem; margin: 0 auto; padding: 4rem var(--g) 5rem; }
.legal__h { font: 800 clamp(1.8rem, 7vw, 3rem)/1.05 var(--f-display); font-stretch: 125%; margin-bottom: 1.6rem; text-wrap: balance; }
.legal p, .legal li { color: #ddd8d0; }
.legal p { margin: 0 0 .9rem; }
.legal h2 { font: 800 clamp(1.2rem, 4.8vw, 1.55rem)/1.1 var(--f-display); font-stretch: 120%; letter-spacing: .02em; text-transform: uppercase; color: var(--bone); margin: 2.8rem 0 .9rem; }
.legal h3 { font: 600 1.0625rem/1.35 var(--f-sans); color: var(--bone); margin: 1.6rem 0 .45rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 .9rem; }
.legal li { margin: .35rem 0; }
.legal code { font: .92em var(--f-mono); overflow-wrap: anywhere; }
/* what the owner must still fill in: ice blue, never the orange of what can be clicked */
.legal mark.tbd { background: rgba(207, 233, 255, .14); color: var(--ice); border-radius: 3px; padding: .05em .25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lost { min-height: calc(100vh - 60px); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--g); max-width: 44rem; margin: 0 auto; }
.lost__k { font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; color: var(--bone); margin-bottom: 1.2rem; }
.lost__h { font: 850 clamp(2.2rem, 10vw, 5rem)/.95 var(--f-display); font-stretch: 140%; text-transform: uppercase; }
.lost__p { margin: 1.2rem 0 2rem; font: italic 430 clamp(1.2rem, 5vw, 1.6rem)/1.3 var(--f-serif); color: var(--bone); }
.lost__a { color: var(--bone); }

/* test renders only (?rec=1&dbg=clean): the stage without the words */
.rec-clean main, .rec-clean .bar, .rec-clean .narrator, .rec-clean .bird, .rec-clean .foot { visibility: hidden; }
