/* ================================================================
   EDOARDO GUTTUSO — PORTFOLIO
   Design system condiviso (home + portfolio)
   ================================================================ */

/* ----------------------------------------------------------------
   TOKENS
---------------------------------------------------------------- */
:root {
  --bg: #f3f1ec;               /* off-white caldo */
  --bg-soft: #eceae2;
  --fg: #0c0c0d;               /* quasi nero */
  --fg-soft: #2a2a2c;
  --muted: #7a766e;
  --accent: #0aa6c9;           /* ciano leggibile su chiaro */
  --accent-bright: #19e3ff;    /* ciano luminoso (glow / dark) */
  --line: rgba(12, 12, 13, 0.12);
  --line-strong: rgba(12, 12, 13, 0.25);

  --dark: #0b0b0c;             /* band scure / preloader / menu */
  --dark-2: #131316;
  --fg-inv: #f3f1ec;
  --line-inv: rgba(243, 241, 236, 0.16);

  --font-head: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1280px;
  --maxw-wide: 1520px;
  --pad: clamp(20px, 5vw, 64px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ----------------------------------------------------------------
   BASE
---------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* niente pinch-zoom né sbordi laterali su mobile */
  overflow-x: hidden;
  overflow-x: clip;
  touch-action: pan-x pan-y;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
html.lightbox-open, html.menu-open { overflow: hidden; }

::selection { background: var(--accent-bright); color: var(--dark); }

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -100px; left: 16px;
  background: var(--dark); color: var(--fg-inv);
  padding: 10px 18px; border-radius: 6px;
  z-index: 10001; font-size: .85rem;
  transition: top .3s ease;
}
.skip-link:focus { top: 16px; }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* ----------------------------------------------------------------
   LAYOUT UTILITIES
---------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding-inline: clamp(16px, 3.5vw, 44px); }
section[id], div[id] { scroll-margin-top: 96px; }

.eyebrow {
  font-size: .72rem; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); flex: none; }
.eyebrow .idx { color: var(--accent); }

/* ----------------------------------------------------------------
   TITOLI ANIMATI (split in lettere)
---------------------------------------------------------------- */
.anim-head {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: .95;
}
.anim-head .word { display: inline-block; white-space: nowrap; }
.anim-head .char {
  display: inline-block;
  transform: translateY(115%) rotate(5deg);
  opacity: 0;
  transition: transform .8s var(--ease-out), opacity .6s ease, color .3s ease;
}
.anim-head.in .char { transform: none; opacity: 1; }
.anim-head .hl { color: var(--accent); }

@media (hover: hover) {
  .anim-head.hoverable:hover .char {
    animation: charPop .55s var(--ease-out) both;
    animation-delay: calc(var(--i) * 20ms);
    color: var(--accent);
  }
}
@keyframes charPop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-24%); }
  100% { transform: translateY(0); }
}

/* ----------------------------------------------------------------
   REVEAL GENERICI
---------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* immagini con maschera */
.img-reveal { position: relative; overflow: hidden; background: var(--bg-soft); }
.img-reveal::after {
  content: ''; position: absolute; inset: 0; background: var(--bg);
  transform: scaleX(1); transform-origin: right; z-index: 3;
  transition: transform 1s var(--ease-io);
}
.img-reveal.in::after { transform: scaleX(0); }
.img-reveal img, .img-reveal video, .img-reveal .ph {
  transform: scale(1.12);
  transition: transform 1.4s var(--ease-out);
}
.img-reveal.in img, .img-reveal.in video, .img-reveal.in .ph { transform: scale(1); }

/* wrapper parallasse (nessuna transition sul transform) */
.plx { position: absolute; inset: -9% 0; will-change: transform; }
.plx > .ph, .plx > img { width: 100%; height: 100%; object-fit: cover; }

/* media "plug-and-play": si sovrappongono al segnaposto quando il file esiste */
.inline-media {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover;
}

/* placeholder */
.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center;
  background: linear-gradient(140deg, #e4e1d8, #d9d5ca);
  color: #8d887c; text-align: center; padding: 18px;
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
}
.ph .ph-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: 0;
  color: var(--accent);
}
.ph--dark {
  background: linear-gradient(160deg, #101114, #1a1d23);
  color: #6e747e;
}

/* ----------------------------------------------------------------
   BOTTONI
---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 30px; border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  will-change: transform;
}
.btn .arr { transition: transform .35s var(--ease-out); }
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:hover .arr { transform: translateX(5px); }
.btn--inv { border-color: var(--line-inv); color: var(--fg-inv); }
.btn--inv:hover { background: var(--fg-inv); color: var(--dark); border-color: var(--fg-inv); }

/* ----------------------------------------------------------------
   CURSORE PERSONALIZZATO
---------------------------------------------------------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-bright), 0 0 22px var(--accent-bright);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(10, 166, 201, .55);
  display: flex; align-items: center; justify-content: center;
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              background .3s ease, border-color .3s ease;
}
.cursor-ring .cursor-label {
  font-size: .58rem; font-weight: 600; letter-spacing: 2px;
  color: var(--fg-inv); opacity: 0; transform: scale(.6);
  transition: opacity .25s ease, transform .25s var(--ease-out);
  text-transform: uppercase; white-space: nowrap;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(10,166,201,.08); border-color: var(--accent); }
.cursor-ring.is-label {
  width: 88px; height: 88px;
  background: rgba(11, 11, 12, .88); border-color: transparent;
  backdrop-filter: blur(2px);
}
.cursor-ring.is-label .cursor-label { opacity: 1; transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ----------------------------------------------------------------
   GRANA FILM
---------------------------------------------------------------- */
.grain {
  position: fixed; inset: -60px; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-size: 180px;
  opacity: .045; mix-blend-mode: multiply;
  animation: grain 900ms steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -16px); }
  75% { transform: translate(-10px, -8px); }
  100% { transform: translate(0, 0); }
}

/* ----------------------------------------------------------------
   PRELOADER + CURTAIN (transizioni pagina)
---------------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--dark); color: var(--fg-inv);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: clamp(24px, 5vh, 56px) clamp(20px, 5vw, 64px);
  transition: transform .75s var(--ease-io);
}
.preloader.done { transform: translateY(-101%); }
.preloader .pl-tag {
  font-size: .7rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(243, 241, 236, .55); padding-bottom: 14px;
}
.preloader .pl-count {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(4rem, 14vw, 10rem); line-height: .85;
  letter-spacing: -0.03em;
}
.preloader .pl-count::after { content: ''; display: inline-block; width: .14em; height: .14em; margin-left: .08em; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 18px var(--accent-bright); }

.curtain {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--dark);
  transform: scaleY(0); transform-origin: bottom;
  pointer-events: none;
}
html.curtain-cover .curtain { transform: scaleY(1); }
html.curtain-out .curtain {
  transform: scaleY(0); transform-origin: top;
  transition: transform .65s var(--ease-io);
}
.curtain.closing {
  transform: scaleY(1); transform-origin: bottom;
  transition: transform .5s var(--ease-io);
  pointer-events: auto;
}

/* ----------------------------------------------------------------
   PROGRESS BAR
---------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-bright);
  z-index: 1001;
}

/* ----------------------------------------------------------------
   NAV
---------------------------------------------------------------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  transition: padding .4s ease, background .4s ease, color .4s ease;
}
header.nav.scrolled {
  padding-block: 14px;
  background: rgba(243, 241, 236, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.nav.over-dark { color: var(--fg-inv); }
header.nav.over-dark.scrolled {
  background: rgba(11, 11, 12, .78);
  border-bottom-color: var(--line-inv);
}

.nav .logo {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.02rem; letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav .logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.nav nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav nav a {
  position: relative; padding: 4px 0;
  font-size: .78rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  display: inline-block;
}
.nav nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s var(--ease-out);
}
.nav nav a:hover::after { width: 100%; }
.nav nav a.active::after { width: 100%; background: var(--accent); }
.nav nav a.active { color: var(--accent); }

/* burger (mobile) */
.burger {
  display: none; position: relative; z-index: 1002;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.burger span {
  display: block; width: 18px; height: 1.6px; background: currentColor;
  transition: transform .4s var(--ease-out), opacity .3s ease;
}
html.menu-open .burger { border-color: var(--line-inv); color: var(--fg-inv); }
html.menu-open .burger span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
html.menu-open .burger span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .burger { display: inline-flex; }
}

/* menu mobile fullscreen */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--dark); color: var(--fg-inv);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-io);
  visibility: hidden;
}
html.menu-open .mobile-menu { clip-path: inset(0 0 0% 0); visibility: visible; }
.mobile-menu a.mm-link {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  line-height: 1.16; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s ease, transform .5s var(--ease-out);
}
.mobile-menu a.mm-link small {
  font-family: var(--font-body); font-weight: 500;
  font-size: .7rem; letter-spacing: 2px; color: var(--accent-bright);
}
html.menu-open .mm-link { opacity: 1; transform: none; }
html.menu-open .mm-link:nth-child(1) { transition-delay: .15s; }
html.menu-open .mm-link:nth-child(2) { transition-delay: .22s; }
html.menu-open .mm-link:nth-child(3) { transition-delay: .29s; }
.mobile-menu .mm-foot {
  position: absolute; bottom: 32px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(243, 241, 236, .55);
  opacity: 0; transition: opacity .5s ease .35s;
}
html.menu-open .mm-foot { opacity: 1; }
.mobile-menu .mm-foot a { color: var(--fg-inv); }

/* ----------------------------------------------------------------
   HERO (home)
---------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: clamp(120px, 18vh, 200px);
  position: relative;
}
.hero .hero-core { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 {
  font-size: clamp(3.2rem, 11.5vw, 10.5rem);
  margin-top: 22px;
}
.hero .sub {
  margin-top: clamp(26px, 4.5vw, 52px);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 28px; flex-wrap: wrap;
}
.hero .sub p {
  max-width: 480px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
}
.hero .sub .hero-meta {
  text-align: right;
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); line-height: 2;
}
.hero .sub .hero-meta .scroll-hint { display: inline-block; animation: floaty 2.2s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (max-width: 640px) {
  .hero .sub { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero .sub .hero-meta {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    text-align: left;
  }
  .hero .sub .hero-meta br { display: none; }
}

/* marquee servizi */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 18px; margin-top: clamp(40px, 7vh, 80px);
  user-select: none;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marq 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  letter-spacing: 3px; text-transform: uppercase;
  white-space: nowrap; padding-right: 18px;
  color: var(--fg-soft);
}
.marquee-track span em { font-style: normal; color: var(--accent); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------
   MANIFESTO (scrub allo scroll)
---------------------------------------------------------------- */
.manifesto { padding: clamp(110px, 18vh, 220px) 0; }
.manifesto .scrub {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 3.8rem);
  line-height: 1.18; letter-spacing: -0.02em;
  max-width: 22ch;
}
.manifesto .scrub .w {
  opacity: .12;
  transition: opacity .35s ease, color .35s ease;
}
.manifesto .scrub .w.on { opacity: 1; }
.manifesto .scrub .w.k.on { color: var(--accent); }

/* ----------------------------------------------------------------
   ABOUT
---------------------------------------------------------------- */
.about { padding-bottom: clamp(80px, 12vh, 160px); }
.about .lead {
  display: block;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  font-weight: 600; line-height: 1.1;
  max-width: 20ch; margin-top: 26px;
}
.about-media {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 44px);
  margin: clamp(56px, 8vw, 110px) 0;
  align-items: center;
}
.about-media .img-reveal { border-radius: 14px; }
.about-media .slot-video { aspect-ratio: 9 / 16; }
.about-media .slot-photo { aspect-ratio: 3 / 4; }
@media (max-width: 760px) {
  .about-media { grid-template-columns: 1fr; gap: 22px; }
  .about-media .img-reveal { max-width: 360px; justify-self: center; width: 100%; }
}

.about-text {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 5vw, 80px); align-items: start;
}
.col-label {
  font-size: .72rem; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted);
}
.about-text p {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin-top: 18px; max-width: 56ch; color: var(--fg-soft);
}
.about-text .big-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 1; letter-spacing: -0.03em;
  margin-top: 14px;
}
.about-text .big-num .plus { color: var(--accent); }
.about-text .big-num small {
  display: block;
  font-family: var(--font-body); font-weight: 500;
  font-size: .74rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); margin-top: 12px;
}
@media (max-width: 700px) { .about-text { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------
   SERVIZI
---------------------------------------------------------------- */
.services { padding: clamp(80px, 13vh, 170px) 0; }
.services .services-list { margin-top: clamp(36px, 6vh, 64px); border-bottom: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1.1fr 1.4fr 40px;
  align-items: baseline; gap: clamp(14px, 3vw, 40px);
  padding: clamp(24px, 3.5vw, 40px) 14px;
  border-top: 1px solid var(--line);
  transition: background .4s ease, color .4s ease, padding-left .4s var(--ease-out);
}
.service:hover { background: var(--dark); color: var(--fg-inv); padding-left: 26px; }
.service .s-num {
  font-family: var(--font-head); font-weight: 500;
  font-size: .85rem; color: var(--accent);
}
.service h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 2rem); letter-spacing: -0.02em;
}
.service p { font-size: .95rem; color: var(--muted); transition: color .4s ease; }
.service:hover p { color: rgba(243, 241, 236, .65); }
.service .s-arrow {
  justify-self: end; font-size: 1.2rem;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .35s ease, transform .35s var(--ease-out);
  color: var(--accent-bright);
}
.service:hover .s-arrow { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .service { grid-template-columns: 44px 1fr; grid-template-rows: auto auto; }
  .service p { grid-column: 2; }
  .service .s-arrow { display: none; }
}

/* ----------------------------------------------------------------
   TEASER PORTFOLIO (home)
---------------------------------------------------------------- */
.work-teaser { padding: clamp(70px, 11vh, 150px) 0; }
.teaser-grid {
  /* 3.16:1 ≈ (16/9)² → le due cornici 16:9 e 9:16 hanno la stessa altezza */
  display: grid; grid-template-columns: 3.16fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(40px, 6vh, 70px);
  align-items: start;
}
.tile { display: block; position: relative; }
.tile .tile-frame {
  position: relative; overflow: hidden; border-radius: 8px;
}
/* cornici identiche ai formati video: niente ritagli */
.tile--h .tile-frame { aspect-ratio: 16 / 9; }
.tile--v .tile-frame { aspect-ratio: 9 / 16; border-radius: 12px; }
/* tessera verticale stretta: testi più compatti */
.tile--v .tile-name { font-size: clamp(1.2rem, 1.9vw, 1.8rem); }
.tile--v .tile-tag { padding: 6px 10px; font-size: .6rem; letter-spacing: 1.5px; }
.tile .tile-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%);
  opacity: 0; transition: opacity .5s ease;
}
.tile .tile-frame:has(video)::before { opacity: 1; }
.tile .tile-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 3vw, 34px);
}
.tile .tile-tag {
  align-self: flex-start;
  font-size: .68rem; font-weight: 600; letter-spacing: 2px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff; background: rgba(0, 0, 0, .25); backdrop-filter: blur(4px);
}
.tile--light .tile-tag { border-color: var(--line-strong); color: var(--fg); background: rgba(243,241,236,.5); }
.tile .tile-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.02em;
  color: #fff; display: flex; align-items: center; gap: 14px;
}
.tile--light .tile-name { color: var(--fg); }
.tile .tile-name .arr { font-size: .8em; transition: transform .4s var(--ease-out); }
.tile:hover .tile-name .arr { transform: translate(6px, -6px); }
.tile .ph { transition: transform 1s var(--ease-out); }
.tile:hover .ph { transform: scale(1.05); }
@media (max-width: 720px) {
  .teaser-grid { grid-template-columns: 1fr; gap: 24px; }
  .tile--v { width: min(280px, 78%); justify-self: center; }
  .tile--v .tile-name { font-size: clamp(1.3rem, 6vw, 1.8rem); }
}

.work-teaser .teaser-cta { text-align: center; margin-top: clamp(40px, 7vh, 70px); }

/* ----------------------------------------------------------------
   PAGE HERO (portfolio)
---------------------------------------------------------------- */
.page-hero { padding-top: clamp(140px, 22vh, 240px); padding-bottom: clamp(50px, 8vh, 100px); }
.page-hero h1 { font-size: clamp(3rem, 11vw, 9.5rem); margin-top: 20px; }
.page-hero .sub {
  margin-top: clamp(22px, 3.5vw, 40px);
  max-width: 520px; color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

/* ----------------------------------------------------------------
   BRANDS
---------------------------------------------------------------- */
.brands { padding: clamp(50px, 8vh, 110px) 0; }
.brands-grid {
  margin-top: clamp(36px, 6vh, 60px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.brand-cell {
  position: relative; aspect-ratio: 8 / 5;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background .45s ease;
}
.brand-cell:nth-child(4n) { border-right: none; }
.brand-cell:nth-last-child(-n+4) { border-bottom: none; }
.brand-cell .b-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(.95rem, 1.8vw, 1.4rem);
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg-soft);
  transition: color .45s ease, transform .45s var(--ease-out);
}
.brand-cell .b-idx {
  position: absolute; top: 12px; left: 14px;
  font-size: .62rem; letter-spacing: 1.5px; color: var(--muted);
  transition: color .45s ease;
}
.brand-cell:hover { background: var(--dark); }
.brand-cell:hover .b-name { color: var(--accent-bright); transform: scale(1.05); }
.brand-cell:hover .b-idx { color: rgba(243, 241, 236, .5); }

/* celle con logo immagine */
.brand-cell .b-logo {
  max-width: 62%; max-height: 52%; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .45s ease, opacity .45s ease, transform .45s var(--ease-out);
}
.brand-cell--logo:hover { background: var(--bg-soft); }
.brand-cell--logo:hover .b-logo { filter: none; opacity: 1; transform: scale(1.04); }
.brand-cell--logo:hover .b-idx { color: var(--muted); }
@media (max-width: 720px) {
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .brand-cell:nth-child(2n) { border-right: none; }
  .brand-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .brand-cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* ----------------------------------------------------------------
   GALLERIE VIDEO
---------------------------------------------------------------- */
.gallery { padding: clamp(70px, 11vh, 150px) 0; }
.gallery .gal-head { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.gallery .gal-head p.gal-sub { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.gallery h2 { font-size: clamp(2.2rem, 6.5vw, 5rem); margin-top: 16px; }

.grid-h {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
  margin-top: clamp(40px, 6vh, 64px);
}
.grid-v {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(40px, 6vh, 64px);
}
@media (max-width: 900px) { .grid-v { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-h { grid-template-columns: 1fr; } }

.vid-card { position: relative; }
.vid-card .frame {
  position: relative; overflow: hidden; border-radius: 8px;
  background: var(--bg-soft);
}
.vid-card--h .frame { aspect-ratio: 16 / 9; }
.vid-card--v .frame { aspect-ratio: 9 / 16; border-radius: 14px; }
.vid-card .frame img, .vid-card .frame .ph {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out), filter .5s ease;
}
.vid-card:hover .frame img, .vid-card:hover .frame .ph {
  transform: scale(1.05); filter: brightness(.82);
}
.vid-card .play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 11, 12, .45); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .5);
  opacity: 0; transform: scale(.7);
  transition: opacity .35s ease, transform .45s var(--ease-out), background .35s ease;
  z-index: 2;
}
.vid-card:hover .play { opacity: 1; transform: scale(1); }
.vid-card:hover .play { background: var(--accent); border-color: var(--accent); }
.vid-card .play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.vid-card .caption {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; margin-top: 14px; padding-inline: 2px;
}
.vid-card .caption h3 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: -0.01em;
}
.vid-card .caption .client {
  font-size: .68rem; font-weight: 500; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.vid-card--v .caption h3 { font-size: clamp(.9rem, 1.4vw, 1.05rem); }

/* ----------------------------------------------------------------
   LIGHTBOX VIDEO
---------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 6, 8, .93);
  opacity: 0; transition: opacity .4s ease;
}
.lightbox.open .lb-backdrop { opacity: 1; }
.lb-body {
  position: relative; z-index: 2;
  width: min(1080px, 92vw);
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: opacity .45s ease .1s, transform .55s var(--ease-out) .1s;
}
.lightbox.open .lb-body { opacity: 1; transform: none; }
.lightbox.lb-v .lb-body { width: auto; }
.lb-media {
  background: #000; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16 / 9; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox.lb-v .lb-media { aspect-ratio: 9 / 16; height: min(80vh, 780px); width: auto; }
.lb-media video, .lb-media iframe { width: 100%; height: 100%; border: none; display: block; }
.lb-empty { text-align: center; color: var(--fg-inv); padding: 30px; }
.lb-empty .lb-e-eyebrow {
  font-size: .66rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-bright);
}
.lb-empty h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin-top: 14px;
}
.lb-empty p { color: rgba(243, 241, 236, .55); font-size: .9rem; margin-top: 10px; max-width: 40ch; }
.lb-cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  color: var(--fg-inv); margin-top: 16px; padding-inline: 4px;
}
.lb-cap .lb-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.lb-cap .lb-client { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(243,241,236,.55); }
.lb-close {
  position: absolute; top: -54px; right: 0;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(243, 241, 236, .35); color: var(--fg-inv);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: background .3s ease, transform .3s var(--ease-out);
}
.lb-close:hover { background: var(--accent); border-color: var(--accent); color: #000; transform: rotate(90deg); }
@media (max-width: 640px) {
  .lb-close {
    top: 10px; right: 10px; z-index: 3;
    background: rgba(11, 11, 12, .55); backdrop-filter: blur(4px);
  }
}

/* ----------------------------------------------------------------
   CONTACT BAND (scura) + FOOTER
---------------------------------------------------------------- */
.contact-band {
  background: var(--dark); color: var(--fg-inv);
  margin-top: clamp(60px, 10vh, 140px);
  padding-top: clamp(90px, 15vh, 200px);
  position: relative; overflow: hidden;
}
.contact-band::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 227, 255, .07), transparent 65%);
  pointer-events: none;
}
.contact-band .eyebrow { color: rgba(243, 241, 236, .5); }
/* dash simmetrica: centrato davvero (a sinistra c'è già ::before) */
.contact-band .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--accent); flex: none; }
.contact-band .contact-inner { text-align: center; position: relative; }
.contact-band h2 { font-size: clamp(3rem, 12vw, 10rem); }
.contact-band .contact-sub { color: rgba(243, 241, 236, .55); margin-top: 22px; font-size: clamp(.95rem, 1.5vw, 1.15rem); }
.contact-band .email-link {
  display: inline-block; margin-top: clamp(28px, 4vh, 44px);
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(1.15rem, 3.2vw, 2.2rem);
  color: var(--accent-bright); position: relative;
  text-shadow: 0 0 26px rgba(25, 227, 255, .35);
}
.contact-band .email-link::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--accent-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.contact-band .email-link:hover::after { transform: scaleX(1); }
.contact-band .socials {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  margin-top: clamp(30px, 5vh, 50px);
}
.contact-band .socials a {
  font-size: .74rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(243, 241, 236, .6);
  padding: 12px 22px; border: 1px solid var(--line-inv); border-radius: 999px;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.contact-band .socials a:hover { color: var(--dark); background: var(--fg-inv); border-color: var(--fg-inv); }

.site-footer {
  margin-top: clamp(70px, 12vh, 140px);
  border-top: 1px solid var(--line-inv);
  padding-block: 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(243, 241, 236, .45);
}
.site-footer .f-clock { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .f-clock::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright);
}
.site-footer .to-top {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-inv); color: var(--fg-inv);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease;
}
.site-footer .to-top:hover { background: var(--accent-bright); color: var(--dark); border-color: var(--accent-bright); }
@media (max-width: 640px) {
  .site-footer {
    flex-direction: column; justify-content: center; align-items: center;
    text-align: center; gap: 18px; padding-block: 34px;
  }
}

/* ----------------------------------------------------------------
   REDUCED MOTION
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .anim-head .char { opacity: 1 !important; transform: none !important; }
  .img-reveal::after { display: none; }
  .img-reveal img, .img-reveal .ph { transform: none; }
  .manifesto .scrub .w { opacity: 1; }
  .preloader, .curtain { display: none !important; }
  .marquee-track { animation: none !important; }
  .grain { display: none; }
  body.is-loading { overflow: auto; }
}
