/* Vektora Labs · home (v5). Foglio autonomo: la home non carica style.css.
   Nessuna risorsa esterna e nessuno script inline (vedi la CSP nel .htaccess). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

:root {
  --ink: #0b0a09;
  --ink-2: #141210;
  --ink-3: #1e1b18;
  --bone: #e9e4d8;
  --fg: #f1ede4;
  --mute: #958e81;      /* testo secondario su fondo scuro */
  --mute-b: #5d574d;    /* testo secondario su fondo chiaro */
  --line: rgba(241, 237, 228, .15);
  --line-b: rgba(11, 10, 9, .18);
  --volt: #7a76ff;
  --volt-b: #4038d6;    /* lo stesso accento, leggibile sul chiaro */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Noto Serif", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 4.6vw, 76px);
  --ease: cubic-bezier(.19, .76, .12, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* grana: una trama fissa sopra tutta la pagina */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
::selection { background: var(--volt); color: #fff; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; border-radius: 4px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }

.wrap { max-width: 1560px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--fg); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

.tag { font-family: var(--mono); font-size: 11.5px; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; color: var(--mute); }
.bone .tag { color: var(--mute-b); }

/* ---------- componenti ---------- */
.under {
  display: inline-block; font-weight: 600; font-size: .95rem; padding-bottom: 5px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
a.under:hover, a:hover > .work-txt .under, a:hover .under { animation: riga .7s var(--ease); }
@keyframes riga { 0% { background-size: 100% 1px; background-position: 100% 100%; } 45% { background-size: 0 1px; background-position: 100% 100%; } 46% { background-size: 0 1px; background-position: 0 100%; } 100% { background-size: 100% 1px; background-position: 0 100%; } }

.pill {
  display: inline-flex; align-items: center; gap: 16px; padding: 6px 6px 6px 24px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap;
}
.pill i {
  font-style: normal; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  transition: transform .5s var(--ease);
}
.pill:hover i { transform: rotate(-45deg); }
.pill.solid { background: var(--fg); color: var(--ink); }
.pill.solid i { background: var(--ink); color: var(--fg); }
.pill.line { box-shadow: inset 0 0 0 1px var(--line); }
.pill.line i { background: var(--volt); color: #fff; }

.round {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .45s var(--ease), color .45s var(--ease), transform .6s var(--ease);
}

/* ---------- intestazione ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad); color: #fff; mix-blend-mode: difference; transition: transform .6s var(--ease);
}
.top.via { transform: translateY(-110%); }
.mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
.mark svg { width: 26px; height: 22px; fill: currentColor; }
.top-nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 14px; font-weight: 500; }
.top-nav a, .top-cta { position: relative; padding: 4px 0; }
.top-nav a::after, .top-cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.top-nav a:hover::after, .top-cta:hover::after { transform: scaleX(1); transform-origin: left; }
.top-cta { justify-self: end; font-size: 14px; font-weight: 600; }

/* ---------- 1 · hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: 108px; overflow: clip; isolation: isolate; }
.hero-light {
  position: absolute; inset: -20% -10% -10% -10%; z-index: -2;
  background:
    radial-gradient(38% 42% at 72% 40%, rgba(96, 88, 255, .62), transparent 70%),
    radial-gradient(26% 30% at 88% 72%, rgba(232, 142, 84, .22), transparent 70%),
    radial-gradient(22% 26% at 58% 18%, rgba(59, 214, 230, .16), transparent 70%);
  filter: blur(20px);
  opacity: calc(1 - var(--p, 0) * .6);
}
.hero-fx { position: absolute; z-index: -1; pointer-events: none; }   /* posizione e misure le dà home.js */
.sculpt {
  position: absolute; z-index: -1; right: 1vw; top: 31svh; width: min(62vw, 90svh); aspect-ratio: 1;
  transform: translateY(-50%); perspective: 1400px;
}
/* --mx/--my: posizione del puntatore (da -1 a 1), --near: quanto è vicino alla V. Li imposta home.js. */
.sculpt-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateY(calc(var(--p, 0) * -5vh)) rotateX(calc(var(--my, 0) * -8deg)) rotateY(calc(var(--mx, 0) * 11deg));
}
.vee-wrap { position: absolute; inset: 6%; animation: sospeso 16s ease-in-out infinite; }
.vee-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vee-shadow { transform: translateY(8%); filter: blur(34px); opacity: .78; }
.vee-hot { filter: blur(26px); opacity: calc(var(--near, 0) * .62); }
.vglow { opacity: .5; animation: respiro 9s ease-in-out infinite; }

/* echi: scorrono in profondità con il puntatore e ogni tanto un'onda li attraversa dall'interno verso l'esterno */
.vee-echo { animation: affiora 1.5s .45s var(--ease) both; }
.e {
  opacity: var(--o); stroke-width: .18px;
  transform: translate(calc(var(--mx, 0) * var(--d) * -1px), calc(var(--my, 0) * var(--d) * -1px));
  animation: onda 6.5s var(--t) ease-out infinite;
}
.e1 { --o: .36; --d: .6; --t: 2s; }
.e2 { --o: .24; --d: 1.3; --t: 2.16s; }
.e3 { --o: .16; --d: 2.1; --t: 2.32s; }
.e4 { --o: .1; --d: 3; --t: 2.48s; }
@keyframes onda { 0%, 34%, 100% { opacity: var(--o); stroke-width: .18px; } 9% { opacity: min(1, calc(var(--o) * 4.2)); stroke-width: .36px; } }
@keyframes affiora { from { opacity: 0; transform: scale(.84); } }

/* le cinque facce si compongono all'apertura */
.f { transform-box: fill-box; transform-origin: 50% 50%; animation: monta 1.15s var(--ease) both; }
.f1 { --fx: -15px; --fy: -9px; --fr: -9deg; animation-delay: .1s; }
.f2 { --fx: -8px; --fy: 6px; --fr: 7deg; animation-delay: .22s; }
.f3 { --fx: 0px; --fy: 13px; --fr: 0deg; animation-delay: .46s; }
.f4 { --fx: 8px; --fy: 6px; --fr: -7deg; animation-delay: .3s; }
.f5 { --fx: 15px; --fy: -9px; --fr: 9deg; animation-delay: .18s; }
@keyframes monta { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.72); } }

/* riflesso sotto il puntatore, lampo che attraversa, fasci sul contorno */
.vee-fx .spec { transform: translate(calc(var(--sx, 44) * 1px), calc(var(--sy, 20) * 1px)); mix-blend-mode: screen; opacity: calc(.3 + var(--near, 0) * .6); }
.sweep { opacity: 0; transform: skewX(-18deg); animation: lampo 1.35s 1.3s var(--ease) both; }
.vee-fx.lampo .sweep { animation: lampo-b 1.05s var(--ease) both; }
@keyframes lampo { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 12%, 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(106px) skewX(-18deg); } }
@keyframes lampo-b { 0% { opacity: 0; transform: translateX(0) skewX(-18deg); } 12%, 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(106px) skewX(-18deg); } }
.beam { opacity: calc(.6 + var(--near, 0) * .4); animation: corsa 5.2s linear infinite, affiora-b 1.2s 1.5s both; }
.beam-a { stroke-dasharray: 8 92; }
.beam-b { stroke-dasharray: 4 96; animation-duration: 7.4s, 1.2s; animation-direction: reverse, normal; }
@keyframes corsa { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes affiora-b { from { opacity: 0; } }

.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(241, 237, 228, .26); stroke-width: .9; }
.orbit circle { fill: var(--fg); stroke: none; }
.orbit-a { transform: translateZ(-90px) rotate(-26deg); stroke-dasharray: 2 7; animation: affiora-b 1.6s .6s both; }
.orbit-b { animation: orbita 70s linear infinite, affiora-b 1.6s .8s both; }
.orbit-c { stroke: rgba(122, 230, 242, .3); stroke-dasharray: 1 9; animation: orbita-c 46s linear infinite, affiora-b 1.6s 1s both; }
.orbit-c circle { fill: #7ae6f2; }
@keyframes sospeso { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.1%); } }
@keyframes respiro { 0%, 100% { opacity: .42; } 50% { opacity: .6; } }
@keyframes orbita { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes orbita-c { from { transform: rotateY(18deg) rotateX(64deg) rotateZ(360deg); } to { transform: rotateY(18deg) rotateX(64deg) rotateZ(0); } }

.hero-in {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 64px); padding: 0 var(--pad) clamp(26px, 3.4vw, 52px);
}
.hero-tag { grid-column: 1 / -1; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-tag span:first-child, .sec-tag span:first-child { color: var(--volt); }
.bone .sec-tag span:first-child { color: var(--volt-b); }
.hero h1 {
  grid-column: 1; align-self: end; margin: 0; font-weight: 700; white-space: nowrap;
  font-size: clamp(2.9rem, 9.5vw, 10.6rem); line-height: .9; letter-spacing: -.057em;
}
.hero h1 em { letter-spacing: -.035em; font-size: 1.05em; }
.hero .lines > span { padding: .1em .1em .26em .1em; margin: -.1em 0 -.26em -.1em; }
.hero-side { grid-column: 2; align-self: end; padding-bottom: .9vw; position: relative; }
/* un'ombra morbida dietro il testo: resta leggibile anche quando la scultura gli passa dietro */
.hero-side::before { content: ""; position: absolute; z-index: -1; inset: -56px -80px -30px; background: radial-gradient(closest-side, rgba(11, 10, 9, .8), transparent); filter: blur(12px); }
@media (max-height: 760px) and (min-width: 761px) {
  .sculpt { right: 1vw; top: 27svh; width: min(54vw, 78svh); }
}
.hero-side p { color: #c9c3b6; font-size: 1.02rem; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 26px; margin-top: 28px; }
.hero-foot {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); padding: 18px var(--pad);
  border-top: 1px solid var(--line); font-size: 14px;
}
.hero-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 3vw, 44px); flex: 1; color: #d6d0c4; }
.hero-foot li + li::before { content: "/"; color: var(--volt); margin-right: clamp(16px, 3vw, 44px); }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; }
.scroll-hint b { width: 54px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint b::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: filo 2.4s var(--ease) infinite; }
@keyframes filo { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* nastro */
.tape { overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(18px, 2.4vw, 34px) 0; }
.tape-run, .std-run { display: flex; width: max-content; animation: nastro 95s linear infinite; }
.tape span {
  font-size: clamp(2rem, 5.4vw, 5rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; white-space: nowrap;
  color: var(--ink); -webkit-text-stroke: 2px rgba(241, 237, 228, .5); paint-order: stroke fill;
}
.tape span:nth-child(3n + 1) { color: var(--fg); -webkit-text-stroke: 0; }
.tape span::after { content: "/"; font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--volt); -webkit-text-stroke: 0; margin: 0 .42em; }
@keyframes nastro { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.sec { position: relative; padding: clamp(92px, 13vw, 210px) 0; }
.bone { background: var(--bone); color: var(--ink); color-scheme: light; }
.ink { background: var(--ink); }
.sec-tag { display: flex; gap: 20px; margin-bottom: clamp(26px, 3.6vw, 54px); }
.display { margin: 0; font-weight: 700; font-size: clamp(2.35rem, 6.7vw, 7.4rem); line-height: .97; letter-spacing: -.05em; }
.display em { letter-spacing: -.03em; }
.sec-head { margin-bottom: clamp(60px, 9vw, 150px); }
.sec-lead { max-width: 36ch; margin-top: clamp(22px, 3vw, 40px); font-size: 1.12rem; color: var(--mute); }
.bone .sec-lead { color: var(--mute-b); }
.sec-head.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.sec-head.split .sec-lead { margin: 0 0 .9vw; }

/* righe che salgono da dietro una maschera */
.lines > span { display: block; overflow: hidden; padding: .1em .08em .15em 0; margin: -.1em 0 -.15em; }
.lines > span > span { display: block; }

/* ---------- 2 · problema / soluzione ---------- */
.manifesto-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; margin-top: clamp(64px, 10vw, 160px); align-items: start; }
.manifesto-note { grid-column: 1 / 5; position: sticky; top: 120px; display: grid; gap: 18px; color: var(--mute-b); }
.manifesto-note .big { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.swap { grid-column: 6 / 13; }
.swap-head, .swap-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(18px, 3vw, 48px); }
.swap-head { padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.swap-row { padding: clamp(22px, 2.8vw, 40px) 0; border-bottom: 1px solid var(--line-b); align-items: baseline; }
.swap-row p:first-child { color: var(--mute-b); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(11, 10, 9, .5); }
.swap-row p:last-child { position: relative; font-size: clamp(1.15rem, 1.75vw, 1.6rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; padding-left: 1.5em; }
.swap-row p:last-child::before { content: "→"; position: absolute; left: 0; color: var(--volt-b); font-weight: 400; transition: transform .5s var(--ease); }
.swap-row:hover p:last-child::before { transform: translateX(5px); }

/* ---------- 3 · lavori ---------- */
.work { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; margin-bottom: clamp(120px, 17vw, 270px); }
.work-n {
  position: absolute; z-index: 0; pointer-events: none; font-weight: 700; font-size: clamp(7rem, 23vw, 25rem); line-height: .78; letter-spacing: -.07em;
  color: var(--ink); -webkit-text-stroke: 2px rgba(241, 237, 228, .2); paint-order: stroke fill;
}
.work-shot { position: relative; z-index: 1; }
.work-txt { position: relative; z-index: 2; }
.frame { border-radius: 14px; overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 70px 130px -50px #000; }
.frame img { width: 100%; transition: transform 1.4s var(--ease); }
.work:hover .frame img { transform: scale(1.012); }
.work h3 { margin: .35em 0 .45em; font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 3.6rem); line-height: 1; letter-spacing: -.045em; }
.work-txt > p:not(.tag) { color: #b9b2a5; max-width: 34ch; margin-bottom: 26px; }

.work-a .work-shot { grid-column: 1 / 9; }
.work-a .work-txt { grid-column: 10 / 13; padding-bottom: 5%; }
.work-a .work-n { right: -.04em; top: -.42em; }
.phone { position: absolute; right: -9%; bottom: -11%; width: 22%; border-radius: 9% / 4.2%; overflow: hidden; border: 5px solid #050505; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 50px 90px -30px #000; transition: transform 1.2s var(--ease); }
.work-a:hover .phone { transform: translateY(-5px); }

.work-b .work-txt { grid-column: 1 / 5; }
.work-b .work-shot { grid-column: 6 / 13; }
.work-b .work-n { left: 30%; top: -.5em; }
.spec { margin: 0 0 30px; max-width: 360px; }
.spec div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--mute); }
.spec dd { margin: 0; font-family: var(--mono); font-size: 13px; }

.work-c { align-items: start; }
.work-c .work-shot { grid-column: 1 / 13; grid-row: 1; }
.frame.wide { aspect-ratio: 21 / 9; }
.frame.wide img { height: 100%; object-fit: cover; object-position: 0 0; }
.work-c .work-txt { grid-column: 8 / 13; grid-row: 2; margin-top: clamp(-150px, -9vw, -70px); background: var(--ink); padding: clamp(24px, 3vw, 48px) 0 0 clamp(24px, 3vw, 48px); border-top-left-radius: 14px; }
.work-c .work-n { grid-column: 1 / 7; grid-row: 2; position: relative; margin-top: .12em; }
.works-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; margin-top: clamp(-150px, -9vw, -60px); }

/* ---------- servizi ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: baseline;
  padding: clamp(22px, 2.7vw, 40px) 0; border-bottom: 1px solid var(--line-b); transition: padding .6s var(--ease), color .4s;
}
.index li::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: 0; }
.index li > * { position: relative; z-index: 1; }
.index h3 { margin: 0; font-weight: 600; font-size: clamp(1.55rem, 3.3vw, 3.2rem); line-height: 1.04; letter-spacing: -.045em; }
.index p { color: var(--mute-b); max-width: 46ch; transition: color .4s; }
@media (hover: hover) {
  .index li:hover { color: var(--fg); padding-left: 8px; }
  .index li:hover::before { transform: scaleY(1); }
  .index li:hover p, .index li:hover .tag { color: #b9b2a5; }
}

.studio {
  position: relative; display: block; overflow: hidden; margin-top: clamp(64px, 9vw, 140px); border-radius: clamp(18px, 2.2vw, 34px);
  background: var(--ink); color: var(--fg); padding: clamp(30px, 5.2vw, 84px); color-scheme: dark;
}
.studio::before { content: ""; position: absolute; right: -14%; bottom: -60%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(96, 88, 255, .6), transparent); transition: transform 1.2s var(--ease); }
.studio:hover::before { transform: scale(1.08); }
.studio > * { position: relative; }
.studio .tag { color: var(--mute); }
.studio-h { margin: clamp(18px, 2.4vw, 34px) 0 clamp(26px, 3.6vw, 58px); max-width: 17ch; font-weight: 600; font-size: clamp(1.8rem, 4.5vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; }
.studio-list { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #cfc8bb; max-width: 62ch; line-height: 2; }
.studio-list b { color: var(--volt); font-weight: 400; margin: 0 .5em; }
.studio .round { position: absolute; right: clamp(24px, 4vw, 64px); top: clamp(24px, 4vw, 64px); }
.studio:hover .round, .menu-row:hover .round { background: var(--fg); color: var(--ink); transform: rotate(-45deg); }

/* ---------- 4 · prove ---------- */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fig { padding: clamp(22px, 3vw, 44px) clamp(18px, 2.4vw, 40px) 0 0; }
.fig + .fig { padding-left: clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.fig:nth-child(2) { margin-top: 8vw; }
.fig:nth-child(3) { margin-top: 16vw; }
.fig b { display: block; font-weight: 700; font-size: clamp(6.5rem, 19vw, 20rem); line-height: .8; letter-spacing: -.07em; margin-bottom: clamp(18px, 2.4vw, 36px); }
.fig:nth-child(2) b { color: var(--ink); -webkit-text-stroke: 3px var(--fg); paint-order: stroke fill; }
.fig:nth-child(3) b { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.04em; color: var(--volt); }
.fig p { color: var(--mute); max-width: 27ch; }
.fig strong { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .15em; text-transform: uppercase; color: var(--fg); }
.claim { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; margin-top: clamp(84px, 11vw, 180px); }
.claim p { max-width: 21ch; font-weight: 600; font-size: clamp(1.6rem, 3.9vw, 4rem); line-height: 1.06; letter-spacing: -.04em; }
.std { margin-top: clamp(84px, 11vw, 180px); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; margin-bottom: calc(clamp(92px, 13vw, 210px) * -1); }
.std-run { animation-duration: 80s; animation-direction: reverse; }
.std span { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #cfc8bb; white-space: nowrap; }
.std span::after { content: "✦"; color: var(--volt); margin: 0 clamp(22px, 3vw, 46px); font-size: 10px; }

/* ---------- 5 · metodo ---------- */
.steps { display: flex; min-height: clamp(430px, 40vw, 580px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.step { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; padding: clamp(20px, 2.4vw, 36px); transition: flex-grow .6s var(--ease), background .6s var(--ease), color .5s; }
.step + .step { border-left: 1px solid var(--line-b); }
.step.is-on { flex-grow: 3.4; background: var(--ink); color: var(--fg); }
.step button { all: unset; cursor: pointer; display: grid; gap: clamp(14px, 1.8vw, 26px); width: 100%; }
.step button:focus-visible { outline: 2px solid var(--volt); outline-offset: 6px; }
.step-n { font-family: var(--mono); font-size: 12px; letter-spacing: .15em; color: var(--mute-b); }
.step.is-on .step-n { color: var(--volt); }
.step-t { font-weight: 700; font-size: clamp(1.5rem, 2.9vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.step.is-on .step-t { font-size: clamp(2rem, 4.6vw, 4.9rem); }
.step-body { position: absolute; left: clamp(20px, 2.4vw, 36px); bottom: clamp(20px, 2.4vw, 36px); width: min(46ch, 56vw); opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .35s, transform .5s var(--ease), visibility 0s .35s; }
.step.is-on .step-body { opacity: 1; visibility: visible; transform: none; transition: opacity .7s .3s, transform .9s var(--ease) .3s; }
.step-body p { font-size: clamp(1.05rem, 1.5vw, 1.4rem); line-height: 1.35; color: #d6d0c4; }
.step-body ul { list-style: none; margin: 22px 0 0; padding: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
.step-body li { padding: 9px 0; border-top: 1px solid var(--line); }
.step-body li::before { content: "+"; color: var(--volt); margin-right: 12px; }
html:not(.js) .steps { flex-direction: column; min-height: 0; }
html:not(.js) .step { flex: none; background: none; color: inherit; border-left: 0; border-top: 1px solid var(--line-b); }
html:not(.js) .step-body { position: static; opacity: 1; visibility: visible; transform: none; margin-top: 18px; width: auto; }
html:not(.js) .step-body p { color: var(--mute-b); }

/* ---------- 6 · come lavorare con noi ---------- */
.menu { border-top: 1px solid var(--line); }
.menu-row {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 64px; align-items: center; gap: clamp(16px, 2.6vw, 40px);
  padding: clamp(26px, 4vw, 60px) 0; border-bottom: 1px solid var(--line);
}
.menu-row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--ink-2); opacity: 0; transition: opacity .5s; }
.menu-row > * { position: relative; }
.menu-row h3 { margin: 0; font-weight: 700; font-size: clamp(2rem, 5.5vw, 5.8rem); line-height: .96; letter-spacing: -.055em; transition: transform .7s var(--ease); }
.menu-row p { margin-top: 12px; color: var(--mute); max-width: 48ch; transition: transform .7s var(--ease) .04s; }
.menu-row .tag { align-self: start; padding-top: .9em; color: var(--volt); }
.price { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.9rem); letter-spacing: -.02em; white-space: nowrap; }
.menu-row:hover::before { opacity: 1; }
.menu-row:hover h3, .menu-row:hover p { transform: translateX(8px); }
.menu-note { margin-top: 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--mute); text-align: right; }

/* ---------- 7 · chiusura ---------- */
.finale { position: relative; overflow: clip; isolation: isolate; padding: clamp(100px, 14vw, 230px) 0 clamp(60px, 7vw, 110px); border-top: 1px solid var(--line); }
.finale-light { position: absolute; z-index: -1; left: 50%; bottom: -55%; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(96, 88, 255, .7), rgba(232, 142, 84, .12) 62%, transparent); filter: blur(30px); }
.finale-q { font-size: clamp(1.25rem, 2.4vw, 2.3rem); letter-spacing: -.03em; color: #d6d0c4; margin-bottom: clamp(10px, 1.4vw, 22px); }
.finale-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(18px, 3.4vw, 60px); font-weight: 700; font-size: clamp(3rem, 11.6vw, 13.4rem); line-height: .92; letter-spacing: -.062em; }
.finale-go em { color: var(--volt); }
.round.big { width: clamp(64px, 10.5vw, 170px); height: clamp(64px, 10.5vw, 170px); font-size: clamp(22px, 3.4vw, 54px); letter-spacing: 0; background: var(--fg); color: var(--ink); box-shadow: none; }
.finale-go:hover .round.big { transform: rotate(-45deg); background: var(--volt); color: #fff; }
.finale-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px clamp(24px, 4vw, 60px); margin-top: clamp(50px, 7vw, 110px); padding-top: 24px; border-top: 1px solid var(--line); }
.finale-foot p { flex: 1 1 280px; color: #d6d0c4; }

/* ---------- piè di pagina ---------- */
.foot { background: var(--ink-2); padding: clamp(50px, 6vw, 90px) 0 30px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px clamp(28px, 5vw, 90px); }
.foot-grid > div:first-child p { margin-top: 16px; max-width: 34ch; color: var(--mute); }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav a:hover, .foot-base a:hover { color: var(--volt); }
.foot .tag { margin-bottom: 8px; }
.foot-news > p:not(.tag) { color: var(--mute); }
.news { display: flex; margin-top: 18px; border-bottom: 1px solid var(--fg); }
.news input { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 0; color: var(--fg); font: inherit; }
.news input::placeholder { color: var(--mute); }
.news input:focus { outline: none; }
.news:focus-within { border-color: var(--volt); }
.news button { background: none; border: 0; color: var(--fg); font-size: 20px; padding: 0 6px 0 16px; cursor: pointer; transition: transform .5s var(--ease); }
.news button:hover { transform: translateX(5px); }
.news-note { margin-top: 10px; font-size: 12.5px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: clamp(40px, 5vw, 80px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; }

/* ---------- comparsa allo scorrimento (solo con JavaScript attivo) ---------- */
html.js [data-r] { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s var(--ease); }
html.js [data-r].in { opacity: 1; transform: none; }
html.js .lines[data-r], html.js .finale-go[data-r] { opacity: 1; transform: none; }
html.js .lines[data-r] > span > span, html.js [data-r] .lines > span > span { transform: translateY(118%); transition: transform .9s var(--ease); }
html.js .lines > span:nth-child(2) > span { transition-delay: .05s; }
html.js .lines > span:nth-child(3) > span { transition-delay: .1s; }
html.js .lines[data-r].in > span > span, html.js [data-r].in .lines > span > span { transform: none; }
html.js .finale-go[data-r] .round { opacity: 0; transition: opacity .8s .5s, background .45s var(--ease), color .45s var(--ease), transform .6s var(--ease); }
html.js .finale-go[data-r].in .round { opacity: 1; }
.swap-row[data-r]:nth-child(3), .fig[data-r]:nth-child(2), .index li:nth-child(even) { transition-delay: .08s; }
.fig[data-r]:nth-child(3) { transition-delay: .16s; }

/* ---------- schermi stretti ---------- */
@media (max-width: 980px) {
  .manifesto-note { grid-column: 1 / -1; position: static; margin-bottom: 56px; max-width: 46ch; }
  .swap { grid-column: 1 / -1; }
  .sec-head.split { grid-template-columns: 1fr; }
  .sec-head.split .sec-lead { margin-top: 4px; }
  .work { grid-template-columns: 1fr; gap: 34px; }
  .work > * { grid-column: 1 / -1 !important; }
  .work-a .work-shot { margin-right: 9%; }
  .work-b .work-shot { order: -1; }
  .work-b .work-n { left: auto; right: 0; top: -.55em; }
  .work-c .work-txt { margin-top: 0; padding: 0; background: none; grid-row: auto; }
  .work-c .work-n { position: absolute; right: 0; top: auto; bottom: -.1em; opacity: .7; }
  .works-foot { margin-top: -40px; }
  .index li { grid-template-columns: 44px minmax(0, 1fr); }
  .index p { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-news { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { grid-template-columns: auto 1fr; padding: 16px var(--pad); }
  .mark span { display: none; }
  .top-nav { justify-self: end; gap: 18px; font-size: 13.5px; }
  .top-cta { display: none; }
  .hero { padding-top: 84px; }
  .sculpt { right: -14vw; top: 27svh; width: 112vw; }
  .hero-in { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; row-gap: 26px; }
  .hero h1, .hero-side { grid-column: 1; }
  .hero h1 { font-size: clamp(2.6rem, 13.4vw, 5rem); }
  .hero-side { padding-bottom: 0; }
  .scroll-hint { display: none; }
  .hero-foot li + li::before { margin-right: 16px; }
  .swap-head { display: none; }
  .swap-row { grid-template-columns: 1fr; gap: 10px; }
  .figures { grid-template-columns: 1fr; }
  .fig, .fig + .fig { margin-top: 0 !important; padding: 26px 0 34px; border-left: 0; }
  .fig + .fig { border-top: 1px solid var(--line); }
  .fig b { font-size: 34vw; }
  .steps { flex-direction: column; min-height: 0; }
  .step, .step.is-on { flex: none; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-b); }
  .step.is-on .step-t { font-size: clamp(2rem, 9vw, 3rem); }
  .step-body { position: static; width: auto; display: none; margin-top: 26px; }
  .step.is-on .step-body { display: block; }
  .menu-row { grid-template-columns: 30px minmax(0, 1fr) 52px; }
  .menu-row .price { grid-column: 2; grid-row: 2; }
  .menu-row .round { grid-column: 3; grid-row: 1 / 3; width: 52px; height: 52px; }
  .menu-row:hover h3, .menu-row:hover p { transform: none; }
  .menu-note { text-align: left; }
  .studio .round { position: static; margin-top: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js [data-r], html.js .lines > span > span, html.js .finale-go[data-r] .round { opacity: 1 !important; transform: none !important; }
  .sculpt-tilt { transform: none; }
  .hero-fx { display: none; }
}
