/* SPDX-License-Identifier: MPL-2.0
 * Copyright (C) 2026 Styves Goupil
 * FRASIL's site: the river at night, as on the FM-1's screen.
 * Two voices: the instrument speaks in tracked condensed caps (Barlow Semi Condensed, the screen's own face), the
 * musician in a serif (Newsreader). Cold is ice (GLINT, FREEZE, a choice made), warm is lamp (the hand: pressure,
 * what is being touched). Everything else is night, steel, mist and fog. */

:root {
  --night: #0a0d12;          /* the page: the screen's background */
  --abyss: #06080c;          /* the sky's top, deep water */
  --panel: #0e1319;          /* a raised surface */
  --water: #0d1822;          /* under the waterline */
  --steel: #26303c;          /* hairlines, tracks */
  --rule: #1a212a;           /* the faintest lines */
  --slate: #4a5563;          /* quiet marks, the waterline (not for text: 2.6:1) */
  --dim: #77818f;            /* quiet text: numbers beside a name (4.9:1) */
  --mist: #8b95a4;           /* labels */
  --text-2: #aeb7c2;         /* secondary text */
  --fog: #dce3ea;            /* values, body text, the drones */
  --white: #f3f6f9;          /* titles */
  --ice: #6ed0ff;            /* cold */
  --lamp: #f2a65a;           /* warm */
  --haze: #33414f;
  --sea: #3480ec;            /* the logo's submerged half */

  --f-ui: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

/* the fonts, served from here (assets/fonts/, latin and latin-ext: Google Fonts' own files, SIL OFL 1.1), preloaded by
 * the head (Site.page): no other site asked, and font-display block: never a fallback that changes width, then swaps */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-400-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: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-500-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: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-600-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: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: block; src: url("../fonts/barlow-semi-condensed-normal-700-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/ibm-plex-mono-normal-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/ibm-plex-mono-normal-400-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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/ibm-plex-mono-normal-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/ibm-plex-mono-normal-500-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: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: block; src: url("../fonts/newsreader-italic-300-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 300 500; font-display: block; src: url("../fonts/newsreader-italic-300-500-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: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: block; src: url("../fonts/newsreader-normal-300-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 600; font-display: block; src: url("../fonts/newsreader-normal-300-600-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; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); scrollbar-gutter: stable; }   /* (a page
 * with a scrollbar and one without: the header in the same place) */
body {
  margin: 0;
  background: var(--night);
  color: var(--fog);
  font: 400 18px/1.62 var(--f-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (max-width: 600px) { body { font-size: 17px; } }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(110, 208, 255, .28); color: var(--white); }

/* the hand: focus is warm */
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 3px; }
:focus:not(:focus-visible) { outline: none; }

.nb { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 4px;
  background: var(--fog); color: var(--night); font: 600 14px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- the instrument's voice */
.label {
  font: 600 12.5px/1.3 var(--f-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
}
/* a word from the panel or the screen, in running text: CHOIR, DECAY, D MINOR */
.k {
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: .84em;
  letter-spacing: .07em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
:where(.label, dt, th, dd, .dhead-hint, .chip, .page4, .scene-list, .models, .h-out, .flow-box, .layer-name) .k { font-size: 1em; letter-spacing: inherit; }

/* a button, as the help screen frames it: REC, ARP, OCT− */
.key {
  display: inline-block;
  font: 600 .68em/1 var(--f-ui);
  letter-spacing: .12em;
  color: var(--white);
  padding: .32em .42em .26em .5em;
  border: 1px solid #3b4654;
  border-radius: 3px;
  vertical-align: .12em;
  white-space: nowrap;
}
/* a knob's badge: the blue disc of K1–K4, the orange disc of A B C */
.kn {
  display: inline-block;
  font: 700 .7em/1 var(--f-ui);
  letter-spacing: .04em;
  color: var(--night);
  background: var(--ice);
  padding: .26em .48em .2em;
  border-radius: 1em;
  vertical-align: .14em;
  white-space: nowrap;
}
.disc {
  display: inline-grid; place-items: center;
  width: 1.45em; height: 1.45em; border-radius: 50%;
  font: 700 .72em/1 var(--f-ui); letter-spacing: 0; color: var(--night); background: var(--ice);
  vertical-align: .1em; flex: none;
}
/* the glyph centred on its caps: Barlow's sit low in a line of 1 (its ascent and descent), more or less by the size;
 * the line trimmed to the cap height and the baseline, the padding the rest of the disc. (letter-spacing: a parent's,
 * the hero's buttons', pushed the glyph left) */
@supports (text-box: trim-both cap alphabetic) {
  .disc { display: inline-block; height: auto; padding: .375em 0; text-align: center; text-box: trim-both cap alphabetic; box-sizing: content-box; }
}
.disc.abc { background: var(--lamp); }

/* ---------------------------------------------------------------- links and buttons */
a { color: inherit; }
.prose a, a.link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(110, 208, 255, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .25s, text-decoration-color .25s;
}
.prose a:hover, a.link:hover { color: var(--ice); text-decoration-color: var(--ice); }

.btn {
  --b: var(--slate);
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 46px; padding: .85em 1.15em .78em;
  font: 600 14px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase;
  color: var(--fog); text-decoration: none;
  background: transparent;
  border: 1px solid var(--b);
  border-radius: 7px;
  cursor: pointer;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.btn:hover { --b: var(--fog); color: var(--white); }
.btn svg { flex: none; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
/* the main one is ice, and warms to lamp light under the hand */
.btn-ice {
  --b: var(--ice);
  color: var(--night); background: var(--ice);
  box-shadow: 0 0 0 0 rgba(242, 166, 90, 0), 0 10px 40px -12px rgba(110, 208, 255, .45);
}
.btn-ice:hover, .btn-ice:focus-visible {
  --b: var(--lamp);
  color: var(--night); background: var(--lamp);
  box-shadow: 0 0 0 6px rgba(242, 166, 90, .12), 0 14px 46px -12px rgba(242, 166, 90, .6);
}
.btn-ice:active { transform: translateY(1px); }
.btn-plain { border-color: transparent; padding-inline: .4em; }
.btn-plain:hover { border-color: transparent; color: var(--ice); }

/* the keys' badge on the screen: a small keyboard */
.kbd-ico { width: 22px; height: 12px; }

/* ---------------------------------------------------------------- the site's header
 * Stuck at the top, the page passing under it (its shadow once something has): the mark, the site's three, Discord
 * (always there), the menu. On the landing it floats over the hero without the mark; once the big logo has gone, it
 * fills in and the mark comes, twice its old size. */
:root { --head-h: 76px; }
@media (max-width: 760px) { :root { --head-h: 64px; } }
.site-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px clamp(18px, 2.4vw, 30px);
  min-height: var(--head-h); padding: 0 var(--gutter);
  background: rgba(10, 13, 18, .95); -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: box-shadow .45s var(--ease), border-color .45s, background-color .45s;
}
.site-head.stuck { border-bottom-color: var(--rule); box-shadow: 0 12px 36px rgba(0, 0, 0, .55); }
.site-head.over { position: fixed; inset: 0 0 auto 0; }
.site-head.over:not(.past) { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; box-shadow: none; }
.mark { display: inline-flex; align-items: center; height: var(--head-h); margin-right: auto; border-radius: 3px;
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mark img { display: block; width: 196px; height: auto; }
.site-head.over:not(.past) .mark { opacity: 0; transform: translateY(-8px); pointer-events: none; }
@media (max-width: 760px) { .mark img { width: 150px; } }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.site-nav a, .head-dc {
  position: relative; padding: 10px 0; white-space: nowrap; text-decoration: none;
  font: 600 13.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--mist);
  transition: color .25s;
}
.site-nav a:hover, .head-dc:hover { color: var(--white); }
.site-nav a[aria-current] { color: var(--white); }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: .16em; bottom: 3px; height: 1px; background: var(--ice); }
.head-dc { display: inline-flex; align-items: center; gap: .55em; }
@media (max-width: 760px) { .site-nav { display: none; } }          /* (the three in the menu) */
@media (max-width: 560px) { .head-dc span { display: none; } .head-dc .dc-mark { width: 1.5em; height: 1.5em; } }

/* the menu: three lines, a cross once open; the site's four, the ways, the apps */
.menu-btn { position: relative; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 10px;
  background: none; color: var(--fog); cursor: pointer; }
.menu-btn i { position: absolute; left: 11px; width: 22px; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s; }
.menu-btn i:nth-of-type(1) { top: 15px; } .menu-btn i:nth-of-type(2) { top: 21.25px; } .menu-btn i:nth-of-type(3) { top: 27.5px; }
.menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(6.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-6.25px) rotate(-45deg); }
.menu-btn:hover, .menu-btn:focus-visible { color: var(--white); background: rgba(220, 227, 234, .06); outline: none; }
.site-menu {
  position: absolute; z-index: 50; top: calc(100% - 4px); right: calc(var(--gutter) - 10px); width: 360px;
  max-height: calc(100vh - var(--head-h)); overflow-y: auto; padding: 8px 14px 14px; border: 1px solid var(--steel); border-radius: 16px;
  background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(-8px); transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.site-menu.open { opacity: 1; transform: none; }
/* closed, it is gone, whatever a page's own CSS says of a header's nav (the play page's emulator: header nav { display:
 * flex }); while it fades out, it lets the clicks through */
.site-menu[hidden] { display: none !important; }
.site-menu:not(.open) { pointer-events: none; }
.menu-main, .menu-ways { list-style: none; margin: 0; padding: 0; }
.menu-main { padding: 0 8px 8px; }
.menu-main a { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule);
  font: 600 14px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--fog); text-decoration: none; }
.menu-main li:last-child a { border-bottom: 0; }
.menu-main a:hover { color: var(--white); }
.menu-main a[aria-current]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.menu-ways { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--rule); }
.menu-ways + .menu-ways { margin-top: 8px; }
.mway { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--fog); transition: background-color .2s; }
a.mway:hover { background: rgba(220, 227, 234, .05); }
.mway .way-ico { flex: none; width: 24px; height: 24px; color: var(--mist); border-radius: 6px; }
.mway b { display: block; font: 600 13.5px/1.1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.mway small { display: block; margin-top: 3px; font: 600 11.5px/1.2 var(--f-ui); letter-spacing: .08em; color: var(--dim); }
.mway.soon { color: var(--dim); }
.mway.soon small { color: var(--lamp); opacity: .8; }
button.mway { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }   /* (to come: its waitlist) */
.mway.soon:hover, .mway.soon:focus-visible { background: rgba(220, 227, 234, .05); color: var(--fog); }
.mway.soon:hover .way-ico { color: var(--fog); }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 8px 0; border-top: 1px solid var(--rule); }
.menu-foot .nav-dc { font: 600 13px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); text-decoration: none; }
.menu-foot .nav-dc:hover { color: var(--white); }
@media (max-width: 560px) { .site-menu { left: 10px; right: 10px; width: auto; } }

/* the ways to FRASIL, in the landing's fold: to play it, then the two apps; what is to come, dim */
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; width: min(100%, 1180px); }
.hero-ways { margin-top: clamp(22px, 3.6vh, 38px); }
/* the landing's: what plays and the apps on one row, what is to come on its own row under them, centred */
.hero-ways { --n: 5; display: flex; flex-wrap: wrap; justify-content: center; }
.hero-ways li { flex: 0 0 calc((100% - (var(--n) - 1) * 10px) / var(--n) - 1px); }   /* (- 1px: rounding never wraps the row) */
.ways.hero-ways li:nth-child(5) { margin-left: 0; }
.ways.hero-ways li:nth-child(5)::before { display: none; }
.hero-ways li:nth-child(3) { position: relative; margin-left: 12px; flex-basis: calc((100% - (var(--n) - 1) * 10px) / var(--n) - 13px); }
.hero-ways li:nth-child(3)::before { content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 1px; background: var(--steel); }
.hero-ways li.ways-break { flex: 0 0 100%; height: 0; margin-bottom: -10px; }   /* (what is to come: always its own row) */
.ways li:nth-child(5) { position: relative; margin-left: 12px; }
.ways li:nth-child(5)::before { content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 1px; background: var(--steel); }
.way { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; padding: 14px 14px 13px;
  border: 1px solid var(--steel); border-radius: 12px; background: rgba(14, 19, 25, .55); text-align: left; text-decoration: none; color: var(--fog);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
a.way:hover { border-color: var(--mist); background: rgba(20, 27, 36, .8); transform: translateY(-2px); }
.way .way-ico { width: 24px; height: 24px; color: var(--ice); border-radius: 6px; }
.way b { display: block; font: 600 13px/1.15 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.way small { display: block; margin-top: 4px; font: 500 13px/1.3 var(--f-ui); letter-spacing: .03em; color: var(--mist); }
.ways li:first-child .way { border-color: var(--ice); background: rgba(110, 208, 255, .1); box-shadow: 0 0 28px rgba(110, 208, 255, .12); }
.way.soon { border-style: dashed; background: none; }
.way.soon .way-ico, .way.soon b { color: var(--dim); }
.way.soon small { color: var(--lamp); opacity: .85; }
button.way { width: 100%; font: inherit; cursor: pointer; }   /* (to come: a click, its waitlist; dashed all the same) */
.way.soon:hover, .way.soon:focus-visible { border-color: var(--mist); background: rgba(20, 27, 36, .8); transform: translateY(-2px); }
.way.soon:hover .way-ico, .way.soon:hover b, .way.soon:focus-visible .way-ico, .way.soon:focus-visible b { color: var(--fog); }
.way.soon:hover small, .way.soon:focus-visible small { opacity: 1; }
@media (max-width: 1100px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ways li:nth-child(5) { margin-left: 0; } .ways li:nth-child(5)::before { display: none; } }
@media (max-width: 1100px) { .hero-ways { --n: 3; } .hero-ways li:nth-child(3) { margin-left: 0; flex-basis: calc((100% - 20px) / 3); } .hero-ways li:nth-child(3)::before { display: none; } }
@media (max-width: 600px) {
  .ways { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-ways { --n: 2; } .hero-ways li, .hero-ways li:nth-child(3) { flex-basis: calc((100% - 8px) / 2); } .hero-ways li.ways-break { flex-basis: 100%; margin-bottom: -8px; }
  .way { flex-direction: row; align-items: center; gap: 10px; padding: 10px 11px; }
  .way b { font-size: 12px; letter-spacing: .1em; }
  .way small { font-size: 11.5px; }
}

/* the landing's sections, floating at the bottom once the hero has gone: where the reading is, a tick a section;
 * the name opens them all */
.sec-float { position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); translate: -50% 0;
  display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; border: 1px solid var(--steel); border-radius: 999px;
  background: rgba(14, 19, 25, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: opacity .5s var(--ease), translate .5s var(--ease); }
.sec-float.off { opacity: 0; translate: -50% 14px; pointer-events: none; }
.sf-cur { display: flex; align-items: baseline; gap: 8px; min-width: 128px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 12.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--white); }
.sf-cur:hover, .sf-cur[aria-expanded="true"] { background: rgba(220, 227, 234, .06); }
.sf-cur span { color: var(--dim); letter-spacing: .08em; }
.sf-ticks { display: flex; align-items: center; }
.sf-ticks a { display: grid; place-items: center; width: 14px; height: 26px; }
.sf-ticks a::before { content: ""; width: 4px; height: 4px; border-radius: 2px; background: var(--slate); transition: width .3s var(--ease), background-color .3s; }
.sf-ticks a.past::before { background: var(--mist); }
.sf-ticks a.on::before { width: 12px; background: var(--ice); box-shadow: 0 0 8px rgba(110, 208, 255, .6); }
.sf-ticks a:hover::before { background: var(--fog); }
.sf-list { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 220px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--steel); border-radius: 14px; background: var(--panel); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.sf-list a { display: flex; gap: 12px; padding: 9px 12px; border-radius: 9px; text-decoration: none;
  font: 600 12.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--fog); }
.sf-list a span { width: 18px; color: var(--dim); letter-spacing: .04em; }
.sf-list a:hover { background: rgba(220, 227, 234, .05); }
.sf-list a.on { color: var(--ice); }
@media (max-width: 400px) { .sf-cur { min-width: 0; } .sf-ticks a { width: 11px; } }

/* the Discord server: its mark, the word when there is room */
.nav-dc { display: inline-flex; align-items: center; gap: .55em; }
.dc-mark { flex: none; width: 1.2em; height: 1.2em; fill: currentColor; }
.status {
  font: 600 12px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--mist);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.status .dl::before { content: "\00b7"; margin-right: 8px; }
.dl[hidden] { display: none; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }

/* ---------------------------------------------------------------- the device's header: NAME 2/3 ... [BUTTON] */
.dhead {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--steel);
  margin-bottom: clamp(36px, 6vw, 72px);
}
.dhead-name { font: 700 15px/1 var(--f-ui); letter-spacing: .24em; color: var(--white); text-transform: uppercase; padding-top: 6px; }
.dhead-name .idx { font-weight: 500; letter-spacing: .08em; color: var(--mist); margin-left: .9em; }
.dhead-ctl { display: grid; justify-items: end; gap: 8px; text-align: right; }
.dhead-btns { display: flex; gap: 6px; align-items: center; }
.dhead-btns .key { font-size: 13px; padding: 6px 8px 5px 10px; border-radius: 4px; }
.dhead-btns .key.on { background: var(--ice); color: var(--night); border-color: var(--ice); }
.dhead-btns .then { color: var(--slate); font: 500 13px var(--f-ui); }
.dhead-hint { font: 600 12px/1.2 var(--f-ui); letter-spacing: .14em; color: var(--lamp); text-transform: uppercase; }

/* ---------------------------------------------------------------- type */
.display {
  font-family: var(--f-text);
  font-weight: 300;
  font-variation-settings: "opsz" 72;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.018em;
  color: var(--white);
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 300; color: var(--fog); }
.display.sm { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; }
.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.lede strong, .lede b { color: var(--fog); font-weight: 500; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose p { text-wrap: pretty; }
.muted { color: var(--text-2); }

code, kbd, .mono { font-family: var(--f-mono); font-size: .8em; }
code { color: var(--fog); background: var(--panel); border: 1px solid var(--rule); padding: .12em .4em; border-radius: 4px; overflow-wrap: anywhere; }
pre { margin: 0; }
pre code { display: block; padding: 16px 18px; overflow-x: auto; line-height: 1.6; border-color: var(--steel); white-space: pre; overflow-wrap: normal; }

/* ---------------------------------------------------------------- the FM-1's screen: a small square in a dark panel */
.screen {
  position: relative;
  padding: 7%;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 50% 0%, #121820 0%, #090c11 60%),
    #090c11;
  box-shadow:
    inset 0 0 0 1px #1b232d,
    inset 0 1px 0 0 #2a3440,
    0 1px 0 0 #000,
    0 40px 80px -40px rgba(0, 0, 0, .9);
}
.screen::before {                          /* the LCD's glass, set into the panel */
  content: ""; position: absolute; inset: 7%; border-radius: 3px; pointer-events: none; z-index: 1;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px #151b23, inset 0 0 18px rgba(0, 0, 0, .55);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 32%);
}
.screen img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; border-radius: 3px; background: var(--night); }
.screen.glow-ice { box-shadow: inset 0 0 0 1px #1b232d, inset 0 1px 0 0 #2a3440, 0 40px 90px -40px rgba(110, 208, 255, .35); }
.screen.glow-lamp { box-shadow: inset 0 0 0 1px #1b232d, inset 0 1px 0 0 #2a3440, 0 40px 90px -40px rgba(242, 166, 90, .35); }
.screen .zoom { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 16px; background: none; cursor: zoom-in; }
.screen .zoom:focus-visible { outline-offset: 3px; }
.screen:has(.zoom:hover)::before { box-shadow: 0 0 0 1px #000, 0 0 0 2px #2a3644, inset 0 0 18px rgba(0, 0, 0, .55); }
button.screen { display: block; width: 100%; border: 0; cursor: zoom-in; color: inherit; }
button.screen:focus-visible { outline-offset: 4px; }

figure.shot { display: grid; gap: 14px; }
figure.shot figcaption { display: grid; gap: 4px; }
figure.shot figcaption .label { color: var(--fog); }
figure.shot figcaption span:not(.label) { font-size: 15px; line-height: 1.45; color: var(--mist); }

/* ---------------------------------------------------------------- reveals (only with script: without it, all is there) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- the footer */
.site-foot {
  position: relative;
  margin-top: clamp(80px, 12vw, 160px);
  padding-block: 56px 48px;
  border-top: 1px solid var(--steel);
  background: linear-gradient(180deg, var(--water) 0%, var(--night) 70%);
  font-size: 15px; line-height: 1.6; color: var(--mist);
}
.site-foot::before {                       /* the waterline, brighter in the middle */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate) 30%, var(--fog) 50%, var(--slate) 70%, transparent);
  opacity: .7;
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px clamp(24px, 5vw, 72px); }
.foot-grid h2 { margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--fog); text-decoration: none; transition: color .2s; }
.foot-grid a:hover { color: var(--ice); }
.foot-brand img { width: 150px; margin-bottom: 18px; }
.foot-brand p { max-width: 58ch; }
.foot-brand .nw { white-space: nowrap; }
/* the legal line: one, small and quiet, under a hairline */
.foot-legal { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--rule); font: 500 12px/1.5 var(--f-ui);
  letter-spacing: .04em; color: var(--slate); }
.foot-legal a { color: inherit; text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: .2em; }
.foot-legal a:hover { color: var(--mist); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- a screen, larger (the gallery and the guide's figures) */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--fog);
  max-width: min(94vw, 980px); width: 100%;
}
.lightbox::backdrop { background: rgba(4, 6, 9, .9); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lightbox .screen { width: min(86vmin, 820px); margin: 0 auto; cursor: default; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 14px auto 0; width: min(86vmin, 820px); }
.lightbox-bar p { font-size: 15px; color: var(--text-2); }
.lightbox-close { flex: none; }

/* ---------------------------------------------------------------- a waitlist (js/site.js): what is to come, an email
 * left to be told when it is out. Titled as the River's dialogs, a waterline under the title */
.wl {
  width: min(calc(100% - 32px), 460px); max-width: none; margin: auto; padding: 0; overflow: visible;
  background: #0c1117; color: var(--fog); border: 1px solid #222b36; border-radius: 14px;
  box-shadow: inset 0 1px 0 #1f2832, 0 60px 120px -40px rgba(0, 0, 0, .95);
}
.wl[open] { animation: wl-in .45s var(--ease); }
.wl::backdrop { background: rgba(4, 6, 9, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes wl-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.wl-in { padding: 0 26px 26px; }
.wl-h { position: relative; display: flex; align-items: center; gap: 12px; padding: 22px 0 15px; }
.wl-h::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(220, 227, 234, .6) 0, rgba(139, 149, 164, .5) 22%, var(--steel) 55%, rgba(38, 48, 60, .35) 100%);
}
.wl-ico { display: flex; } .wl-ico:empty { display: none; }
.wl-h .way-ico { flex: none; width: 24px; height: 24px; color: var(--ice); }
.wl-t { flex: 1; min-width: 0; font: 700 19px/1.1 var(--f-ui); letter-spacing: .15em; text-transform: uppercase; color: var(--white); }
.wl-t:focus { outline: none; }
.wl-x { flex: none; width: 40px; height: 40px; margin: -8px -10px -8px 0; display: grid; place-items: center; padding: 0;
  background: none; border: 0; border-radius: 8px; color: var(--mist); cursor: pointer; transition: color .2s, background-color .2s; }
.wl-x:hover { color: var(--white); background: #111821; }
.wl-p { margin-top: 16px; font: 400 16.5px/1.5 var(--f-text); color: var(--text-2); }
.wl-l { display: block; margin-top: 20px; font: 600 10.5px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.wl-row { display: flex; gap: 10px; margin-top: 8px; }
.wl-row input {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 12px; background: #090c11; border: 1px solid var(--steel); border-radius: 8px;
  font: 400 16px/1.4 var(--f-text); color: var(--fog); transition: border-color .3s;
}
.wl-row input::placeholder { color: var(--slate); }
.wl-row input:hover { border-color: var(--slate); }
.wl-row input:focus-visible { outline: 2px solid var(--lamp); outline-offset: 1px; border-color: var(--slate); }
.wl-row input[aria-invalid="true"] { border-color: rgba(255, 138, 115, .6); }
.wl-row .btn { flex: none; justify-content: center; }
.wl-row .btn:disabled { opacity: .6; cursor: progress; }
.wl-say { margin-top: 12px; font: 400 15px/1.45 var(--f-text); color: #ffb3a4; }
.wl-say:empty { display: none; }
.wl-done { display: flex; align-items: center; gap: 12px; margin-top: 18px; font: 400 18px/1.4 var(--f-text); color: var(--fog); }
.wl-done::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.wl-done:focus { outline: none; }
.wl-done[hidden] { display: none; }
@media (max-width: 480px) {
  .wl-in { padding: 0 18px 20px; }
  .wl-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .rv { transform: none; transition: opacity .6s linear; }
  .btn, .btn .arrow { transition: none; }
}

/* the guide's panel, full screen (js/site.js): as wide as the window lets it, scrolling sideways on a phone */
.lightbox-panel { max-width: none; width: 100vw; height: 100dvh; max-height: none; margin: 0; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  display: none; flex-direction: column; justify-content: center; gap: 4px; }
.lightbox-panel[open] { display: flex; }
.lightbox-panel-scroll { overflow: auto; -webkit-overflow-scrolling: touch; display: flex; }
.lightbox-panel-scroll svg { display: block; margin: auto; width: min(100%, calc((100dvh - 110px) * 1.4937)); min-width: 760px; height: auto; }
.lightbox-panel-scroll svg text { font-family: var(--f-ui); }
.lightbox-panel .lightbox-bar { width: min(100%, calc((100dvh - 110px) * 1.4937)); }
.lightbox-panel-scroll:focus, .lightbox-panel-scroll:focus-visible { outline: none; }
