/* Never Offline — v4 "Il segnale vivo"
   Nero profondo, una scena WebGL fissa dietro al contenuto, tipografia variabile (Anybody: larghezza 50–150). */

:root {
  --bg: #050506;
  --fg: #edebe6;
  --dim: #8b8993;
  --violet: #7b5cff;
  --lime: #d4ff3a;
  --coral: #ff5a3c;
  --line: rgba(237, 235, 230, .14);
  --f-display: 'Anybody', 'Arial Black', sans-serif;
  --f-text: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --pad: clamp(16px, 2.4vw, 40px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 clamp(15px, 1.05vw, 18px)/1.5 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--bg); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--lime); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 12px; }

/* scena e grana */
.gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .09; animation: grain 1s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }
main, .foot { position: relative; z-index: 1; }

.kicker { margin: 0 0 22px; font: 400 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.title { margin: 0; font: 800 clamp(2.6rem, 8vw, 9rem)/.86 var(--f-display); font-stretch: 62%; letter-spacing: -.02em; text-transform: uppercase; }
[data-split] .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
[data-split] .ln > span { display: block; }
[data-flex] { display: inline-block; white-space: nowrap; }
[data-flex] .fx { display: inline-block; font-variation-settings: 'wdth' var(--w, 100), 'wght' var(--g, 800); will-change: font-variation-settings; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 9px; box-shadow: 0 0 12px var(--lime); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ░ ACCENSIONE ░ */
.boot { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; grid-template-rows: 1fr auto auto; padding: var(--pad); }
html:not(.js) .boot { display: none; }
.boot__line { align-self: center; justify-self: center; margin: 0; font: 400 .9rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.boot__dots::after { content: '…'; animation: blink 1s infinite; }
.boot__num { margin: 0; font: 900 clamp(7rem, 30vw, 34rem)/.78 var(--f-display); font-stretch: 150%; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.boot__foot { display: flex; justify-content: space-between; margin: 20px 0 0; font: 400 .78rem/1 var(--f-mono); color: var(--dim); text-transform: uppercase; }

/* ░ HEADER ░ */
.head { position: fixed; inset: 0 0 auto; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px var(--pad); mix-blend-mode: difference; }
.head__logo { display: flex; align-items: center; gap: 12px; justify-self: start; }
.head__mark { font: 900 1.25rem/1 var(--f-display); font-stretch: 120%; letter-spacing: -.02em; }
.head__mark i { font-style: normal; color: var(--lime); }
.head__name { font: 400 .85rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.head__chapter { margin: 0; font: 400 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.head__sep { opacity: .4; margin: 0 6px; }
#chapName { margin-left: 10px; color: var(--lime); }
.head__right { justify-self: end; display: flex; align-items: center; gap: 22px; font: 400 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.head__sound { display: flex; align-items: center; gap: 8px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.bars i { width: 2px; height: 3px; background: currentColor; }
.is-sound .bars i { animation: eq .8s ease-in-out infinite alternate; }
.is-sound .bars i:nth-child(2) { animation-delay: -.25s; } .is-sound .bars i:nth-child(3) { animation-delay: -.5s; }
@keyframes eq { to { height: 11px; } }
.head__menu span { display: inline-block; padding: 9px 16px; border: 1px solid currentColor; border-radius: 99px; }

/* ░ MENU ░ */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--lime); color: var(--bg); display: grid; align-content: center; padding: 90px var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.menu[hidden] { display: grid; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: block; font: 900 clamp(2.6rem, 9.4vh, 8rem)/.92 var(--f-display); font-stretch: 60%; text-transform: uppercase; letter-spacing: -.02em;
  transition: font-stretch .6s var(--ease-out), padding .6s var(--ease-out); }
.menu__list a:hover { font-stretch: 150%; padding-left: 1vw; }
.menu__list sup { font: 500 .8rem/1 var(--f-mono); vertical-align: top; margin-right: 1vw; letter-spacing: 0; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 6vh; font: 500 .85rem/1 var(--f-mono); text-transform: uppercase; }

/* ░ 00 HERO ░ */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: calc(80px + 3vh) var(--pad) var(--pad); }
.hero__title { margin: 0; align-self: center; font: 900 clamp(3.8rem, 17vw, 24rem)/.8 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; mix-blend-mode: difference; }
.hero__row { display: block; }
.hero__row--r { text-align: right; }
.hero__row .fx { transform-origin: 50% 100%; }
.hero__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hero__tag { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.hero__tag em { font-style: normal; color: var(--lime); }
.hero__hint { margin: 0; display: grid; justify-items: center; gap: 12px; font: 400 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.hero__hint-line { width: 1px; height: 54px; background: linear-gradient(var(--fg), transparent); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__live { margin: 0; justify-self: end; font: 400 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }

/* ░ 01 MANIFESTO ░ */
.manifesto { height: 420vh; }
.manifesto__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(80px + 2vh) var(--pad) var(--pad); }
.manifesto__stage { position: relative; display: grid; place-items: end center; padding-bottom: 4vh; }
.mline { grid-area: 1 / 1; margin: 0; text-align: center; max-width: 16ch; font: 800 clamp(2.4rem, 7.2vw, 8.4rem)/.9 var(--f-display); font-stretch: 70%;
  text-transform: uppercase; letter-spacing: -.02em; opacity: 0; filter: blur(14px); transform: scale(1.08); }
.mline--big { font-size: clamp(2.8rem, 9.4vw, 11rem); font-stretch: 112%; color: var(--lime); max-width: none; white-space: nowrap; }
.manifesto__foot { margin: 0; max-width: min(44ch, 100%); justify-self: end; color: var(--dim); font-size: 1.05rem; }

/* ░ 02 SERVIZI ░ */
.services { padding: 22vh var(--pad) 18vh; }
.services__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5vw; align-items: start; }
.services__intro { position: sticky; top: 16vh; }
.services__lead { margin: 4vh 0 0; max-width: 32ch; color: var(--dim); }
.freq { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.freq li { border-bottom: 1px solid var(--line); }
.freq button { width: 100%; display: grid; grid-template-columns: 4ch 1fr auto; align-items: baseline; gap: 14px; text-align: left; padding: clamp(16px, 2.2vw, 28px) 0;
  transition: color .4s, padding .6s var(--ease-out); }
.freq__n, .freq__hz { font: 400 .8rem/1 var(--f-mono); color: var(--dim); }
.freq__hz::after { content: ' MHz'; }
.freq__t { font: 800 clamp(1.5rem, 3.2vw, 3.6rem)/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em;
  transition: font-stretch .6s var(--ease-out), color .3s; }
.freq button:hover .freq__t, .freq button[aria-expanded="true"] .freq__t, .freq li.is-hot .freq__t { font-stretch: 125%; color: var(--lime); }
.freq button:hover, .freq li.is-hot button { padding-left: 12px; }
.freq__d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.freq li.is-open .freq__d { grid-template-rows: 1fr; }
.freq__d p { overflow: hidden; margin: 0; padding-left: calc(4ch + 14px); max-width: 52ch; color: var(--dim); font-size: 1.05rem; }
.freq li.is-open .freq__d p { padding-bottom: 26px; }

/* ░ 03 METODO ░ */
.method { height: 400vh; }
.method__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; padding: calc(80px + 2vh) var(--pad) var(--pad); column-gap: 4vw; }
.method__pin .kicker { grid-column: 1 / -1; }
.method__count { align-self: center; font: 900 clamp(8rem, 30vw, 34rem)/.75 var(--f-display); font-stretch: 150%; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; align-self: center; }
.method__steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .9s var(--ease-out); pointer-events: none; }
.method__steps li.is-on { opacity: 1; transform: none; pointer-events: auto; }
.method__steps h3 { margin: 0 0 18px; font: 800 clamp(2.6rem, 6vw, 7rem)/.9 var(--f-display); font-stretch: 80%; text-transform: uppercase; color: var(--lime); }
.method__steps p { margin: 0; max-width: 36ch; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.35; }
.method__bar { grid-column: 1 / -1; height: 2px; background: var(--line); }
.method__bar i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* ░ 04 LAVORI ░ */
.work { padding: 20vh 0 14vh; }
.work__head { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 0 var(--pad); margin-bottom: 6vh; }
.work__head .kicker { grid-column: 1 / -1; }
.work__hint, .work__note { margin: 0; font: 400 .8rem/1 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.work__note { padding: 4vh var(--pad) 0; }
.ring { height: min(78vh, 760px); perspective: 1400px; overflow: hidden; cursor: grab; touch-action: pan-y; outline-offset: -4px; }
.ring.is-drag { cursor: grabbing; }
.ring__track { list-style: none; margin: 0; padding: 0; position: relative; height: 100%; transform-style: preserve-3d; }
.card { position: absolute; left: 50%; top: 50%; width: clamp(240px, 26vw, 420px); aspect-ratio: 4 / 5; margin: 0; border-radius: 18px; overflow: hidden;
  transform-style: preserve-3d; backface-visibility: hidden; background: #111; box-shadow: 0 40px 90px rgba(0,0,0,.6); user-select: none; }
.card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transform: scale(1.12); }
.card__meta { position: absolute; inset: auto 0 0; padding: 22px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.card__meta h3 { margin: 0; font: 800 clamp(1.8rem, 2.6vw, 2.8rem)/.9 var(--f-display); font-stretch: 80%; text-transform: uppercase; }
.card__meta p { margin: 8px 0 0; font: 400 .78rem/1.3 var(--f-mono); text-transform: uppercase; color: #cfcdd6; }
.card--you .card__meta a { color: var(--lime); }

/* ░ 05 CLIENTI ░ */
.clients { min-height: 100svh; padding: 18vh var(--pad); display: grid; align-content: center; }
.logos { list-style: none; margin: 10vh auto 0; padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5vh 6vw;
  max-width: 1100px; border: 1px solid var(--line); border-radius: 26px; background: rgba(5, 5, 6, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.logos img { height: clamp(28px, 3.6vw, 56px); width: auto; opacity: .72; transition: opacity .4s, transform .6s var(--ease-out), filter .4s; filter: grayscale(1); }
.logos li:hover img { opacity: 1; transform: scale(1.12); filter: none; }

/* ░ 06 CONTATTI ░ */
.contact { min-height: 100svh; padding: 20vh var(--pad) 12vh; }
.contact__title { margin: 0; font: 900 clamp(3.6rem, 15.5vw, 22rem)/.8 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; white-space: nowrap; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5vw; margin-top: 8vh; }
.contact__direct p { margin: 0 0 18px; max-width: 32ch; color: var(--dim); }
.contact__mail { font: 700 clamp(1.3rem, 2.4vw, 2.4rem)/1.1 var(--f-display); font-stretch: 90%; color: var(--fg) !important; }
.contact__mail a { background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
.contact__mail a:hover { background-size: 100% 2px; }
.copy { font: 400 .72rem/1 var(--f-mono); text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; vertical-align: middle; margin-left: 8px; color: var(--dim); }
.copy:hover, .copy.is-done { border-color: var(--lime); color: var(--lime); }
.form { display: grid; gap: 28px; padding: clamp(22px, 3vw, 44px); border: 1px solid var(--line); border-radius: 26px;
  background: rgba(5, 5, 6, .66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.field { display: grid; gap: 8px; }
.field span { font: 400 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.field input, .field textarea { font: 400 clamp(1.2rem, 1.8vw, 1.7rem)/1.3 var(--f-text); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 6px 0 12px; border-radius: 0; resize: vertical; caret-color: var(--lime); transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--lime); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.send { display: inline-flex; align-items: center; gap: 16px; padding: 20px 30px; border-radius: 99px; background: var(--lime); color: var(--bg);
  font: 800 1.05rem/1 var(--f-display); font-stretch: 110%; text-transform: uppercase; transition: font-stretch .5s var(--ease-out), background .3s; }
.send:hover { font-stretch: 150%; background: var(--fg); }
.send i { font-style: normal; }
.form__status { margin: 0; font: 400 .85rem/1.4 var(--f-mono); color: var(--lime); }

/* ░ FOOTER ░ */
.foot { padding: 6vh var(--pad) 22px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__word { margin: 0 0 4vh; font: 900 13vw/.8 var(--f-display); text-transform: uppercase; letter-spacing: -.03em; white-space: nowrap; text-align: center; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font: 400 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.foot__row a:hover { color: var(--lime); }

/* ░ CURSORE ░ */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border: 1px solid #fff; border-radius: 50%; transition: transform .5s var(--ease-out), background .3s; }
.cursor.is-big i { transform: scale(2.6); background: #fff; }
.cursor span { position: absolute; left: 22px; top: 14px; font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; white-space: nowrap; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ░ RESPONSIVE ░ */
@media (max-width: 900px) {
  .head { grid-template-columns: 1fr auto; }
  .head__chapter, .head__name, .head__sound span:last-child { display: none; }
  .hero__foot { grid-template-columns: 1fr; justify-items: start; }
  .hero__hint { display: none; }
  .hero__live { justify-self: start; }
  .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .method__pin { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; }
  .method__count { font-size: 36vw; }
  .method__steps { align-self: start; }
  .contact__title { font-size: 17vw; }
  .hero__title { font-size: 17vw; }
  .foot__word { font-size: 11.2vw; }
  .mline--big { white-space: normal; font-size: 16vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mline { opacity: 1; filter: none; transform: none; position: static; }
  .manifesto, .method { height: auto; }
  .manifesto__pin, .method__pin { position: static; height: auto; }
  .manifesto__stage { display: grid; gap: 4vh; }
  .mline { grid-area: auto; }
  .method__steps li { grid-area: auto; opacity: 1; transform: none; margin-bottom: 5vh; }
}
