/* NEXHYRA — landing «sito in via di definizione» */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #05070d;
  --navy: #070d1f;
  --navy-2: #131c3d;
  --blue: #2a5fc4;
  --cyan: #22d3f0;
  --electric: #35e3ff;
  --paper: #ffffff;
  --mist: #f2f5fa;
  --ink: #131c3d;
  --muted: #56617e;
  --line: #dde3ee;
  --on-dark: #e9eefb;
  --on-dark-muted: #a9b4cf;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
abbr { text-decoration: none; border-bottom: 1px dotted currentColor; }

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

.accent { color: var(--cyan); }
.thin { font-weight: 400; }

/* ---------- Tipografia ---------- */

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.kicker {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.3rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker span {
  color: var(--cyan);
  font-weight: 700;
  padding-right: .9rem;
  border-right: 1px solid currentColor;
  line-height: 1;
}
.kicker--dark { color: var(--on-dark-muted); }

.h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-transform: uppercase;
}

.bar {
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.8rem 0;
  background: linear-gradient(90deg, var(--cyan), var(--electric));
  box-shadow: 0 0 18px rgba(53, 227, 255, .6);
}

/* titoli parola per parola */
html.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
html.js [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 50ms);
}
html.js [data-split].is-in .w > span { transform: none; }

/* ---------- Pulsanti ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.6rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  overflow: hidden;
  transition: background .3s, color .3s, box-shadow .3s, border-color .3s, transform .3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; }
.btn--primary { color: var(--black); background: var(--electric); }
.btn--primary::after { /* lampo che attraversa il pulsante */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.btn--primary:hover { box-shadow: 0 8px 32px rgba(53, 227, 255, .45); }
.btn--ghost { color: var(--on-dark); border: 1px solid rgba(233, 238, 251, .45); }
.btn--ghost:hover { border-color: var(--electric); color: var(--electric); }
.btn--lg { font-size: clamp(.9rem, 2.4vw, 1.05rem); letter-spacing: .08em; text-transform: none; padding: 1.1rem 2.2rem; }

/* ---------- Barra di avanzamento e header ---------- */

.scroll-bar { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.scroll-bar span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--electric));
  box-shadow: 0 0 10px rgba(53, 227, 255, .7);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s;
}
.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(5, 7, 13, .78);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.site-header__logo img { width: clamp(118px, 13vw, 150px); height: auto; }
.site-header__logo img, .site-header__cta { transition: opacity .6s ease, transform .6s var(--ease-out), color .3s, border-color .3s; }
html.stage-js:not(.is-alive) .site-header__logo img { opacity: 0; transform: translateY(-6px); }
.site-header__cta {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  padding: .6rem 0;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.site-header__cta:hover { color: var(--electric); border-color: var(--electric); }

/* ---------- Apertura: marchio → esplosione → line art → foto ---------- */

.stage { position: relative; height: 100vh; height: 100svh; background: #000; }
html.stage-live .stage { height: 360vh; }
.stage__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  background: #000;
}
.stage__photo { position: absolute; inset: 0; }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 60% 55%; }
.stage__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, .82) 0%, rgba(5, 7, 13, .45) 40%, rgba(5, 7, 13, 0) 70%),
    linear-gradient(0deg, rgba(5, 7, 13, .9) 0%, rgba(5, 7, 13, 0) 45%);
}
/* prima che il JS prenda il controllo la foto non si vede: la disegnano le particelle */
html.stage-js .stage__photo, html.stage-js .stage__shade { opacity: 0; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.stage__logo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(560px, 82vw);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
html.stage-static .stage__logo { display: none; }
/* il foro dove il cursore scompone il marchio */
html.stage-live .stage__logo {
  --mx: -999px; --my: -999px; --mr: 0px;
  -webkit-mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 45%, #000 100%);
          mask-image: radial-gradient(circle var(--mr) at var(--mx) var(--my), transparent 45%, #000 100%);
}
.nx-logo { display: block; width: 100%; height: auto; overflow: visible; }

.stage__hint {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  opacity: 0;
  pointer-events: none;
}
.stage__hint i { position: relative; width: 1px; height: 46px; background: rgba(233, 238, 251, .18); overflow: hidden; }
.stage__hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--electric);
  box-shadow: 0 0 8px var(--electric);
  animation: drip 2.2s var(--ease-in-out) infinite;
}
@keyframes drip { to { top: 110%; } }
html.stage-static .stage__hint { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: clamp(72px, 12vh, 128px);
}
.hero__title {
  max-width: 13em;
  margin: 0;
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(5, 7, 13, .35);
}
.hero__lead { max-width: 34em; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--on-dark); opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* il testo entra quando la foto ha preso vita, ed esce se si torna indietro */
html.stage-js .hero__content > * { opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .6s var(--ease-out); }
html.stage-js .hero__content { pointer-events: none; }
html.is-alive .hero__content { pointer-events: auto; }
html.is-alive .hero__content > * { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.2s var(--ease-out); }
html.is-alive .hero__content > :nth-child(2) { transition-delay: .1s; }
html.is-alive .hero__content > :nth-child(3) { transition-delay: .25s; }
html.is-alive .hero__content > :nth-child(4) { transition-delay: .3s; }
html.is-alive .hero__content > :nth-child(5) { transition-delay: .42s; }

/* ---------- Sezioni ---------- */

.section { padding: clamp(84px, 12vw, 150px) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--light p { color: var(--muted); }
.section--light strong { color: var(--ink); }
.section--navy {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(42, 95, 196, .35), transparent 55%),
    var(--navy-2);
  color: var(--on-dark);
}
.section--navy p { color: var(--on-dark-muted); }
.section--navy strong { color: var(--electric); font-weight: 600; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.1fr 1fr; }
  .grid-2--impact { align-items: end; }
}

/* Il significato del nome */
.name {
  padding: clamp(28px, 4vw, 44px);
  background: var(--mist);
  border-left: 3px solid var(--cyan);
}
.name__title {
  margin: 0 0 .4rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.name__intro { font-size: .95rem; margin-bottom: 1.6rem; }
.name__list { list-style: none; margin: 0; padding: 0; }
.name__row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.name__row strong { display: block; font-size: 1.05rem; }
.name__row span { display: block; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.syl { width: 100%; height: 30px; color: var(--ink); }
.syl { opacity: .15; transform: translateX(-14px); transition: opacity .8s ease, transform 1s var(--ease-out), filter .7s; }
.name.is-in .syl { opacity: 1; transform: none; transition-delay: calc(var(--d) * 200ms + 250ms); }
.name__row:hover .syl { filter: drop-shadow(0 0 8px rgba(34, 211, 240, .55)); }

.question {
  margin: 1.4rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--cyan);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--on-dark) !important;
}

/* ---------- 02 Facciata in 3D ---------- */

.facade { position: relative; background: radial-gradient(ellipse at 75% 50%, #0d1a3f 0%, var(--navy) 60%); color: var(--on-dark); }
.facade p { color: var(--on-dark-muted); }
.facade strong { color: var(--on-dark); font-weight: 600; }
.facade__sticky { padding: clamp(84px, 12vw, 130px) 0; }
.facade__grid { display: grid; gap: 40px; align-items: center; }

.facade__steps { list-style: none; margin: 1.8rem 0 0; padding: 0; counter-reset: s; }
.facade__steps li {
  counter-increment: s;
  position: relative;
  padding: 12px 0 12px 52px;
  border-top: 1px solid rgba(169, 180, 207, .14);
  opacity: .32;
  transition: opacity .6s ease;
}
.facade__steps li::before {
  content: "0" counter(s);
  position: absolute;
  left: 0;
  top: 13px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--electric);
}
.facade__steps li::after { /* barra che si accende sul passo corrente */
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--electric), transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .9s var(--ease-out);
}
.facade__steps li.is-on { opacity: 1; }
.facade__steps li.is-now::after { transform: scaleX(1); }
.facade__steps strong { display: block; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; transition: color .4s; }
.facade__steps li.is-now strong { color: var(--electric); }
.facade__steps span { display: block; font-size: .9rem; line-height: 1.5; color: var(--on-dark-muted); }
.facade__steps em { font-style: normal; color: var(--electric); }

.facade__stage {
  --p: 0;
  position: relative;
  height: min(64vh, 560px);
  min-height: 360px;
  perspective: 1500px;
  perspective-origin: 50% 40%;
}
.facade__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(10deg + var(--p) * 4deg)) rotateY(calc(-24deg - var(--p) * 20deg));
}
.layer {
  --v: clamp(0, calc((var(--p) - var(--a)) * 5), 1);
  --t: 14px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(230px, 46%);
  aspect-ratio: 5 / 8;
  transform-style: preserve-3d;
  transform:
    translate(-50%, -50%)
    translate3d(0, calc((1 - var(--v)) * -90px), calc((var(--i) - 1.5) * (14px + var(--p) * 120px)));
  opacity: var(--v);
}
.layer i { /* spessore: faccia laterale */
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--t);
  height: 100%;
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  filter: brightness(.55);
  background: inherit;
}
.layer--wall {
  --i: 0; --a: -1; --t: 26px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(160deg, #5a616d, #363b45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.layer--insul {
  --i: 1; --a: .18; --t: 18px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .13) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #c2bba6, #8f887a);
}
.layer--rails {
  --i: 2; --a: .43; --t: 6px;
  background:
    linear-gradient(90deg, transparent 8%, #a9b4c6 8% 12%, transparent 12% 46%, #a9b4c6 46% 50%, transparent 50% 84%, #a9b4c6 84% 88%, transparent 88%),
    repeating-linear-gradient(0deg, transparent 0 23%, rgba(169, 180, 198, .7) 23% 24.5%, transparent 24.5% 25%);
}
.layer--rails i { background: #7d8798; }
.air { position: absolute; inset: 0; overflow: hidden; }
.air em {
  position: absolute;
  bottom: -10%;
  width: 2px;
  height: 18%;
  border-radius: 2px;
  background: linear-gradient(0deg, transparent, rgba(160, 230, 255, .85));
  animation: air 2.4s linear infinite;
}
.air em:nth-child(1) { left: 22%; animation-delay: 0s; }
.air em:nth-child(2) { left: 36%; animation-delay: -.8s; }
.air em:nth-child(3) { left: 60%; animation-delay: -1.6s; }
.air em:nth-child(4) { left: 72%; animation-delay: -.4s; }
.air em:nth-child(5) { left: 28%; animation-delay: -1.2s; }
.air em:nth-child(6) { left: 66%; animation-delay: -2s; }
@keyframes air { from { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-640%); opacity: 0; } }
.layer--pv {
  --i: 3; --a: .68; --t: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .2) 0%, transparent 35%, transparent 70%, rgba(255, 255, 255, .06) 100%),
    repeating-linear-gradient(0deg, rgba(130, 175, 255, .35) 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(90deg, rgba(130, 175, 255, .35) 0 1px, transparent 1px 33.333%),
    linear-gradient(180deg, #0f2257, #081538);
  outline: 3px solid #26304a;
  box-shadow: 0 0 calc(var(--v) * 46px) rgba(53, 227, 255, calc(var(--v) * .5));
}
.layer--pv i { background: #26304a; filter: none; }
.pulse { position: absolute; inset: 0; overflow: hidden; }
.pulse::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(53, 227, 255, .45), transparent);
  animation: sweep 2.8s var(--ease-in-out) infinite;
}
@keyframes sweep { from { top: -40%; } to { top: 100%; } }

/* energia che lascia il pannello */
.facade__energy {
  --v: clamp(0, calc((var(--p) - .78) * 6), 1);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  opacity: var(--v);
}
.facade__energy em {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dffbff;
  box-shadow: 0 0 12px 3px var(--electric), 0 0 30px 6px rgba(42, 95, 196, .6);
  offset-path: path("M 40 60 C 120 0, 140 -120, 260 -200");
  animation: energy 2.6s var(--ease-in-out) infinite;
}
.facade__energy em:nth-child(2) { animation-delay: -.5s; offset-path: path("M 40 -20 C 150 -40, 180 -60, 300 -40"); }
.facade__energy em:nth-child(3) { animation-delay: -1s; offset-path: path("M 30 120 C 140 140, 200 60, 310 90"); }
.facade__energy em:nth-child(4) { animation-delay: -1.5s; offset-path: path("M 20 -100 C 80 -180, 160 -220, 220 -300"); }
.facade__energy em:nth-child(5) { animation-delay: -2.1s; offset-path: path("M 40 20 C 120 20, 200 -120, 320 -150"); }
@keyframes energy { from { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }

@media (min-width: 900px) {
  .facade { height: 300vh; }
  .facade__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 70px 0 0; overflow: hidden; }
  .facade__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .facade__text .h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
}
@media (max-width: 899px) {
  .facade { overflow: hidden; } /* i livelli in 3D non devono allargare la pagina */
  .facade__stage { order: -1; height: 380px; min-height: 0; }
  .layer { width: min(170px, 44%); }
  .facade__grid > .facade__text { order: 1; }
}

/* ---------- 03 Soluzioni ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cards::before { /* l'energia passa di scheda in scheda */
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--electric), transparent) no-repeat;
  background-size: 28% 100%;
  animation: flow 3.4s linear infinite;
}
@keyframes flow { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative;
  padding: 34px 28px 30px;
  background: var(--paper);
  transition: background .4s;
}
.card:hover { background: var(--mist); }
.card__n { position: absolute; top: 30px; right: 26px; font-size: .74rem; font-weight: 700; color: var(--cyan); letter-spacing: .1em; }
.card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .4s;
}
html.js .card__icon path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .cards.is-in .card__icon path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-in-out); transition-delay: calc(var(--d) * 160ms + 300ms); }
.card:hover .card__icon { stroke: var(--cyan); }
.card h3 { margin: 0 0 .7rem; font-size: .95rem; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; }
.card p { margin: 0; font-size: .92rem; line-height: 1.6; }
html.js .cards .card { opacity: 0; transform: translateY(30px); }
html.js .cards.is-in .card { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.1s var(--ease-out), background .4s; transition-delay: calc(var(--d) * 120ms); }
html.js .cards.reveal { opacity: 1; transform: none; }

/* ---------- Chiusura ---------- */

.closing {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
  color: var(--on-dark);
  background: radial-gradient(ellipse at 50% 30%, #0a1430 0%, #000 65%);
  overflow: hidden;
}
.closing__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing__inner { position: relative; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.closing__inner a { pointer-events: auto; }
.closing__mark {
  width: clamp(130px, 18vw, 180px);
  aspect-ratio: 167 / 130;
  margin-bottom: 2.6rem;
  background: url("assets/mark.svg") center / contain no-repeat;
}
html.mark-live .closing__mark { background: none; }
.closing__title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}
.closing__lead { max-width: 30em; color: var(--on-dark-muted); margin-bottom: 2.4rem; }
.progress {
  width: min(280px, 70%);
  height: 2px;
  margin-top: 3.2rem;
  background: rgba(233, 238, 251, .12);
  overflow: hidden;
}
.progress span {
  display: block;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
  animation: loading 2.6s var(--ease-in-out) infinite;
}
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(290%); } }

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0;
  font-size: .8rem;
  color: var(--on-dark-muted);
  background: #000;
  border-top: 1px solid rgba(233, 238, 251, .08);
}
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--on-dark); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--electric); }

/* ---------- Reveal allo scroll ---------- */

html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal, .syl, html.js .cards .card { opacity: 1; transform: none; }
  html.js [data-split] .w > span { transform: none; }
  html.js .card__icon path { stroke-dashoffset: 0; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .stage__shade {
    background: linear-gradient(0deg, rgba(5, 7, 13, .95) 0%, rgba(5, 7, 13, .65) 50%, rgba(5, 7, 13, .15) 100%);
  }
  .name__row { grid-template-columns: 88px 1fr; gap: 16px; }
  .syl { height: 24px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; flex: 1 1 140px; }
}
@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 0; padding-left: 1rem; padding-right: 1rem; letter-spacing: .1em; white-space: nowrap; }
}

/* schermi bassi (portatili): la sezione fissa deve stare tutta in vista */
@media (min-width: 900px) and (max-height: 820px) {
  .facade__sticky { padding-top: 64px; }
  .facade__text .h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
  .facade__text p { font-size: .92rem; margin-bottom: .7em; }
  .facade .question { margin: .8rem 0; font-size: 1rem; }
  .facade__steps { margin-top: .8rem; }
  .facade__steps li { padding-top: 7px; padding-bottom: 7px; }
  .facade__steps li::before { top: 8px; }
  .facade__steps span { font-size: .84rem; }
}
