/* Console */
@font-face { font-family: 'Inter'; src: url('/console/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;
  --phos: #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;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; height: 100%; }
body { margin: 0; letter-spacing: -0.01em; height: 100%; overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; }

/* due modi: il terminale (default) e la pagina classica (html.gui, o senza JS) */
.gui-only { display: none; }
html.gui { height: auto; scroll-behavior: smooth; }
html.gui.reduce { scroll-behavior: auto; }
html.gui body { height: auto; overflow: visible; overflow-x: hidden; }
html.gui .gui-only { display: block; }
html.gui .console { display: none; }

.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; }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   Il terminale
   ========================================================================= */
.console { position: fixed; inset: 0; padding: clamp(8px, 2.2vw, 34px); display: grid; background: var(--bg); }
/* la sala macchine dietro al vetro; il gradiente sotto regge se il file manca */
.sala { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, #151922 0%, #0a0b10 45%, #050507 100%); overflow: hidden; }
.sala img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.sala::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(5, 5, 7, 0) 30%, rgba(5, 5, 7, .75) 100%); }

/* Background Paths (21st.dev): linee sottili che scorrono, dietro al vetro */
.paths { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.paths path { fill: none; stroke: var(--ink); stroke-width: .8; stroke-opacity: calc(.08 + var(--i, 0) * .014); stroke-dasharray: .35 .65; stroke-dashoffset: 0; animation: scorri-linee linear infinite; animation-duration: calc(26s + var(--i, 0) * 1.7s); animation-direction: alternate; }
@keyframes scorri-linee { to { stroke-dashoffset: -1; } }

.term { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 296px; grid-template-rows: 44px minmax(0, 1fr) auto; width: min(100%, 1440px); height: 100%; margin-inline: auto; border-radius: 16px; border: 1px solid rgba(244, 239, 233, .15); background: rgba(9, 10, 13, .66); backdrop-filter: blur(12px); box-shadow: 0 40px 120px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .07); overflow: hidden; }

.term-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); font: 12.5px var(--mono); color: var(--ink-3); background: rgba(255, 255, 255, .03) url('/console/assets/sfondi/metallo-spazzolato.webp') center / cover; background-blend-mode: luminosity; }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3d45; display: block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.lights i:nth-child(1) { background: #d3675c; }
.lights i:nth-child(2) { background: #d9b45f; }
.lights i:nth-child(3) { background: #79b986; }
.term-title { flex: 1; text-align: center; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.langs { display: flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 100px; padding: 3px; }
.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); }
.term-gui { text-decoration: none; font-size: 12px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); white-space: nowrap; transition: color .3s, border-color .3s; }
.term-gui:hover { color: var(--ink); border-color: rgba(244, 239, 233, .4); }

/* lo schermo: fosforo e scanline dal file, colore sotto se manca */
.term-screen { grid-column: 1; grid-row: 2; position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 22px; font: 14px/1.6 var(--mono); color: var(--ink-2); background: #07090b url('/console/assets/sfondi/crt-fosforo.webp') center / cover no-repeat; scrollbar-width: thin; scrollbar-color: rgba(244, 239, 233, .2) transparent; }
.term-screen::-webkit-scrollbar { width: 8px; }
.term-screen::-webkit-scrollbar-thumb { background: rgba(244, 239, 233, .2); border-radius: 8px; }
.boot-skip { position: absolute; right: 18px; bottom: 12px; font-size: 11.5px; color: var(--ink-4); display: none; }
.console[data-state="boot"] .boot-skip { display: block; }

.term-out p.ln { margin: 0 0 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln.echo { color: var(--ink); margin-top: 14px; }
.term-out > .ln.echo:first-child { margin-top: 0; }
.pr, .prompt { color: var(--phos); white-space: pre; }
.pr .u, .prompt .u { color: var(--phos); }
.pr .h, .prompt .h { color: #b8c9e0; }
.ln.h { color: var(--ink); font-weight: 600; margin-top: 8px; }
.ln.tag { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.ln.dim, .ln.hint { color: var(--ink-3); }
.ln.hint { color: var(--ink-2); margin-top: 8px; }
.ln.ok { color: var(--phos); }
.ln.err { color: #e79a92; }
.ln.kv { padding-left: 14px; text-indent: -14px; }
.ln.credo { color: var(--ink); font-size: 16px; line-height: 1.45; border-left: 2px solid var(--accent); padding-left: 12px; margin: 12px 0; max-width: 60ch; }
.ln.up { color: var(--ink); font-size: 18px; }
.tick { font-variant-numeric: tabular-nums; color: var(--phos); }
.ln.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 14px; }
.ln.row .cmd { justify-self: start; }
.ln.row .d { color: var(--ink-3); }
.ln.row .arg { display: block; color: var(--ink-4); font-size: 12.5px; }
.cmd { font: inherit; color: var(--phos); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted rgba(159, 214, 176, .5); text-underline-offset: 3px; text-align: left; }
.cmd:hover, .cmd:focus-visible { text-decoration-style: solid; color: var(--ink); }
.term-out a.link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.term-out a.link:hover { border-color: var(--ink); }
.o-board { margin: 6px 0 8px; font: 14px/1.5 var(--mono); color: var(--ink); }

/* i blocchi ricchi salgono interi */
.rise { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.o-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.o-card, .o-proj { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.o-proj { grid-template-columns: minmax(0, 1fr); }
.o-proj .o-shots, .o-proj .o-schema { grid-column: 1 / -1; }
.o-body { min-width: 0; }
.o-body .ln.h { margin-top: 2px; }
.o-body .ln.tag { margin-top: 0; }
.o-art { border-radius: 8px; background: #0a0c11; border: 1px solid var(--line); overflow: hidden; align-self: start; }
.o-art svg { width: 100%; height: auto; display: block; }
.o-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.o-proof div { border-top: 1px solid var(--line); padding-top: 8px; }
.o-proof .big { color: var(--ink); font-size: 17px; }
.o-proof .dim { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.o-form { margin: 10px 0 6px; max-width: 560px; }
.o-form .contact-form { gap: 12px; }
.o-schema { margin-top: 4px; }
.o-schema svg { max-width: 640px; }

/* Interactive Blur Reveal: entrano sfocate, poi a fuoco; nitide sotto il puntatore */
.o-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 10px 0 8px; }
.o-shots.one { grid-template-columns: minmax(0, 560px); }
.o-shot { margin: 0; min-width: 0; }
.o-shot .zoom { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.o-shot img { width: 100%; height: auto; filter: blur(14px) saturate(.7); transform: scale(1.06); transition: filter 1.1s var(--ease), transform 1.1s var(--ease); }
.o-shot.focus img { filter: blur(1.2px) saturate(.9); transform: none; }
.o-shot.focus:hover img, .o-shot.focus:focus-within img, .coarse .o-shot.focus img { filter: none; }
.o-shot figcaption { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }

/* il prompt: cursore a blocco che segue il testo e lampeggia con il fuoco */
.term-line { display: flex; align-items: baseline; margin-top: 8px; }
.term-line[hidden] { display: none; }
.in-wrap { position: relative; flex: 1; min-width: 0; }
.term-input { display: block; width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; outline: none; padding: 0 0 0 8px; margin: 0; caret-color: transparent; border-radius: 0; }
.mirror { position: absolute; left: 8px; top: 0; visibility: hidden; white-space: pre; font: inherit; }
.cur { position: absolute; left: calc(8px + var(--x, 0px)); top: .15em; width: .62em; height: 1.15em; background: var(--phos); opacity: .45; pointer-events: none; }
.term-line:focus-within .cur { opacity: 1; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: .12; } }

/* i chip sotto al prompt: Shimmer Button (21st.dev), il riflesso è una
   striscia di gradiente che scorre sul bordo */
.term-chips { grid-column: 1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.chip { position: relative; overflow: hidden; flex: none; font: 12.5px var(--mono); color: var(--ink-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; cursor: pointer; white-space: nowrap; transition: color .3s, border-color .3s, background-color .3s; }
.chip::before { content: ''; position: absolute; inset: -1px; background: linear-gradient(110deg, transparent 38%, rgba(244, 239, 233, .2) 50%, transparent 62%); background-size: 250% 100%; animation: shimmer 4.5s linear infinite; animation-delay: calc(var(--i, 0) * -.4s); pointer-events: none; }
@keyframes shimmer { from { background-position: 160% 0; } to { background-position: -160% 0; } }
.chip:hover, .chip:focus-visible { color: var(--ink); border-color: rgba(244, 239, 233, .42); background: rgba(255, 255, 255, .1); }
.chip:focus-visible, .cmd:focus-visible, .term-gui:focus-visible, .top-console:focus-visible { outline: 2px solid var(--phos); outline-offset: 2px; }

/* il lato: ora, contatori, sistemi, log. Metallo spazzolato sotto, se c'è. */
.term-side { grid-column: 2; grid-row: 2 / span 2; border-left: 1px solid var(--line); padding: 18px 18px 14px; font: 12.5px/1.5 var(--mono); color: var(--ink-3); display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 14px; min-height: 0; background: rgba(255, 255, 255, .02) url('/console/assets/sfondi/metallo-spazzolato.webp') center / cover; background-blend-mode: luminosity; }
.term-side::before { content: none; }
.side-clock { display: flex; justify-content: space-between; align-items: baseline; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.side-clock time { color: var(--ink); font-size: 22px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.side-clock b, .clock b { font-weight: 400; animation: blink 1s steps(1) infinite; }
.side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.side-stats div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: rgba(0, 0, 0, .25); }
.side-stats dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.side-stats dd { color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.side-status { display: flex; align-items: center; gap: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; margin-top: 4px; }
.dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--alive); box-shadow: 0 0 0 0 rgba(159, 214, 176, .6); animation: pulse-green 2.6s cubic-bezier(.3, 0, .4, 1) infinite; }
@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); }
}
.side-systems, .systems { list-style: none; margin: 0; padding: 0; }
.side-systems li, .systems li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.side-systems li:first-child, .systems li:first-child { border-top: 0; padding-top: 0; }
.side-systems .dot, .systems .dot { animation-delay: calc(var(--i, 0) * .65s); }
.sys-name { color: var(--ink); font-size: 13px; }
.sys-stack { font-size: 11px; color: var(--ink-3); }
.sys-who { grid-column: 2 / -1; font-size: 11px; color: var(--ink-4); }
.side-log { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.side-log-head { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; display: flex; justify-content: space-between; }
.side-log-head span { color: var(--accent); cursor: help; border-bottom: 1px dotted rgba(217, 161, 147, .5); }
/* Agent Trace (21st.dev): righe che entrano una alla volta, con lo stato */
.side-log ol { list-style: none; margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 11.5px; }
.side-log li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 8px; padding: 3px 0; white-space: nowrap; animation: rise .4s var(--ease) both; }
.side-log .lt { color: var(--ink-4); font-variant-numeric: tabular-nums; }
.side-log .ls { color: var(--ink-2); }
.side-log .lm { overflow: hidden; text-overflow: ellipsis; }
.side-log .lst { color: var(--accent); }
.side-log .lst::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; animation: blink .8s steps(1) infinite; }
.side-log .ok .lst { color: var(--phos); }
.side-log .ok .lst::before { animation: none; }

/* =========================================================================
   La pagina classica
   ========================================================================= */
.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 { 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; }
.nojs-note { padding-top: 84px; font-size: 13px; color: var(--ink-4); }
[tabindex="-1"]:focus { outline: none; }
.hero-console { margin-top: 18px; }
.js .nojs-note { display: none; }

.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; gap: 16px; 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); }
.top-right { display: flex; align-items: center; gap: 10px; }
.top .langs { backdrop-filter: blur(6px); }
.top-console, .hero-console a, .foot-console { text-decoration: none; font: 12px var(--mono); color: var(--phos); padding: 6px 11px; border: 1px solid rgba(159, 214, 176, .35); border-radius: 100px; white-space: nowrap; transition: border-color .3s, background-color .3s; }
.top-console::before, .hero-console a::before, .foot-console::before { content: '$ '; }
.top-console:hover, .hero-console a:hover, .foot-console:hover { border-color: var(--phos); background: rgba(159, 214, 176, .08); }
.foot .foot-console { display: inline-block; margin-top: 16px; color: var(--phos); }

.hero { padding: 120px 0 40px; text-align: center; }
.hero-in { max-width: 820px; display: grid; justify-items: center; padding-bottom: 56px; }
.kicker { font-size: 14px; color: var(--ink-2); display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; background: rgba(255, 255, 255, .06); }
.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; }
.hero .cerco { margin-top: 14px; font-size: 15px; color: var(--ink-3); max-width: 520px; }
.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); }

.monitor { width: min(760px, 100%); margin-inline: auto; text-align: left; 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); 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); }
.clock { font-variant-numeric: tabular-nums; }
.clock time { color: var(--ink); margin-left: 6px; }
.systems { padding: 8px 22px 14px; }
.systems li { padding: 13px 0; }
.systems .sys-name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.systems .sys-stack { font-size: 12px; }
.systems .sys-who { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* chi sono: quattro schede, disegno sopra e testo sotto */
.about { padding: 80px 0 100px; }
[data-scrub] .line-in { opacity: calc(.3 + .7 * var(--p, 1)); transition: none; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { 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); overflow: hidden; }
.card-art { background: #07080b; border-bottom: 1px solid var(--line); aspect-ratio: 400 / 220; overflow: hidden; }
.card-art svg { width: 100%; height: 100%; }
.card-text { padding: 30px 32px 32px; }
.card-text .tag { margin-bottom: 14px; display: flex; gap: 14px; align-items: baseline; }
.num { color: var(--accent); font-variant-numeric: tabular-nums; }
.card-text h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; 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; }

.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; }
.art-radio .bars rect { fill: var(--ink-2); 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; }
.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; }
.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%; }
.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; }
.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); }
.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 */
.how { position: relative; padding: 120px 0 140px; }
.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); }
.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 { fill: var(--ink-2); 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; } }

.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. Lo stesso modulo vive anche nel terminale. */
.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; }
.o-form .field input, .o-form .field textarea { font: 14px var(--mono); padding: 9px 12px; border-radius: 6px; }
.o-form .field label { font: 12px var(--mono); }
.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; }
.o-form .contact-form button { font: 13px var(--mono); padding: 9px 18px; background: var(--phos); }
.contact-form button:hover { background: #fff; }
.o-form .contact-form button:hover { background: #c4ecd0; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.status { font-size: 14px; }
.o-form .status { font: 13px var(--mono); }
.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; }

/* 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 della pagina classica: parole che si mettono a fuoco, righe che salgono */
.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; }

/* con prefers-reduced-motion niente si muove, tutto resta leggibile */
.reduce * { transition: none !important; animation: none !important; }
.reduce .paths { display: none; }
.reduce .cur { opacity: 1; }
.reduce .o-shot img { filter: none !important; transform: none !important; }
.reduce .chip::before { display: none; }
.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; }
.reduce .rise { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .console { padding: 6px; }
  .term { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40px auto minmax(0, 1fr) auto; border-radius: 12px; backdrop-filter: blur(10px); }
  .term-bar { gap: 10px; padding: 0 10px; }
  .term-title { display: none; }
  .lights { flex: 1; }
  .term-gui { font-size: 11px; padding: 5px 9px; }
  /* il lato diventa una striscia: ora, i quattro punti, l'ultima riga del log */
  .term-side { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 12px; padding: 6px 12px; border-left: 0; border-bottom: 1px solid var(--line); font-size: 11px; overflow: hidden; background-image: none; }
  .side-clock { gap: 6px; font-size: 10.5px; }
  .side-clock time { font-size: 13px; }
  .side-stats, .side-status, .side-log-head { display: none; }
  .side-systems { display: flex; gap: 6px; }
  .side-systems li { display: block; padding: 0; border: 0; }
  .term-side .sys-name, .term-side .sys-stack, .term-side .sys-who { display: none; }
  .side-log { flex: 1; min-width: 0; display: block; border: 0; padding: 0; }
  .side-log ol { display: block; }
  .side-log li { padding: 0; }
  .side-log li:not(:last-child) { display: none; }
  .term-screen { grid-row: 3; padding: 12px 14px 16px; font-size: 13px; }
  .term-chips { grid-row: 4; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; }
  .term-chips::-webkit-scrollbar { display: none; }
  .ln.row { grid-template-columns: minmax(0, 1fr); }
  .o-card { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .o-art { max-width: 260px; }
  .o-proof { grid-template-columns: 1fr; gap: 8px; }
  .o-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .o-shots.one { grid-template-columns: minmax(0, 1fr); }
  .ln.credo { font-size: 14px; }

  .menu { display: none; }
  .top-console { display: none; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .monitor-body { grid-template-columns: 1fr; }
  .systems { padding: 4px 18px 10px; }
  .about { padding: 60px 0 40px; }
  .cards { grid-template-columns: 1fr; }
  .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; }
  .lightbox { padding: 48px 12px 24px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .before { padding: 20px 0 80px; }
  .contact { padding: 80px 0 100px; }
}
