/* ============================================================
   NEXUM v5 — "Liquid"
   Metallo liquido, grafite, argento, lime elettrico.
   Tema scuro unico su tutta la pagina.
   Display: Clash Display · Testo: Geist · Dati: Geist Mono
   ============================================================ */

body {
  --bg: oklch(0.16 0.004 250);
  --bg-2: oklch(0.2 0.005 250);
  --ink: oklch(0.88 0.004 250);
  --ink-2: oklch(0.75 0.004 250);
  --ink-3: oklch(0.62 0.005 250);
  --line: oklch(0.88 0.004 250 / 0.12);
  --line-2: oklch(0.88 0.004 250 / 0.22);
  --acc: oklch(0.84 0.14 124);
  --acc-ink: oklch(0.17 0.03 124);
  --ok: oklch(0.8 0.17 150);
  --err: oklch(0.7 0.19 25);

  --f-display: 'Clash Display', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(18px, 4vw, 60px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --io: cubic-bezier(0.87, 0, 0.13, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}
body[data-theme="light"] {
  --bg: oklch(0.93 0.004 250);
  --bg-2: oklch(0.97 0.003 250);
  --ink: oklch(0.16 0.005 250);
  --ink-2: oklch(0.36 0.006 250);
  --ink-3: oklch(0.48 0.006 250);
  --line: oklch(0.16 0.005 250 / 0.13);
  --line-2: oklch(0.16 0.005 250 / 0.28);
  --err: oklch(0.5 0.2 25);
  color-scheme: light;
}
body[data-theme="lime"] {
  --bg: oklch(0.92 0.21 124);
  --bg-2: oklch(0.88 0.2 124);
  --ink: oklch(0.15 0.03 124);
  --ink-2: oklch(0.28 0.04 124);
  --ink-3: oklch(0.36 0.05 124);
  --line: oklch(0.15 0.03 124 / 0.2);
  --line-2: oklch(0.15 0.03 124 / 0.4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; interpolate-size: allow-keywords; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.55; letter-spacing: -0.008em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
  transition: background-color .9s var(--ease), color .9s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
strong { font-weight: 600; }
ul, ol { list-style: none; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
body[data-theme="light"] :focus-visible, body[data-theme="lime"] :focus-visible { outline-color: var(--ink); }
.mono { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.label { color: var(--ink-3); }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.8vw, 4rem); line-height: .95; letter-spacing: -0.02em; text-wrap: balance; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 500; background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; }
.u-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.u-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- livelli ---------- */
#liquid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
main, .footer, .nav { position: relative; z-index: 2; }

/* ---------- loader: riempimento liquido ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 480; display: grid; place-items: center; align-content: center; gap: 18px; background: var(--bg); color: var(--ink); }
.js.loaded .loader { display: none; }
.loader-svg { width: min(86vw, 900px); }
.loader-svg text { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 220px; letter-spacing: -4px; }
/* il font variabile disegna asta e barre come forme sovrapposte: il riempimento color sfondo, steso sopra il tratto, nasconde le linee interne (si vedeva nella E) */
.lw-outline { fill: var(--bg); stroke: color-mix(in oklch, var(--ink) 35%, transparent); stroke-width: 3; paint-order: stroke fill; }
.lw-fill { fill: var(--acc); }
.loader-pct { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; color: oklch(0.7 0.005 250); text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 300; display: flex; align-items: center; gap: 20px; padding: 18px var(--gutter); transition: transform .7s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0; min-height: 44px; }
.logo-mark { display: inline-block; width: 28px; height: 28px; background: currentColor; -webkit-mask: url('../img/logo.png') center / contain no-repeat; mask: url('../img/logo.png') center / contain no-repeat; transition: transform 1.2s var(--ease); }
.nav-logo:hover .logo-mark { transform: rotate(360deg); }
.nav-index { margin: 0 auto; display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.nav-index { transition: opacity .5s var(--ease), visibility 0s; }
.nav-index.is-off { opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.nav-index i { width: 40px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.nav-index i::after { content: ''; position: absolute; inset: 0; background: currentColor; transform: scaleX(var(--p, 0)); transform-origin: left; }
#idxNum { color: var(--ink); font-variant-numeric: tabular-nums; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: color-mix(in oklch, var(--bg) 60%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 500; transition: border-color .4s, background-color .9s; }
.mb-lines { position: relative; width: 18px; height: 10px; }
.mb-lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.mb-lines i:first-child { top: 0; }
.mb-lines i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .mb-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* ---------- bottoni "gooey": una goccia segue il cursore e si stacca dal bordo ---------- */
.goo-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; text-decoration: none; color: var(--acc-ink); font-weight: 600; isolation: isolate; }
.goo-btn.big { height: 64px; padding: 0 34px; font-size: 1.08rem; }
.goo-bg { position: absolute; inset: -14px; z-index: -1; filter: url(#goo); pointer-events: none; }
.goo-bg i:first-child { position: absolute; inset: 14px; border-radius: 99px; background: var(--acc); transition: transform .5s var(--spring); }
.goo-bg i:last-child { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--acc); transform: translate(var(--gx, 0px), var(--gy, 0px)) scale(var(--gs, 0)); transition: transform .45s var(--ease); }
.goo-btn:hover .goo-bg i:first-child { transform: scale(1.04); }
.goo-txt { position: relative; }
body[data-theme="lime"] .goo-btn { color: var(--acc); }
body[data-theme="lime"] .goo-bg i { background: var(--ink) !important; }

/* ---------- menu a schermo intero ---------- */
.menu { position: fixed; inset: 0; z-index: 290; background: var(--acc); color: oklch(0.15 0.03 124); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 1s var(--io), visibility 0s 1s; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 1s var(--io), visibility 0s; }
.menu-in { height: 100%; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: 120px var(--gutter) var(--gutter); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 18px; text-decoration: none; border-bottom: 1px solid oklch(0.15 0.03 124 / .2); padding: 4px 0; }
.mi-n { font-family: var(--f-mono); font-size: .8rem; }
.mi-t { position: relative; display: inline-block; overflow: hidden; font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.02; }
.mi-t { transition: transform .6s var(--ease); }
/* al passaggio la voce si solleva appena, senza invadere le voci vicine */
.menu nav a:hover .mi-t, .menu nav a:focus-visible .mi-t { transform: translateY(-.1em); }
.menu-side { display: grid; gap: 8px; font-size: 1.05rem; }
.menu-side .mono:not(:first-child) { margin-top: 20px; }
.menu-side a { text-decoration: none; }

/* ---------- HERO + NESSO ---------- */
.hero-stage { position: relative; height: 100svh; padding: 110px var(--gutter) 34px; display: grid; grid-template-rows: auto 1fr auto; }
.hero-top { display: flex; justify-content: space-between; gap: 20px; color: var(--ink-2); }
.hero-kicker { font: inherit; color: var(--ink); }
.hero-title { align-self: center; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.8rem, 8vw, 9rem); line-height: .84; letter-spacing: -0.03em; color: var(--ink); mix-blend-mode: difference; max-width: 9ch; pointer-events: none; }
.hero-title > span { display: block; }
.hero-title > .hl { color: var(--acc); font-style: italic; font-weight: 500; padding-left: .5em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.hero-sub { max-width: 42ch; font-size: 1.14rem; color: var(--ink-2); }
.hero-sub strong { color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.chapters { position: absolute; left: var(--gutter); bottom: 40px; width: min(560px, 80vw); display: grid; pointer-events: none; }
.chapters li { grid-area: 1 / 1; opacity: 0; transform: translateY(30px); filter: blur(12px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.chapters li.is-on { opacity: 1; transform: none; filter: none; }
.js:not(.rm) .chapters li.is-on.wait { opacity: 0; }
.chapters .mono { color: var(--acc); }
.chapters p { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 2vw, 2.1rem); line-height: 1.05; margin-top: 10px; text-wrap: balance; }

/* ---------- sezioni ---------- */
section { position: relative; }
.s-head { display: grid; gap: 22px; padding: 0 var(--gutter); margin-bottom: clamp(40px, 7vh, 90px); max-width: 1500px; }
.s-lead { color: var(--ink-2); max-width: 46ch; font-size: 1.1rem; }

/* parole che emergono dalla sfocatura */
.bw { display: inline-block; will-change: filter, opacity, transform; }
.lite .bw { will-change: auto; }
.lite .chapters li, .lite.js:not(.rm) .station:not(.is-on) { filter: none; }

/* ---------- MANIFESTO ---------- */
.manifesto { padding: clamp(110px, 20vh, 240px) var(--gutter) clamp(90px, 14vh, 170px); }
.manifesto .label { margin-bottom: 30px; }
.manifesto-text { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 3.2rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 22ch; text-wrap: pretty; }
mark { color: inherit; background: linear-gradient(var(--acc), var(--acc)) 0 60% / 0% 84% no-repeat; padding: 0 .08em; border-radius: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.1s var(--ease), color .6s var(--ease) .25s; }
mark.is-on { background-size: 100% 84%; color: var(--acc-ink); }

/* ---------- SERVIZI: pannelli ---------- */
.services { padding-bottom: clamp(90px, 16vh, 200px); }
.strips { display: flex; height: min(78vh, 720px); margin: 0 var(--gutter); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.strip { position: relative; flex: 1; min-width: 0; border-left: 1px solid var(--line-2); overflow: hidden; cursor: pointer; transition: flex-grow .9s var(--ease), background-color .6s, color .6s; outline-offset: -4px; }
.strip:last-child { border-right: 1px solid var(--line-2); }
.strip.is-open { flex-grow: 5; background: var(--bg-2); color: var(--ink); box-shadow: inset 0 2px 0 var(--acc); cursor: default; }
.strip.is-open .st-n { color: var(--acc); }
.st-n { position: absolute; top: 22px; left: 22px; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; }
.st-v { position: absolute; left: 50%; bottom: 26px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.7rem); white-space: nowrap; transition: opacity .4s; }
.strip.is-open .st-v { opacity: 0; }
.st-body { position: absolute; left: clamp(22px, 3vw, 44px); right: clamp(22px, 3vw, 44px); bottom: clamp(26px, 4vw, 48px); max-width: 560px; display: grid; gap: 16px; opacity: 0; visibility: hidden; transform: translateY(30px); transition: opacity .5s, transform .8s var(--ease), visibility 0s .5s; pointer-events: none; }
.strip.is-open .st-body { opacity: 1; visibility: visible; transform: none; transition-delay: .3s; pointer-events: auto; }
.st-body h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.8rem); line-height: .95; }
.st-body p:not(.mono) { font-size: 1.1rem; opacity: .8; max-width: 44ch; }
.st-body .mono { color: var(--acc); }

/* ---------- NUMERI ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(60px, 12vh, 130px) var(--gutter); gap: 20px; }
.num { display: grid; gap: 12px; padding-top: 18px; border-top: 2px solid var(--ink); }
.odo { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.8rem, 5.5vw, 6rem); line-height: .9; display: inline-flex; font-variant-numeric: tabular-nums; }
.odo .col { position: relative; display: inline-block; height: .9em; overflow: hidden; }
.odo .col span { display: block; height: .9em; }
.odo .col .sizer { visibility: hidden; }
.odo .col .strip-d { position: absolute; top: 0; left: 0; width: 100%; transition: transform 2s var(--ease); }
.num .mono { color: var(--ink-2); }

/* ---------- PER CHI: schede che si ribaltano ---------- */
.audience { padding: clamp(110px, 18vh, 220px) 0 clamp(90px, 14vh, 170px); }
.flips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 var(--gutter); perspective: 1600px; }
.flip { height: clamp(380px, 56vh, 520px); width: 100%; }
.flip-in { position: relative; display: block; height: 100%; transform-style: preserve-3d; transition: transform 1.1s var(--spring); }
.flip:hover .flip-in, .flip[aria-pressed="true"] .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 34px); border-radius: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.front { border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--bg-2), var(--bg)); }
.f-n { font-size: .9rem; color: var(--acc); }
.f-t { margin-top: auto; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 2.6vw, 2.8rem); line-height: .95; }
.f-s { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; }
.f-hint { margin-top: 24px; color: var(--ink-3); }
.back { transform: rotateY(180deg); background: var(--acc); color: var(--acc-ink); gap: 18px; }
.b-list { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.15; margin-top: auto; }
.b-case { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid oklch(0.15 0.03 124 / .25); font-weight: 600; }

/* ---------- PROGETTI: indice ---------- */
.projects { padding-bottom: clamp(90px, 14vh, 170px); }
.index { margin: 0 var(--gutter); border-top: 1px solid var(--line-2); }
.row { border-bottom: 1px solid var(--line-2); transition: opacity .5s var(--ease); }
.index:hover .row:not(:hover):not(.is-open) { opacity: .32; }
.row-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 50px; align-items: center; gap: 20px; padding: clamp(18px, 2.6vh, 30px) 0; }
.r-n { color: var(--ink-3); }
.r-t { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -0.015em; transition: transform .7s var(--ease), color .4s; }
.row:hover .r-t, .row.is-open .r-t { transform: translateX(18px); }
.row.is-open .r-t { color: var(--acc); }
.r-c { color: var(--ink-2); justify-self: end; }
.r-x { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .7s var(--spring), background-color .4s; }
.r-x::before, .r-x::after { content: ''; position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.r-x::after { transform: rotate(90deg); }
.row.is-open .r-x { transform: rotate(135deg); background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
/* riga-link: porta al caso studio */
a.row-head { text-decoration: none; color: inherit; }
.r-go::before { content: '→'; left: 0; right: 0; top: 0; bottom: 0; height: auto; margin: 0; background: none; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; }
.r-go::after { display: none; }
.row:hover .r-go, a.row-head:focus-visible .r-go { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); transform: translateX(4px); }
.row:hover .r-t { color: var(--acc); }
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .9s var(--ease); }
.row.is-open .row-body { grid-template-rows: 1fr; }
.rb-in { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); visibility: hidden; transition: visibility 0s .9s; }
.row.is-open .rb-in { visibility: visible; transition-delay: 0s; }
.rb-in > * { margin-bottom: 34px; }
.rb-in picture { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); }
.rb-in p { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }
.rb-in dl { margin: 20px 0 10px; border-top: 1px solid var(--line); }
.rb-in dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rb-in dt { color: var(--ink-3); padding-top: 2px; }
/* anteprima che segue il cursore */
.peek { position: fixed; top: 0; left: 0; z-index: 260; width: 380px; aspect-ratio: 16 / 10; margin: -120px 0 0 -190px; pointer-events: none; }
.peek-in { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; transform: scale(0); transition: transform .6s var(--ease); box-shadow: 0 40px 80px -30px oklch(0 0 0 / .7); }
.peek.is-on .peek-in { transform: scale(1); }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.2); transition: opacity .5s, transform .9s var(--ease); }
.peek img.is-on { opacity: 1; transform: scale(1); }

/* ---------- METODO: percorso ---------- */
.method { padding: clamp(110px, 18vh, 220px) 0 clamp(90px, 14vh, 170px); }
.route { position: relative; margin: 0 var(--gutter); height: clamp(1150px, 170vh, 1600px); }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-bg { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 8; vector-effect: non-scaling-stroke; }
.route-fg { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.route-dot { position: absolute; top: 0; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--acc); border: 3px solid var(--ink); box-shadow: 0 0 0 8px color-mix(in oklch, var(--acc) 25%, transparent); }
.station { position: absolute; width: min(34%, 420px); display: grid; gap: 10px; transition: opacity .8s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js:not(.rm) .station:not(.is-on) { opacity: 0; transform: translateY(30px); filter: blur(10px); }
.station:nth-child(1) { top: 16%; left: 21%; }
.station:nth-child(2) { top: 36%; right: 21%; }
.station:nth-child(3) { top: 56%; left: 21%; }
.station:nth-child(4) { top: 76%; right: 21%; }
.station:nth-child(5) { top: 86%; left: 6%; }
.station .mono { color: var(--ink-3); }
.station h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1; }
.station p { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(110px, 18vh, 220px) 0 clamp(90px, 14vh, 170px); }
.faq-list { margin: 0 var(--gutter); border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 52px; align-items: center; gap: 20px; padding: 26px 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa-n { color: var(--ink-3); }
.qa h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.1; transition: transform .7s var(--ease); }
.qa summary:hover h3 { transform: translateX(12px); }
.qa-i { justify-self: end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; overflow: hidden; transition: transform .8s var(--spring), border-color .4s; }
.qa-i::before { content: ''; position: absolute; inset: 0; background: var(--ink); border-radius: 50%; transform: scale(0); transition: transform .6s var(--ease); }
.qa-i::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: color .4s; }
.qa[open] .qa-i { transform: rotate(135deg); border-color: var(--ink); }
.qa[open] .qa-i::before { transform: scale(1); }
.qa[open] .qa-i::after { color: var(--bg); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .7s var(--ease), content-visibility .7s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa-a { padding: 0 72px 30px 0; }
.qa-a p { max-width: 70ch; color: var(--ink-2); font-size: 1.1rem; line-height: 1.65; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .15s; }
.qa[open] .qa-a p { clip-path: inset(0 0 0 0); }

/* ---------- CONTATTI ---------- */
.contact { padding: clamp(120px, 20vh, 240px) 0 clamp(90px, 14vh, 170px); }
.contact-head { display: grid; gap: 22px; padding: 0 var(--gutter); margin-bottom: clamp(40px, 7vh, 80px); }
.contact-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 6.5vw, 7rem); line-height: .86; letter-spacing: -0.03em; color: var(--ink); mix-blend-mode: difference; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(30px, 5vw, 90px); padding: 0 var(--gutter); }
.contact-alt { display: grid; align-content: start; border-top: 1px solid var(--line-2); }
.contact-alt a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-family: var(--f-display); font-size: clamp(1.3rem, 1.8vw, 1.8rem); font-weight: 500; transition: padding .6s var(--ease), color .3s; }
.contact-alt a:hover { padding-left: 14px; color: var(--acc); }
.contact-alt .mono { color: var(--ink-3); font-family: var(--f-mono); font-size: .72rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: color-mix(in oklch, var(--bg-2) 72%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .95rem; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; color: var(--ink); background: oklch(1 0 0 / .04); border: 1px solid var(--line-2); border-radius: 14px; outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in oklch, var(--acc) 18%, transparent); background: oklch(1 0 0 / .07); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; pointer-events: none; }
.consent { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 24px; height: 24px; }
.consent .box { width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .4s var(--spring); }
.consent .box::after { content: ''; width: 10px; height: 5px; border-left: 2px solid var(--acc-ink); border-bottom: 2px solid var(--acc-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .35s var(--spring); }
.consent input:checked + .box { background: var(--acc); border-color: var(--acc); transform: scale(1.1); }
.consent input:checked + .box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input:focus-visible + .box { outline: 2px solid var(--acc); outline-offset: 3px; }
.consent a { color: var(--ink); }
.send { grid-column: 1 / -1; justify-self: start; }
.send[disabled] { opacity: .6; pointer-events: none; }
.form-note { grid-column: 1 / -1; min-height: 1.4em; color: var(--ok); font-size: .95rem; }
.form-note.is-error { color: var(--err); }
.form-note.is-error::before { content: 'Errore — '; font-weight: 600; }

/* ---------- FOOTER (lime) ---------- */
.footer { padding: clamp(80px, 14vh, 160px) var(--gutter) 30px; overflow: hidden; }
.big-mail { display: block; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 5vw, 6rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.bm-line { display: inline-flex; }
.sl { display: inline-block; position: relative; overflow: hidden; height: 1.08em; vertical-align: top; }
.sl i { display: block; font-style: normal; transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 18ms); }
.sl i + i { position: absolute; left: 0; top: 100%; }
.big-mail:hover .sl i { transform: translateY(-100%); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(50px, 9vh, 100px); padding-top: 24px; border-top: 2px solid var(--ink); }
.footer-grid p { font-size: .98rem; line-height: 1.6; }
.footer-grid .mono { display: block; margin-bottom: 8px; color: var(--ink-2); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.to-top { font-weight: 600; }
.footer-mark { font-family: var(--f-display); font-weight: 600; font-size: clamp(5rem, 27vw, 30rem); line-height: .78; letter-spacing: -0.03em; margin: clamp(40px, 8vh, 90px) 0 0 -0.03em; color: var(--ink); white-space: nowrap; }

/* ---------- pagine interne ---------- */
.nav-simple { justify-content: space-between; }
.nav-simple .nav-cta { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; white-space: nowrap; border-radius: 99px; background: var(--acc); color: var(--acc-ink); text-decoration: none; font-weight: 600; }
.page { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 150px var(--gutter) 12vh; }
.page .label { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.page h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .95; margin: 20px 0 16px; }
.page .updated { color: var(--ink-3); }
.page h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 56px 0 14px; display: flex; gap: 14px; align-items: baseline; }
.page h2 span { font-family: var(--f-mono); font-size: .5em; color: var(--ink-3); }
.page p, .page li { color: var(--ink-2); line-height: 1.7; }
.page p + p { margin-top: 12px; }
.page ul { margin: 12px 0; display: grid; gap: 6px; }
.page li { padding-left: 22px; position: relative; }
.page li::before { content: ''; position: absolute; left: 0; top: .75em; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.page a { color: var(--ink); text-underline-offset: 3px; }
.page .box { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 20px; padding: 22px 24px; margin: 14px 0; }
.page-back { margin-top: 56px; }
/* ---------- pagine servizio e casi studio ---------- */
.nav-in { padding-top: 12px; padding-bottom: 12px; background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; gap: clamp(16px, 2.6vw, 38px); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
.nav-links a:hover { color: var(--acc); }
.in { max-width: 1280px; margin: 0 auto; padding: 118px var(--gutter) clamp(70px, 12vh, 140px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--acc); }
.in-hero { display: grid; gap: 22px; padding: clamp(30px, 6vh, 70px) 0 clamp(40px, 8vh, 90px); border-bottom: 1px solid var(--line-2); }
.in-hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: .96; letter-spacing: -0.02em; text-wrap: balance; max-width: 17ch; }
.in-hero h1 em { font-style: italic; font-weight: 500; color: var(--acc); }
.in-lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.in-lead strong, .prose strong, .ticks strong { color: var(--ink); }
.in-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; }
.cs-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 70px); align-items: end; }
.cs-hero > div { display: grid; gap: 22px; }
.cs-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.9rem); max-width: 16ch; }
.shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.shot img { width: 100%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.facts div { display: grid; gap: 6px; align-content: start; }
.facts dt { color: var(--ink-3); }
.in-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(24px, 4vw, 70px); padding: clamp(44px, 8vh, 96px) 0; border-bottom: 1px solid var(--line-2); }
.in-sec[id] { scroll-margin-top: 72px; }
.in-sec > header { display: grid; gap: 14px; align-content: start; }
.in-sec h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.7rem); line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
.in-body { display: grid; gap: 26px; min-width: 0; }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.7; }
.prose a, .ticks a { color: var(--ink); text-decoration-color: var(--acc); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a:hover, .ticks a:hover { color: var(--acc); }
.ticks { border-top: 1px solid var(--line); max-width: 76ch; }
.ticks li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.6; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 1.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: var(--bg-2); text-decoration: none; transition: border-color .4s, transform .6s var(--ease); }
.card:hover { border-color: var(--acc); transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: grid; gap: 8px; align-content: start; padding: 18px 20px 22px; }
.card-body .mono { color: var(--ink-3); }
.card-t { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.05; }
.card-d { color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.card-more { margin-top: 4px; color: var(--acc); font-weight: 600; font-size: .95rem; }
.in-sec.full { grid-template-columns: 1fr; }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.go-list { border-top: 1px solid var(--line-2); }
.go-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: padding .6s var(--ease), color .3s; }
.go-list a:hover { padding-left: 14px; color: var(--acc); }
.go-t { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.1; }
.go-d { grid-column: 1; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.go-a { grid-row: 1 / span 2; grid-column: 2; font-size: 1.3rem; }
.in-sec .faq-list { margin: 0; }
.in-sec .qa summary { grid-template-columns: minmax(0, 1fr) 48px; padding: 20px 0; }
.in-sec .qa-a { padding: 0 60px 26px 0; }
.in-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 26px 40px; margin-top: clamp(44px, 8vh, 96px); padding: clamp(28px, 4.4vw, 60px); border-radius: 28px; background: var(--acc); color: var(--acc-ink); }
.in-cta h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: .96; letter-spacing: -0.02em; text-wrap: balance; }
.in-cta p { margin-top: 14px; max-width: 54ch; font-size: 1.08rem; line-height: 1.55; }
.in-cta .btn { background: var(--acc-ink); color: var(--acc); }
.in-cta :focus-visible { outline-color: var(--acc-ink); }
.in-cta-alt { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font-weight: 600; }
.in-cta-alt a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.in > .in-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.footer-in { padding-top: 0; }
.footer-in .footer-grid { margin-top: 0; }
.footer-in .footer-grid ul { display: grid; gap: 2px; font-size: .98rem; }
.footer-in .footer-grid li a { display: inline-block; padding: 4px 0; }
.footer-in .footer-grid p + p { margin-top: 10px; }
.footer-in .footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.st-link { justify-self: start; }
.row-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
@media (max-width: 1000px) {
  .in-sec, .cs-hero, .in-cta { grid-template-columns: 1fr; }
  .cards.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-hero { align-items: start; row-gap: 30px; }
  .in-cta { align-items: start; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .in { padding-top: 100px; }
  .cards, .cards.c3, .facts { grid-template-columns: 1fr; }
  .facts { gap: 18px; }
  .in-sec .qa-a { padding-right: 0; }
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.footer:has(.footer-bottom:only-child) { padding-top: 30px; }
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 48px; position: relative; z-index: 2; }
.nf-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: end; border-top: 1px solid var(--line-2); padding-top: 24px; }
.nf h1 { grid-column: 1 / span 7; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .9; color: var(--ink); mix-blend-mode: difference; }
.nf h1 em { font-style: italic; color: var(--acc); mix-blend-mode: normal; }
.nf-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.nf-side p { color: var(--ink-2); }
.nf-log { color: var(--ink-3); min-height: 4.8em; line-height: 1.6; font-family: var(--f-mono); font-size: .8rem; }
.nf-log .err { color: var(--err); }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 99px; background: var(--acc); color: var(--acc-ink); text-decoration: none; font-weight: 600; }
.btn i { font-style: normal; }

/* ---------- senza WebGL / movimento ridotto ---------- */
.no-gl .hero-stage::after { content: ''; position: absolute; right: 6vw; top: 22vh; width: 38vw; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 30%, #fff, oklch(0.7 0.01 250) 30%, oklch(0.25 0.01 250) 65%, var(--bg)); box-shadow: 0 0 120px color-mix(in oklch, var(--acc) 20%, transparent); }
.rm .chapters, .no-gl .chapters { position: static; width: auto; gap: 22px; margin-top: 40px; }
.rm .chapters li, .no-gl .chapters li { grid-area: auto; opacity: 1; transform: none; filter: none; }
.rm .hero-stage, .no-gl .hero-stage { height: auto; min-height: 100svh; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-index { display: none; }
  .nav-right { margin-left: auto; }
  .strips { flex-direction: column; height: auto; }
  .strip { flex: none; border-left: 0; border-right: 0 !important; border-top: 1px solid var(--line-2); min-height: 76px; }
  .strip:first-child { border-top: 0; }
  .st-v { position: static; writing-mode: horizontal-tb; transform: none; display: block; padding: 24px 22px; }
  .strip.is-open .st-v { display: none; }
  .st-body { position: static; opacity: 1; visibility: visible; transform: none; transition: none; padding: 30px 22px; display: none; }
  .strip.is-open .st-body { display: grid; }
  .flips { grid-template-columns: 1fr; }
  .flip { height: 360px; }
  .rb-in { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .num:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .menu-in { grid-template-columns: 1fr; }
  .route { height: auto; margin-left: calc(var(--gutter) + 10px); }
  .route-svg, .route-dot { display: none; }
  .stations { display: grid; gap: 44px; padding-left: 28px; border-left: 2px solid var(--ink); }
  .station { position: relative; inset: auto !important; width: auto; }
  .station::before { content: ''; position: absolute; left: -38px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); border: 2px solid var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nf-grid { grid-template-columns: 1fr; }
  .nf h1, .nf-side { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hide-s { display: none; }
  .nav-cta { display: none; }
  .hero-title > .hl { padding-left: 0; }
  .hero-bottom { gap: 18px; }
  .hero-sub { font-size: 1rem; }
  .row-head { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; }
  .r-c { display: none; }
  .qa summary { grid-template-columns: minmax(0, 1fr) 48px; gap: 12px; }
  .qa-a { padding: 0 0 26px 0; }
  .form { grid-template-columns: 1fr; padding: 22px 16px; }
  .field { grid-column: 1 / -1; }
  .big-mail { font-size: clamp(1.6rem, 8.6vw, 3rem); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  mark { background-size: 100% 84%; color: var(--acc-ink); }
}

/* hero su mobile: bottoni impilati, indicatore di scorrimento nascosto */
@media (max-width: 760px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .goo-btn { white-space: nowrap; }
}

/* ---------- WhatsApp: goccia flottante in basso a sinistra (la costruisce assets/js/wa.js) ---------- */
.wa { position: fixed; left: max(18px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 280; font-family: var(--f-sans); opacity: 0; transform: translateY(26px) scale(.8); pointer-events: none; transition: opacity .5s var(--ease), transform .9s var(--spring); }
.wa.is-in { opacity: 1; transform: none; pointer-events: auto; }
.wa.is-in.is-away { opacity: 0; transform: translateY(26px) scale(.8); pointer-events: none; }
.js:not(.loaded) .wa { visibility: hidden; }

.wa-fab { position: relative; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; background: none; color: var(--acc-ink); cursor: pointer; isolation: isolate; -webkit-tap-highlight-color: transparent; }
.wa-fab::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--acc); box-shadow: 0 12px 34px oklch(0 0 0 / .5), inset 0 5px 9px oklch(1 0 0 / .35), inset 0 -7px 12px oklch(0.17 0.03 124 / .22); animation: wa-blob 8s ease-in-out infinite; transition: transform .5s var(--spring); }
.wa-fab::after { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: 50%; border: 1.5px solid var(--acc); animation: wa-ring 3.8s var(--ease) infinite; }
.wa-fab:hover::before { transform: scale(1.08); }
.wa-fab:active::before { transform: scale(.94); }
.wa-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 50%; }
.wa-ico, .wa-x { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .55s var(--spring), opacity .25s; }
.wa-ico svg { width: 28px; height: 28px; display: block; }
.wa-x { width: 20px; height: 20px; opacity: 0; transform: rotate(-90deg) scale(.4); }
.wa-x::before, .wa-x::after { content: ''; grid-area: 1 / 1; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.wa-x::after { transform: rotate(-45deg); }
.wa.is-open .wa-ico { opacity: 0; transform: rotate(90deg) scale(.4); }
.wa.is-open .wa-x { opacity: 1; transform: none; }
.wa.is-open .wa-fab::after { animation: none; opacity: 0; }
@keyframes wa-blob { 0%, 100% { border-radius: 50%; } 33% { border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%; } 66% { border-radius: 44% 56% 42% 58% / 56% 44% 58% 42%; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(1.75); opacity: 0; } }

.wa-tip { position: absolute; left: calc(100% + 12px); bottom: 10px; padding: 9px 15px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); font-size: .9rem; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(-10px) scale(.94); transform-origin: left center; transition: opacity .35s var(--ease), transform .55s var(--spring); }
.wa.is-hint:not(.is-open) .wa-tip { opacity: 1; transform: none; }
@media (hover: hover) { .wa:not(.is-open) .wa-fab:hover ~ .wa-tip { opacity: 1; transform: none; } }

.wa-panel { position: absolute; left: 0; bottom: calc(100% + 14px); width: min(344px, calc(100vw - 36px)); overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); background: color-mix(in oklch, var(--bg-2) 90%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 80px oklch(0 0 0 / .6); color: var(--ink); transform-origin: 29px calc(100% + 43px); transform: scale(.5); opacity: 0; visibility: hidden; transition: transform .4s var(--ease), opacity .25s var(--ease), visibility 0s .4s; }
.wa.is-open .wa-panel { transform: none; opacity: 1; visibility: visible; transition: transform .6s var(--spring), opacity .3s var(--ease), visibility 0s; }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--acc); color: var(--acc-ink); }
.wa-head .logo-mark { flex: none; width: 34px; height: 34px; }
.wa-head p { display: grid; gap: 3px; }
.wa-head strong { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; line-height: 1; }
.wa-head span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.wa-body { display: grid; gap: 14px; padding: 18px 18px 14px; }
.wa-msg { justify-self: start; max-width: 94%; min-height: 44px; display: grid; align-items: center; padding: 11px 14px; border-radius: 4px 16px 16px 16px; border: 1px solid var(--line); background: oklch(0.88 0.004 250 / .07); font-size: .94rem; line-height: 1.45; }
.wa-dots, .wa-say { grid-area: 1 / 1; }
.wa-dots { display: flex; gap: 5px; align-self: center; }
.wa-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: wa-dot 1s ease-in-out infinite; }
.wa-dots i:nth-child(2) { animation-delay: .15s; }
.wa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-say { opacity: 0; }
.wa.is-typed .wa-dots { display: none; }
.wa.is-typed .wa-say { opacity: 1; transition: opacity .4s var(--ease); }
.wa-chips { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.wa-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .6s var(--spring), background .25s, color .25s, border-color .25s; }
.wa-chip i { font-style: normal; color: var(--acc); transition: transform .4s var(--spring), color .25s; }
.wa.is-typed .wa-chip { opacity: 1; transform: none; }
.wa.is-typed li:nth-child(1) .wa-chip { transition-delay: .08s, .08s, 0s, 0s, 0s; }
.wa.is-typed li:nth-child(2) .wa-chip { transition-delay: .16s, .16s, 0s, 0s, 0s; }
.wa.is-typed li:nth-child(3) .wa-chip { transition-delay: .24s, .24s, 0s, 0s, 0s; }
.wa.is-typed li:nth-child(4) .wa-chip { transition-delay: .32s, .32s, 0s, 0s, 0s; }
.wa-chip:hover, .wa-chip:focus-visible { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); outline: none; }
.wa-chip:hover i, .wa-chip:focus-visible i { color: var(--acc-ink); transform: translate(2px, -2px); }
.wa-foot { padding: 0 18px 16px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) {
  .wa { left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .wa-fab { width: 54px; height: 54px; }
  .wa-panel { width: min(344px, calc(100vw - 28px)); transform-origin: 27px calc(100% + 41px); }
}
@media print { .wa { display: none; } }
