/* ============================================================
   UNTO DSP — brand & lineup
   Warm near-black workbench, amber phosphor, hairline chrome.
   See DESIGN.md for the token contract.
   ============================================================ */

/* --- font locali ------------------------------------------------------
   Space Mono e Bowlby One sono OFL (SIL Open Font License): il
   self-hosting e' consentito. Li teniamo qui invece che su Google
   Fonts per due motivi:
     - nessuna richiesta a terzi: il sito non comunica l'IP del
       visitatore a Google ( GDPR )
     - nessun salto di rete: il testo appare subito
   ------------------------------------------------------------------- */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SpaceMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/SpaceMono-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/SpaceMono-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Bowlby One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/BowlbyOne-Regular.woff2') format('woff2');
}

:root {
  /* canvas */
  --canvas:        #17110d;
  --canvas-deep:   #0b0806;
  --surface:       #241a14;
  --surface-2:     #2c201a;
  --line:          #4a3426;
  --line-soft:     rgba(255, 213, 150, .12);

  /* ink */
  --ink:           #fff4dc;
  --ink-dim:       #c9b79a;
  --ink-faint:     #97866f;

  /* accents */
  --amber:         #ffb52e;
  --amber-deep:    #c9740f;
  --rust:          #ef5a3c;
  --gold:          #f4d9a0;

  /* mascot */
  --mascot-line:   #3a1704;
  --mascot-line-2: #7a3b0c;

  /* type */
  --font-display: 'Bowlby One', Impact, 'Haettenschweiler', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* spacing */
  --gutter:  clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 148px);
  --maxw:    1180px;

  /* shape */
  --r-sm:   6px;
  --r-card: 14px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in:  cubic-bezier(.7, 0, .84, 0);
}

* { box-sizing: border-box; }

html {
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* brushed-metal grain over the whole document */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .5;
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(0,0,0,.05)     0 1px, transparent 1px 4px);
}

::selection { background: var(--amber); color: var(--canvas-deep); }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }

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

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; padding: 10px 18px;
  background: var(--amber); color: var(--canvas-deep);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ============================================================
   HUD — the house chrome: mono, uppercase, wide tracking
   ============================================================ */

.hud {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.hud--faint { color: var(--ink-faint); font-weight: 400; letter-spacing: .36em; }

.hud--amber { color: var(--amber); }

.index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.index__n {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  color: var(--amber);
}
.index__rule {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ============================================================
   HEADER
   ============================================================ */

.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(11,8,6,.92), rgba(11,8,6,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.masthead__mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: .3em;
  color: var(--ink);
  text-transform: uppercase;
}
.masthead__mark b { color: var(--amber); font-weight: 700; }
.masthead__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255,181,46,.16);
  animation: pulse 3.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;  box-shadow: 0 0 0 3px rgba(255,181,46,.16); }
  50%      { opacity: .5; box-shadow: 0 0 0 6px rgba(255,181,46,.05); }
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(36,26,20,.7);
}
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  padding: 7px 11px;
  cursor: pointer;
  transition: color .25s var(--ease-out), background .25s var(--ease-out);
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--amber); color: var(--canvas-deep); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 112px var(--gutter) 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  display: block;
  background: var(--canvas-deep);
}
.hero__canvas[hidden] { display: none; }

.hero__bloom {
  position: absolute;
  left: 50%; top: 46%;
  width: min(920px, 100vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,181,46,.17) 0%, rgba(255,181,46,.05) 34%, transparent 66%);
  filter: blur(6px);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 26px;
  text-shadow: 0 1px 10px rgba(11, 8, 6, .95), 0 0 3px rgba(11, 8, 6, .9);
}
.hero__eyebrow .sep, .hero__meta .sep { width: 4px; height: 4px; background: var(--amber); border-radius: 50%; flex: 0 0 auto; align-self: flex-start; margin-top: 3px; }

.hero__lockup {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 0 30px;
}
.hero__lockup svg { width: min(380px, 78vw); height: auto; display: block; }
.hero__lockup .lockup { position: relative; z-index: 1; }

/* "banco" — the calibration bench that appears behind the living logo */
.hero__bench {
  position: absolute;
  left: 50%; top: 30%;
  width: min(600px, 100vw);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s var(--ease-out);
}
.hero[data-hero="3"] .hero__bench { opacity: 1; }
.hero__bench-rot {
  transform-origin: 200px 200px;
  animation: benchspin 96s linear infinite;
}
@keyframes benchspin { to { transform: rotate(360deg); } }

/* movimento spento (?motion=0) */
.unto-motion-off .hero__bench-rot { animation: none; }

/* legibility over the animated backdrops */
.hero__slogan, .hero__lede, .hero__meta {
  text-shadow: 0 1px 14px rgba(11, 8, 6, .92), 0 0 4px rgba(11, 8, 6, .75);
}

.hero__slogan {
  font-family: var(--font-mono);
  font-style: italic;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 1.4;
  color: var(--ink-dim);
  margin: 0 0 22px;
  text-align: center;
}

.hero__lede {
  max-width: 62ch;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--ink-dim);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  max-width: 1040px;
  margin: 0 auto;
}
.hero__meta span { white-space: nowrap; }

.hero__variants button {
  appearance: none; cursor: pointer;
  background: rgba(11,8,6,.7);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  padding: 6px 10px;
  transition: color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.hero__variants button:hover { color: var(--ink); border-color: var(--ink-faint); }
.hero__variants button[aria-pressed="true"] { color: var(--canvas-deep); background: var(--amber); border-color: var(--amber); }

/* ============================================================
   SECTIONS
   ============================================================ */

.movement {
  position: relative;
  padding: var(--section) var(--gutter);
}
.movement + .movement { border-top: 1px solid var(--line-soft); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }

.movement__head { margin-bottom: clamp(34px, 5vw, 58px); }

.movement__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.005em;
  margin: 0 0 18px;
  color: var(--ink);
}
.movement__title em { font-style: normal; color: var(--amber); }

.movement__lede {
  max-width: 68ch;
  color: var(--ink-dim);
  margin: 0;
}

/* ============================================================
   MARCHIO — the four logo proposals
   ============================================================ */

.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* il marchio e' una sola plate: piu' larga, allineata al resto della griglia */
.plates--single { grid-template-columns: minmax(0, 1fr); max-width: 620px; }


.plate {
  position: relative;
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.plate::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg,  rgba(0,0,0,.05)     0 1px, transparent 1px 4px);
}
.plate:hover { border-color: var(--ink-faint); transform: translateY(-2px); }

.plate__screws { position: absolute; inset: 10px; pointer-events: none; opacity: .5; }
.plate__screws i {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a3426, #1a1210);
  box-shadow: inset 0 0 0 1px rgba(255,213,150,.10);
}
.plate__screws i::after {
  content: ''; position: absolute; left: 1px; right: 1px; top: 3px; height: 1px;
  background: rgba(0,0,0,.55);
  transform: rotate(28deg);
}
.plate__screws i:nth-child(1) { left: 0;  top: 0; }
.plate__screws i:nth-child(2) { right: 0; top: 0; }
.plate__screws i:nth-child(3) { left: 0;  bottom: 0; }
.plate__screws i:nth-child(4) { right: 0; bottom: 0; }

.plate__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 18px 0;
}
.plate__stage svg { height: 300px; width: auto; max-width: 100%; display: block; }

.plate__meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.plate__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: .01em;
}
.plate__tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.plate__tag--on { color: var(--amber); }
.plate__note {
  margin: 0;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ============================================================
   MASCOTTE — the family + alternate directions
   ============================================================ */

.dirs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.dir {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.dir__stage {
  display: flex; align-items: center; justify-content: center;
  min-height: 210px;
  background: var(--canvas-deep);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px;
}
.dir__stage svg { height: 188px; width: auto; max-width: 100%; display: block; }
.dir__name {
  font-family: var(--font-display);
  font-size: .95rem; margin: 0; color: var(--ink);
}
.dir__note { margin: 0; font-size: .78rem; line-height: 1.55; color: var(--ink-faint); }

/* ============================================================
   LINEUP
   ============================================================ */

.lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plugin {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(22px, 2.4vw, 30px);
  gap: 16px;
  overflow: hidden;
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.plugin:hover { transform: translateY(-3px); }
.plugin:hover .plugin__mascot { transform: translateY(-3px) scale(1.04); }
.plugin--01:hover { border-color: rgba(239,90,60,.55); }
.plugin--02:hover { border-color: rgba(255,181,46,.55); }
.plugin--03:hover { border-color: rgba(244,217,160,.45); }

.plugin__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.plugin__n {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 700; line-height: 1;
  letter-spacing: .02em;
}
.plugin--01 .plugin__n { color: var(--rust); }
.plugin--02 .plugin__n { color: var(--amber); }
.plugin--03 .plugin__n { color: var(--gold); }

.plugin__cat {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  max-width: 18ch;
  line-height: 1.5;
}
.plugin__stage {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}
.plugin__gui { flex: 1 1 auto; min-width: 0; }
.plugin__gui .rack { display: block; width: 100%; height: auto; }
.plugin__mascot {
  flex: 0 0 35%;
  max-width: 128px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.55));
  transition: transform .5s var(--ease-out);
}
.plugin__mascot svg, .plugin__mascot img { display: block; width: 100%; height: auto; }
  .dir__stage img.mascot { display: block; width: 100%; height: 100%; object-fit: contain; }
.plugin__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
}

.plugin__copy {
  margin: 0;
  flex: 1;
  color: var(--ink-dim);
  font-size: .9rem;
  line-height: 1.6;
}

/* progress meter — segmented, hardware style */
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter__top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.meter__label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-dim);
}
.meter__val {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
.plugin--01 .meter__val { color: var(--rust); }
.plugin--02 .meter__val { color: var(--amber); }
.plugin--03 .meter__val { color: var(--gold); }

.meter__rail {
  position: relative;
  height: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.meter__fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  transition: width 1.1s var(--ease-out);
  background: currentColor;
}
.plugin--01 .meter__fill { color: var(--rust); }
.plugin--02 .meter__fill { color: var(--amber); }
.plugin--03 .meter__fill { color: var(--gold); }
.meter__fill::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(11,8,6,.85) 7px 10px);
}
.is-lit .meter__fill { width: var(--p); }
.is-lit .meter__rail { box-shadow: 0 0 14px -4px currentColor; }
.plugin--02.is-lit .meter__rail { color: var(--amber); }
.plugin--01.is-lit .meter__rail { color: var(--rust); }
.plugin--03.is-lit .meter__rail { color: var(--gold); }

.meter__ticks {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .1em;
  color: var(--ink-faint);
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 56px var(--gutter) 72px;
  background: var(--canvas-deep);
}
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-start; justify-content: space-between;
}
.foot__mark {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink);
}
.foot__mark b { color: var(--amber); }
.foot__note { margin: 10px 0 0; font-size: .78rem; color: var(--ink-faint); max-width: 46ch; }
.foot__right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ============================================================
   REVEAL — entrance motion
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* movimento spento (?motion=0): niente animazioni, niente transizioni */
.unto-motion-off { scroll-behavior: auto; }
.unto-motion-off .reveal { opacity: 1; transform: none; transition: none; }
.unto-motion-off .meter__fill { transition: none; }
.unto-motion-off .masthead__dot { animation: none; }
.unto-motion-off *, .unto-motion-off *::before, .unto-motion-off *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

/* ============================================================
   SVG LIFE — breath, blink, waveform draw
   ============================================================ */

.mascot-breathe {
  transform-box: fill-box;
  transform-origin: 50% 86%;
  animation: breathe 5.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.022, .986); }
}

.blink { animation: blink 6.2s ease-in-out infinite; }
@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(.08); }
}

.wave-draw {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 4.2s ease-in-out infinite;
}
@keyframes draw {
  0%        { stroke-dashoffset: 100; }
  16%       { stroke-dashoffset: 0; }
  94%       { stroke-dashoffset: 0; }
  100%      { stroke-dashoffset: -100; }
}

/* hero variant 3 — the mascot IS the stage */
.hero[data-hero="3"] .hero__canvas { display: none; }
.hero[data-hero="3"] .hero__lockup { margin-bottom: 34px; }
.hero[data-hero="3"] .hero__lockup svg { width: min(400px, 80vw); }
.hero[data-hero="3"] .hero__bloom { opacity: 1.25; }

/* movimento spento (?motion=0) */
.unto-motion-off .mascot-breathe,
.unto-motion-off .blink,
.unto-motion-off .wave-draw { animation: none; }
.unto-motion-off .wave-draw { stroke-dashoffset: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .lineup { grid-template-columns: 1fr; }
  .dirs { grid-template-columns: 1fr; }
  .plugin__mascot { max-width: 150px; }
}

@media (max-width: 700px) {
  .plates { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 116px; }
  .hero__variants { margin-top: 24px; }
}

@media (max-width: 560px) {
  .masthead { padding: 12px 16px; }
  .masthead__mark { font-size: 11px; letter-spacing: .22em; }
  .masthead__mark .hud--faint { display: none; }
  .plugin__head { flex-direction: column; }
  .plugin__cat { text-align: left; }
  .foot__right { text-align: left; align-items: flex-start; }
}

/* --- la boa: il cartello "in cottura" galleggia nell'olio ---------------- */
.hero__boa {
  position: absolute;
  right: clamp(10px, 4vw, 70px);
  top: 24%;
  width: clamp(158px, 19vw, 268px);
  z-index: 1;
  pointer-events: none;
}
.hero__boa__float {
  animation: boabob 7.5s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes boabob {
  0%, 100% { transform: translateY(0) rotate(-2.4deg); }
  50%      { transform: translateY(-16px) rotate(2.4deg); }
}
.hero__boa__drag {
  position: relative;
  will-change: transform;
}
.hero__boa__label {
  position: absolute;
  left: 50%; top: 70%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 49%;
  height: 2.6em;
  overflow: hidden;
  text-align: center;
  font-family: var(--font-mono);
  font-size: clamp(7px, .62vw, 10px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 1px 6px rgba(11, 8, 6, .9);
}
.hero__boa img { display: block; width: 100%; height: auto; }
.hero__boa__word {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: transform .46s cubic-bezier(.16, 1, .3, 1), opacity .46s cubic-bezier(.16, 1, .3, 1);
}
.hero__boa__label.out .hero__boa__word { transform: translateY(-115%); opacity: 0; }
.hero__boa__label.in  .hero__boa__word { transform: translateY(115%); opacity: 0; }

@media (max-width: 900px) {
  .hero__boa { width: 156px; right: -30px; top: 6%; }
}
/* movimento spento (?motion=0): la boa smette di dondolare */
.hero__boa.no-motion .hero__boa__float { animation: none; }

/* --- la riga sottile con la nota legale, sotto la barra di stato -------- */
.hero__legal {
  margin: 30px auto 0;
  padding-top: 15px;
  max-width: min(780px, 100%);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.75;
  letter-spacing: .05em;
  text-align: center;
  color: var(--ink-faint);
  opacity: .6;
}
/* --- righe che scorrono quando lo schermo e' stretto --------------------- */
.marquee {
  overflow: hidden;
  width: 100%;
  justify-content: center;
}
.marquee.is-scrolling { justify-content: flex-start; }
.marquee__track {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: max-content;
  padding-right: 12px;
}
.marquee__track .hud { white-space: nowrap; }
.marquee.is-scrolling .marquee__track {
  animation: mqscroll var(--mq-dur, 20s) linear infinite;
}
@keyframes mqscroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(-100%); }
}
/* movimento spento (?motion=0): la riga non scorre, il testo va a capo */
.marquee.no-motion { overflow: visible; }
.marquee.no-motion .marquee__track { flex-wrap: wrap; width: auto; animation: none; }