/* Notte */
@font-face { font-family: 'Inter'; src: url('/notte/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050507;
  --ink: #f4efe9;
  --ink-2: rgba(244, 239, 233, .78);
  --ink-3: rgba(244, 239, 233, .55);
  --ink-4: rgba(244, 239, 233, .38);
  --line: rgba(244, 239, 233, .12);
  --surface: rgba(255, 255, 255, .045);
  --card: rgba(14, 14, 17, .9);
  --accent: #d9a193;
  --alive: #9fd6b0;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
html.reduce { scroll-behavior: auto; }
body { margin: 0; overflow-x: hidden; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* etichetta di sezione: pillola con il punto che pulsa */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .01em; color: var(--ink-2); padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255, 255, 255, .04); margin-bottom: 28px; }
.label::before, .dot { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(217, 161, 147, .55); animation: pulse 2.6s cubic-bezier(.3, 0, .4, 1) infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 161, 147, .55); }
  60% { box-shadow: 0 0 0 7px rgba(217, 161, 147, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 161, 147, 0); }
}

h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 400; text-wrap: balance; }
.tag { font-size: 12px; color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; }

/* barra fissa con velo, come il gradiente addolcito sotto la nav di fora */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; }
.top-scrim { position: absolute; inset: 0; height: 150px; background: linear-gradient(to bottom, rgba(5, 5, 7, .96) 0%, rgba(5, 5, 7, .9) 40%, rgba(5, 5, 7, .55) 65%, rgba(5, 5, 7, .2) 85%, rgba(5, 5, 7, 0) 100%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.top.scrolled .top-scrim { opacity: 1; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.brand { text-decoration: none; font-weight: 500; font-size: 15px; }
.menu { display: flex; gap: 28px; }
.menu a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .4s var(--ease); }
.menu a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 100px; padding: 3px; backdrop-filter: blur(6px); }
.langs a { text-decoration: none; font-size: 12px; letter-spacing: .04em; padding: 5px 10px; border-radius: 100px; color: var(--ink-3); transition: color .3s, background-color .3s; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }

/* hero: il cielo e tre piani di colline, il pannello fra la collina di mezzo e
   il crinale davanti. Ogni piano ha la sua velocità e segue il puntatore. */
.hero { position: relative; overflow: hidden; padding: 0 0 30px; }
.hero-bg, .hero-fg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg { z-index: 0; }
.hero-fg { z-index: 2; }
.layer { position: absolute; inset: -12% -3%; will-change: transform; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer.cielo { inset: -6% -3% 26%; opacity: .95; }
.layer.lontano, .layer.medio { inset: 18% -3% 0; }
.layer.vicino { inset: auto -3% -29%; height: 70%; }
.layer.vicino img { object-position: center bottom; }
.layer.lontano { filter: blur(1px); opacity: .95; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); mask-image: linear-gradient(to bottom, transparent 0%, #000 30%); }
.layer.haze { inset: auto 0 0 0; height: 10%; background: linear-gradient(to bottom, rgba(5, 5, 7, 0), var(--bg)); }
.hero-in { position: relative; z-index: 1; height: 100svh; display: grid; align-content: center; padding: 64px 0 26svh; text-align: center; max-width: 820px; opacity: calc(1 - var(--p, 0) * 1.6); transform: translate3d(0, calc(var(--p, 0) * -90px), 0); }
.kicker { font-size: 14px; color: var(--ink-2); display: inline-block; justify-self: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.08; letter-spacing: -0.04em; font-weight: 400; margin: 28px 0 24px; text-wrap: balance; }
.hero h1 .t { display: block; }
.hero .lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 540px; margin-inline: auto; }
.hero .cerco { margin-top: 14px; font-size: 15px; color: var(--ink-3); max-width: 520px; margin-inline: auto; }
.cta { margin-top: 36px; }
.btn { display: inline-block; text-decoration: none; background: rgba(255, 255, 255, .88); color: #0b0b0d; padding: 13px 24px; border-radius: 100px; font-size: 14px; font-weight: 500; transition: background-color .3s, transform .3s var(--ease); }
.btn:hover { background: #fff; transform: translateY(-1px); }

/* il pannello: i sistemi in esercizio, l'ora di Las Palmas, l'aurora che respira */
.monitor-wrap { position: relative; z-index: 1; margin-top: -30svh; will-change: transform; }
.monitor { width: min(920px, 100%); margin-inline: auto; background: rgba(11, 11, 14, .84); border: 1px solid rgba(244, 239, 233, .16); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 120px rgba(0, 0, 0, .65); backdrop-filter: blur(12px); overflow: hidden; }
.monitor-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.monitor-top .status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.monitor .dot { background: var(--alive); box-shadow: 0 0 0 0 rgba(159, 214, 176, .6); animation-name: pulse-green; }
.clock { font-variant-numeric: tabular-nums; }
.clock time { color: var(--ink); margin-left: 6px; }
.clock b { font-weight: 400; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.monitor-body { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); }
.systems { list-style: none; margin: 0; padding: 8px 22px 14px; }
.systems li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.systems li:first-child { border-top: 0; }
.systems .dot { animation-delay: calc(var(--i, 0) * .65s); }
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(159, 214, 176, .6); }
  60% { box-shadow: 0 0 0 7px rgba(159, 214, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(159, 214, 176, 0); }
}
.sys-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.sys-stack { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sys-who { grid-column: 2 / -1; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.aurora { position: relative; overflow: hidden; background: #0a0b10; border-left: 1px solid var(--line); min-height: 240px; }
.blob { position: absolute; display: block; width: 62%; aspect-ratio: 1; border-radius: 50%; filter: blur(46px); opacity: .6; mix-blend-mode: screen; will-change: transform; }
.b1 { background: #d9a193; left: -14%; top: -28%; animation: drift1 16s ease-in-out infinite alternate; }
.b2 { background: #5b6b8a; right: -18%; top: 6%; animation: drift2 21s ease-in-out infinite alternate; }
.b3 { background: #2f5d5a; left: 22%; bottom: -46%; animation: drift3 18s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(22%, 26%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-24%, 18%) scale(.9); } }
@keyframes drift3 { to { transform: translate(-16%, -30%) scale(1.2); } }
.pulse { position: absolute; left: 0; right: 0; top: 50%; height: 80px; width: 100%; transform: translateY(-50%); }
.pulse path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .8; stroke-dasharray: .35 1; stroke-dashoffset: 1.35; animation: sweep 4.2s linear infinite; }
@keyframes sweep { to { stroke-dashoffset: 0; } }

/* chi sono: righe che si accendono, poi quattro schede impilate con una scena */
.about { padding: 80px 0 100px; }
[data-scrub] .line-in { opacity: calc(.3 + .7 * var(--p, 1)); transition: none; }

.stack { position: relative; padding: 8px 0 6vh; }
.stack-card { position: sticky; top: 92px; margin-bottom: 8vh; transform-origin: 50% 0; transform: scale(calc(1 - .085 * var(--p, 0))) translate3d(0, calc(-22px * var(--p, 0)), 0); opacity: calc(1 - .86 * var(--p, 0) - .14 * var(--q, 0)); will-change: transform, opacity; }
.card-in { background: #0e0e11; border: 1px solid var(--line); border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px rgba(0, 0, 0, .5); display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); min-height: min(64vh, 540px); overflow: hidden; }
.card-text { padding: 44px 44px 40px; display: grid; align-content: center; }
.card-text .tag { margin-bottom: 16px; display: flex; gap: 14px; align-items: baseline; }
.num { color: var(--accent); font-variant-numeric: tabular-nums; }
.card-text h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 18px; text-wrap: balance; }
.card-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin-bottom: 12px; }
.card-body p:last-child { margin-bottom: 0; }

/* la scena: lo stesso paesaggio della hero in piccolo, e sopra il disegno */
.card-scene { position: relative; overflow: hidden; background: #07080b; border-right: 1px solid var(--line); min-height: 100%; }
.card-in.flip { grid-template-columns: minmax(0, 12fr) minmax(0, 11fr); }
.card-in.flip .card-scene { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.scene-sky, .scene-hill, .scene-ridge { position: absolute; left: -8%; right: -8%; }
.scene-sky { top: -10%; bottom: 0; }
.scene-sky img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.scene-hill { top: 22%; bottom: -2%; }
.scene-ridge { top: 44%; bottom: -4%; }
.scene-hill img, .scene-ridge img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.scene-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-art text { font-family: var(--font); fill: var(--ink-2); font-size: 12px; letter-spacing: -0.01em; }
.scene-art line, .scene-art path, .scene-art circle, .scene-art rect { vector-effect: non-scaling-stroke; }
.scene-laspalmas .scene-sky img { object-position: center 100%; }

.art-radio .bars rect { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 50%; animation: voce 1.8s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
.art-radio .brace { font-size: 40px; fill: var(--ink-3); font-weight: 300; }
.art-radio .code line { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.card-in.in .art-radio .code line { animation: draw1 .9s var(--ease) forwards; animation-delay: calc(.5s + var(--i) * .12s); }
@keyframes draw1 { to { stroke-dashoffset: 0; } }

.art-rotta .sole { transform-box: fill-box; transform-origin: 50% 50%; animation: respira 6s ease-in-out infinite alternate; }
@keyframes respira { to { transform: scale(1.14); } }
.art-rotta .da { fill: var(--ink-3); }
.art-rotta .rotta { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.card-in.in .art-rotta .rotta { animation: draw1 1.6s var(--ease) forwards; animation-delay: .4s; }
.art-rotta .a { fill: var(--accent); }
.art-rotta .onda { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.card-in.in .art-rotta .onda { animation: onda 2.8s ease-out infinite; animation-delay: 2s; }
@keyframes onda { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }

.art-rete line { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.card-in.in .art-rete line { animation: draw1 1s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * .1s); }
.art-rete .hub { fill: rgba(255, 255, 255, .06); stroke: var(--ink-2); stroke-width: 1; }
.art-rete .hub-t { fill: var(--ink); font-size: 13px; font-weight: 500; }
.art-rete .nodo { opacity: 0; transition: opacity .6s var(--ease); transition-delay: calc(.9s + var(--i) * .1s); }
.card-in.in .art-rete .nodo { opacity: 1; }
.art-rete .nodo circle { fill: var(--accent); }

.art-onde .onda-f { fill: rgba(217, 161, 147, .07); }
.art-onde .onda-l { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.art-onde .onda { opacity: calc(.95 - var(--i) * .2); animation: scorre linear infinite; animation-duration: calc(16s + var(--i) * 5s); }
.art-onde .onda:nth-child(even) { animation-direction: reverse; }
@keyframes scorre { to { transform: translateX(-400px); } }

/* come lavoro: un piano lontano e sfocato dietro il testo, la frase che si accende */
.how { position: relative; padding: 120px 0 140px; overflow: hidden; }
.how-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.band { position: absolute; inset: 20% 0 -10%; opacity: .32; filter: blur(3px); transform: scaleX(-1); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%); will-change: transform; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.how > .wrap { position: relative; z-index: 1; }
.head-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; }
.head-2 .label { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
.head-2 h2 { max-width: 520px; }
.head-2 .lead, .head-2 .note { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 440px; justify-self: end; }
.head-2 .note { color: var(--ink-3); font-size: 15px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px; margin-top: 64px; }
.day, .yes { border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px; background: rgba(10, 10, 13, .55); backdrop-filter: blur(8px); }
.day h3, .yes h3 { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.day p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.yes dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.yes dl div:first-child { border-top: 0; padding-top: 0; }
.yes dt { font-size: 15px; }
.yes dd { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.proof-item { border-top: 1px solid var(--line); padding-top: 20px; }
.proof-item .big { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px; }
.proof-item p { color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.credo { margin-top: 140px; text-align: center; }
.credo p { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -0.035em; max-width: 880px; margin-inline: auto; text-wrap: balance; }

/* fuori dal lavoro: tessere con un disegno che si muove, e il blocco musica */
.life { padding: 60px 0 140px; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.tile { grid-column: span 3; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 22px 22px 24px; min-width: 0; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.tile:hover { border-color: rgba(244, 239, 233, .22); background: rgba(255, 255, 255, .06); }
.tile.wide { grid-column: span 4; }
.tile.music { grid-column: span 8; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.tile .art { margin-bottom: 14px; }
.tile .art svg { width: 100%; height: auto; display: block; }
.tile h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.tile p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.tile.music .tag { margin-bottom: 12px; }
.tile.music h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 12px; }
.tile.music .art { margin: 0; }
.art line, .art path, .art circle, .art rect { vector-effect: non-scaling-stroke; }
.art .corda { stroke: var(--ink-2); stroke-width: calc(var(--w, 1) * 1px); }
.art .buca { fill: none; stroke: var(--ink-4); stroke-width: 1; }
.art .vibra { fill: none; stroke: var(--ink); stroke-width: 1.2; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: pluck 6s ease-in-out infinite; animation-delay: calc(var(--i) * .9s); }
@keyframes pluck {
  0%, 60% { transform: scaleY(0); }
  62% { transform: scaleY(1); }
  64% { transform: scaleY(-1); }
  66% { transform: scaleY(.8); }
  68% { transform: scaleY(-.6); }
  70% { transform: scaleY(.4); }
  72% { transform: scaleY(-.25); }
  74% { transform: scaleY(.1); }
  76%, 100% { transform: scaleY(0); }
}
.art .scacchiera { transform: skewX(-14deg) translateX(14px); }
.art .bianca { fill: rgba(244, 239, 233, .14); }
.art .nera { fill: rgba(244, 239, 233, .04); }
.art .tappa { fill: var(--accent); opacity: 0; animation: tappa 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes tappa { 0%, 10% { opacity: 0; } 15%, 45% { opacity: .85; } 55%, 100% { opacity: 0; } }
.art .voce, .art-radio .bars rect { fill: var(--ink-2); }
.art .voce { transform-box: fill-box; transform-origin: 50% 50%; animation: voce 2.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.27s); }
@keyframes voce { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.art .corona { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; }
.art .gemma { fill: var(--accent); opacity: .25; animation: gemma 3s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
@keyframes gemma { 0%, 100% { opacity: .25; } 30% { opacity: 1; } }
.art .foglio { fill: rgba(255, 255, 255, .03); stroke: var(--ink-3); stroke-width: 1; }
.art .riga { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.art .scrive { stroke: var(--ink); transform-box: fill-box; transform-origin: 0 50%; animation: scrive 5s steps(12, end) infinite; }
@keyframes scrive { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }
.art .cursore { fill: var(--accent); animation: blink 1s steps(1) infinite; }
.art .testo { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.art .suono { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 3; opacity: .8; transform-box: fill-box; transform-origin: 50% 50%; animation: voce 3s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.21s); }

/* portfolio: indice per categoria che resta appeso, griglia a tre colonne */
.work { padding: 60px 0 40px; }
.work-index { position: sticky; top: 64px; z-index: 10; margin-top: 48px; background: linear-gradient(to bottom, rgba(5, 5, 7, .96), rgba(5, 5, 7, .9)); backdrop-filter: blur(8px); }
.index-in { display: flex; gap: 6px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.index-in::-webkit-scrollbar { display: none; }
.index-in a { flex: none; text-decoration: none; font-size: 14px; color: var(--ink-3); padding: 8px 14px; border-radius: 100px; border: 1px solid transparent; transition: color .3s, background-color .3s, border-color .3s; }
.index-in a span { color: var(--ink-4); margin-left: 4px; font-variant-numeric: tabular-nums; }
.index-in a:hover { color: var(--ink); }
.index-in a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, .07); border-color: var(--line); }
.cat { padding-top: 56px; scroll-margin-top: 130px; }
.cat-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 20px; }
.cat-head h3 { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid[data-n="2"][data-featured] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid[data-n="1"] .proj { grid-column: 1 / -1; }
.proj { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 26px 28px; display: grid; gap: 24px; min-width: 0; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.proj:hover { border-color: rgba(244, 239, 233, .22); background: rgba(255, 255, 255, .06); }
.proj.featured { grid-column: span 2; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 32px; }
.proj.full { grid-column: 1 / -1; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; }
.proj-text { display: grid; gap: 20px; align-content: start; min-width: 0; }
.proj.largo { grid-column: span 2; }
.grid[data-n="1"] .proj:not(.featured) .proj-text, .proj.largo .proj-text { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; }
.proj h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin-top: 10px; }
.proj .role { color: var(--accent); font-size: 13px; margin-top: 6px; }
.proj .what { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin-top: 12px; }
.facts { display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.facts dt { color: var(--ink-3); }
.facts dd { color: var(--ink); }
.link { display: inline-block; margin-top: 16px; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--ink-3); padding-bottom: 2px; transition: border-color .3s; }
.link:hover { border-color: var(--ink); }
.proj-media { min-width: 0; }
.proj-shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 32px rgba(0, 0, 0, .35); }
.proj-shot img { width: 100%; height: auto; }

/* schema di KonservaAI: le linee si disegnano quando arriva in vista */
.schema { margin: 0; }
.schema svg { width: 100%; height: auto; font-family: var(--font); font-size: 13px; overflow: visible; }
.schema rect { fill: rgba(255, 255, 255, .04); stroke: rgba(244, 239, 233, .35); stroke-width: 1; }
.schema text { fill: var(--ink); }
.schema .arrow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 400; stroke-dashoffset: 400; }
.schema.in .arrow { animation: draw 1.4s var(--ease) forwards; animation-delay: .3s; }
.schema .node { opacity: 0; transition: opacity .6s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.schema.in .node { opacity: 1; }
.schema figcaption { font-size: 12px; color: var(--ink-3); margin-top: 12px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* le schermate: una riga per progetto, la striscia si trascina di lato e
   arriva fino al bordo destro dello schermo */
.reel { padding: 120px 0 60px; --reel-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rows { margin-top: 56px; display: grid; gap: 44px; }
.row { overflow: hidden; }
.row-in { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: end; will-change: transform; }
.row-name { padding: 0 0 30px 18px; border-left: 1px solid var(--line); align-self: stretch; display: grid; align-content: end; }
.row-name h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 8px; }
.reel-open { display: inline-block; justify-self: start; margin-top: 4px; font-size: 13px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--ink-4); padding-bottom: 2px; cursor: zoom-in; transition: color .3s, border-color .3s; }
.reel-open:hover { color: var(--ink); border-color: var(--ink); }
.row-nav { display: flex; gap: 6px; margin-top: 16px; }
.row-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--ink-2); font: 300 22px/1 var(--font); cursor: pointer; transition: background-color .3s, color .3s; }
.row-nav button:hover { background: rgba(255, 255, 255, .12); color: var(--ink); }
.row-track { display: flex; gap: 20px; align-items: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 0 8px; margin-right: calc(-1 * var(--reel-left)); padding-right: var(--reel-left); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 90px), transparent); cursor: grab; user-select: none; }
.row-track::-webkit-scrollbar { display: none; }
.row-track.grab { cursor: grabbing; scroll-snap-type: none; }
.row-track img { -webkit-user-drag: none; }
.frame { margin: 0; flex: none; scroll-snap-align: start; }
.frame picture { display: block; height: 30vh; min-height: 220px; max-height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.frame img { height: 100%; width: auto; max-width: none; display: block; }
.frame figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; max-width: 44ch; line-height: 1.4; }

.before { padding: 40px 0 120px; }
.before-text { font-size: 18px; color: var(--ink-2); }

.quotes { padding: 0 0 120px; }
.quotes blockquote { margin: 0 0 32px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; max-width: 720px; }
.quotes blockquote p { font-size: 18px; line-height: 1.5; }
.quotes footer { margin-top: 14px; color: var(--ink-3); font-size: 14px; }

/* contatto: fermo, senza strati */
.contact { padding: 120px 0 140px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact .lead { color: var(--ink-2); margin-top: 20px; max-width: 420px; }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--ink-3); }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(244, 239, 233, .5); }
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.contact-form button { font: inherit; font-weight: 500; font-size: 14px; background: rgba(255, 255, 255, .88); color: #0b0b0d; border: 0; border-radius: 100px; padding: 13px 24px; cursor: pointer; transition: background-color .3s; }
.contact-form button:hover { background: #fff; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.status { font-size: 14px; }
.status.ok { color: var(--alive); }
.status.error { color: #e79a92; }
.status.info { color: var(--ink-3); }
.privacy-note { margin-top: 22px; font-size: 13px; line-height: 1.55; color: var(--ink-4); max-width: 520px; }

/* in chiusura l'orizzonte torna, con il crinale, prima del piè di pagina */
.outro { position: relative; height: 50vh; min-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%); mask-image: linear-gradient(to bottom, transparent 0%, #000 55%); }
.outro .layer { inset: -20% -3%; opacity: .8; }
.outro .outro-ridge { inset: 30% -3% -10%; opacity: 1; }
.outro-haze { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, rgba(5, 5, 7, 0), rgba(5, 5, 7, .85)); }

/* le schermate si aprono in grande */
.zoom { display: block; cursor: zoom-in; color: inherit; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 14px; padding: 48px 84px 28px; background: rgba(5, 5, 7, .93); backdrop-filter: blur(10px); cursor: zoom-out; animation: fade .25s var(--ease); }
.lightbox.serie img { cursor: e-resize; }
.lb-foot { display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; max-width: 820px; }
.lb-foot .count { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink); font: 300 30px/1 var(--font); cursor: pointer; display: none; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lightbox.serie .lb-prev, .lightbox.serie .lb-next { display: block; }
.lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .16); }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); min-height: 0; }
.lightbox p { font-size: 13px; color: var(--ink-3); text-align: center; max-width: 720px; }
.lightbox .lb-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink); font: 300 26px/1 var(--font); cursor: pointer; }
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .16); }

.foot { border-top: 1px solid var(--line); padding: 32px 0; font-size: 13px; color: var(--ink-3); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.privacy { margin-top: 20px; font-size: 13px; line-height: 1.6; }
.privacy summary { cursor: pointer; color: var(--ink-2); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::before { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); transition: transform .3s var(--ease); }
.privacy[open] summary::before { transform: rotate(45deg); }
.privacy p { margin-top: 12px; color: var(--ink-3); max-width: 680px; }

/* ingressi: parole che si mettono a fuoco, righe che salgono da una maschera */
.line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.line-in { display: inline-block; transition: transform .9s var(--ease), opacity .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.w { display: inline-block; transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--l, 0) * 220ms); }
.js:not(.reduce) [data-reveal]:not(.in) .line-in { transform: translateY(110%); opacity: 0; }
.js:not(.reduce) [data-reveal]:not(.in) .w { transform: translateY(.5em); opacity: 0; filter: blur(6px); }
.js:not(.reduce) [data-reveal]:not([data-split]):not(.in) > :not(.line):not(.w), .js:not(.reduce) .cta:not(.in) .btn { opacity: 0; transform: translateY(18px); }
[data-reveal]:not([data-split]) > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal]:not([data-split]).in > :nth-child(2) { transition-delay: 90ms; }
[data-reveal]:not([data-split]).in > :nth-child(3) { transition-delay: 180ms; }
[data-reveal]:not([data-split]).in > :nth-child(4) { transition-delay: 270ms; }
[data-reveal]:not([data-split]).in > :nth-child(5) { transition-delay: 360ms; }

.reduce * { transition: none !important; animation: none !important; }
.reduce .layer, .reduce .band, .reduce .hero-in, .reduce .monitor-wrap, .reduce .stack-card, .reduce .row-in { transform: none !important; opacity: 1 !important; filter: none !important; }
.reduce .band { opacity: .32 !important; }
.reduce .pulse path { stroke-dasharray: none; }
.reduce .stack-card { position: relative; top: auto; }
.reduce .schema .arrow, .reduce .art-radio .code line, .reduce .art-rotta .rotta, .reduce .art-rete line { stroke-dashoffset: 0; }
.reduce .schema .node, .reduce .art-rete .nodo { opacity: 1; }
.reduce .vibra, .reduce .art-rotta .onda { display: none; }
.reduce .scrive { transform: none; }

@media (max-width: 900px) {
  .menu { display: none; }
  .hero { padding-bottom: 40px; }
  .hero-in { padding: 64px 0 18svh; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .monitor-wrap { margin-top: -16svh; }
  .monitor-body { grid-template-columns: 1fr; }
  .aurora { order: -1; min-height: 150px; border-left: 0; border-bottom: 1px solid var(--line); }
  .systems { padding: 4px 18px 10px; }
  .layer.lontano, .layer.medio { inset: 30% -6% 0; }
  .layer.vicino { inset: auto -6% -16%; height: 40%; }
  .about { padding: 100px 0 40px; }
  .stack-card { position: relative; top: auto; transform: none; opacity: 1; margin-bottom: 20px; }
  .card-in, .card-in.flip { grid-template-columns: 1fr; min-height: 0; }
  .card-in.flip .card-scene { order: 0; border-left: 0; }
  .card-scene { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .scene-hill { top: 30%; }
  .scene-ridge { top: 52%; }
  .card-text { padding: 26px 22px 28px; }
  .head-2, .how-grid, .contact-grid { grid-template-columns: 1fr; }
  .head-2 .lead, .head-2 .note { justify-self: start; }
  .how { padding: 80px 0 100px; }
  .how-grid, .proof { margin-top: 40px; }
  .day, .yes { padding: 24px 22px; }
  .yes dl div { grid-template-columns: 1fr; gap: 4px; }
  .proof { grid-template-columns: 1fr; gap: 20px; }
  .credo { margin-top: 90px; }
  .life { padding: 20px 0 100px; }
  .bento { margin-top: 32px; gap: 14px; }
  .tile, .tile.wide, .tile.music { grid-column: span 12; }
  .tile.music { grid-template-columns: 1fr; }
  .tile .art svg { max-height: 120px; margin-inline: auto; }
  .work-index { margin-top: 32px; }
  .cat { padding-top: 40px; scroll-margin-top: 120px; }
  .grid, .grid[data-n="2"] { grid-template-columns: 1fr; }
  .proj, .proj.featured, .proj.full, .proj.largo { grid-column: auto; grid-template-columns: 1fr; padding: 22px 20px; }
  .grid[data-n="1"] .proj:not(.featured) .proj-text, .proj.largo .proj-text { grid-template-columns: 1fr; gap: 20px; }
  .reel { padding: 80px 0 40px; }
  .rows { margin-top: 32px; gap: 36px; }
  .row-in { grid-template-columns: 1fr; gap: 14px; transform: none !important; }
  .row-name { padding: 0 0 4px 14px; }
  .row-track { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .frame picture { height: 26vh; min-height: 180px; }
  .row-nav { display: none; }
  .lightbox { padding: 48px 12px 24px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .before { padding: 20px 0 80px; }
  .contact { padding: 80px 0 100px; }
  .outro { height: 34vh; min-height: 220px; }
}
