/* Sistemi Zero — sala controllo notturna.
   Layout: tela 3D fissa dietro, capitoli a tutta altezza che guidano la telecamera,
   poi sezioni informative su griglia 12 colonne (max 1240px). */

@font-face { font-family: "Saira"; src: url("../fonts/saira-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-latin-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Saira"; src: url("../fonts/saira-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #05080f;
  --bg-2: #0a1020;
  --panel: rgba(13, 20, 38, .72);
  --line: rgba(120, 150, 210, .16);
  --line-2: rgba(120, 150, 210, .28);
  --fg: #e9eef8;
  --muted: #93a0bb;
  --blue: #4d8eea;        /* spirale del logo, schiarita */
  --blue-deep: #2b2c6b;   /* testo del logo */
  --amber: #ffb13b;       /* LED, segnali */
  --ok: #3ddc97;

  --f-display: "Saira", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

h1, h2, h3 { font-family: var(--f-display); font-style: italic; font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
.tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 10px;
}
.tag::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.addr { font-family: var(--f-mono); font-size: 12px; color: var(--amber); letter-spacing: .04em; }

/* ---------- 3D canvas ---------- */
#gl {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  transition: opacity 1.2s var(--ease);
}
.gl-shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 70% 40%, transparent 30%, rgba(5, 8, 15, .65) 100%);
}
.gl-dim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: rgba(5, 8, 15, .78); transition: opacity .2s linear;
}
.no-webgl #gl { display: none; }
.no-webgl body, body.no-webgl {
  background:
    radial-gradient(60% 50% at 75% 30%, rgba(77, 142, 234, .22), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(43, 44, 107, .5), transparent 70%), var(--bg);
  background-attachment: fixed;
}
main, .site-header, footer { position: relative; z-index: 2; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: grid; place-items: center; transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; gap: 14px; justify-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.loader-bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 30;
  transition: background .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 8, 15, .7); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: block; width: 168px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; text-decoration: none; font-size: 14.5px; color: var(--muted);
  border-radius: 999px; transition: color .25s, background .25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: rgba(120, 150, 210, .1); }
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--f-body); padding: 16px 24px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -10px var(--b); }
.btn:hover::after { transform: translateX(100%); }
.btn.ghost { background: rgba(10, 16, 32, .5); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn.ghost:hover { box-shadow: none; border-color: var(--fg); }
.btn.sm { padding: 11px 18px; font-size: 14px; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--fg); border-radius: 999px; padding: 10px 16px; font: 500 14px var(--f-body); cursor: pointer; }
@media (max-width: 900px) {
  .nav, .site-header .btn { display: none; }
  .menu-btn { display: block; }
  .brand { width: 140px; }
  .site-header.open { background: rgba(5, 8, 15, .97); }
  .site-header.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(5, 8, 15, .97); padding: 12px var(--gutter-r) 24px var(--gutter); border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav a { font-size: 20px; padding: 14px 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line); }
}

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em;
  display: flex; align-items: center; gap: 22px; padding: 8px 16px; border-radius: 999px;
  background: rgba(5, 8, 15, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .5s; white-space: nowrap;
}
.hud ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hud li a { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 2px 6px; color: var(--muted); transition: color .3s; }
.hud li a i { width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: width .4s var(--ease), background .3s; }
.hud li a span { display: inline-block; max-width: 0; overflow: hidden; transition: max-width .5s var(--ease); vertical-align: bottom; }
.hud li.on a { color: var(--fg); }
.hud li.on a i { width: 26px; background: var(--blue); }
.hud li.on a span { max-width: 120px; }
.hud .scan { display: flex; gap: 14px; padding-left: 16px; border-left: 1px solid var(--line); }
.hud .scan b { color: var(--fg); font-weight: 500; }
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); margin-right: 7px; vertical-align: 1px; animation: led 1.2s steps(2, jump-none) infinite; }
@keyframes led { 50% { opacity: .3; } }
.hud.off { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .hud { display: none; } }

/* ---------- capitoli 3D ---------- */
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; padding-block: 90px; }
.chapter .wrap { width: 100%; }
.chapter-copy { max-width: 540px; position: relative; }
.chapter.right .chapter-copy { margin-left: auto; }
.chapter-copy::before {
  content: ""; position: absolute; inset: -60px -80px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 8, 15, .86), rgba(5, 8, 15, .5) 60%, transparent);
}
.chapter h2 { font-size: clamp(36px, 6vw, 84px); line-height: .92; text-transform: uppercase; margin: 18px 0 22px; }
.chapter h2 em { font-style: italic; color: var(--blue); }
.chapter p { color: #c3cce0; margin: 0 0 22px; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--f-mono); font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5, 8, 15, .5); backdrop-filter: blur(6px); }

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding-block: 120px 120px; }
.hero h1 {
  font-size: clamp(38px, 10.5vw, 168px); line-height: .84; text-transform: uppercase; font-weight: 800;
  margin: 22px 0 28px; letter-spacing: -.02em;
}
.hero h1 .l { display: block; overflow: hidden; padding-right: .08em; }
.hero h1 .l > span { display: inline-block; }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px rgba(233, 238, 248, .9); }
.hero h1 em { color: var(--blue); }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px 60px; align-items: flex-end; justify-content: space-between; }
.hero p.lead { font-size: 19px; color: #c3cce0; max-width: 44ch; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin-top: 48px; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--blue), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 700px) {
  .hero { padding-block: 110px 90px; align-items: flex-end; }
  .chapter { align-items: flex-end; padding-block: 0 12vh; }
  .chapter.right .chapter-copy { margin-left: 0; }
}

/* ---------- sezioni informative ---------- */
.info { position: relative; }
.sec { padding-block: 140px; position: relative; }
.sec-head { display: grid; grid-template-columns: 5fr 6fr; gap: 24px 60px; align-items: end; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: .92; text-transform: uppercase; margin-top: 16px; }
.sec-head p { color: var(--muted); margin: 0; max-width: 54ch; }
@media (max-width: 860px) { .sec { padding-block: 96px; } .sec-head { grid-template-columns: 1fr; margin-bottom: 44px; } }

/* servizi */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.svc {
  background: rgba(7, 11, 22, .86); padding: 34px 30px 36px; position: relative; min-width: 0;
  transition: background .4s; overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(77, 142, 234, .16), transparent 60%);
}
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.svc svg { width: 40px; height: 40px; stroke: var(--blue); fill: none; stroke-width: 1.4; }
.svc h3 { font-size: 27px; line-height: 1.02; text-transform: uppercase; margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }
.svc .chips li { font-size: 11.5px; padding: 4px 10px; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

/* partner */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner {
  border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; min-width: 0;
  background: linear-gradient(160deg, rgba(20, 30, 58, .7), rgba(7, 11, 22, .85));
  display: flex; flex-direction: column; gap: 14px; transform-style: preserve-3d; transition: border-color .4s;
  will-change: transform;
}
.partner:hover { border-color: var(--line-2); }
.partner .lvl { font-family: var(--f-mono); font-size: 11.5px; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
.partner .nm { font-family: var(--f-display); font-style: italic; font-weight: 800; font-size: 46px; line-height: .9; text-transform: uppercase; }
.partner p { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }
.partner a { font-family: var(--f-mono); font-size: 13px; text-underline-offset: 5px; text-decoration-color: var(--blue); }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr; } }

/* metodo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-2); }
.steps { --p: 0; }
.steps::after { content: ""; position: absolute; left: 0; top: 22px; height: 1px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 10px var(--blue); }
.step { padding-right: 18px; min-width: 0; position: relative; z-index: 1; }
.step .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; position: relative;
  border: 1px solid var(--line-2); background: var(--bg); font-family: var(--f-mono); font-size: 13px; color: var(--muted);
  transition: border-color .4s, color .4s, box-shadow .4s;
}
.step.on .n { border-color: var(--blue); color: var(--fg); box-shadow: 0 0 0 4px rgba(77, 142, 234, .15); }
.step h3 { font-size: clamp(16px, 1.55vw, 21px); text-transform: uppercase; margin: 22px 0 6px; line-height: 1.05; overflow-wrap: anywhere; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps::after { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--p)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0; }
  .step h3 { margin: 10px 0 4px; font-size: 21px; }
  .step p { grid-column: 2; }
}

/* lavori anteprima */
.reel { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.reel a { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: block; background: var(--bg-2); }
.reel a:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.reel a:nth-child(2), .reel a:nth-child(3) { grid-column: span 5; }
.reel a:nth-child(n+4) { grid-column: span 4; }
.reel img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.reel a:hover img { transform: scale(1.05); filter: saturate(1.05); }
.reel span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 13.5px;
  background: linear-gradient(transparent, rgba(5, 8, 15, .9));
}
.reel-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); }
@media (max-width: 760px) { .reel a:nth-child(n) { grid-column: span 12; grid-row: auto; } .reel a:nth-child(n+4) { grid-column: span 6; } }

/* azienda */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: 60px; align-items: start; }
.motto { font-family: var(--f-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 6.4vw, 96px); line-height: .9; margin: 18px 0 0; }
.motto span { display: block; }
.motto span:nth-child(2) { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.motto span:nth-child(3) { color: var(--blue); }
.about-txt p { color: #c3cce0; margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 32px; }
.fact { padding: 20px; border-right: 1px solid var(--line); background: rgba(7, 11, 22, .7); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.fact small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.press { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.press a { color: var(--fg); text-underline-offset: 4px; text-decoration-color: var(--blue); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* contatti */
.contact { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 140px 80px; }
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 50px; align-items: end; }
.contact h2 { font-size: clamp(42px, 8vw, 128px); line-height: .86; text-transform: uppercase; font-weight: 800; margin-top: 18px; }
.contact h2 em { color: var(--blue); }
.cbox { border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: rgba(7, 11, 22, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.crow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow > div { min-width: 0; }
.crow small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }
.crow .v { font-size: 19px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.crow a.v:hover { color: var(--blue); }
.copy { flex-shrink: 0; font: 500 12px var(--f-mono); color: var(--blue); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: border-color .3s, color .3s; }
.copy:hover { border-color: var(--blue); }
.copy.ok { color: var(--ok); border-color: var(--ok); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 30px calc(30px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-mono); font-size: 12px; color: var(--muted); background: var(--bg); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* reveal */
.rv { will-change: transform, opacity; }

/* ---------- pagina lavori ---------- */
.page-lavori { background: var(--bg); }
.lv-hero { padding-block: 170px 50px; }
.lv-hero h1 { font-size: clamp(44px, 11vw, 170px); line-height: .84; text-transform: uppercase; font-weight: 800; margin-top: 18px; }
.lv-hero h1 sup { font-family: var(--f-mono); font-style: normal; font-weight: 400; font-size: 16px; color: var(--blue); vertical-align: top; margin-left: 10px; letter-spacing: 0; }
.lv-hero p { color: var(--muted); max-width: 58ch; margin: 22px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); z-index: 5; }
.filters button {
  font: 500 14px var(--f-body); color: var(--muted); background: rgba(10, 16, 32, .85); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: all .3s;
}
.filters button b { font-family: var(--f-mono); font-weight: 400; font-size: 12px; margin-left: 6px; color: var(--blue); }
.filters button:hover { color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters button[aria-pressed="true"] b { color: var(--blue-deep); }
.grid-lv { columns: 3 340px; column-gap: 16px; padding-block: 36px 120px; }
.grid-lv figure { break-inside: avoid; margin: 0 0 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); cursor: zoom-in; position: relative; }
.grid-lv figure[hidden] { display: none !important; }
.grid-lv img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.grid-lv figure:hover img { transform: scale(1.04); }
.grid-lv figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; border-top: 1px solid var(--line); background: rgba(7, 11, 22, .9); }
.grid-lv figcaption small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.grid-lv button { all: unset; display: block; width: 100%; }
.grid-lv button:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }

.lb {
  position: fixed; inset: 0; z-index: 60; background: rgba(3, 5, 10, .94); backdrop-filter: blur(10px);
  display: grid; grid-template-rows: auto 1fr auto; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  opacity: 0; transition: opacity .35s;
}
.lb.show { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.lb-stage { display: grid; place-items: center; min-height: 0; position: relative; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px -20px #000; }
.lb-cap { text-align: center; padding-top: 14px; font-size: 15px; }
.lb button { background: rgba(20, 30, 58, .8); border: 1px solid var(--line-2); color: var(--fg); border-radius: 999px; cursor: pointer; font: 500 14px var(--f-body); padding: 10px 16px; }
.lb .nav-b { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; padding: 0; font-size: 20px; }
.lb .prev { left: 0; } .lb .next { right: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
