/* ============================================
   VIBE STRATEGY — design system
   Categoria: agency + tech accents
   Palette: dark + lime electric (thick-layer energy)
   ============================================ */

:root {
  /* Palette */
  --ink:        #0A0A0A;
  --surface:    #131316;
  --paper:      #1A1A1F;
  --paper-soft: #232328;
  --accent:     #D4FF3A;   /* lime electric — thick layer */
  --accent-2:   #6366F1;   /* indigo trust */
  --accent-3:   #FAFAF8;   /* off-white */
  --text:       #F5F5F0;
  --text-mute:  #8B8B85;
  --text-dim:   #5E5E58;
  --line:       rgba(245,245,240,0.10);
  --line-soft:  rgba(245,245,240,0.05);
  --ok:         #22C55E;
  --err:        #EF4444;

  /* Type scale */
  --font-display: "Geist", "Inter Tight", system-ui, sans-serif;
  --font-text:    "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(56px, 6vw, 96px);
  --container: 1200px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snap: cubic-bezier(0.7, 0, 0.3, 1);
  --dur: 0.7s;
  --dur-fast: 0.35s;
}

/* ============================================
   RESET
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  font-family: var(--font-text);
  font-size: clamp(15px, 0.6vw + 11px, 17px);
  line-height: 1.55;
  color: var(--text);
  background: var(--ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
em { font-style: italic; color: var(--accent); }

::selection { background: var(--accent); color: var(--ink); }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 9000;
  background: transparent; pointer-events: none;
}
.scroll-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.05s linear;
}

/* ============================================
   LOADER (intro + page-transition)
   ============================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: none; place-items: center;   /* nascosto di default: niente flash */
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  overflow: hidden;
}
/* mostrato SOLO alla prima visita della home (classe da script inline) */
.show-intro .loader { display: grid; }
.loader.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
/* glow di sfondo che cresce col progresso */
.loader::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 60vmax; height: 60vmax; transform: translate(-50%, -50%) scale(var(--lp, 0));
  background: radial-gradient(circle, rgba(212,255,58,0.10), transparent 60%);
  transition: transform 0.3s var(--ease); pointer-events: none;
}

.loader__inner {
  position: relative; z-index: 1;
  width: min(420px, 84vw);
  display: flex; flex-direction: column; gap: 24px;
}
.loader__brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}
.loader__brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

/* STACK di mattoncini: si impilano uno per uno (thin), poi si fondono (thick) */
.loader__stack {
  display: flex; flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 8px 0;
  transition: gap 0.4s var(--ease), transform 0.4s var(--ease);
}
/* slot vuoto: linea tenue, fa da guida */
.layer {
  height: 5px; width: 100%;
  background: rgba(245,245,240,0.12);
  border-radius: 3px;
  transition: height 0.32s var(--ease), background 0.32s var(--ease),
              box-shadow 0.32s var(--ease), border-radius 0.32s var(--ease);
}
/* mattoncino acceso: sottile e distinto = thin layer */
.layer.on {
  height: 13px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(212,255,58,0.35);
}
/* FUSIONE: il gap si chiude e i mattoncini si ingrossano in un blocco = thick */
.loader__stack.is-fusing { gap: 0; }
.loader__stack.is-fusing .layer.on {
  height: 22px;
  border-radius: 1px;
  box-shadow: 0 0 20px rgba(212,255,58,0.45);
}
.loader__stack.is-complete { transform: scale(1.03); }
.loader__stack.is-complete .layer.on {
  box-shadow: 0 0 34px rgba(212,255,58,0.6);
}

.loader__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em;
}
.loader__phase {
  position: relative; padding-left: 16px;
}
.loader__phase::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.loader__meta .num {
  color: var(--accent); font-weight: 600;
  font-size: 15px; letter-spacing: 0.02em;
}

/* vecchio overlay statico: nascosto, viene rimosso da motion.js */
.page-wipe { display: none !important; }

/* ENTRATA transizione: copertura immediata (prima del paint) → zero flash.
   La classe è aggiunta da uno script inline nell'head se si arriva da un click. */
html.pgt-enter::before {
  content: ""; position: fixed; inset: 0; z-index: 9994;
  background: var(--ink); pointer-events: none;
  transform: translateY(0);
  transition: transform 0.55s var(--ease);
}
html.pgt-enter.pgt-reveal::before { transform: translateY(-101%); }

/* PAGE TRANSITION — overlay "Vibe.[sezione]" con parola cerchiata a mano */
.pgt {
  position: fixed; inset: 0; z-index: 9994;   /* sopra il cursore custom */
  background: var(--ink);
  display: grid; place-items: center;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-snap);
  pointer-events: none;
  will-change: transform;
}
.pgt.in  { transform: translateY(0); }
.pgt.out { transform: translateY(100%); }
.pgt .pgt__brand {
  font-size: clamp(28px, 6.5vw, 116px);
  letter-spacing: -0.05em;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
  align-items: baseline;   /* Vibe + punto + parola cerchiata sulla stessa linea */
}
.pgt__word {
  position: relative; display: inline-block; white-space: nowrap;
  padding: 0.46em 0.66em; margin-left: 0.04em;
}
.pgt__circle {
  position: absolute; inset: 0;
  overflow: visible; pointer-events: none;
}
.pgt__circle path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.pgt.draw .pgt__circle path {
  animation: pgtDraw 0.9s cubic-bezier(0.43, 0.13, 0.23, 0.96) forwards;
}
@keyframes pgtDraw { to { stroke-dashoffset: 0; } }

/* ============================================
   CUSTOM CURSOR (desktop only)
   ============================================ */
.cursor {
  position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9990;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--accent);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  mix-blend-mode: difference;
}
.cursor__dot {
  position: fixed; left: 0; top: 0; pointer-events: none; z-index: 9991;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor.is-hover { width: 56px; height: 56px; background: rgba(212,255,58,0.12); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor__dot { display: none; } }

/* ============================================
   GRAIN OVERLAY
   ============================================ */
.grain {
  position: fixed; inset: 0; z-index: 8000;
  pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 var(--pad-x);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%; max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; }

/* BRANDMARK — logo Vibe.Strategy (Helvetica/Arial bold + quadratino lime) */
.brandmark {
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-weight: 700; letter-spacing: -0.045em;
  font-size: 21px; line-height: 1; color: var(--text);
  display: inline-flex; align-items: flex-end; white-space: nowrap;
}
.brandmark__dot {
  width: 0.24em; height: 0.24em; background: var(--accent);
  display: inline-block; margin: 0 0.09em 0.08em; flex-shrink: 0;
  transform: skewX(-12deg);   /* punto romboidale, inclinato come il logo */
}
.brandmark--lg { font-size: clamp(44px, 8.5vw, 128px); letter-spacing: -0.05em; }
.brandmark--sm { font-size: 18px; }

.nav__menu { display: flex; align-items: center; gap: 8px; }
.nav__link {
  position: relative;
  padding: 10px 14px; border-radius: 999px;
  font-size: 14px; color: var(--text-mute);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--line-soft); }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__cta  { display: none; }   /* sostituito dal CTA dentro il menu full-screen */
}
.nav__cta {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 10px 18px; border-radius: 999px;
  color: var(--ink); font-weight: 600;
  background: linear-gradient(135deg, rgba(212,255,58,0.94), rgba(212,255,58,0.80));
  -webkit-backdrop-filter: blur(7px) saturate(160%);
  backdrop-filter: blur(7px) saturate(160%) url(#liquid-glass);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,0.95),
    inset -1.5px -1.5px 1px -1px rgba(0,0,0,0.2),
    inset 0 0 6px 2px rgba(255,255,255,0.16),
    0 0 0 1px rgba(212,255,58,0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.2s var(--ease);
}
.nav__cta:hover {
  transform: translateY(-1px); filter: brightness(1.08);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,0.95),
    inset -1.5px -1.5px 1px -1px rgba(0,0,0,0.2),
    inset 0 0 6px 2px rgba(255,255,255,0.2),
    0 8px 24px rgba(212,255,58,0.3),
    0 0 0 1px rgba(212,255,58,0.6);
}
.nav__cta:active { transform: translateY(0); filter: brightness(0.94); }

/* ============================================
   MOBILE MENU — burger animato + overlay full-screen
   "stra figa": link editoriali numerati, reveal a cascata,
   mesh gradient lime→indigo, frosted glass. Solo ≤860px.
   ============================================ */
.nav__burger {
  display: none;                 /* attivato nella media query mobile */
  position: relative; z-index: 6001;   /* sopra l'overlay → funge da toggle/chiudi */
  width: 46px; height: 46px; padding: 0; margin-right: -8px;
  border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav__burger i {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.45s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger i:nth-child(1) { top: 18px; }
.nav__burger i:nth-child(2) { bottom: 18px; }
html.nav-open .nav__burger i { background: var(--text); }
html.nav-open .nav__burger i:nth-child(1) { top: 22px; transform: rotate(45deg); }
html.nav-open .nav__burger i:nth-child(2) { bottom: 22px; transform: rotate(-45deg); }

/* blocca lo scroll del body quando il menu è aperto */
html.nav-open, html.nav-open body { overflow: hidden; }
/* nav (logo + burger) sopra l'overlay → il burger resta cliccabile come "chiudi" */
html.nav-open .nav { z-index: 6001; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }

.mobnav {
  position: fixed; inset: 0; z-index: 6000;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) var(--pad-x) 36px;
  background:
    radial-gradient(120% 78% at 82% 2%,  rgba(99,102,241,0.20), transparent 56%),
    radial-gradient(108% 72% at -6% 102%, rgba(212,255,58,0.16), transparent 56%),
    rgba(10,10,10,0.97);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
  opacity: 0; visibility: hidden; pointer-events: none;
  clip-path: circle(0% at calc(100% - 34px) 36px);
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.5s,
              clip-path 0.6s var(--ease);
}
html.nav-open .mobnav {
  opacity: 1; visibility: visible; pointer-events: auto;
  clip-path: circle(150% at calc(100% - 34px) 36px);
  transition: opacity 0.4s var(--ease), clip-path 0.7s var(--ease);
}
.mobnav__kick {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mute);
  margin: 0 0 18px 2px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
html.nav-open .mobnav__kick { opacity: 1; transform: none; transition-delay: 0.06s; }

.mobnav__list { display: flex; flex-direction: column; }
.mobnav__link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.0;
  font-size: clamp(34px, 11.5vw, 58px); color: var(--text);
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.25s var(--ease);
}
html.nav-open .mobnav__link { opacity: 1; transform: none; }
html.nav-open .mobnav__link:nth-child(1) { transition-delay: 0.10s; }
html.nav-open .mobnav__link:nth-child(2) { transition-delay: 0.16s; }
html.nav-open .mobnav__link:nth-child(3) { transition-delay: 0.22s; }
html.nav-open .mobnav__link:nth-child(4) { transition-delay: 0.28s; }
html.nav-open .mobnav__link:nth-child(5) { transition-delay: 0.34s; }
.mobnav__link:active { color: var(--accent); }
.mobnav__link.is-active { color: var(--accent); }
.mobnav__num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--accent);
  align-self: flex-start; margin-top: 0.5em; min-width: 2.2ch;
}
.mobnav__link.is-active .mobnav__num { color: var(--text-mute); }

.mobnav__foot {
  margin-top: 34px; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.nav-open .mobnav__foot { opacity: 1; transform: none; transition-delay: 0.42s; }
.mobnav__cta {
  display: inline-flex; align-items: center; justify-content: center;
  align-self: flex-start; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 15px 26px; border-radius: 999px; color: var(--ink);
  background: linear-gradient(135deg, rgba(212,255,58,0.96), rgba(212,255,58,0.82));
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,0.95),
    inset -1.5px -1.5px 1px -1px rgba(0,0,0,0.2),
    0 8px 26px rgba(212,255,58,0.26),
    0 0 0 1px rgba(212,255,58,0.5);
}
.mobnav__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-mute);
}
.mobnav__meta a { color: var(--text-mute); }
.mobnav__meta a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .mobnav { transition: opacity 0.2s linear, visibility 0s; clip-path: none; }
  html.nav-open .mobnav { clip-path: none; }
  .mobnav__kick, .mobnav__link, .mobnav__foot { transition: opacity 0.2s linear; transform: none; }
}
/* mostra il burger SOLO su mobile — dopo la regola base così vince sull'order */
@media (max-width: 860px) {
  .nav__burger { display: inline-flex; }
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { position: relative; padding: var(--section-y) 0; scroll-margin-top: var(--nav-h); }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.section--hero { padding: calc(var(--nav-h) + 40px) 0 var(--section-y); }

/* Chapter number */
.chap {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute); margin-bottom: 28px;
}
.chap__num {
  color: var(--accent); font-weight: 600;
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 4px 10px;
}
.chap__bar {
  width: 60px; height: 1px; background: var(--line);
}

/* Typography heads */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; overflow-wrap: break-word; }
.h-display {
  font-size: clamp(40px, 5.4vw, 80px); line-height: 0.98;
  letter-spacing: -0.04em;
}
.h-section {
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.h-sub {
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15;
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(17px, 0.5vw + 14px, 20px); line-height: 1.55;
  color: var(--text-mute);
  max-width: 62ch;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
  display: inline-block;
}

/* ============================================
   HERO (mesh gradient + spotlight + word-stagger)
   ============================================ */
.hero {
  position: relative; min-height: clamp(620px, 90vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) var(--pad-x) clamp(56px, 6vw, 88px);
  overflow: hidden;
  --mx: 50%; --my: 50%;
}
.hero__mesh {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero__mesh::before, .hero__mesh::after {
  content: ""; position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  filter: blur(150px); opacity: 0.45;
  animation: float 22s ease-in-out infinite;
}
.hero__mesh::before {
  background: var(--accent);
  top: -200px; left: -150px;
}
.hero__mesh::after {
  background: var(--accent-2);
  bottom: -300px; right: -200px;
  animation-delay: -11s;
}
.hero__mesh .orb-3 {
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: var(--accent-2);
  filter: blur(120px); opacity: 0.25;
  top: 40%; left: 40%;
  animation: float 28s ease-in-out infinite -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.15); }
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.10;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 80%);
}
.hero__spotlight {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle 500px at var(--mx) var(--my),
    rgba(212,255,58,0.10), transparent 70%);
  transition: background 0.1s linear;
}
.hero__inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--container); margin: 0 auto;
}
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.hero__title .row { display: block; }
.reveal-word {
  display: inline-block; opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-word.is-in { opacity: 1; transform: translateY(0); }
.hero__meta {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: end;
  margin-top: clamp(32px, 4vw, 48px);
}
@media (max-width: 860px) {
  .hero__meta { grid-template-columns: 1fr; gap: 40px; }
}
.hero__claim {
  font-size: clamp(16px, 0.4vw + 14px, 19px); line-height: 1.6;
  color: var(--text-mute); max-width: 54ch;
}
.hero__claim strong { color: var(--text); }
.hero__cta-block { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.scroll-cue {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-top: 40px;
}
.scroll-cue__line {
  width: 60px; height: 1px; background: var(--accent);
  position: relative; overflow: hidden;
}
.scroll-cue__line::after {
  content: ""; position: absolute; top: 0; left: -60px;
  width: 60px; height: 100%; background: rgba(245,245,240,0.4);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { left: 60px; } }

/* KPI counters */
.kpi-row {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.kpi {
  display: flex; flex-direction: column; gap: 8px;
}
.kpi__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 2.6vw, 44px); line-height: 1;
  letter-spacing: -0.04em; color: var(--text);
}
.kpi__num .unit { color: var(--accent); font-size: 0.6em; margin-left: 2px; }
.kpi__label {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  border-radius: 999px;
  isolation: isolate;
  -webkit-backdrop-filter: blur(7px) saturate(160%);
  backdrop-filter: blur(7px) saturate(160%) url(#liquid-glass);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.2s var(--ease);
  white-space: nowrap;
}
.btn > * { position: relative; z-index: 1; }

/* LIQUID GLASS — primary (lime tinted glass) */
.btn--primary {
  background: linear-gradient(135deg, rgba(212,255,58,0.94), rgba(212,255,58,0.80));
  color: var(--ink);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,0.95),
    inset -1.5px -1.5px 1px -1px rgba(0,0,0,0.22),
    inset 0 0 8px 3px rgba(255,255,255,0.18),
    0 2px 10px rgba(212,255,58,0.22),
    0 0 0 1px rgba(212,255,58,0.45);
}
.btn--primary:hover {
  transform: translateY(-2px); filter: brightness(1.08);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,0.95),
    inset -1.5px -1.5px 1px -1px rgba(0,0,0,0.22),
    inset 0 0 8px 3px rgba(255,255,255,0.22),
    0 14px 40px rgba(212,255,58,0.34),
    0 0 0 1px rgba(212,255,58,0.6);
}
.btn--primary:active { transform: translateY(0); filter: brightness(0.94); }

/* LIQUID GLASS — ghost (clear glass) */
.btn--ghost {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,0.5),
    inset -1.5px -1.5px 1px -1px rgba(255,255,255,0.12),
    inset 0 0 8px 4px rgba(255,255,255,0.04),
    0 4px 16px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.10);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.09); transform: translateY(-2px); filter: brightness(1.1);
  box-shadow:
    inset 1.5px 1.5px 1px -1px rgba(255,255,255,0.6),
    inset -1.5px -1.5px 1px -1px rgba(255,255,255,0.14),
    inset 0 0 8px 4px rgba(255,255,255,0.06),
    0 8px 26px rgba(0,0,0,0.34),
    0 0 0 1px rgba(212,255,58,0.45);
}
.btn--ghost:active { filter: brightness(0.95); transform: translateY(0); }
.btn--shine { overflow: hidden; }
.btn--shine::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.7s var(--ease);
}
.btn--shine:hover::before { left: 100%; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Inline text link */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link:hover { border-bottom-color: var(--accent); gap: 14px; }

/* ============================================
   MARQUEE (clienti / ticker)
   ============================================ */
.marquee {
  position: relative; overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee__track {
  display: flex; gap: clamp(40px, 6vw, 80px); align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.marquee__item {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute);
  flex-shrink: 0;
}
.marquee__item .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.marquee__item img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1) opacity(0.55);
  transition: filter 0.3s var(--ease);
}
.marquee:hover .marquee__item img { filter: brightness(0) invert(1) opacity(0.85); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ============================================
   THREE VERTICALS — bento grid teaser
   ============================================ */
.verticals {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .verticals { grid-template-columns: repeat(3, 1fr); }
}
.vertical {
  position: relative;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
  --mx: 50%; --my: 50%;
}
.vertical::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my),
    rgba(212,255,58,0.08), transparent 50%);
  transition: opacity 0.3s var(--ease); pointer-events: none;
}
.vertical:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--paper); }
.vertical:hover::before { opacity: 1; }
.vertical__num {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.vertical__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 2.4vw + 8px, 40px); line-height: 1.05;
  letter-spacing: -0.03em;
}
.vertical__desc {
  color: var(--text-mute); font-size: 15px; line-height: 1.55;
}
.vertical__tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto;
}
.vertical__tag {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-mute);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}
.vertical__cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-top: 12px;
  transition: gap 0.25s var(--ease);
}
.vertical:hover .vertical__cta { gap: 16px; }

/* ============================================
   MANIFESTO / EDITORIAL block
   ============================================ */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .manifesto { grid-template-columns: 1fr; } }
.manifesto__big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.06; letter-spacing: -0.03em;
}
.manifesto__big em { color: var(--accent); }
.manifesto__pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-top: 40px;
}
@media (max-width: 720px) { .manifesto__pillars { grid-template-columns: 1fr; } }
.pillar {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 20px;
}
.pillar__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px;
}
.pillar__body { color: var(--text-mute); font-size: 14px; line-height: 1.5; }

/* ============================================
   SPLIT (thin vs thick comparison)
   ============================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__col {
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
}
.split__col + .split__col { border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .split__col + .split__col { border-left: 0; border-top: 1px solid var(--line); }
}
.split__col--thin {
  background: var(--surface);
}
.split__col--thick {
  background: linear-gradient(160deg, var(--paper) 0%, var(--surface) 100%);
  position: relative;
}
.split__col--thick::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
}
.split__tag {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.split__col--thin .split__tag { color: var(--text-dim); }
.split__col--thick .split__tag { color: var(--accent); }
.split__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.split__col--thin .split__title { color: var(--text-dim); text-decoration: line-through; text-decoration-thickness: 1px; }
.split__list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.split__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
}
.split__list li::before {
  content: ""; flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 4px;
  background: var(--accent); border-radius: 4px;
  mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M3 8L7 12L13 4' stroke='black' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}
.split__col--thin .split__list li::before {
  background: var(--text-dim);
  mask: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M4 4L12 12M12 4L4 12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") center/contain no-repeat;
}
.split__col--thin .split__list li { color: var(--text-mute); }

/* ============================================
   METHOD STEPS (VIBES)
   ============================================ */
.method {
  display: grid; gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: clamp(20px, 3vw, 40px); align-items: start;
  padding: 32px 0; border-top: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { background: linear-gradient(90deg, transparent, var(--paper-soft) 40%, transparent); }
.step__letter {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.step__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2vw + 8px, 28px); line-height: 1.1;
  letter-spacing: -0.02em;
}
.step__sub {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-mute); margin-top: 8px;
}
.step__body { color: var(--text-mute); font-size: 15px; line-height: 1.6; }
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step__letter { font-size: 56px; }
}

/* ============================================
   FEATURE LIST (capabilities)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.feat {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feat:hover { transform: translateY(-3px); border-color: var(--accent); }
.feat__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--paper);
  display: grid; place-items: center;
  color: var(--accent);
}
.feat__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.02em;
}
.feat__body { color: var(--text-mute); font-size: 14px; line-height: 1.5; }

/* ============================================
   PARTNER (Gabriele card)
   ============================================ */
.partner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--surface) 100%);
  position: relative; overflow: hidden;
}
.partner::before {
  content: ""; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: var(--accent); filter: blur(180px); opacity: 0.18;
  top: -200px; right: -200px;
}
@media (max-width: 860px) { .partner { grid-template-columns: 1fr; } }
.partner--stacked { grid-template-columns: 1fr; gap: clamp(24px, 3vw, 40px); }
.partner__cover {
  position: relative; width: 100%;
  aspect-ratio: 1460 / 752;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}
.partner__cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.partner__media {
  position: relative; aspect-ratio: 4/5;
  border-radius: 20px; overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
}
.partner__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.7));
}
.partner__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.partner__nameplate {
  position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2;
  display: flex; flex-direction: column; gap: 3px;
}
.partner__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: -0.02em; color: var(--text);
}
.partner__role {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
}
.partner__badge {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: rgba(10,10,10,0.7); backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line);
}
.partner__badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s var(--ease) infinite; }
.partner__body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; }
.partner__quote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2vw + 10px, 32px);
  line-height: 1.15; letter-spacing: -0.02em;
}
.partner__quote em { color: var(--accent); }
.partner__cite {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute);
}
.partner__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line);
}
.partner__stats .kpi__num { font-size: clamp(24px, 2vw + 6px, 32px); }
.partner__stats .kpi__label { font-size: 10px; }

/* ============================================
   QUOTES / VOCI
   ============================================ */
.quote-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.quote {
  padding: 32px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 20px;
}
.quote__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; line-height: 1.4; letter-spacing: -0.01em;
}
.quote__cite { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote__author { font-weight: 600; font-size: 14px; }
.quote__role { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }

/* ============================================
   FORM LEAD-GEN
   ============================================ */
.leadgen {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 980px) { .leadgen { grid-template-columns: 1fr; } }

.form {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 20px;
}
.form__row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute);
}
.field label .req { color: var(--accent); }
.field input,
.field textarea,
.field select {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none; border-color: var(--accent); background: var(--paper-soft);
}
.field textarea { resize: vertical; min-height: 100px; }
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select { border-color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-mute);
  cursor: none;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.chip input { position: absolute; opacity: 0; inset: 0; cursor: inherit; }
.chip:hover { color: var(--text); border-color: var(--text-mute); }
.chip.is-on { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: var(--text-mute); line-height: 1.4;
}
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; }

.form__submit {
  margin-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.form__note {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-mute);
}
.form__success {
  display: none;
  padding: 32px; text-align: center;
  border: 1px solid var(--accent); border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,255,58,0.05), transparent);
}
.form__success.is-on { display: block; }
.form__success h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; margin-bottom: 12px;
}
.form__success p { color: var(--text-mute); }

.leadgen__side {
  display: flex; flex-direction: column; gap: 32px;
}
.leadgen__addr {
  padding: 28px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
}
.leadgen__addr h4 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}
.leadgen__addr p { font-size: 15px; line-height: 1.6; color: var(--text); }
.leadgen__addr a { color: var(--text); border-bottom: 1px solid var(--line-soft); }
.leadgen__addr a:hover { border-bottom-color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 32px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.footer__big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 8.5vw, 128px);
  line-height: 0.9; letter-spacing: -0.045em;
  margin-bottom: 48px;
  color: var(--text);
  display: flex; align-items: center; gap: 0.05em;
  flex-wrap: wrap;
}
.footer__big em { color: var(--accent); font-style: italic; }
.footer__grid {
  max-width: var(--container); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer__col h5 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}
.footer__col p, .footer__col a { font-size: 14px; line-height: 1.7; color: var(--text-mute); }
.footer__col a:hover { color: var(--accent); }
.footer__col ul { display: flex; flex-direction: column; gap: 6px; }
.footer__legal {
  max-width: var(--container); margin: 60px auto 0;
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ============================================
   REVEAL UTILITY (used by motion.js)
   ============================================ */
.reveal { opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.4s; }

/* ============================================
   PAGE HERO (sub-pages, smaller than home hero)
   ============================================ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) var(--pad-x) clamp(48px, 5vw, 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* spotlight che segue il puntatore (come la home) */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle 500px at var(--mx, 65%) var(--my, 18%),
    rgba(212,255,58,0.10), transparent 70%);
  transition: background 0.1s;
}
/* griglia coerente con la home */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 18%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 18%, transparent 80%);
}
.page-hero__mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
/* stesso mesh della home: orb lime + orb indigo */
.page-hero__mesh::before, .page-hero__mesh::after {
  content: ""; position: absolute;
  width: 740px; height: 740px; border-radius: 50%;
  filter: blur(150px); opacity: 0.42;
  animation: float 22s ease-in-out infinite;
}
.page-hero__mesh::before { background: var(--accent); top: -360px; left: -180px; }
.page-hero__mesh::after  { background: var(--accent-2); top: -220px; right: -160px; animation-delay: -11s; }
.page-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
}
.page-hero__breadcrumb {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero__breadcrumb a:hover { color: var(--accent); }
.page-hero__breadcrumb .sep { color: var(--text-dim); }
.page-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 5.2vw, 72px); line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.page-hero__title em { color: var(--accent); }
.page-hero__lead {
  font-size: clamp(16px, 0.4vw + 14px, 19px); line-height: 1.6;
  color: var(--text-mute); max-width: 60ch;
}

/* ============================================
   CASE STUDY CARDS
   ============================================ */
.case-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.case {
  position: relative; overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.case:hover { transform: translateY(-4px); border-color: var(--accent); }
.case__logo {
  height: 36px;
  display: flex; align-items: center; gap: 12px;
}
.case__logo img { max-height: 32px; width: auto; opacity: 0.85; filter: brightness(0) invert(1); }
.case__sector {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute);
}
.case__body {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; line-height: 1.25; letter-spacing: -0.01em;
}
.case__body em { color: var(--accent); }
.case__meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-mute);
}

/* ============================================
   PROGRAM CARD (corsi/percorsi)
   ============================================ */
.program {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface);
  position: relative; overflow: hidden;
  transition: border-color 0.4s var(--ease);
}
.program:hover { border-color: var(--accent); }
@media (max-width: 860px) { .program { grid-template-columns: 1fr; } }
.program__head { display: flex; flex-direction: column; gap: 16px; }
.program__badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: 700;
}
.program__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3vw + 8px, 44px); line-height: 1.05; letter-spacing: -0.03em;
}
.program__meta {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-mute);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.program__meta span { display: flex; align-items: center; gap: 6px; }
.program__meta span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.program__body { display: flex; flex-direction: column; gap: 20px; }
.program__desc { color: var(--text-mute); font-size: 15px; line-height: 1.6; }
.program__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .program__list { grid-template-columns: 1fr; } }
.program__list li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 14px; color: var(--text);
}
.program__list li::before {
  content: "→"; color: var(--accent); flex-shrink: 0;
}
.program__cta { margin-top: 8px; align-self: flex-start; }

/* ============================================
   UTILITIES
   ============================================ */
.text-mute { color: var(--text-mute); }
.text-accent { color: var(--accent); }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 60px; }
.mt-md { margin-top: 32px; }
.center { text-align: center; }

/* ============================================
   SPOTLIGHT CARDS (21st.dev style)
   Il bordo delle card si illumina seguendo il cursore.
   Tinta lime → indigo in base alla posizione orizzontale.
   --gx/--gy/--gxp sono settate da motion.js su :root.
   ============================================ */
.case, .feat, .vertical {
  --ghue: calc(75 + var(--gxp, 0.5) * 165);
  --gspot: 460px;
}
.case::after, .feat::after, .vertical::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: radial-gradient(var(--gspot) var(--gspot)
    at var(--mx, 50%) var(--my, 0%),
    hsl(var(--ghue) 95% 62% / 1), transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.case:hover::after, .feat:hover::after, .vertical:hover::after { opacity: 1; }
/* alone colorato che accompagna il bordo glow */
.case:hover, .feat:hover, .vertical:hover {
  box-shadow: 0 0 34px -8px hsl(var(--ghue) 90% 55% / 0.38);
}
/* il contenuto delle card resta sopra il bordo glow */
.case > *, .feat > *, .vertical > * { position: relative; z-index: 1; }

/* ============================================
   MOBILE PERFORMANCE — anti-jank
   Blur enormi animati + url-filter + grain sono costosi
   su GPU mobile: li alleggeriamo per animazioni fluide.
   ============================================ */
@media (max-width: 860px) {
  /* orbs mesh: ferma il movimento e riduci il blur (jank #1) */
  .hero__mesh::before,
  .hero__mesh::after,
  .hero__mesh .orb-3,
  .page-hero__mesh::before,
  .page-hero__mesh::after {
    animation: none !important;
    filter: blur(60px);
    opacity: 0.28;
  }
  .hero__mesh::before, .hero__mesh::after { width: 460px; height: 460px; }
  .hero__mesh .orb-3 { width: 320px; height: 320px; }

  /* bottoni: niente displacement SVG su mobile (solo blur leggero) */
  .btn, .nav__cta {
    -webkit-backdrop-filter: blur(5px) saturate(140%);
    backdrop-filter: blur(5px) saturate(140%);
  }

  /* grain full-screen con blend mode: troppo costoso su mobile */
  .grain { display: none; }

  /* hero grid statica su mobile */
  .hero__grid { animation: none; }

  /* spotlight cards: background-attachment fixed è pesante/buggy su mobile */
  .case::after, .feat::after, .vertical::after { display: none; }
}

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  /* Entrata contenuti: niente movimento, mostra subito (no reveal slide) */
  .reveal, .reveal-stagger, .reveal-stagger > *, .reveal-word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* niente smooth-scroll forzato */
  html { scroll-behavior: auto !important; }
  /* cursore custom off su questi device */
  .cursor, .cursor__dot { display: none !important; }
  body { cursor: auto; }
  /* NB: le animazioni decorative in loop (marquee, orbs, pulse) restano alla
     LORO velocità normale — niente override di durata che le accelera. */
}
