/* ==========================================================================
   ELETTRONICA E RADIOTECNICA PER RADIOAMATORI · landing page
   World: night-side instrumentation, the sister of the AI book page. Neon
   grid, smoked-glass consoles, duotone page plates, emissive controls.
   Role swap for this page only: the neon magenta becomes oscilloscope
   phosphor green (--phosphor, trace and attention), and the cover's rose
   (--rose, sampled from prima_di_copertina.jpg) takes the One Warm Thing
   role amber holds on the AI page: it belongs to the book object only.
   ========================================================================== */

/* --- the two faces, served from this folder (SIL Open Font License 1.1) ----
   Chakra Petch by Cadson Demak · Barlow by Jeremy Tribby
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-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';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-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';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-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';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-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';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-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';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-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: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/chakra-petch-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: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/chakra-petch-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: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/chakra-petch-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: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/chakra-petch-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: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/chakra-petch-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: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/chakra-petch-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;
}

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

:root {
  /* ground */
  --void:        #05060f;
  --deep:        #080c20;
  --panel:       rgba(18, 26, 62, 0.58);
  --panel-solid: #0b1030;
  --panel-hi:    rgba(32, 44, 96, 0.55);

  /* light */
  --cyan:        #22e3ff;
  --cyan-soft:   #7ff2ff;
  --phosphor:    #3dff9a;
  --violet:      #7b5cff;
  --rose:        #e22f66;

  /* ink */
  --ink:         #e9edff;
  --ink-2:       #a3aed9;
  --ink-3:       #8690c4;

  /* edges, depth */
  --edge:        rgba(110, 196, 255, 0.20);
  --edge-hi:     rgba(130, 232, 255, 0.45);
  --shadow-1:    0 16px 36px -16px rgba(0, 0, 0, 0.92);
  --shadow-2:    0 44px 96px -36px rgba(0, 0, 0, 1);
  --lift-cyan:   0 18px 44px -14px rgba(34, 227, 255, 0.42);
  --lift-phos:    0 18px 44px -14px rgba(61, 255, 154, 0.38);

  /* geometry */
  --r:      18px;
  --r-sm:   12px;
  --r-pill: 999px;
  --pad:    clamp(1.125rem, 3vw, 2.75rem);
  --gutter: 20px;
  --nav-h:  64px;
  --section-gap: clamp(7rem, 11vw, 14rem);

  /* type */
  --display: 'Chakra Petch', 'Barlow', system-ui, sans-serif;
  --text:    'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step-small:   clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  --step-body:    clamp(1.0625rem, 1.00rem + 0.28vw, 1.1875rem);
  --step-lead:    clamp(1.3125rem, 1.10rem + 0.90vw, 1.75rem);
  --step-say:     clamp(1.375rem,  1.00rem + 1.95vw, 2.5rem);
  --step-head:    clamp(2.125rem,  1.35rem + 3.40vw, 4.25rem);
  --step-display: clamp(2.5rem,    1.05rem + 4.40vw, 4.75rem);

  --ease:     cubic-bezier(0.22, 0.85, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  position: relative;
  min-height: 100%;
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.62;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(34, 227, 255, 0.17), transparent 62%),
    radial-gradient(900px 520px at 6% 2%,     rgba(61, 255, 154, 0.09), transparent 60%),
    var(--void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* the CRT veil: one fixed layer over everything, never interactive */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(140, 220, 255, 0.045) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.55;
}

img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(34, 227, 255, 0.3); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #070a18; }
::-webkit-scrollbar-thumb { background: #1d2a5c; border-radius: 99px; border: 3px solid #070a18; }
::-webkit-scrollbar-thumb:hover { background: #2c3f86; }
html { scrollbar-color: #1d2a5c #070a18; scrollbar-width: thin; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --- type ----------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-display); letter-spacing: -0.035em; line-height: 0.94; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; }

p { max-width: 68ch; }

/* Every section heading misregisters on its own clock, between 2.4s and 4s, so
   the page never pulses in unison. The buy tile's heading sits on a lit pill
   and keeps still. */
h2 { animation: head-pulse 3.2s steps(1, end) 1.2s infinite; }
.plate-head h2      { animation-duration: 2.6s; animation-delay: 0.4s; }
.instruments-head h2{ animation-duration: 3.8s; animation-delay: 1.9s; }
.editions > h2      { animation-duration: 2.9s; animation-delay: 0.9s; }
.method h2          { animation-duration: 3.5s; animation-delay: 2.3s; }
.contents-h         { animation-duration: 2.4s; animation-delay: 1.4s; }
.author h2          { animation-duration: 3.1s; animation-delay: 0.2s; }
.faq h2             { animation-duration: 2.7s; animation-delay: 1.7s; }
.close-band h2      { animation-duration: 4s;   animation-delay: 0.6s; }
.foot-buy h2        { animation: none; }

strong, b { font-weight: 600; color: #fff; }
.lead { font-size: var(--step-lead); line-height: 1.38; color: var(--ink); font-weight: 400; }
.small { font-size: var(--step-small); }
.soft { color: var(--ink-2); }

/* --- frame ---------------------------------------------------------------- */
.wrap { padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.section { padding-block: var(--section-gap); }

/* --- controls ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.55em;
  font-family: var(--display);
  font-size: var(--step-body);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #02121b;
  background: linear-gradient(177deg, #6cf4ff 0%, #22d3ff 46%, #119fe6 100%);
  border-radius: var(--r-pill);
  box-shadow:
    0 12px 30px -10px rgba(34, 227, 255, 0.55),
    0 2px 0 0 rgba(255, 255, 255, 0.25) inset,
    0 0 0 1px rgba(124, 240, 255, 0.5);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.12) brightness(1.06);
  box-shadow:
    0 20px 46px -12px rgba(34, 227, 255, 0.75),
    0 2px 0 0 rgba(255, 255, 255, 0.35) inset,
    0 0 0 1px rgba(160, 246, 255, 0.75);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  background: rgba(130, 180, 255, 0.07);
  box-shadow: 0 0 0 1px var(--edge), 0 14px 30px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(130, 190, 255, 0.14);
  box-shadow: 0 0 0 1px var(--edge-hi), 0 18px 34px -16px rgba(0, 0, 0, 0.9);
  filter: none;
}
.btn-mag {
  color: #00170b;
  background: linear-gradient(177deg, #a6ffd0 0%, #4dffa6 48%, #1fe58a 100%);
  box-shadow:
    0 12px 30px -10px rgba(61, 255, 154, 0.6),
    0 2px 0 0 rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(140, 255, 196, 0.55);
}
.btn-mag:hover { box-shadow: 0 20px 46px -12px rgba(61, 255, 154, 0.8), 0 2px 0 0 rgba(255,255,255,.3) inset, 0 0 0 1px rgba(170, 255, 210,.8); }
.btn-sm { padding: 0.68em 1.15em; font-size: var(--step-small); }

/* --- the buy pair --------------------------------------------------------
   The two formats on Amazon.it, side by side, in the bar at the top and in
   the fixed bar at the bottom of a phone. The paperback pill carries the
   page's primary cyan fill; the Kindle pill is the quieter glass twin.
   -------------------------------------------------------------------------- */
.buypair { display: flex; align-items: center; gap: 10px; }

.buybtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.62em 1.05em;
  font-family: var(--display);
  font-size: var(--step-small);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-align: center;
  color: #02121b;
  background: linear-gradient(177deg, #6cf4ff 0%, #22d3ff 46%, #119fe6 100%);
  border-radius: var(--r-pill);
  box-shadow:
    0 12px 28px -12px rgba(34, 227, 255, 0.6),
    0 10px 22px -14px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 1px rgba(124, 240, 255, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              filter 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.buybtn:hover {
  transform: translateY(-2px);
  filter: saturate(1.1) brightness(1.06);
  box-shadow:
    0 18px 38px -12px rgba(34, 227, 255, 0.8),
    0 14px 28px -16px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(160, 246, 255, 0.75);
}
.buybtn:active {
  transform: translateY(1px);
  filter: saturate(1.04) brightness(0.93);
  box-shadow:
    0 5px 12px -8px rgba(34, 227, 255, 0.5),
    inset 0 2px 7px rgba(2, 18, 27, 0.4),
    0 0 0 1px rgba(124, 240, 255, 0.6);
}
.buybtn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: var(--r-pill); }

.buybtn-alt {
  color: var(--ink);
  background: rgba(130, 180, 255, 0.08);
  box-shadow:
    0 0 0 1px var(--edge-hi),
    inset 0 1px 0 rgba(170, 220, 255, 0.14),
    0 14px 30px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}
.buybtn-alt:hover {
  color: #fff;
  filter: none;
  background: rgba(130, 190, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(150, 240, 255, 0.7),
    inset 0 1px 0 rgba(170, 220, 255, 0.2),
    0 18px 34px -16px rgba(0, 0, 0, 0.9);
}
.buybtn-alt:active {
  filter: none;
  background: rgba(96, 146, 214, 0.1);
  box-shadow: 0 0 0 1px var(--edge-hi), inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* the flag is a miniature plate: own aspect from its viewBox, hairline so it
   never floats on the fill */
.buybtn .flag {
  flex: none;
  width: 21px; height: auto;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(2, 18, 27, 0.42);
}
.buybtn-alt .flag { box-shadow: 0 0 0 1px rgba(170, 215, 255, 0.4); }

/* this book sells one store and two formats, so the pills carry a drawn
   format glyph (a bound book, an e-reader) instead of a flag */
.buybtn .fmt {
  flex: none;
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- consoles ------------------------------------------------------------- */
.console {
  position: relative;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(24, 34, 78, 0.62), rgba(8, 12, 34, 0.72));
  box-shadow: 0 0 0 1px var(--edge), var(--shadow-2), inset 0 1px 0 rgba(170, 220, 255, 0.08);
  backdrop-filter: blur(16px);
}
.console::before {
  content: '';
  position: absolute; inset-inline: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.65;
}

/* --- duotone plates (printed pages become neon) --------------------------- */
.duo { position: relative; isolation: isolate; overflow: hidden; }
.duo > img, .duo > video { filter: grayscale(1) contrast(1.28) brightness(0.98); }
.duo::before,
.duo::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.duo::before { background: #16205a; mix-blend-mode: lighten; }
.duo::after  { background: linear-gradient(145deg, #22e3ff 0%, #3dff9a 100%); mix-blend-mode: multiply; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 70;
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(10px, 2.4vw, 34px);
  background: rgba(5, 7, 20, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 0 rgba(120, 190, 255, 0.14), 0 18px 40px -34px #000;
}
.nav-name {
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: -0.01em; color: #fff; white-space: nowrap;
}
.nav-name::before {
  content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 9px;
  border-radius: 99px; background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(34, 227, 255, 0.85);
  vertical-align: 1px;
}
.nav-links { display: flex; flex: none; gap: clamp(12px, 1.8vw, 26px); margin-left: auto; }
.nav-links a {
  font-size: var(--step-small); font-weight: 500; color: var(--ink-2);
  padding-block: 6px; white-space: nowrap;
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
.nav-links a:hover { color: var(--cyan-soft); text-shadow: 0 0 14px rgba(34, 227, 255, 0.6); }
/* the pair is in the bar from the first frame, at every width above 760px */
.nav-buy { display: flex; align-items: center; flex: none; }
.nav-buy .buypair { gap: 8px; }
.nav-buy .buybtn { white-space: nowrap; }

/* The bar is 64px of fixed height, so nothing in it may wrap. Below about
   1200px the four section anchors give the room back to the buy pair, which
   is the only thing in the bar the page actually needs. */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-buy { margin-left: auto; }
}

/* ==========================================================================
   BUY BAR · the phone's answer to the pair in the nav. Fixed to the floor
   of the viewport below 760px, hidden above it, present from the first frame.
   ========================================================================== */
.buybar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  /* literal insets on all four sides, so the inset is legible without resolving
     a custom property or env(); the safe-area refinement rides on top */
  padding: 17px 20px 22px 20px;
  background: rgba(5, 7, 20, 0.92);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 -1px 0 0 rgba(120, 190, 255, 0.16), 0 -26px 54px -30px #000;
}
.buybar::before {
  content: '';
  position: absolute; inset-inline: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.8;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  row-gap: clamp(10px, 1.7vh, 20px);
  padding-block: clamp(16px, 2.4vh, 28px) clamp(10px, 1.5vh, 14px);
  overflow: hidden;
  isolation: isolate;
}

/* the receding grid and its horizon */
.hero-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 51%; z-index: -2;
  perspective: 440px; perspective-origin: 50% 0%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 72%, transparent 100%);
}
.hero-floor::before {
  content: '';
  position: absolute; left: -55%; right: -55%; top: 0; bottom: -75%;
  background-image:
    repeating-linear-gradient(to right,  rgba(104, 224, 255, 0.55) 0 1.5px, transparent 1.5px 84px),
    repeating-linear-gradient(to bottom, rgba(104, 224, 255, 0.40) 0 1.5px, transparent 1.5px 84px);
  transform: rotateX(70deg) translateY(0);
  transform-origin: 50% 0%;
  animation: floor-run 6.5s linear infinite;
}
@keyframes floor-run {
  from { transform: rotateX(70deg) translateY(0); }
  to   { transform: rotateX(70deg) translateY(84px); }
}
/* the lit horizon the grid runs toward */
.hero-horizon {
  position: absolute; left: 50%; top: 49%; z-index: -3;
  width: 150%; height: 2px; transform: translate(-50%, -50%);
  pointer-events: none;
  /* the page's two voices along one line, as the AI page runs cyan into
     magenta: cyan holds the left, phosphor takes the right-hand end */
  background: linear-gradient(90deg, transparent, rgba(34, 227, 255, 0.9) 20%, rgba(34, 227, 255, 0.9) 38%, rgba(61, 255, 154, 0.95) 62%, rgba(61, 255, 154, 0.9) 80%, transparent);
  /* the near glow is a band, not a box-shadow, so it can change colour along
     the line with it; only the far violet halo stays one colour */
  box-shadow: 0 0 160px 70px rgba(123, 92, 255, 0.16);
  animation: horizon-breathe 7s ease-in-out infinite alternate;
}
/* the phosphor end carries its own haze, so the second colour reads in the
   air over the right of the grid and not only in the 2px line */
.hero-horizon::before {
  content: '';
  position: absolute; inset-inline: 0; top: 50%; height: 104px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 4%, rgba(34, 227, 255, 0.26) 20%, rgba(34, 227, 255, 0.24) 38%, rgba(61, 255, 154, 0.26) 62%, rgba(61, 255, 154, 0.22) 82%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 50%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 50%, transparent);
}
.hero-horizon::after {
  content: '';
  position: absolute; left: 50%; right: 12%; bottom: 0; height: 220px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(61, 255, 154, 0.13), transparent);
}
@keyframes horizon-breathe {
  from { opacity: 0.8;  transform: translate(-50%, -50%) scaleY(1); }
  to   { opacity: 1;    transform: translate(-50%, -50%) scaleY(1.6); }
}

.hero-head { align-items: start; position: relative; z-index: 2; }
.hero-title {
  grid-column: 1 / 13;
  color: #fff;
  text-shadow:
    -0.02em 0 rgba(61, 255, 154, 0.55),
     0.02em 0 rgba(34, 227, 255, 0.55),
     0 0 0.6em rgba(34, 227, 255, 0.22);
  /* the settle lands first; the glitch takes the shadow over once it is down */
  animation:
    title-settle 0.72s var(--ease-out) both,
    title-pulse 2.8s steps(1, end) 1.2s infinite;
}
@keyframes title-settle {
  0%   { opacity: 0; filter: blur(9px); text-shadow: -0.2em 0 rgba(61, 255, 154,.9), 0.2em 0 rgba(34,227,255,.9); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); text-shadow: -0.02em 0 rgba(61, 255, 154,.55), 0.02em 0 rgba(34,227,255,.55), 0 0 0.6em rgba(34,227,255,.22); }
}
/* An instrument losing its registration for a quarter of a second. Four bursts
   in a 30s loop, 6.5 / 6.5 / 8.0 / 7.0 / 8.2 seconds apart, so it never beats
   like a metronome; each burst snaps between three or four states (220-400ms)
   and the ghosts split vertically as well as sideways. The white core never
   moves, so the measure, the line breaks and the box are untouched. */
/* The registration slips for a fifth of a second, then snaps back. Two rest
   states: the title keeps its standing fringe, a section heading has none, so
   on a heading the slip reads as the page misregistering for an instant. */
@keyframes title-pulse {
  0%, 89%      { text-shadow: -0.020em  0       rgba(61, 255, 154,.55),  0.020em  0       rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }
  90.5%        { text-shadow: -0.062em -0.012em rgba(61, 255, 154,.80),  0.056em  0.014em rgba(34,227,255,.80), 0 0 0.78em rgba(34,227,255,.30); }
  92%          { text-shadow:  0.034em  0.011em rgba(61, 255, 154,.62), -0.030em -0.013em rgba(34,227,255,.62), 0 0 0.62em rgba(34,227,255,.24); }
  93.5%        { text-shadow: -0.040em  0.013em rgba(61, 255, 154,.70),  0.044em -0.009em rgba(34,227,255,.70), 0 0 0.68em rgba(34,227,255,.26); }
  95%, 100%    { text-shadow: -0.020em  0       rgba(61, 255, 154,.55),  0.020em  0       rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }
}
@keyframes head-pulse {
  0%, 90%      { text-shadow: none; }
  91.4%        { text-shadow: -0.042em -0.008em rgba(61, 255, 154,.72),  0.038em  0.010em rgba(34,227,255,.72); }
  92.8%        { text-shadow:  0.026em  0.009em rgba(61, 255, 154,.55), -0.022em -0.010em rgba(34,227,255,.55); }
  94.2%        { text-shadow: -0.030em  0.010em rgba(61, 255, 154,.62),  0.032em -0.007em rgba(34,227,255,.62); }
  95.6%, 100%  { text-shadow: none; }
}

@keyframes title-glitch {
  0%, 21.667%  { text-shadow: -0.020em  0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }
  21.933%      { text-shadow: -0.065em -0.013em rgba(61, 255, 154,.80),  0.058em  0.015em rgba(34,227,255,.80), 0 0 0.78em rgba(34,227,255,.30); }
  22.200%      { text-shadow:  0.036em  0.012em rgba(61, 255, 154,.62), -0.032em -0.014em rgba(34,227,255,.62), 0 0 0.62em rgba(34,227,255,.24); }
  22.467%      { text-shadow: -0.042em  0.014em rgba(61, 255, 154,.70),  0.046em -0.010em rgba(34,227,255,.70), 0 0 0.68em rgba(34,227,255,.26); }
  22.733%      { text-shadow: -0.020em  0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }

  43.333%      { text-shadow: -0.020em  0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }
  43.667%      { text-shadow: -0.065em -0.013em rgba(61, 255, 154,.80),  0.058em  0.015em rgba(34,227,255,.80), 0 0 0.78em rgba(34,227,255,.30); }
  44.000%      { text-shadow:  0.036em  0.012em rgba(61, 255, 154,.62), -0.032em -0.014em rgba(34,227,255,.62), 0 0 0.62em rgba(34,227,255,.24); }
  44.333%      { text-shadow: -0.052em  0.011em rgba(61, 255, 154,.74),  0.050em -0.013em rgba(34,227,255,.74), 0 0 0.72em rgba(34,227,255,.28); }
  44.667%      { text-shadow:  0.028em -0.012em rgba(61, 255, 154,.60), -0.024em  0.013em rgba(34,227,255,.60), 0 0 0.60em rgba(34,227,255,.24); }
  45.000%      { text-shadow: -0.020em  0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }

  70.000%      { text-shadow: -0.020em  0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }
  70.290%      { text-shadow:  0.036em  0.012em rgba(61, 255, 154,.62), -0.032em -0.014em rgba(34,227,255,.62), 0 0 0.62em rgba(34,227,255,.24); }
  70.580%      { text-shadow: -0.065em -0.013em rgba(61, 255, 154,.80),  0.058em  0.015em rgba(34,227,255,.80), 0 0 0.78em rgba(34,227,255,.30); }
  70.870%      { text-shadow: -0.042em  0.014em rgba(61, 255, 154,.70),  0.046em -0.010em rgba(34,227,255,.70), 0 0 0.68em rgba(34,227,255,.26); }
  71.160%      { text-shadow: -0.020em  0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }

  93.333%      { text-shadow: -0.020em  0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }
  93.600%      { text-shadow: -0.065em -0.013em rgba(61, 255, 154,.80),  0.058em  0.015em rgba(34,227,255,.80), 0 0 0.78em rgba(34,227,255,.30); }
  93.867%      { text-shadow: -0.042em  0.014em rgba(61, 255, 154,.70),  0.046em -0.010em rgba(34,227,255,.70), 0 0 0.68em rgba(34,227,255,.26); }
  94.133%      { text-shadow:  0.036em  0.012em rgba(61, 255, 154,.62), -0.032em -0.014em rgba(34,227,255,.62), 0 0 0.62em rgba(34,227,255,.24); }
  94.400%      { text-shadow: -0.052em  0.011em rgba(61, 255, 154,.74),  0.050em -0.013em rgba(34,227,255,.74), 0 0 0.72em rgba(34,227,255,.28); }
  94.667%, 100% { text-shadow: -0.020em 0      rgba(61, 255, 154,.55),  0.020em  0      rgba(34,227,255,.55), 0 0 0.60em rgba(34,227,255,.22); }
}
.hero-sub {
  grid-column: 1 / 8;
  margin-top: clamp(14px, 1.8vw, 24px);
  color: var(--ink-2);
  max-width: 66ch;
}
.hero-cta { grid-column: 1 / 7; margin-top: clamp(20px, 2.4vw, 32px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta-note { font-size: var(--step-small); color: var(--ink-3); max-width: 38ch; }

/* ==========================================================================
   INTRO STATEMENT
   ========================================================================== */
.intro { padding-block: clamp(4rem, 12vh, 11rem); }
.intro h2 { grid-column: 1 / 5; color: #fff; }
.intro h2::after {
  content: ''; display: block; width: 72px; height: 2px; margin-top: 22px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(34, 227, 255, 0.8);
}
.intro-statement {
  grid-column: 5 / 13;
  max-width: 46ch;
  font-family: var(--display);
  font-size: var(--step-say);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: #f4f7ff;
}

/* ==========================================================================
   THE RESONANCE PLATE
   ========================================================================== */
.plate { padding-block: clamp(5rem, 10vh, 9rem); }
.plate-head { grid-column: 1 / 6; }
/* on a wide screen the tuner runs far longer than the words beside it, so the
   words ride along under the bar while it scrolls past, as the FAQ heading
   does. Only where the column is short enough to fit under the bar whole. */
@media (min-width: 1101px) and (min-height: 760px) {
  .plate-head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
}
.plate-head h2 { color: #fff; }
.plate-head p { margin-top: 1.15em; color: var(--ink-2); }
.plate-formula {
  margin-top: 1.5em;
  font-family: var(--display);
  font-size: var(--step-lead);
  font-weight: 500;
  color: var(--cyan-soft);
  text-shadow: 0 0 22px rgba(34, 227, 255, 0.5);
}
.plate-body {
  grid-column: 7 / 13;
  padding: clamp(18px, 2vw, 30px);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(24, 34, 78, 0.62), rgba(8, 12, 34, 0.72));
  box-shadow: 0 0 0 1px var(--edge), var(--shadow-2), inset 0 1px 0 rgba(170, 220, 255, 0.08);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.plate-body::before {
  content: '';
  position: absolute; inset-inline: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.plate-formula .formula { display: inline-flex; align-items: center; gap: 0.35em; }
.frac { display: inline-grid; text-align: center; line-height: 1.15; font-size: 0.86em; }
.frac > :first-child { padding: 0 0.3em 0.08em; border-bottom: 1.5px solid currentColor; }
.frac > :last-child { padding-top: 0.12em; }
.rad { padding-inline: 0.08em 0.05em; border-top: 1.5px solid currentColor; }
.plate-note { margin-top: 1em; font-size: var(--step-small); max-width: 48ch; text-wrap: pretty; }

/* the two knobs: an instrument readout above a lit slider. Only the thumb
   is a control, so only the thumb is lit; the readout is smoked glass with
   a hairline edge and cyan numerals, like the scope it sits beside. */
.knobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.knob { display: grid; gap: 10px; }
.knob-name { font-size: var(--step-small); font-weight: 500; color: var(--ink-2); }
.knob-face {
  display: flex; align-items: baseline; justify-content: center; gap: 0.3em;
  padding: clamp(14px, 1.6vw, 20px) 10px;
  border-radius: var(--r-sm);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(10, 16, 36, 0.78), rgba(6, 9, 22, 0.86));
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(126, 240, 255, 0.08);
  text-shadow: 0 0 18px rgba(34, 227, 255, 0.35);
}
.knob-u { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--cyan-soft); }
.knob-meta { font-size: var(--step-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* the slider: a hairline track, a lit pill for a thumb */
.knob-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 30px; margin: 0;
  background: transparent; cursor: pointer;
}
.knob-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px;
  background: rgba(130, 180, 255, 0.16);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.knob-range::-moz-range-track {
  height: 4px; border-radius: 99px;
  background: rgba(130, 180, 255, 0.16);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.knob-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 18px; margin-top: -7px;
  border: 0; border-radius: 99px;
  background: linear-gradient(177deg, #a6ffd0 0%, #4dffa6 48%, #1fe58a 100%);
  box-shadow: 0 6px 16px -6px rgba(61, 255, 154, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(140, 255, 196, 0.6);
  transition: transform 0.2s var(--ease);
}
.knob-range::-moz-range-thumb {
  width: 30px; height: 18px;
  border: 0; border-radius: 99px;
  background: linear-gradient(177deg, #a6ffd0 0%, #4dffa6 48%, #1fe58a 100%);
  box-shadow: 0 6px 16px -6px rgba(61, 255, 154, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(140, 255, 196, 0.6);
}
.knob-range:hover::-webkit-slider-thumb,
.knob-range:active::-webkit-slider-thumb { transform: scaleX(1.12); }
.knob-range:focus-visible { outline: none; }
.knob-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px var(--cyan); }
.knob-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px var(--cyan); }
/* with scripting off nothing would answer the slider: the preset stands still */
html:not(.js) .knob-range { display: none; }

/* the scope: phosphor trace over the band table, on a log axis */
.scope { margin-top: clamp(22px, 3vw, 32px); }
.scope-svg {
  width: 100%; height: auto; overflow: visible;
  font-family: var(--text);
  font-variant-numeric: tabular-nums;
}
.scope-svg .tg { stroke: rgba(130, 190, 255, 0.16); stroke-width: 1; }
.scope-svg .tm { stroke: rgba(130, 190, 255, 0.3); stroke-width: 1; }
.scope-svg .tt { fill: var(--ink-3); font-size: 11px; }
.scope-svg .tb { fill: rgba(34, 227, 255, 0.13); transition: fill 0.25s var(--ease); }
.scope-svg .tb.is-on { fill: rgba(61, 255, 154, 0.3); }
.scope-svg .tl { fill: var(--cyan-soft); font-size: 11px; font-weight: 600; }
.scope-svg .tl.is-on { fill: var(--phosphor); }
.scope-svg .t3 { stroke: rgba(127, 242, 255, 0.55); stroke-width: 1; stroke-dasharray: 4 4; }
.scope-svg .t0 { stroke: rgba(127, 242, 255, 0.5); stroke-width: 1; stroke-dasharray: 2 3; }
.scope-svg .ta { fill: rgba(61, 255, 154, 0.1); }
.scope-svg .tc {
  fill: none; stroke: var(--phosphor); stroke-width: 2; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(61, 255, 154, 0.7));
}
.scope-svg .tf { fill: var(--phosphor); font-size: 12px; font-weight: 600; }
.scope figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-3); }

/* the readout: six numbers, tabular, the band lit in phosphor */
.readout {
  margin-top: clamp(22px, 3vw, 30px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px;
  font-variant-numeric: tabular-nums;
}
.readout > div {
  padding: 10px 2px 4px;
  border-top: 1px solid rgba(130, 200, 255, 0.16);
}
.readout dt { font-size: var(--step-small); color: var(--ink-3); white-space: nowrap; }
.readout dd { margin-top: 2px; font-family: var(--display); font-size: var(--step-lead); font-weight: 600; color: #eaf6ff; white-space: nowrap; }
.readout dd .u { font-size: var(--step-small); font-weight: 500; color: var(--ink-2); }
.readout dd[data-r="band"] { color: var(--phosphor); }
.readout dd[data-r="band"].is-off { color: var(--ink-2); }
.tune-src { margin-top: 10px; font-size: var(--step-small); color: var(--ink-3); }
.tune-reset { margin-top: 1.1em; }
.tune-reset[hidden] { display: none; }

.plate-out { margin-top: 1.35em; color: var(--ink-2); }
.plate-out b { color: var(--cyan-soft); font-weight: 600; }

/* ==========================================================================
   INSTRUMENTS · two more things the book takes apart. Deliberately not a
   second console: no box, two open bays, each one announced by the lit
   edge alone. One holds a stack, the other holds code.
   ========================================================================== */
.instruments { padding-block: 0 var(--section-gap); }
.instruments-head h2 { grid-column: 1 / 6; color: #fff; }
.instruments-head .lead { grid-column: 7 / 13; align-self: end; color: var(--ink-2); }

.instr-grid {
  margin-top: clamp(40px, 5.5vw, 84px);
  display: grid;
  /* minmax(0, …), or the code block's longest line would widen the track */
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(32px, 5vw, 86px);
}
.instr {
  position: relative;
  min-width: 0;
  display: flex; flex-direction: column;
  padding-top: clamp(20px, 2.2vw, 30px);
}
.instr::before {
  content: '';
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 4%, rgba(34, 227, 255, 0.12) 74%, transparent);
  opacity: 0.8;
}
.instr h3 { color: #fff; max-width: 22ch; }
.instr > p { margin-top: 0.85em; color: var(--ink-2); max-width: 52ch; }
.rx + p, .instr-code + p { margin-top: clamp(22px, 2.4vw, 30px); }

/* the receiver drawn as a block diagram, in the hero plate's own medium: one
   stroke group used three times (phosphor ghost, cyan ghost, core) inside a
   recessed frame. The chain reads left to right in a wide bay and top to
   bottom in a narrow one; the bay's width decides, not the viewport's. The
   real ordered list stays in the markup for screen readers. */
.rx {
  --rx-line: rgba(196, 238, 255, 0.78);
  position: relative;
  margin-top: clamp(24px, 2.6vw, 34px);
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(16, 23, 56, 0.78), rgba(8, 12, 34, 0.9));
  box-shadow: inset 0 0 0 1px var(--edge);
  container-type: inline-size;
  container-name: rx;
}
.rx::before {
  content: '';
  position: absolute; inset-inline: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.65;
}
.rx-art {
  width: 100%; height: auto;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rx-v { display: none; max-width: 380px; margin-inline: auto; }
@container rx (max-width: 500px) {
  .rx-h { display: none; }
  .rx-v { display: block; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 760px) {
    .rx-h { display: none; }
    .rx-v { display: block; }
  }
}
.rx-art .rx-line  { color: var(--rx-line); }
.rx-art .rx-ghost { opacity: 0.55; }
.rx-art .rx-ghost--p { color: var(--phosphor); transform: translateX(1.2px); }
.rx-art .rx-ghost--c { color: var(--cyan);     transform: translateX(-1.2px); }
.rx-art .rx-trace {
  stroke: var(--phosphor);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 3px rgba(61, 255, 154, 0.55));
}
/* user units are CSS px at the wide drawing's 560 design width. It only
   shows above a 500px bay (scale 0.89 or more), so the smallest label, 12.5,
   never renders under 11px; the tall drawing below that is capped at 380px */
.rx-art text {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  fill: var(--ink);
  stroke: none;
  font-variant-numeric: tabular-nums;
}
.rx-art .rx-tag   { font-size: 13px; letter-spacing: 0.1em; fill: var(--cyan-soft); }
.rx-art .rx-note  { font-size: 12.5px; letter-spacing: 0.04em; fill: var(--ink-3); }
.rx-art .rx-qty   { font-size: 13px; }
.rx-art .rx-small { font-size: 12.5px; }
.rx-art .rx-sub   { font-size: 0.78em; }
.rx-art .rx-hot   { fill: var(--phosphor); }

/* the one place on the page where a monospace face is the right answer */
.instr-code {
  position: relative;
  min-width: 0;
  margin-top: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
  padding: clamp(16px, 1.7vw, 24px);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(16, 23, 56, 0.78), rgba(8, 12, 34, 0.9));
  box-shadow: inset 0 0 0 1px var(--edge);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
               'Cascadia Mono', 'Roboto Mono', 'DejaVu Sans Mono', monospace;
  font-size: clamp(0.8125rem, 0.76rem + 0.12vw, 0.875rem);
  font-variant-numeric: tabular-nums;
  font-variant-ligatures: none;
  line-height: 1.75;
  color: #d8e2ff;
  tab-size: 2;
  -moz-tab-size: 2;
}
/* the lit edge sits on the frame; the scroll lives on the code inside it, so
   the hairline stays put while a long line travels under it */
.instr-code::before {
  content: '';
  position: absolute; inset-inline: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.65;
}
.instr-code code {
  display: block; overflow-x: auto;
  white-space: pre; font: inherit;
  scrollbar-width: thin;
}
.instr-code code::-webkit-scrollbar { height: 8px; }
.instr-code code::-webkit-scrollbar-track { background: transparent; }
.instr-code code::-webkit-scrollbar-thumb { background: #22336e; border-radius: 99px; }
.instr-code code::-webkit-scrollbar-thumb:hover { background: #2f468f; }

/* the printed page the bay is talking about: the book's own figure, in the
   same duotone frame the method steps use, sitting under the words that
   explain it and over the page reference that cites it */
.instr-page {
  position: relative;
  margin-top: clamp(24px, 2.6vw, 34px);
  height: clamp(340px, 34vw, 520px);
  display: grid; place-items: center;
  padding: clamp(14px, 1.6vw, 24px);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(24, 34, 78, 0.55), rgba(8, 12, 34, 0.8));
  box-shadow: 0 0 0 1px var(--edge), var(--shadow-1);
}
.instr-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 110%, rgba(61, 255, 154, 0.18), transparent 70%);
}
.instr-page > .duo {
  height: 100%;
  border-radius: 6px;
  box-shadow: 0 26px 50px -26px #000;
}
.instr-page > .duo > img { height: 100%; width: auto; }

/* two classes, so it outranks `.instr > p` above and stays the quiet tier.
   It is a caption, so it sits right under the thing it cites, not parked on
   the floor of the bay: at eight lines' distance the page reference stopped
   reading as the source of the listing above it. */
.instr .instr-src {
  margin-top: 10px;
  font-size: var(--step-small);
  color: var(--ink-3);
}
.instr-code + .instr-src,
.instr-page + .instr-src,
.rx + .instr-src { margin-top: 12px; }
.instr-code + .instr-src::before,
.instr-page + .instr-src::before {
  content: '';
  display: inline-block;
  width: 14px; height: 1px;
  margin-right: 9px;
  vertical-align: 4px;
  background: var(--cyan);
  opacity: 0.7;
}

/* ==========================================================================
   EDITIONS
   ========================================================================== */
/* One panel, the width of the page: the book stands on the floor of its own
   console and the edition speaks from beside it. */
.editions { padding-block: 0 var(--section-gap); --edition-pad: clamp(26px, 3.2vw, 52px); }
.editions > h2 { max-width: 17ch; color: #fff; }
.edition {
  position: relative;
  margin-top: clamp(30px, 4vw, 60px);
  min-height: clamp(360px, 44vw, 560px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(30px, 5vw, 80px);
  align-items: end;
  padding: var(--edition-pad);
  border-radius: calc(var(--r) + 6px);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 34, 78, 0.5), rgba(8, 12, 34, 0.78));
  box-shadow: 0 0 0 1px var(--edge), var(--shadow-2);
}
.edition::before {
  content: '';
  position: absolute; inset-inline: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.65;
}
.edition::after {
  content: '';
  position: absolute; left: 20%; bottom: -30%; width: 66%; height: 72%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(34, 227, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.edition-art {
  grid-column: 1; grid-row: 1;
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  margin-bottom: calc(var(--edition-pad) * -1);
}
.edition-art img {
  width: clamp(200px, 29vw, 420px); height: auto;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 50px 90px -40px #000, 0 0 70px -24px rgba(226, 47, 102, 0.55);
  transition: transform 0.5s var(--ease);
}
.edition:hover .edition-art img { transform: translateY(-8px); }
.edition-foot {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 2;
  display: grid; justify-items: start;
  gap: clamp(18px, 2.2vw, 30px);
  padding-bottom: clamp(8px, 2.5vw, 34px);
}
/* beside the cover the title is the statement, not a card heading */
.edition-name {
  color: #fff;
  font-size: var(--step-say);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.edition-subtitle {
  margin-top: 8px;
  font-family: var(--display);
  font-size: var(--step-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cyan-soft);
}
.edition-fact { font-size: var(--step-body); color: var(--ink-2); max-width: 42ch; margin-top: 14px; }
.edition-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.edition-other {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 64ch;
  color: var(--ink-2);
}
.edition-other a {
  color: var(--cyan);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
.edition-other a:hover { color: var(--cyan-soft); text-shadow: 0 0 16px rgba(34, 227, 255, 0.8); }

/* ==========================================================================
   METHOD
   ========================================================================== */
.method { padding-block: 0 var(--section-gap); }
.method-top { align-items: end; }
.method h2 { grid-column: 1 / 7; color: #fff; }
.method-lead { grid-column: 7 / 13; align-self: end; color: var(--ink-2); }
.steps {
  margin-top: clamp(34px, 5vw, 66px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px;
  align-items: end;
}
.step:nth-child(1) { grid-column: span 3; --h: 32vh; }
.step:nth-child(2) { grid-column: span 4; --h: 44vh; }
.step:nth-child(3) { grid-column: span 5; --h: 60vh; }
.step-tile {
  position: relative;
  height: var(--h); min-height: 200px;
  display: grid; place-items: center;
  padding: clamp(12px, 1.5vw, 26px);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(24, 34, 78, 0.55), rgba(8, 12, 34, 0.8));
  box-shadow: 0 0 0 1px var(--edge), var(--shadow-1);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.step-tile > .duo {
  height: 86%;
  border-radius: 6px;
  box-shadow: 0 26px 50px -26px #000;
}
.step-tile > .duo > img { height: 100%; width: auto; object-fit: contain; }
.step-tile::before,
.step-tile::after { content: ''; position: absolute; pointer-events: none; }
.step-tile::before { inset: 0; background: radial-gradient(70% 60% at 50% 110%, rgba(34, 227, 255, 0.22), transparent 70%); }
.step:nth-child(2) .step-tile::before { background: radial-gradient(70% 60% at 50% 110%, rgba(123, 92, 255, 0.26), transparent 70%); }
.step:nth-child(3) .step-tile::before { background: radial-gradient(70% 60% at 50% 110%, rgba(61, 255, 154, 0.22), transparent 70%); }
.step-tile::after {
  inset-inline: 18%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}
.step:hover .step-tile { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--edge-hi), 0 40px 70px -34px rgba(0, 0, 0, 1); }
.step h3 { margin-top: 22px; color: #fff; }
.step h3::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px;
  border-radius: 99px; background: var(--cyan); box-shadow: 0 0 12px 2px rgba(34, 227, 255, 0.8);
  vertical-align: 2px;
}
.step:nth-child(2) h3::before { background: var(--violet); box-shadow: 0 0 12px 2px rgba(123, 92, 255, 0.8); }
.step:nth-child(3) h3::before { background: var(--phosphor); box-shadow: 0 0 12px 2px rgba(61, 255, 154, 0.8); }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }

/* ==========================================================================
   CONTENTS
   ========================================================================== */
.contents {
  position: relative;
  padding-block: clamp(5rem, 9vh, 8rem);
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(123, 92, 255, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(8, 12, 34, 0) 0%, rgba(8, 12, 34, 0.75) 18%, rgba(8, 12, 34, 0.75) 82%, rgba(8, 12, 34, 0) 100%);
}
.contents-h {
  display: flex; justify-content: center; gap: 0.3em;
  text-align: center; color: #fff;
  margin-bottom: clamp(34px, 5vh, 62px);
}
.part-row {
  display: inline-block;
  margin-top: clamp(28px, 3vw, 46px);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-size: var(--step-body);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #02121b;
  background: linear-gradient(177deg, #6cf4ff, #16a9dd);
  box-shadow: 0 12px 28px -12px rgba(34, 227, 255, 0.7);
}
.part-row:first-child { margin-top: 0; }
/* With the travelling cover gone the row owns the full width: the chapter on
   the left, its gloss in its own column, the page number right-aligned. Each
   text column carries its own ch cap so neither runs long. */
.ch-row {
  display: grid;
  /* fixed page column: with auto, "p. 2" and "p. 204" pushed each gloss to a
     different x and the middle column read ragged */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 3.6em;
  gap: 4px clamp(22px, 3.2vw, 56px);
  align-items: baseline;
  padding: 18px clamp(14px, 1.5vw, 22px);
  border-radius: var(--r-sm);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ch-row > div { display: contents; }
.ch-row:hover { background: rgba(120, 180, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge); }
.ch-name {
  grid-column: 1;
  max-width: 32ch;
  font-family: var(--display); font-size: var(--step-lead); font-weight: 600; color: #fff;
}
.ch-note { grid-column: 2; max-width: 54ch; color: var(--ink-2); font-size: var(--step-body); }
.ch-page {
  grid-column: 3; text-align: right;
  font-family: var(--display); font-size: var(--step-small); font-variant-numeric: tabular-nums;
  color: var(--cyan); opacity: 0.85;
}
.contents-foot { margin-top: clamp(44px, 6vh, 84px); display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
.contents-foot .lead { color: var(--ink-2); }

/* ==========================================================================
   AUTHOR · a small portrait and two sentences. At 120px a duotone turns a
   face into a smear, so this one is a straight desaturated plate with a
   lit edge instead.
   ========================================================================== */
.author { padding-block: var(--section-gap); }
.author h2 { max-width: 14ch; color: #fff; }
.author-row {
  margin-top: clamp(28px, 3.4vw, 48px);
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 2.8vw, 40px);
  align-items: start;
}
.author-face {
  width: clamp(92px, 9vw, 120px); height: auto;
  border-radius: var(--r-sm);
  filter: grayscale(1) contrast(1.05) brightness(1.08);
  box-shadow: 0 0 0 1px var(--edge-hi), var(--shadow-1);
}
.author-bio { max-width: 62ch; color: var(--ink-2); }
.author-bio p + p { margin-top: 0.9em; }
.author-follow { margin-top: 14px; color: var(--ink-2); }
.author-follow a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-shadow 0.2s var(--ease);
}
.author-follow a:hover { text-shadow: 0 0 16px rgba(34, 227, 255, 0.8); }
.author-link a {
  color: var(--cyan);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
.author-link a:hover { color: var(--cyan-soft); text-shadow: 0 0 16px rgba(34, 227, 255, 0.8); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-block: var(--section-gap); }
.faq h2 { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; color: #fff; }
.faq-list { grid-column: 5 / 13; display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--r-sm);
  background: rgba(120, 170, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--edge);
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 72px; padding: 18px 24px;
  font-family: var(--display); font-size: var(--step-lead); font-weight: 500;
  color: #fff; list-style: none; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover { background: rgba(130, 190, 255, 0.09); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.faq-sign { position: relative; flex: none; width: 18px; height: 18px; color: var(--cyan); }
.faq-sign::before, .faq-sign::after {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  box-shadow: 0 0 10px currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] { background: rgba(34, 227, 255, 0.08); box-shadow: inset 0 0 0 1px var(--edge-hi), 0 20px 50px -30px rgba(34, 227, 255, 0.5); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); opacity: 0; }
.faq-answer { padding: 0 24px 24px; font-size: var(--step-body); color: var(--ink-2); max-width: 62ch; }
.faq-answer a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.faq-answer a:hover { text-shadow: 0 0 16px rgba(34, 227, 255, 0.8); }

/* ==========================================================================
   CLOSE
   ========================================================================== */
.close-band {
  position: relative; overflow: hidden;
  margin: clamp(14px, 1.6vw, 22px) var(--pad) 0;
  padding-block: clamp(48px, 7vh, 88px);
  border-radius: calc(var(--r) + 6px);
  /* the page's two voices, cyan into phosphor, kept low so the words lead */
  background: linear-gradient(145deg, rgba(34, 227, 255, 0.2), rgba(8, 12, 34, 0.86) 48%, rgba(61, 255, 154, 0.17));
  box-shadow: 0 0 0 1px var(--edge-hi), var(--shadow-2);
}
.close-band .grid { position: relative; z-index: 1; }
.close-band h2 { grid-column: 1 / 9; color: #fff; }
.close-say {
  grid-column: 1 / 9; margin-top: 24px; max-width: 34ch;
  font-family: var(--display); font-size: var(--step-say); font-weight: 500;
  line-height: 1.24; letter-spacing: -0.015em; color: #fff;
}
.close-say a {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
  text-shadow: 0 0 28px rgba(34, 227, 255, 0.7);
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
.close-say a:hover { color: #fff; text-shadow: 0 0 36px rgba(34, 227, 255, 1); }
.close-note { grid-column: 1 / 9; margin-top: 26px; color: var(--ink-2); font-size: var(--step-body); }
.close-note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; }
.close-face { grid-column: 10 / 13; align-self: end; justify-self: end; width: 156px; }
.close-face img {
  width: 100%; height: auto; border-radius: var(--r-sm);
  filter: grayscale(1) contrast(1.1);
  box-shadow: 0 0 0 1px var(--edge-hi), 0 24px 50px -24px #000;
}
.close-face span { display: block; margin-top: 10px; font-size: var(--step-small); color: var(--ink-2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { padding: clamp(14px, 1.6vw, 22px) var(--pad) 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.foot-tile {
  padding: 24px;
  border-radius: var(--r);
  background: rgba(120, 170, 255, 0.045);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.foot-say { grid-column: 1 / 5; min-height: 220px; display: grid; align-content: space-between; }
.foot-say p { font-family: var(--display); font-size: var(--step-lead); font-weight: 500; color: #fff; }
.foot-say small { font-size: var(--step-small); color: var(--ink-3); }
.foot-nav { grid-column: 5 / 8; min-height: 220px; }
.foot-nav li + li { margin-top: 9px; }
.foot-nav a { font-size: var(--step-body); color: var(--ink-2); transition: color 0.2s var(--ease); }
.foot-nav a:hover { color: var(--cyan-soft); }
.foot-where { grid-column: 8 / 10; min-height: 220px; display: grid; align-content: space-between; }
.foot-where p:first-child { font-family: var(--display); font-size: var(--step-lead); font-weight: 600; color: #fff; }
.foot-where .small { color: var(--ink-3); }
.foot-where span { color: var(--cyan); font-variant-numeric: tabular-nums; }
.foot-mail { grid-column: 10 / 13; min-height: 220px; display: grid; align-content: end; }
.foot-mail a { font-family: var(--display); font-size: var(--step-body); font-weight: 500; color: #fff; overflow-wrap: anywhere; line-height: 1.35; }
.foot-mail a:hover { color: var(--cyan-soft); text-shadow: 0 0 20px rgba(34, 227, 255, 0.7); }
.foot-name {
  grid-column: 1 / 9; min-height: 300px;
  display: grid; place-items: center;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(34, 227, 255, 0.22), transparent 70%),
    rgba(120, 170, 255, 0.045);
}
.foot-name span {
  font-family: var(--display); font-size: var(--step-display);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.9;
  text-align: center; color: #fff;
  text-shadow: 0 0 60px rgba(34, 227, 255, 0.4);
}
.foot-buy {
  grid-column: 9 / 13; min-height: 300px;
  display: grid; grid-template-rows: auto 1fr; gap: 18px;
  color: #02121b;
  background: linear-gradient(170deg, #6cf4ff 0%, #22d3ff 48%, #0f93d8 100%);
  box-shadow: 0 24px 60px -24px rgba(34, 227, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.foot-buy h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); color: #02121b; }
.foot-buy svg { align-self: end; justify-self: end; width: 58px; height: 58px; }
.foot-buy:hover { transform: translateY(-3px); box-shadow: 0 34px 70px -24px rgba(34, 227, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
/* La stessa riga di collegamenti che chiude il sito, nella lingua visiva di
   questa pagina: email, LinkedIn, GitHub, privacy, preferenze cookie. */
.foot-social {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: 18px; padding: 16px 24px 0;
  border-top: 1px solid rgba(120, 190, 255, 0.16);
}
.foot-social a {
  font-family: var(--display); font-size: var(--step-small); font-weight: 500;
  letter-spacing: 0.02em; color: var(--ink-2);
  transition: color 0.2s var(--ease), text-shadow 0.2s var(--ease);
}
.foot-social a:hover,
.foot-social a:focus-visible { color: var(--cyan); text-shadow: 0 0 18px rgba(34, 227, 255, 0.45); }

.foot-credit { margin-top: 14px; padding: 4px 24px; font-size: var(--step-small); color: var(--ink-3); }
.foot-credit a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   MOTION
   ========================================================================== */
.js .reveal > * { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.js .reveal.in > * {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal-self { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.js .reveal-self.in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-sub { grid-column: 1 / 9; }
  .intro h2 { grid-column: 1 / 13; }
  .intro-statement { grid-column: 1 / 13; margin-top: 30px; max-width: none; }
  .plate-head, .plate-body { grid-column: 1 / 13; }
  .plate-body { margin-top: 36px; }
  .instruments-head h2, .instruments-head .lead { grid-column: 1 / 13; }
  .instruments-head .lead { margin-top: 18px; }
  .instr-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(44px, 7vw, 72px); }
  .instr h3, .instr > p { max-width: 60ch; }
  .method h2, .method-lead { grid-column: 1 / 13; }
  .method-lead { margin-top: 18px; }
  /* the gloss drops under its chapter; the page number keeps the right edge */
  .ch-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ch-name { grid-column: 1; max-width: none; }
  .ch-note { grid-column: 1; max-width: 58ch; margin-top: 5px; }
  .ch-page { grid-column: 2; grid-row: 1; }
  .faq h2 { grid-column: 1 / 13; position: static; }
  .faq-list { grid-column: 1 / 13; margin-top: 30px; }
  .close-band h2, .close-say, .close-note { grid-column: 1 / 11; }
  .foot-say, .foot-where { grid-column: 1 / 7; }
  .foot-nav, .foot-mail { grid-column: 7 / 13; }
  .foot-name { grid-column: 1 / 13; min-height: 230px; }
  .foot-buy { grid-column: 1 / 13; min-height: 210px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 58px; --gutter: 14px; --buybar-h: 80px; }
  .nav-buy { display: none; }

  /* the fixed bar takes over, and the page makes room for it so the last
     line of the footer is never behind it */
  body { padding-bottom: calc(var(--buybar-h) + env(safe-area-inset-bottom)); }
  .buybar { display: block; transition: transform 0.3s var(--ease); }
  /* on a phone the bar would cover the hero's own caption at rest, so with
     scripting on it rides in on the first scroll and stays for the rest of the page */
  .js body:not(.is-scrolled) .buybar { transform: translateY(115%); }
  .buybar .buypair {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    /* lifts the pills off the home indicator without hiding the band's own inset */
    margin-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* the only place a label may break: it wraps, it is never cut */
  .buybar .buybtn { padding-inline: 0.8em; white-space: normal; }

  .hero { min-height: auto; padding-bottom: 40px; }
  /* with scripting off the bar can never ride away on scroll, so it stops floating
     and simply closes the page: nothing it could cover, nothing hidden behind it */
  /* nothing scrolls under it any more, so the glass has no effect to be:
     solid ground, no blur, no upward cast */
  html:not(.js) .buybar {
    position: static;
    padding-block: 18px 24px;
    background: var(--deep);
    backdrop-filter: none;
    box-shadow: 0 -1px 0 0 rgba(120, 190, 255, 0.16);
  }
  html:not(.js) body { padding-bottom: 0; }
  .hero-title { font-size: clamp(2.25rem, 8.6vw, 3rem); }
  .hero-sub { grid-column: 1 / 13; }
  .hero-cta { grid-column: 1 / 13; justify-self: stretch; text-align: left; margin-top: 24px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-floor { inset: 46% 0 0 0; }

  .intro-statement { max-width: none; }
  .knobs { gap: 8px; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }


  /* the cover keeps standing on the floor of the console; the words move above it */
  .edition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    row-gap: clamp(26px, 6vw, 40px);
    min-height: 0;
  }
  .edition-foot { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .edition-art { grid-column: 1; grid-row: 2; }
  .edition-art img { width: min(62vw, 320px); }
  .edition::after { left: 50%; bottom: -34%; width: 100%; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step:nth-child(1), .step:nth-child(2), .step:nth-child(3) { grid-column: 1 / -1; }
  .step:nth-child(1) { --h: 46vw; }
  .step:nth-child(2) { --h: 58vw; }
  .step:nth-child(3) { --h: 72vw; }
  .step + .step { margin-top: 34px; }

  .contents-h { margin-bottom: 30px; }
  .ch-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .ch-page { grid-column: 1; grid-row: 1; text-align: left; }
  .ch-name { grid-column: 1; grid-row: 2; max-width: none; }
  .ch-note { grid-column: 1; grid-row: 3; max-width: none; margin-top: 2px; }

  .author-row { grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 5vw, 26px); }

  .faq-item summary { font-size: 1.125rem; min-height: 64px; padding: 16px 20px; }
  .faq-answer { padding: 0 20px 20px; }

  .close-band h2, .close-say, .close-note { grid-column: 1 / 13; }
  .close-face { grid-column: 9 / 13; width: 104px; }

  .foot-say, .foot-nav, .foot-where, .foot-mail { grid-column: 1 / 13; min-height: 0; }
  .foot-say { order: 4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal > *, .js .reveal-self { opacity: 1; transform: none; filter: none; }
  /* both the settle and the chromatic pulse: the title just sits there */
  .hero-title { animation: none; }
}


/* ==========================================================================
   FOOTER COMPATTO (28 nov 2026)
   Via le due tessere grandi (nome e "Acquista il libro"): il footer resta
   di quattro tessere su due righe, con le sezioni della pagina su due
   colonne. Il blocco sta in fondo al file e ripete le regole responsive,
   perche' altrimenti queste regole base vincerebbero su quelle dei media.
   ========================================================================== */
.foot-say  { grid-column: 1 / 5;  grid-row: 1 / 3; min-height: 0; }
.foot-nav  { grid-column: 5 / 10; grid-row: 1 / 3; min-height: 0; }
.foot-nav ul { columns: 2; column-gap: 28px; }
.foot-nav li { break-inside: avoid; }
.foot-nav li + li { margin-top: 0; }
.foot-nav li { padding-bottom: 9px; }
.foot-where { grid-column: 10 / 13; grid-row: 1; min-height: 0; gap: 10px; }
.foot-mail  { grid-column: 10 / 13; grid-row: 2; min-height: 0; gap: 6px; align-content: start; }

@media (max-width: 1100px) {
  .foot-say  { grid-column: 1 / 7;  grid-row: 1; }
  .foot-nav  { grid-column: 7 / 13; grid-row: 1 / 3; }
  .foot-where { grid-column: 1 / 7; grid-row: 2; }
  .foot-mail  { grid-column: 1 / 13; grid-row: 3; }
}
@media (max-width: 760px) {
  .foot-say, .foot-nav, .foot-where, .foot-mail { grid-column: 1 / 13; grid-row: auto; }
}
