/* ============================================================
   NEXORA — shared design system
   Extracted from site/index.html (the home, which must stay
   byte-identical). Self-contained: drop one <link> into any new
   page and it inherits the exact palette, type, easing, base
   reset, buttons, reveal classes, film grain, weight-on-scroll,
   kinetic marquee, curtain transition, custom cursor, shared
   header + footer, and View Transitions styling.

   Conventions mirror home:
   - GPU-safe only (transform / opacity / clip-path / font-variation-settings).
   - prefers-reduced-motion: reduce → motion off, correct STATIC state.
   - @supports gates 2026 features; fallback = final state.
   - .js-on is added by nexora.js only when motion is allowed; it
     gates the "hidden-until-animated" states so no-JS / reduced
     motion always shows real content (never a white screen).
   ============================================================ */

/* ============== DESIGN TOKENS ============== */
:root {
  --cream: #F4EDE0;
  --cream-2: #EFE5D2;
  --ink: #15180F;
  --ink-soft: #232A1E;
  --terracotta: #C45A3F;
  --terracotta-deep: #A64A33;
  --olive: #5C6B3A;
  --cobalt: #355C3A;
  --gold: #B89968;
  --night: #1F271C;
  --forest: #2E3A2A;
  --forest-deep: #1F271C;
  --forest-soft: #3F4F36;
  --masthead: #313A2C;   /* deep green — header background */
  --paper-line: rgba(26, 22, 20, 0.14);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 64px;

  /* ---- SEMANTIC SURFACE LAYER (flips with theme) ----
     The raw palette above is FIXED — cream/forest/terracotta literals are
     reused as the light-on-dark ink of the intentionally-dark sections
     (hero / marquee / footer / overlay), so they must NOT invert. Anything
     that is "paper background" or "text on paper" reads these semantic tokens
     instead, and only these tokens flip in dark mode. */
  --bg:        var(--cream);                 /* page paper */
  --bg-2:      var(--cream-2);               /* raised paper / cards */
  --fg:        var(--ink);                   /* primary text on paper */
  --fg-soft:   var(--ink-soft);              /* secondary text on paper */
  --hairline:  var(--paper-line);            /* rules / dividers on paper */
  --nav-top:   rgba(244, 237, 224, 0.04);    /* masthead bar at rest (light hero) */
  --nav-frost: rgba(246, 240, 229, 0.86);    /* masthead bar scrolled (frost) */
  --nav-line:  rgba(21, 24, 15, 0.14);       /* masthead hairline */
  color-scheme: light;
}

/* ---- DARK THEME ----
   Warm editorial night: green-black paper, ivory ink, terracotta accent kept.
   Forest sections (footer/marquee/hero) sit a step LIGHTER than the page, so
   they read as raised panels rather than inverting. Two entry points share
   one value block: a manual pin (data-theme="dark") and the system default
   (prefers-color-scheme: dark) when no pin is set — so no-JS visitors still
   get auto. Keep both blocks identical. */
:root[data-theme="dark"] {
  --bg:        #14160E;                       /* warm near-black */
  --bg-2:      #1C1F15;                        /* raised paper */
  --fg:        #ECE4D4;                        /* ivory ink */
  --fg-soft:   #B7B2A1;
  --ink-soft:  #B7B2A1;                        /* raw token flipped → secondary text on paper inverts at once */
  --hairline:  rgba(244, 237, 224, 0.14);
  --paper-line: rgba(244, 237, 224, 0.14);    /* raw token flipped → every paper hairline inverts at once */
  --nav-top:   rgba(20, 24, 15, 0.04);
  --nav-frost: rgba(22, 26, 17, 0.78);
  --nav-line:  rgba(244, 237, 224, 0.16);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:        #14160E;
    --bg-2:      #1C1F15;
    --fg:        #ECE4D4;
    --fg-soft:   #B7B2A1;
    --ink-soft:  #B7B2A1;
    --hairline:  rgba(244, 237, 224, 0.14);
    --paper-line: rgba(244, 237, 224, 0.14);
    --nav-top:   rgba(20, 24, 15, 0.04);
    --nav-frost: rgba(22, 26, 17, 0.78);
    --nav-line:  rgba(244, 237, 224, 0.16);
    color-scheme: dark;
  }
}

/* ============== BASE / RESET ============== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

::selection { background: var(--terracotta); color: var(--cream); }
::-moz-selection { background: var(--terracotta); color: var(--cream); }

::-webkit-scrollbar { width: 1px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--forest); }

img { display: block; max-width: 100%; }
a { color: inherit; }

/* Keyboard focus — one visible signature everywhere; :where() keeps zero
   specificity so component-level rings still win. Mouse focus stays clean. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============== UTILITY / TYPOGRAPHY ============== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.7;
}
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.divider { width: 100%; height: 1px; background: var(--hairline); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* balanced headings, pretty body (matches home) */
.nx-balance { text-wrap: balance; }
.nx-pretty  { text-wrap: pretty; }

/* ============== CUSTOM CURSOR ============== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  /* Trailing ring of the 2026 dot+ring duo. Cream ring + thin dark halo →
     legible on ANY background (dark hero or cream sections). NO mix-blend-mode:
     difference made the compositor skip per-frame repaints of this fixed+
     transformed layer, so the ring only jumped to the pointer on click. */
  border: 1.5px solid var(--cream);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 0 1px rgba(20, 24, 15, 0.40), 0 1px 6px rgba(0, 0, 0, 0.28);
  will-change: transform, width, height;
  transform: translate(-50%, -50%);
  /* width/height are lerped in JS every frame (magnetic morph) → NOT transitioned
     here or the CSS transition would fight the JS. border-radius IS transitioned
     so the circle↔rounded-rect morph is smooth. */
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), border-radius 0.4s var(--ease-out), opacity 0.25s var(--ease-out);
}
.cursor.is-active { background: rgba(46, 58, 42, 0.30); border-color: var(--cream); }
/* MAGNETIC MORPH — ring becomes a soft rounded-rect wrapping a button/card. */
.cursor.is-magnet { border-radius: 14px; background: rgba(46, 58, 42, 0.12); border-color: var(--cream); }
/* hide the precision dot while the ring is wrapping an element */
html.is-wrapping .cursor-dot { opacity: 0; }
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  will-change: transform;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-active + .cursor-label { opacity: 1; }

/* 2026 precision dot — tracks the pointer 1:1 (no lag); the ring trails it. */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--cream);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 0 1px rgba(20, 24, 15, 0.45);
  will-change: transform;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
/* Fade the whole cursor out while the pointer is outside the window. */
html:not(.cursor-on) .cursor,
html:not(.cursor-on) .cursor-dot,
html:not(.cursor-on) .cursor-label { opacity: 0 !important; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot, .cursor-label { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) {
  /* Hide the native cursor everywhere once the custom cursor is live
     (html.has-cursor, added by initCursor). */
  html.has-cursor,
  html.has-cursor *,
  html.has-cursor *::before,
  html.has-cursor *::after {
    /* transparent 1x1 image, NOT `none`: Chromium flashes the system arrow on
       mousedown when cursor:none is set — a transparent image never flashes. */
    cursor: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==") 0 0, none !important;
  }
}

/* ============== BUTTONS ============== */
.btn-ink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--fg);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  overflow: hidden;
  transition: color 0.5s var(--ease-out);
  z-index: 1;
  isolation: isolate;
  cursor: pointer;
}
.btn-ink::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--forest);
  transform: translateX(-115%) skewX(-10deg);   /* -115% (not -101%) so the skewed corner fully clears — no sliver at the top-left at rest */
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}
.btn-ink:hover { color: var(--cream); }
.btn-ink:hover::before { transform: translateX(0) skewX(-10deg); }
.btn-ink .arrow { display: inline-block; transition: transform 0.5s var(--ease-out); }
.btn-ink:hover .arrow { transform: translateX(6px); }

/* cream-on-dark variant of btn-ink (for forest/night backgrounds) */
.btn-cream {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--cream);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  overflow: hidden;
  transition: color 0.5s var(--ease-out);
  z-index: 1;
  isolation: isolate;
  cursor: pointer;
}
.btn-cream::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateX(-115%) skewX(-10deg);   /* -115% (not -101%) so the skewed corner fully clears — no sliver at the top-left at rest */
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}
.btn-cream:hover { color: var(--ink); }
.btn-cream:hover::before { transform: translateX(0) skewX(-10deg); }
.btn-cream .arrow { display: inline-block; transition: transform 0.5s var(--ease-out); }
.btn-cream:hover .arrow { transform: translateX(6px); }

/* magnetic CTA (large, cream outline → fill, used on dark sections) */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 24px 40px;
  border: 1px solid var(--cream);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease-out);
  cursor: pointer;
}
.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}
.btn-magnetic:hover { color: var(--ink); }
.btn-magnetic:hover::before { transform: scaleY(1); transform-origin: top center; }
.btn-magnetic .arrow { display: inline-block; transition: transform 0.5s var(--ease-out); }
.btn-magnetic:hover .arrow { transform: translateX(8px); }

/* ============== REVEAL-ON-SCROLL ============== */
/* JS animates these via GSAP. The .js-on gate hides them ONLY when
   motion is allowed + JS booted; otherwise they render fully visible. */
.js-on .reveal { opacity: 0; }
.reveal { will-change: opacity, transform; }

/* ============== SHARED HEADER / NAV — "THE MASTHEAD" (2026) ============== */
/* A flush, sharp-cornered editorial masthead — angular to match the site.
   Whisper of frost at the top, deepening on scroll with a bottom hairline that
   DRAWS in. Active item is bracketed by sliding print "registration marks".
   The wordmark morphs its variable-font axes on scroll. Cross-page View
   Transitions morph the bar / wordmark / brackets / CTA between routes.
   Works without JS (links are real <a>); JS adds the scroll state, the bracket
   positioning, magnetic hover and the cinematic full-screen overlay. */

.nx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  pointer-events: none;            /* only the bar catches clicks */
  --line: 0;                       /* JS drives 0→1: the bottom hairline draw */
}
/* hide on scroll-down — transform the BAR, not .nx-nav (a transform on
   .nx-nav would become the containing block for the fixed overlay). */
.nx-nav.is-hidden .nx-nav__bar { transform: translateY(-100%); }

/* (progressive-blur top ramp removed — stessa decisione della home: blurava
   l'hero in modalità trasparente e ogni heading che passava sotto il bordo
   alto, leggendosi come lag. Non riaggiungere senza mascherarla alla sola
   barra. Il frost vive solo su .is-scrolled. Richiesta Vincenzo 2026-06-10.) */

/* the flush bar */
.nx-nav__bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  width: 100%;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--fg);
  background: var(--nav-top);
  /* nessun blur in modalità trasparente: l'hero sotto resta nitido.
     Il frost arriva solo con .is-scrolled. */
  view-transition-name: nx-nav;
  transition: background 0.6s var(--ease-out), height 0.5s var(--ease-out),
              backdrop-filter 0.6s var(--ease-out), transform 0.7s var(--ease-soft);
}
/* the drawing hairline — scaleX driven by --line */
.nx-nav__bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--nav-line);
  transform: scaleX(var(--line));
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
/* condensed once scrolled past the hero — frost in, tighten */
.nx-nav.is-scrolled .nx-nav__bar {
  height: 60px;
  background: var(--nav-frost);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* dark-context masthead — pages with a dark/cinematic hero (e.g. home) */
.nx-nav--dark .nx-nav__bar { color: var(--cream); background: rgba(20, 24, 15, 0.04); }
.nx-nav--dark .nx-nav__bar::after { background: rgba(244, 237, 224, 0.16); }
.nx-nav--dark.is-scrolled .nx-nav__bar { background: rgba(20, 25, 18, 0.62); }

/* wordmark + availability pulse — variable-font axes morph on scroll (JS) */
.nx-nav__logo {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: 'opsz' 140, 'wght' 600;
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  view-transition-name: nx-logo;
  transition: opacity 0.3s var(--ease-out), font-variation-settings 0.4s var(--ease-out);
}
.nx-nav__logo:hover { opacity: 0.7; }
.nx-nav__logo .dot {
  width: 5px; height: 5px;
  background: var(--terracotta);
}
/* editorial meta beside the wordmark (home: live chapter) */
.nx-nav__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  white-space: nowrap;
}
.nx-nav__meta-page { display: none; }

/* desktop link cluster, centered in the bar */
.nx-nav__nav {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.nx-nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 16px);
  list-style: none;
}
.nx-nav__links a {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding: 10px 14px;
  opacity: 0.62;
  transition: opacity 0.35s var(--ease-out), transform 0.4s var(--ease-out);
  will-change: transform;
}
.nx-nav__links a:hover,
.nx-nav__links a[aria-current="page"] { opacity: 1; }

/* ACTIVE BRACKET — print registration / crop marks. JS sets --ix / --iw.
   8 hairline gradients = four L-corners that slide & resize with the box.
   No fill, no radius — pure editorial. */
.nx-nav__ind {
  position: absolute;
  top: 50%;
  left: 0;
  height: 30px;
  width: var(--iw, 0px);
  transform: translate(var(--ix, 0px), -50%);
  --mk: var(--terracotta);   /* mark colour */
  --mt: 1.5px;               /* mark thickness */
  --ml: 7px;                 /* mark length */
  background:
    linear-gradient(var(--mk), var(--mk)) 0 0      / var(--ml) var(--mt) no-repeat,
    linear-gradient(var(--mk), var(--mk)) 0 0      / var(--mt) var(--ml) no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% 0   / var(--ml) var(--mt) no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% 0   / var(--mt) var(--ml) no-repeat,
    linear-gradient(var(--mk), var(--mk)) 0 100%   / var(--ml) var(--mt) no-repeat,
    linear-gradient(var(--mk), var(--mk)) 0 100%   / var(--mt) var(--ml) no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% 100%/ var(--ml) var(--mt) no-repeat,
    linear-gradient(var(--mk), var(--mk)) 100% 100%/ var(--mt) var(--ml) no-repeat;
  opacity: 0;
  pointer-events: none;
  view-transition-name: nx-ind;
  transition: transform 0.5s var(--ease-soft), width 0.5s var(--ease-soft),
              opacity 0.3s var(--ease-out);
}
.nx-nav__ind.is-on { opacity: 1; }

/* right-side actions */
.nx-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
/* CTA — sharp rectangle, site btn-ink language: skew-fill on hover */
.nx-nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  view-transition-name: nx-cta;
  transition: color 0.5s var(--ease-out), transform 0.4s var(--ease-out);
  will-change: transform;
}
.nx-nav__cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--fg);
  transform: translateX(-115%) skewX(-10deg);   /* -115% (not -101%) so the skewed corner fully clears — no sliver at the top-left at rest */
  transition: transform 0.55s var(--ease-out);
  z-index: -1;
}
.nx-nav__cta:hover { color: var(--bg); }
.nx-nav__cta:hover::before { transform: translateX(0) skewX(-10deg); }
.nx-nav--dark .nx-nav__cta::before { background: var(--cream); }
.nx-nav--dark .nx-nav__cta:hover { color: var(--ink); }
.nx-nav__cta .arrow { display: inline-block; transition: transform 0.4s var(--ease-soft); }
.nx-nav__cta:hover .arrow { transform: translateX(4px); }

/* sound toggle (home) — sharp, compact */
.nx-nav__actions .folio__sound {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid currentColor;
  opacity: 0.78;
  color: inherit;
}
.nx-nav__actions .folio__sound:hover { opacity: 1; }
/* equalizer internals — mirror the home build so sub-pages match.
   currentColor (not --cream) so the bars read on light AND dark themes. */
.folio__sound { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--mono, 'DM Mono', monospace); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.folio__sound-icon { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.folio__sound-icon span { width: 2px; background: currentColor; display: inline-block; animation: eq 1.2s ease-in-out infinite; }
.folio__sound-icon span:nth-child(1) { height: 4px; animation-delay: 0s; }
.folio__sound-icon span:nth-child(2) { height: 9px; animation-delay: 0.2s; }
.folio__sound-icon span:nth-child(3) { height: 6px; animation-delay: 0.4s; }
.folio__sound-icon span:nth-child(4) { height: 11px; animation-delay: 0.1s; }
.folio__sound.muted .folio__sound-icon span { animation-play-state: paused; opacity: 0.4; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.35); } }

/* ===== THEME SWITCHER — Auto / Light / Dark (3-state cycle) =====
   Sharp, mono, currentColor border so it reads on the light masthead, the
   scrolled frost, AND the dark-hero (.nx-nav--dark) without per-context rules.
   One SVG holds all three glyphs; the active one shows via [data-mode]. */
.nx-nav__theme {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.3s var(--ease-out), background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.nx-nav__theme:hover { opacity: 1; }
.nx-nav__theme:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; opacity: 1; }
.nx-nav__theme-ic { width: 15px; height: 15px; flex-shrink: 0; display: block; }
.nx-nav__theme-ic [data-g] { display: none; }
.nx-nav__theme[data-mode="auto"]  .nx-nav__theme-ic [data-g="auto"],
.nx-nav__theme[data-mode="light"] .nx-nav__theme-ic [data-g="light"],
.nx-nav__theme[data-mode="dark"]  .nx-nav__theme-ic [data-g="dark"] { display: block; }
.nx-nav__theme-label { display: inline-block; min-width: 34px; text-align: left; }
/* the label is supplementary — drop it on tight bars, keep the icon */
@media (max-width: 980px) {
  .nx-nav__theme-label { display: none; }
  .nx-nav__theme { padding: 8px; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-nav__theme { transition-duration: 0.001s; }
}

/* menu toggle (shown < 860) — sharp, no circle */
.nx-nav__burger {
  display: none;
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  color: inherit;
}
.nx-nav__burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 1.5px;
  margin-left: -10px;
  background: currentColor;
  transition: transform 0.4s var(--ease-soft), opacity 0.3s var(--ease-out);
}
.nx-nav__burger span:nth-child(1) { transform: translateY(-4px); }
.nx-nav__burger span:nth-child(2) { transform: translateY(4px); }
.nx-nav__burger.is-open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.nx-nav__burger.is-open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

/* ===== full-screen overlay menu (cinematic) ===== */
.nx-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: clamp(96px, 16vh, 150px) clamp(26px, 8vw, 96px) clamp(40px, 7vh, 72px);
  background: var(--forest-deep);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.nx-nav__overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease-out);
}
.nx-nav__overlay-links { list-style: none; }
.nx-nav__overlay-links li { overflow: hidden; line-height: 1; }
.nx-nav__overlay-links a {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 4vw, 26px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
  padding: 6px 0;
  transform: translateY(115%);
  transition: transform 0.75s var(--ease-soft), color 0.4s var(--ease-out);
}
.nx-nav__overlay.is-open .nx-nav__overlay-links a { transform: translateY(0); }
.nx-nav__overlay.is-open li:nth-child(1) a { transition-delay: 0.06s; }
.nx-nav__overlay.is-open li:nth-child(2) a { transition-delay: 0.12s; }
.nx-nav__overlay.is-open li:nth-child(3) a { transition-delay: 0.18s; }
.nx-nav__overlay.is-open li:nth-child(4) a { transition-delay: 0.24s; }
.nx-nav__overlay.is-open li:nth-child(5) a { transition-delay: 0.30s; }
.nx-nav__overlay-links a[aria-current="page"] { color: var(--terracotta); }
.nx-nav__overlay-links a:hover { color: var(--terracotta); }
.nx-nav__overlay-links a:hover .idx { opacity: 1; transform: translateX(4px); }
.nx-nav__overlay-links .idx {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(11px, 2.6vw, 13px);
  letter-spacing: 0.18em;
  opacity: 0.42;
  transform: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-soft);
  align-self: center;
}
.nx-nav__overlay-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out) 0.36s, transform 0.6s var(--ease-soft) 0.36s;
}
.nx-nav__overlay.is-open .nx-nav__overlay-foot { opacity: 0.62; transform: translateY(0); }
.nx-nav__overlay-foot a { color: inherit; text-decoration: none; }
.nx-nav__overlay-foot a:hover { color: var(--terracotta); opacity: 1; }
/* keep the close button above the overlay; strip the bar chrome when open */
.nx-nav__bar { z-index: 2; }
.nx-nav__overlay { z-index: 1; }
.nx-nav.nav-open { --line: 0; }
.nx-nav.nav-open .nx-nav__bar {
  background: transparent;
  color: var(--cream);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nx-nav.nav-open .nx-nav__bar::after { opacity: 0; }

@media (max-width: 860px) {
  .nx-nav__nav { display: none; }
  .nx-nav__meta { display: none; }
  .nx-nav__actions .nx-nav__cta { display: none; }
  .nx-nav__burger { display: inline-flex; }
  .nx-nav__bar { height: 64px; gap: 12px; padding: 0 clamp(18px, 5vw, 28px); }
  .nx-nav.is-scrolled .nx-nav__bar { height: 56px; }
}
@media (min-width: 861px) {
  .nx-nav__overlay { display: none; }
}

/* No-JS / reduced-motion safety: burger can't open the overlay, so fall back
   to inline links. (.js-on is only set when motion is allowed.) */
@media (max-width: 860px) {
  html:not(.js-on) .nx-nav__nav {
    display: block;
    position: static;
    transform: none;
  }
  html:not(.js-on) .nx-nav__links { flex-wrap: wrap; gap: 4px 10px; }
  html:not(.js-on) .nx-nav__ind { display: none; }
  html:not(.js-on) .nx-nav__burger { display: none; }
  html:not(.js-on) .nx-nav__actions .nx-nav__cta { display: inline-flex; }
  html:not(.js-on) .nx-nav__bar {
    height: auto;
    flex-wrap: wrap;
    padding: 12px clamp(18px, 5vw, 28px);
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-nav, .nx-nav__bar, .nx-nav__bar::after, .nx-nav__logo, .nx-nav__cta,
  .nx-nav__cta::before, .nx-nav__cta .arrow, .nx-nav__ind, .nx-nav__links a,
  .nx-nav__overlay-links a, .nx-nav__overlay-foot {
    transition-duration: 0.001s;
  }
  .nx-nav__logo .dot { animation: none; }
}

/* ============== FILM GRAIN ============== */
.nx-grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: nxGrain .6s steps(2) infinite;
  will-change: transform;
}
@keyframes nxGrain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(2%, 3%); }
}


/* ============== VARIABLE-FONT WEIGHT-ON-SCROLL ============== */
.nx-weight { font-variation-settings: 'wght' 460; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .nx-weight {
      font-variation-settings: 'wght' 320;
      animation: nxWeightRise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 42%;
    }
  }
}
@keyframes nxWeightRise {
  from { font-variation-settings: 'wght' 320; letter-spacing: 0.005em; }
  to   { font-variation-settings: 'wght' 600; letter-spacing: -0.028em; }
}

/* ============== KINETIC MARQUEE ============== */
.nx-marquee {
  position: relative;
  overflow: clip; /* clip, not hidden — never makes a scroll container */
  background: var(--forest);
  color: var(--cream);
  padding: clamp(22px, 4vh, 44px) 0;
  border-top: 1px solid rgba(244, 237, 224, 0.14);
  border-bottom: 1px solid rgba(244, 237, 224, 0.14);
  user-select: none;
}
.nx-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: nxMarqueeFallback 40s linear infinite; /* CSS fallback if GSAP never boots */
}
.js-on .nx-marquee__track { animation: none; } /* GSAP takes over once booted */
@keyframes nxMarqueeFallback {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.333%, 0, 0); }
}
.nx-marquee__group { display: flex; flex-wrap: nowrap; align-items: center; }
.nx-marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  white-space: nowrap;
  padding: 0 clamp(22px, 3vw, 52px);
  transition: color 0.35s var(--ease-out);
}
/* a place answers the cursor: it straightens up and warms to terracotta */
.nx-marquee__item:hover { font-style: normal; color: var(--terracotta); }
.nx-marquee__sep {
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 26px);
  color: #E08A6B;
  display: inline-flex;
  align-items: center;
  transform: translateY(-0.08em);
}

/* ============== CLIP-PATH REVEAL HELPER ============== */
.js-on .nx-clip { clip-path: inset(0 0 100% 0); }
.nx-clip { will-change: clip-path; }

/* ============== ANCHOR / PAGE CURTAIN WIPE ============== */
.nx-curtain {
  position: fixed;
  inset: 0;
  z-index: 9997; /* below cursor(9999)/grain(9998) */
  background: var(--forest);
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
}
.nx-curtain::after {
  content: 'NEXORA';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -0.02em;
  color: rgba(244, 237, 224, 0.16);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
/* the wordmark surfaces while the curtain holds full cover (set from curtainWipe) */
.nx-curtain.is-covering::after { opacity: 1; }

/* ============== SHARED FOOTER / COLOPHON ============== */
.colophon {
  background: var(--forest);
  color: var(--cream);
  padding: clamp(80px, 12vh, 140px) 0 0;
  position: relative;
  overflow: hidden;
}
.colophon__masthead {
  padding: 0 clamp(20px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid rgba(244, 237, 224, 0.15);
  padding-top: 56px;
}
.colophon__col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.62);
  margin-bottom: 18px;
  font-weight: 400;
}
.colophon__col ul { list-style: none; }
.colophon__col li {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--cream);
}
.colophon__col li em { font-style: italic; color: #C2A878; }
.colophon__col a { color: inherit; text-decoration: none; position: relative; }
.colophon__col a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.colophon__col a:hover::after { transform: scaleX(1); }
.colophon__line {
  height: 1px;
  background: rgba(244, 237, 224, 0.15);
  margin: 80px clamp(20px, 4vw, 64px) 40px;
  max-width: 1440px;
}
.colophon__line-decor {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(244, 237, 224, 0.62);
}
.colophon__line-decor .ldec { flex: 1; height: 1px; background: rgba(244, 237, 224, 0.15); }
.colophon__brand {
  text-align: center;
  padding: 0 clamp(20px, 4vw, 64px) clamp(20px, 4vh, 48px);
  overflow: hidden;
  user-select: none;
}
.colophon__brand-text {
  font-family: var(--serif);
  font-weight: 480;
  font-size: clamp(120px, 28vw, 380px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--cream);
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  /* the wordmark is a Latin logotype split into per-letter flex items:
     without this, RTL locales reverse the letters ("aroxeN") */
  direction: ltr;
}
.colophon__brand-text .ch { display: inline-block; transform-origin: center bottom; }
.colophon__bottom {
  padding: clamp(20px, 3vh, 32px) clamp(20px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.62);
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- footer responsive: tablet 2 colonne, telefono masthead compatto ---- */
@media (max-width: 860px) {
  .colophon__masthead {
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 6vw, 44px) clamp(24px, 5vw, 40px);
    padding-top: 44px;
  }
  .colophon__line-decor { gap: 16px; }
}
@media (max-width: 520px) {
  .colophon { padding-top: clamp(56px, 10vh, 88px); }
  .colophon__masthead { padding-left: 22px; padding-right: 22px; }
  .colophon__col li { font-size: 16px; line-height: 1.6; }
  .colophon__line-decor {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    margin-bottom: 32px;
  }
  /* on a phone the decorative rules add nothing — drop them, keep the caption */
  .colophon__line-decor .ldec { display: none; }
  /* the giant wordmark must shrink to the viewport: kill the 120px floor so
     "Nexora" fits the phone width instead of overflowing off the right edge */
  .colophon__brand-text { font-size: clamp(64px, 26vw, 130px); }
  .colophon__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }
}

/* ============== CROSS-DOCUMENT VIEW TRANSITIONS ============== */
/* Opt-in here for every page that links this sheet (home mirrors it inline).
   Kept tasteful, never required (default = instant if unsupported). */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  /* the new page lowers onto the old like a fresh sheet coming off the press —
     the site's paper language instead of the UA's default crossfade */
  ::view-transition-old(root) { animation: nx-vt-recede 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  ::view-transition-new(root) { animation: nx-vt-sheet 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
  /* shared nav persists across navigations rather than crossfading */
  ::view-transition-group(nx-nav) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
}
@keyframes nx-vt-recede { to { opacity: 0.35; transform: translateY(2.5vh) scale(0.992); } }
@keyframes nx-vt-sheet { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor, .cursor-dot, .cursor-label { display: none; }
  body { cursor: auto; }
  /* force correct static state for every 2026 effect */
  .js-on .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .nx-weight { font-variation-settings: 'wght' 460; animation: none !important; }
  .nx-marquee__track { animation: none !important; transform: none !important; }
  .nx-clip, .js-on .nx-clip { clip-path: none !important; }
  .nx-curtain { display: none !important; }
  .nx-grain { animation: none; }
}

/* ============================================================
   LANGUAGE SWITCHER + i18n (shared across sub-pages)
   ============================================================ */
.nx-lang { position: relative; display: inline-flex; align-items: center; font-family: var(--mono, 'DM Mono', monospace); }
.nx-lang__toggle { display: inline-flex; align-items: center; gap: .42em; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: .4em .2em; opacity: .78; transition: opacity .25s; }
.nx-lang__toggle:hover { opacity: 1; }
.nx-lang__toggle:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; opacity: 1; }
.nx-lang__globe { flex: none; opacity: .85; }
.nx-lang__menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px; margin: 0; padding: 6px; list-style: none; background: var(--cream, #f3efe6); color: var(--ink, #1a1614); border: 1px solid color-mix(in srgb, var(--ink, #1a1614) 14%, transparent); border-radius: 2px; box-shadow: 0 18px 44px -18px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s, transform .22s, visibility .22s; z-index: 120; }
.nx-lang.is-open .nx-lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nx-lang__menu li { margin: 0; }
.nx-lang__menu button { display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 12px; letter-spacing: .03em; color: inherit; padding: 8px 10px; border-radius: 2px; transition: background .18s, color .18s; }
.nx-lang__menu button:hover { background: color-mix(in srgb, var(--ink, #1a1614) 7%, transparent); }
.nx-lang__menu button.is-active { background: var(--terracotta, #c45a3f); color: #fff; }
/* RTL (Arabic) */
[dir="rtl"] .nx-lang__menu { right: auto; left: 0; text-align: right; }
[dir="rtl"] .nx-lang__menu button { text-align: right; }
[dir="rtl"] .nx-nav__bar, [dir="rtl"] .colophon__masthead, [dir="rtl"] .colophon__bottom { direction: rtl; }
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
/* hide translatable text only until the dictionary applies (non-en, set by the head script) */
html.i18n-busy [data-i18n] { visibility: hidden; }

/* brand — terracotta x in the Nexora wordmark (preloader, footer, headings) */
.x-accent { color: var(--terracotta, #c45a3f); }

/* ---------- Branded plate — stands in for photography, unmistakably on-brand ---------- */
.brand-plate{
  --bp-bg: var(--forest-deep, #1f271c);
  --bp-mark: var(--cream, #f4ede0);
  position: relative;
  overflow: hidden;
  background: var(--bp-bg);
  background: radial-gradient(135% 120% at 28% 16%,
                color-mix(in srgb, var(--bp-bg) 86%, #ffffff 14%),
                var(--bp-bg) 70%);
}
.brand-plate--fill{ position:absolute; inset:0; width:100%; height:100%; }
.brand-plate::before,
.brand-plate::after{
  content:""; position:absolute; pointer-events:none;
  background: var(--bp-mark);
  -webkit-mask-image:url("nexora-mark.svg"); mask-image:url("nexora-mark.svg");
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-mode:alpha; mask-mode:alpha;
}
.brand-plate::before{   /* large tone-on-tone watermark, bleeding off bottom-right */
  right:-12%; bottom:-18%; width:72%; aspect-ratio:491.93/456.76;
  -webkit-mask-size:contain; mask-size:contain;
  -webkit-mask-position:right bottom; mask-position:right bottom;
  opacity:.12;
}
.brand-plate::after{    /* small crisp stamped mark, top-left */
  left:clamp(16px,5%,26px); top:clamp(16px,7%,26px); width:38px; height:35.3px;
  -webkit-mask-size:contain; mask-size:contain;
  -webkit-mask-position:center; mask-position:center;
  opacity:.9;
}
.brand-plate--quiet::after{ display:none; }
.brand-plate--quiet::before{ right:-6%; bottom:-10%; width:60%; opacity:.10; }
.brand-plate--forest{ --bp-bg:var(--forest-deep,#1f271c); --bp-mark:var(--cream,#f4ede0); }
.brand-plate--terra { --bp-bg:var(--terracotta-deep,#a64a33); --bp-mark:var(--cream,#f4ede0); }
.brand-plate--sage  { --bp-bg:var(--forest-soft,#3f4f36); --bp-mark:var(--cream,#f4ede0); }
.brand-plate--cream { --bp-bg:#e7dcc4; --bp-mark:var(--forest-deep,#1f271c); }
.brand-plate--gold  { --bp-bg:#6e5a33; --bp-mark:var(--cream,#f4ede0); }
.brand-plate--ink   { --bp-bg:var(--forest,#2e3a2a); --bp-mark:var(--gold,#b89968); }
.entry__cover:hover .brand-plate::before,
.issue__cover:hover .brand-plate::before{ opacity:.18; transition:opacity .6s ease; }

/* empty cover placeholder — left blank until the real project shots drop in */
.cover-empty{ position:absolute; inset:0; background: color-mix(in srgb, var(--fg, #15180f) 6%, var(--bg, #f4ede0)); }
/* the name section renders the actual Nexora mark, not a stand-in */
.thename__mark img{ width:100%; height:100%; object-fit:contain; display:block; }

/* ============== TOUCH ERGONOMICS (no visual change) ==============
   Hit areas extended toward 44px via invisible pseudo-elements and
   padding/negative-margin pairs, so phone taps land while the drawn
   UI stays pixel-identical. */
@media (pointer: coarse) {
  .nx-nav__theme, .nx-lang__toggle, .nx-nav__actions .folio__sound, .nx-nav__burger { position: relative; }
  .nx-nav__theme::after, .nx-lang__toggle::after, .nx-nav__actions .folio__sound::after, .nx-nav__burger::after {
    content: ''; position: absolute; inset: -7px;
  }
  .colophon__col li { line-height: 1.9; }
  .colophon__masthead a { display: inline-block; padding-block: 7px; margin-block: -7px; }
}
@media (max-width: 520px) {
  /* lang + SOUND + theme + burger overflowed a 390px bar by ~7px: keep the
     equalizer icon as the sound toggle and tighten the gaps */
  .nx-nav__bar { gap: 10px; }
  .nx-nav__actions { gap: 8px; }
  .nx-nav__actions .folio__sound > span:not(.folio__sound-icon) { display: none; }
}
