/* ============================================================================
   SRH — Manifesto cinematografico in parallasse (v2).
   Base: un "terreno" di punti ondulati a tutto schermo (manifesto.js).
   Per ogni frase: una SCENA grafica full-bleed che sfuma in/out con lo scroll.
   Frasi corte, larghe, centrate. Si appoggia ai token di styles.css.
   ============================================================================ */

.m-field { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.m-veil {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, transparent 38%, rgba(2,4,10,0.72) 100%);
}

.m-section-label {
  position: fixed; top: 92px; right: 40px; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-faint); opacity: 0; transition: opacity .6s ease;
}
.m-section-label.on { opacity: 1; }
.m-section-label .ln { width: 60px; height: 1px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 760px) { .m-section-label { display: none; } }

.m-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }

.m-main { position: relative; z-index: 1; }

/* pannello a tutta altezza */
.m-panel {
  min-height: 100vh; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 6vw; position: relative;
}

/* SCENA grafica full-bleed: fissata al viewport, opacità guidata da JS */
.m-scene {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  display: grid; place-items: center; opacity: 0; will-change: opacity, transform;
}
.m-scene svg { width: min(120vw, 1500px); height: auto; overflow: visible;
  filter: drop-shadow(0 0 6px rgba(61,240,230,.45)) drop-shadow(0 0 2px rgba(120,160,220,.4)); }

/* frase: CORTA e LARGA, centrata */
.m-phrase { max-width: min(940px, 88vw); text-align: center; position: relative; z-index: 3; }
.m-kick {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
  opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease;
}
.m-phrase h2 {
  font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em;
  font-size: clamp(36px, 6.2vw, 88px); color: var(--ink); margin: 0;
  text-shadow: 0 2px 40px rgba(2,4,10,0.6);
}
.m-phrase h2 .em { font-style: italic; color: transparent;
  background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
.m-phrase .sub {
  margin: 26px auto 0; font-family: var(--sans); font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.6; color: var(--ink-dim); max-width: 46ch;
}
.m-phrase h2, .m-phrase .sub { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.m-panel.in .m-kick,
.m-panel.in .m-phrase h2,
.m-panel.in .m-phrase .sub { opacity: 1; transform: none; }
.m-panel.in .m-phrase .sub { transition-delay: .12s; }

/* le 4 fasce del metodo che si compongono in sequenza */
.m-levels { width: min(860px, 90vw); display: grid; gap: 10px; position: relative; z-index: 3; margin-top: 40px; }
.m-levels .lvl {
  display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: baseline; text-align: left;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 20px;
  background: linear-gradient(180deg, rgba(10,18,40,0.5), rgba(7,11,22,0.36));
  opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease;
}
.m-panel.in .m-levels .lvl { opacity: 1; transform: none; }
.m-panel.in .m-levels .lvl:nth-child(1) { transition-delay: .05s; }
.m-panel.in .m-levels .lvl:nth-child(2) { transition-delay: .16s; }
.m-panel.in .m-levels .lvl:nth-child(3) { transition-delay: .27s; }
.m-panel.in .m-levels .lvl:nth-child(4) { transition-delay: .38s; }
.m-levels .lvl .lk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.m-levels .lvl .lt { font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink); }
.m-levels .lvl .lt span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
@media (max-width: 620px) { .m-levels .lvl { grid-template-columns: 1fr; gap: 4px; } }

/* CTA finale */
.m-cta { text-align: center; position: relative; z-index: 3; }
.m-cta .acts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.m-btn-primary, .m-btn-ghost {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 15px 28px; cursor: pointer; text-decoration: none; transition: all .28s ease; border: 1px solid transparent;
}
.m-btn-primary { background: var(--accent); color: #05202a; font-weight: 600; }
.m-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -16px var(--accent); }
.m-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.m-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.scrollcue2 { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scrollcue2 .ln { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); }

@media (prefers-reduced-motion: reduce) {
  .m-kick, .m-phrase h2, .m-phrase .sub, .m-levels .lvl, .m-scene { transition: none !important; }
}
