/* Portfolio Andrea D'Orlando — prototipo v7
   Fondo nero, testo bianco caldo, un solo carattere: DM Sans (scelta di Andrea, 06/10). Reference: Neiden, Reelio, Minifolio. */

/* DM Sans servito dal sito (assets/fonts, licenza OFL), non più da Google Fonts: v17, 17/10/2026 */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --ink: #f1eee8;
  --ink-soft: #a7a39b;      /* contrasto ~8:1 su nero */
  --line: rgba(241, 238, 232, 0.16);

  --font: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 32px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* v11: griglia a vista (idea da Reelio): bordo sinistro, centro, bordo destro */
  --edge: max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter)));
  --grid: rgba(241, 238, 232, 0.15);
  --lines:
    linear-gradient(var(--grid), var(--grid)) var(--edge) 0 / 1px 100% no-repeat,
    linear-gradient(var(--grid), var(--grid)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--grid), var(--grid)) calc(100% - var(--edge)) 0 / 1px 100% no-repeat;
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23f1eee8' stroke-opacity='.85'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
 
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); 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; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 8px; }


body { font-family: var(--font); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
  font-size: 15px; font-weight: 500;
}
.nav__name { text-decoration: none; font-weight: 600; transition: opacity 0.4s ease; }

.nav__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__links a { text-decoration: none; }
.nav__links a:hover { text-decoration: underline; }
.nav__copy {
  font: inherit; color: var(--bg); background: var(--ink);
  border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  min-height: 40px;
}
.nav__copy:hover { background: #fff; }

/* ---------- ETICHETTE E PULSANTI ---------- */
.label { margin: 0; font-size: 13px; letter-spacing: 0.02em; color: var(--ink-soft); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }

/* ---------- 1. INTRO: LAVORI NELLO SPAZIO ---------- */
.space { position: relative; height: 300svh; }
.space__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1000px; perspective-origin: 50% 50%; }
.space__world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.space__card {
  position: absolute; margin: 0; width: var(--cw, 260px); left: calc(var(--cw, 260px) / -2); top: 0;
  transform-origin: 50% 50%; will-change: transform, opacity; backface-visibility: hidden;
}
.space__card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: #111; }
.space__intro {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px;
  pointer-events: none; opacity: var(--intro-o, 1);
}
.space__intro p { margin: 0; }
.space__intro .space__who { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.space__label {
  position: absolute; left: var(--gutter); bottom: var(--gutter); margin: 0;
  font-size: 14px; color: var(--ink-soft); min-height: 1.4em;
}
.space__label b { color: var(--ink); font-weight: 600; }
.space__hint { position: absolute; right: var(--gutter); bottom: var(--gutter); margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- 2. FRASE GRANDE ---------- */
.statement { max-width: 1600px; margin: 0 auto; padding: 14vh var(--gutter) 12vh; display: grid; gap: 4vh; }
.statement__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.statement__title {
  margin: 0; width: max-content; max-width: 100%; white-space: nowrap;
  font-size: 13vw; line-height: 0.88; font-weight: 650; letter-spacing: -0.055em;
}
.statement__title .w { display: inline-block; }
.js .statement__title .w { transform: translateY(40%); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.js .statement.is-in .statement__title .w { transform: none; opacity: 1; }
.statement__foot { display: grid; grid-template-columns: minmax(0, 6fr) auto; gap: 24px 48px; align-items: end; }
.statement__lead { margin: 0; max-width: 38ch; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.35; }
.statement__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 3. COSA FACCIO (colonna sinistra ferma) ---------- */
.services {
  max-width: 1600px; margin: 0 auto; padding: 12vh var(--gutter);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 120px);
  border-top: 1px solid var(--line);
}
.services__side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 18px; }
.services__side h2, .works__head h2, .hl__side h2 {
  margin: 0; font-size: clamp(40px, 5vw, 84px); line-height: 0.95; font-weight: 650; letter-spacing: -0.045em;
}
.services__side p:not(.label) { margin: 0; color: var(--ink-soft); max-width: 34ch; }
.services__side .btn { justify-self: start; }
.services__list { display: grid; gap: 12vh; }
.service { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.service__num { margin: 0; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.service h3 { margin: 0; font-size: clamp(30px, 3.2vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.service > p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.service__media { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.service__media { align-items: start; }
.service__media img, .service__media video { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; border-radius: 4px; background: #111; }
.service__media img.contain { object-fit: contain; background: #0b0b0b; }
.service__media img.top { object-position: 50% 0; }
.service__note { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- 4. LAVORI IN EVIDENZA (v11: pannelli che si impilano, griglia a vista, foto; idea da Reelio + aria di Neiden) ---------- */
.works { position: relative; border-top: 1px solid var(--line); }
.works__head {
  position: relative; padding: 14vh var(--edge) 10vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(2 * var(--gutter)); align-items: end; gap: 14px calc(2 * var(--gutter));
}
.works__head > div { display: grid; gap: 14px; }
.works__head > p { margin: 0; color: var(--ink-soft); max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px); }
.work {
  position: sticky; top: 0; min-height: 100svh; isolation: isolate; overflow: hidden;
  background: #070707; border-radius: 22px 22px 0 0; box-shadow: 0 -1px 0 var(--line), 0 -30px 60px rgba(0,0,0,.45);
}
.work::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lines); pointer-events: none; }
/* v12 (Reelio): sfondo a tutto pannello, un elemento al centro, informazioni ai quattro angoli */
.work__bg { position: absolute; inset: 0; z-index: -2; }
.work__bg img, .work__bg video { width: 100%; height: 100%; object-fit: cover; }
.work__bg video { opacity: .62; }
.work__bg img { opacity: .8; }
.work__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.2) 45%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.55)), linear-gradient(rgba(0,0,0,.25), transparent 30%, transparent 70%, rgba(0,0,0,.35)); }
.work__frame {
  position: relative; min-height: 100svh; padding: calc(var(--nav-h) + 5vh) var(--edge) 7vh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: clamp(24px, 3vw, 56px);
}
.work__tl { grid-column: 1; grid-row: 1; }
.work__title { margin: 18px 0 0; font-size: clamp(34px, 3.4vw, 60px); line-height: .98; font-weight: 600; letter-spacing: -0.035em; }
.work__kick { margin: 12px 0 0; font-size: clamp(16px, 1.3vw, 20px); color: var(--ink-soft); }
.work__tr { grid-column: 3; grid-row: 1; align-self: start; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-soft); }
.work__mid {
  grid-column: 2; grid-row: 1 / 4; align-self: center; display: block; position: relative; overflow: hidden;
  width: min(44vw, calc(62svh * var(--arn, 1.5))); aspect-ratio: var(--ar, 3/2); border-radius: 8px; background: #111;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
.work__mid img, .work__mid video { width: 100%; height: 100%; object-fit: cover; }
.work__roles { grid-column: 1; grid-row: 3; align-self: end; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 16px; }
.work__roles li::before { content: "+ "; color: var(--ink-soft); }
.work__link { grid-column: 3; grid-row: 3; justify-self: end; align-self: end; display: inline-flex; gap: 10px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.work__link:hover span { transform: translateX(4px); }
.work__link span { transition: transform .3s var(--ease); }
@media (max-height: 620px) { .work { position: relative; } }

/* ---------- VIDEO PER MARCHI ED EVENTI (striscia orizzontale guidata dallo scroll) ---------- */
.vids { position: relative; height: 340svh; border-top: 1px solid var(--line); }
.vids__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--nav-h) + 4vh); }
.vids__head { max-width: 1600px; width: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.vids__head h2 { margin: 0; font-size: clamp(40px, 5vw, 84px); line-height: .95; font-weight: 650; letter-spacing: -0.045em; }
.vids__head p:not(.label) { margin: 0; color: var(--ink-soft); max-width: 36ch; }
.vids__track { display: flex; gap: clamp(12px, 1.4vw, 22px); align-items: center; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.vid { margin: 0; width: clamp(180px, 17vw, 260px); flex: none; display: grid; gap: 10px; }
.vid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: #111; }
.vid--q video { aspect-ratio: 4 / 5; }
.vid--h { width: clamp(320px, 30vw, 460px); }
.vid--h video { aspect-ratio: 16 / 9; }
.vid figcaption { font-size: 14px; line-height: 1.35; }
.vid figcaption b { display: block; font-weight: 600; }
.vid figcaption span { color: var(--ink-soft); }
.vid a { text-decoration: none; }
.vid a:hover b { text-decoration: underline; }

/* ---------- 5. ALTRI LAVORI (lista con anteprima) ---------- */
.hl {
  max-width: 1600px; margin: 0 auto; padding: 14vh var(--gutter);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 120px);
  border-top: 1px solid var(--line);
}
.hl__side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 18px; }
.hl__side p:not(.label) { margin: 0; color: var(--ink-soft); max-width: 34ch; }
.hl__list { list-style: none; margin: 0; padding: 0; }
.hl__row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line); transition: padding .4s var(--ease), color .3s;
}
.hl__list li:last-child .hl__row { border-bottom: 1px solid var(--line); }
.hl__year { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: 14px; }
.hl__title { font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.hl__type { color: var(--ink-soft); font-size: 15px; }
.hl__thumb { display: none; }
.hl__list:hover .hl__row { color: var(--ink-soft); }
.hl__list .hl__row:hover { color: var(--ink); padding-left: 12px; }
.hl__preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 260px; height: auto; border-radius: 4px; pointer-events: none;
  opacity: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(.92); transition: opacity .3s, transform .15s linear;
}
.hl__preview.is-on { opacity: 1; }

/* ---------- 6. SHOWREEL: UN VIDEO CHE SI APRE IN NOVE ---------- */
.reel9 { position: relative; height: 320svh; }
.reel9__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.reel9__grid {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px;
  transform: scale(var(--z, 1)); transform-origin: 50% 50%; will-change: transform;
}
.reel9__grid video { width: 100%; height: 100%; object-fit: cover; background: #111; border-radius: 2px; }
.reel9__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; align-items: end; gap: 16px; pointer-events: none;
}
.reel9__caption h2 { margin: 0; font-size: clamp(40px, 7vw, 120px); line-height: .9; font-weight: 650; letter-spacing: -0.05em; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.reel9__caption p { margin: 0; color: var(--ink); font-size: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

/* ---------- PROTOTIPO: cambio font ---------- */
.fontswitch {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60; font: 500 12px/1 var(--font);
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.7); color: var(--ink); cursor: pointer;
}

/* ---------- 2. CHI SONO + VOCE ---------- */
.intro-about {
  position: relative; min-height: 100svh;
  display: grid; align-content: center;
  padding: 16vh var(--gutter) 22vh;
}
.intro-about__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  max-width: 1600px; width: 100%; margin: 0 auto;
}
.about__lens { margin: 0; position: relative; width: min(100%, 400px); aspect-ratio: 1; justify-self: end; border-radius: 50%; overflow: hidden; background: #111; }
.about__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__title {
  margin: 0 0 0.4em; font-size: clamp(40px, 6vw, 104px); line-height: 0.9; font-weight: 650;
  letter-spacing: -0.025em;
}
.about__text p { max-width: 46ch; color: var(--ink-soft); font-size: clamp(17px, 1.3vw, 20px); margin: 0 0 1em; }
.about__text p a { color: var(--ink); }
/* la parola che cambia: piccola, in basso a sinistra */
.voice__word {
  position: absolute; left: var(--gutter); bottom: 6vh; margin: 0;
  white-space: nowrap; line-height: 0.9; letter-spacing: -0.02em;
  font-size: clamp(34px, 5.2vw, 88px);
  font-weight: var(--wg, 700);
}
.voice__word.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
@media (prefers-reduced-motion: reduce) { .voice__word { position: static; margin: 8vh auto 0; max-width: 1600px; width: 100%; } }

/* ---------- CONTATTI ---------- */
.contact {
  padding: 22vh var(--gutter) 16vh; max-width: 1600px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.contact__title {
  margin: 0; font-size: clamp(40px, 6vw, 104px); line-height: 0.92; font-weight: 650;
  letter-spacing: -0.025em; max-width: 13ch;
}
.contact__lead { color: var(--ink-soft); margin: 1.2em 0 0.4em; }
.contact__email { margin: 0 0 1.4em; font-size: clamp(24px, 3vw, 44px); font-weight: 500; }
.contact__more { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-soft); }
.contact__more a { color: var(--ink); }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.footer p { margin: 0; }

/* ---------- PAGINA PROGETTO ---------- */
.project { padding-top: calc(var(--nav-h) + 8vh); }
.project__head { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter) 6vh; }
.project__kicker { margin: 0 0 0.5em; color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 22px); }
.project__title {
  margin: 0; font-size: clamp(56px, 12vw, 220px); line-height: 0.86; font-weight: 650;
  letter-spacing: -0.035em; overflow-wrap: anywhere;
}
/* film del progetto (es. animazione dello stand Menfin) */
.project__film { max-width: 1600px; margin: 0 auto 8vh; padding: 0 var(--gutter); display: grid; gap: 12px; }
.project__film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #111; }
.project__film figcaption { color: var(--ink-soft); font-size: 14px; }
/* strisce di immagini: la prima scorre verso destra, la seconda verso sinistra */
.strips { display: grid; gap: clamp(10px, 1.2vw, 18px); }
.strip { overflow: hidden; }
.strip__track { display: flex; width: max-content; will-change: transform; }
.strip__set { display: flex; gap: var(--sg); padding-right: var(--sg); --sg: clamp(10px, 1.2vw, 18px); }
.strip img, .strip video { height: clamp(200px, 34vh, 440px); width: auto; max-width: none; border-radius: 6px; background: #111; object-fit: cover; }
.project__logo { display: block; width: clamp(140px, 14vw, 220px); height: auto; margin-bottom: 4vh; }
/* scheda fissa sotto le strisce */
.sheet {
  max-width: 1600px; margin: 10vh auto 0; padding: 32px var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.sheet__lead { margin: 0; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.25; max-width: 32ch; }
.sheet__facts { margin: 0; display: grid; gap: 20px; align-content: start; }
.sheet__facts dt { color: var(--ink-soft); font-size: 14px; }
.sheet__facts dd { margin: 2px 0 0; }
.sheet__note { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 14px; }
.project__next { max-width: 1600px; margin: 16vh auto 0; padding: 0 var(--gutter) 12vh; }
.project__next a { display: grid; gap: 6px; width: fit-content; text-decoration: none; }
.project__next span { color: var(--ink-soft); }
.project__next strong {
  font-size: clamp(40px, 7vw, 120px); line-height: 0.9; font-weight: 650; letter-spacing: -0.03em;
 
}
.project__next a:hover strong, .project__next a:focus-visible strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

/* ---------- MOBILE ---------- */
@media (max-width: 759px) {
  :root { --nav-h: 56px; }
  .nav { font-size: 14px; }
  .nav__links { gap: 12px; }
  .nav__links li:nth-child(2) { display: none; }
  .nav__copy { padding: 8px 12px; }
  .space { height: 260svh; }
  .statement__title { white-space: normal; width: auto; font-size: 18vw !important; }
  .statement__foot { grid-template-columns: 1fr; }
  .services, .hl { grid-template-columns: 1fr; }
  .services__side, .hl__side { position: static; }
  .services__list { gap: 8vh; }
  .hl__row { grid-template-columns: 64px minmax(0, 1fr); gap: 2px 14px; align-items: center; }
  .hl__title { grid-column: 2; align-self: end; }
  .hl__type { grid-column: 2; align-self: start; }
  .hl__thumb { display: block; grid-row: 1 / span 2; grid-column: 1; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
  .hl__row { grid-template-columns: 64px minmax(0, 1fr); }
  .hl__year { display: none; }
  .hl__preview { display: none; }
  .hl__list .hl__row:hover { padding-left: 0; }
  .intro-about__inner { grid-template-columns: 1fr; }
  .about__lens { width: 56vw; justify-self: start; }
  .intro-about { padding-bottom: 20vh; }
  .sheet { grid-template-columns: 1fr; }
  .reel9 { height: 260svh; }
  .vids { height: 300svh; }
  .vid { width: 46vw; }
  .vid--h { width: 80vw; }
  .reel9__grid { gap: 4px; }
}

/* ---------- MOVIMENTO RIDOTTO ---------- */
@media (prefers-reduced-motion: reduce) {
  .space { height: auto; }
  .space__stage { position: relative; height: auto; overflow: visible; perspective: none; padding: calc(var(--nav-h) + 6vh) var(--gutter) 6vh; }
  .space__world { position: static; width: auto; height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .space__card { position: static; width: auto; left: auto; transform: none !important; opacity: 1 !important; }
  .space__intro { position: static; margin-bottom: 4vh; }
  .space__label, .space__hint { display: none; }
  .js .statement__title .w { transform: none; opacity: 1; }
  .reel9 { height: auto; }
  .vids { height: auto; }
  .vids__stage { position: relative; height: auto; padding-bottom: 8vh; }
  .vids__track { overflow-x: auto; width: auto; padding-top: 4vh; }
  .reel9__stage { position: relative; height: 100svh; }
  .reel9__grid { transform: translate(-50%, -50%); }
  .strip { overflow-x: auto; }
}

/* ---------- v11: GRIGLIA A VISTA, COLONNE ALLINEATE, MEDIA DEI SERVIZI, MOCKUP DEL SITO ---------- */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--lines); }
main, .footer { position: relative; z-index: 1; }
.statement, .services, .hl, .contact { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
.vids__head { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
.intro-about { padding-left: var(--edge); padding-right: var(--edge); }
.intro-about__inner { max-width: none; }
.services, .hl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(2 * var(--gutter)); }
.services, .hl, .contact, .vids, .works__head { position: relative; }
/* le croci "+" dove le linee incontrano i bordi delle sezioni */
.services::before, .hl::before, .contact::before, .vids::before, .works__head::before {
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 11px; pointer-events: none; z-index: 2;
  background: var(--plus) no-repeat calc(var(--edge) - 5px) 0, var(--plus) no-repeat 50% 0, var(--plus) no-repeat right calc(var(--edge) - 5px) top 0;
}
.works__head::before { top: -6px; }

/* Cosa faccio: due formati diversi alla stessa altezza (16:9 + 9:16) e coppie verticali */
.service__media--mix { display: flex; gap: 10px; }
.service__media--mix video { flex: var(--r) 1 0; width: 0; min-width: 0; aspect-ratio: var(--r); }
.service__media--duo video { aspect-ratio: 9 / 16; }

/* Mockup del sito: finestra del browser con la pagina che scorre da sola */
.mock { margin: 8px 0 0; display: grid; gap: 12px; }
.mock__win {
  position: relative; border-radius: 10px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px rgba(241,238,232,.1), 0 30px 80px rgba(0,0,0,.55);
}
.mock__win::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 90% 0%, rgba(232,105,44,.10), transparent 60%); }
.mock__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #1a1a1a; border-bottom: 1px solid rgba(241,238,232,.08); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.mock__bar span { margin: 0 auto; transform: translateX(-20px); font-size: 11px; color: var(--ink-soft); padding: 3px 14px; border-radius: 999px; background: #232323; }
.mock__view { aspect-ratio: 16 / 9.6; overflow: hidden; container-type: size; }
.mock__view img { width: 100%; height: auto; max-width: none; animation: mockscroll 26s ease-in-out infinite alternate; animation-play-state: paused; will-change: transform; }
.mock.is-play .mock__view img { animation-play-state: running; }
@keyframes mockscroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.mock figcaption { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 759px) {
  body::before, .services::before, .hl::before, .contact::before, .vids::before, .works__head::before, .work::before { display: none; }
  .services, .hl, .works__head { grid-template-columns: 1fr; }
  .works__head { padding: 10vh var(--gutter) 6vh; }
  .work { position: relative; min-height: auto; border-radius: 16px 16px 0 0; }
  .work__frame { min-height: auto; grid-template-columns: 1fr; grid-template-rows: none; row-gap: 22px; padding: 9vh var(--gutter); }
  .work__tl, .work__tr, .work__mid, .work__roles, .work__link { grid-column: 1; grid-row: auto; }
  .work__tr { justify-content: flex-start; gap: 6px 18px; flex-wrap: wrap; }
  .work__mid { width: 100%; }
  .work__link { justify-self: start; }
  .service__media--duo { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mock__view img { animation: none; }
  .mock__view { overflow-y: auto; }
}

/* ---------- v12 ---------- */
.service__media--one { grid-template-columns: 1fr; }
.service__media--one video { aspect-ratio: 16 / 9; }
.hl__preview--v { aspect-ratio: 16 / 9; object-fit: cover; width: 320px; }

/* Come lavoro: quattro box a serpente che si accendono scorrendo (Neiden) */
.steps { position: relative; height: 320svh; border-top: 1px solid var(--line); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 11px; pointer-events: none; z-index: 2;
  background: var(--plus) no-repeat calc(var(--edge) - 5px) 0, var(--plus) no-repeat 50% 0, var(--plus) no-repeat right calc(var(--edge) - 5px) top 0; }
.steps__stage {
  position: sticky; top: 0; height: 100svh; padding: calc(var(--nav-h) + 5vh) var(--edge) 7vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(2 * var(--gutter));
}
.steps__side { display: grid; align-content: start; gap: 18px; }
.steps__side h2 { margin: 0; font-size: clamp(40px, 5vw, 84px); line-height: .95; font-weight: 650; letter-spacing: -0.045em; }
.steps__side p:not(.label) { margin: 0; color: var(--ink-soft); max-width: 34ch; }
.steps__board { position: relative; min-height: 0; }
.steps__grid { list-style: none; margin: 0; padding: 0; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { display: flex; flex-direction: column; padding: clamp(18px, 2vw, 30px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .5s var(--ease), color .5s var(--ease); }
.step[style*="--pos:1"] { grid-area: 1 / 1; } .step[style*="--pos:2"] { grid-area: 1 / 2; }
.step[style*="--pos:3"] { grid-area: 2 / 2; } .step[style*="--pos:4"] { grid-area: 2 / 1; }
.step__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 20px; }
.step__n { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 10px; background: rgba(241,238,232,.08); font-size: 14px; font-variant-numeric: tabular-nums; transition: background .5s, color .5s; }
.step__tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.step h3 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 32px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 38ch; transition: color .5s; }
/* il chiaro "scorre" nel box dal lato del box precedente: 1 → 2 da sinistra, 2 → 3 dall'alto, 3 → 4 da destra */
.step { position: relative; isolation: isolate; }
.step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: var(--off); transition: clip-path .7s var(--ease); }
.step[style*="--pos:1"] { --off: inset(0 0 100% 0); } .step[style*="--pos:2"] { --off: inset(0 100% 0 0); }
.step[style*="--pos:3"] { --off: inset(0 0 100% 0); } .step[style*="--pos:4"] { --off: inset(0 0 0 100%); }
.step.is-on::before { clip-path: inset(0 0 0 0); }
.step.is-on { color: var(--bg); }
.step.is-on p { color: rgba(0,0,0,.66); }
.step.is-on .step__n { background: var(--bg); color: var(--ink); }

/* Showreel: celle sempre 16:9 */
@media (max-width: 759px) {
  .reel9 { height: 220svh; }
  .reel9__grid { inset: auto 0; top: 50%; height: 56.25vw; transform: translateY(-50%) scale(var(--z, 1)); gap: 3px; }
  .steps { height: auto; }
  .steps::before { display: none; }
  .reel9__caption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .steps__stage { position: relative; height: auto; grid-template-columns: 1fr; padding: 10vh var(--gutter); }
  .steps__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .step[style] { grid-area: auto; min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .steps { height: auto; }
  .steps__stage { position: relative; height: auto; }
}


/* ---------- v13 ---------- */
/* La griglia compare con "Do forma alle idee.": le linee si disegnano dall'alto, le croci si accendono */
body::before { clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease); }
html.grid-on body::before { clip-path: inset(0 0 0 0); }
.services::before, .hl::before, .contact::before, .vids::before, .works__head::before, .steps::before { opacity: 0; transition: opacity .8s .6s; }
html.grid-on .services::before, html.grid-on .hl::before, html.grid-on .contact::before, html.grid-on .vids::before, html.grid-on .works__head::before, html.grid-on .steps::before { opacity: 1; }
.statement { position: relative; }

/* Showreel: fondo nero (qui la griglia non si vede), celle sempre 16:9, le altre otto compaiono solo quando la griglia si apre */
.reel9__stage { background: #000; }
.reel9__grid { inset: auto; left: 50%; top: 50%; width: min(100vw, 177.78svh); height: auto; aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%) scale(var(--z, 1)); }
.reel9__grid video:not(:nth-child(5)) { opacity: var(--o, 1); transition: opacity .2s linear; }
@media (max-width: 759px) {
  .reel9__grid { width: 100vw; height: auto; top: 50%; transform: translate(-50%, -50%) scale(var(--z, 1)); }
}

/* ---------- v14 ---------- */
/* 1. Apertura (v15, Reelio): nero con le croci; il nome si scrive come a macchina, scorrendo esce lettera per lettera */
.intro { position: relative; height: 180svh; }
.intro__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.intro__plus { position: absolute; width: 11px; height: 11px; background: var(--plus) center / contain no-repeat; z-index: 3; opacity: .9; }
.intro__plus:nth-of-type(1) { left: calc(var(--edge) - 5px); top: calc(var(--nav-h) + 4px); }
.intro__plus:nth-of-type(2) { right: calc(var(--edge) - 5px); top: calc(var(--nav-h) + 4px); }
.intro__plus:nth-of-type(3) { left: calc(var(--edge) - 5px); bottom: 14px; }
.intro__plus:nth-of-type(4) { right: calc(var(--edge) - 5px); bottom: 14px; }
.intro__name { position: absolute; inset: 0; display: grid; align-content: center; gap: clamp(14px, 2vh, 24px); padding: 0 var(--edge); }
.intro__meta { display: flex; justify-content: space-between; gap: 24px; margin: 0; opacity: var(--mo, 1); transition: opacity .6s; }
.intro__wordmark { margin: 0; font-size: 12.4vw; line-height: .9; font-weight: 650; letter-spacing: -0.055em; white-space: nowrap; min-height: .9em; }
.intro__type .w { display: inline-block; white-space: nowrap; }
.intro__type .ch.sp { display: inline; white-space: normal; }
.intro__type .ch.is-off { display: none; }
.intro__type .ch { display: inline-block; white-space: pre; transform: translateY(var(--cy, 0)); opacity: var(--co, 1); filter: blur(var(--cb, 0)); }
.intro__caret { display: inline-block; width: .06em; height: .78em; margin-left: .04em; vertical-align: -.02em; background: var(--ink); animation: caret 1s steps(1) infinite; opacity: var(--mo, 1); }
@keyframes caret { 50% { visibility: hidden; } }
.intro__sub { margin: 0; max-width: 36ch; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.3; opacity: 0; transform: translateY(10px); transition: opacity .9s, transform .9s var(--ease); }
.intro.is-typed .intro__sub { opacity: var(--mo, 1); transform: none; }
.intro__hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); margin: 0; font-size: 13px; color: var(--ink-soft); z-index: 2; opacity: var(--mo, 1); }
@media (max-width: 759px) {
  .intro { height: 180svh; }
  .intro__wordmark { white-space: normal; font-size: 19vw; }
  .intro__meta { flex-direction: column; gap: 4px; }
  .intro__plus { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { height: auto; }
  .intro__stage { position: relative; height: 100svh; }
  .intro__caret { animation: none; }
  .intro__sub { opacity: 1; transform: none; }
}

/* Identità visiva: carosello di tre slide 4:5 */
.service__media--car { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.service__media--car video { aspect-ratio: 4 / 5; }

/* 05 · Come lavoro su fondo scuro: box appena più chiari, il box attivo si accende con una barra di avanzamento */
.steps { background: #0b0b0b; }
.step { background: rgba(241,238,232,.02); }
.step::before { background: #1b1b19; }
.step.is-on { color: var(--ink); }
.step.is-on p { color: rgba(241,238,232,.78); }
.step.is-on .step__n { background: var(--ink); color: #0a0a0a; }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.step.is-on::after { transform: scaleX(1); }
.step:not(.is-on) h3 { color: rgba(241,238,232,.62); }
.step h3 { transition: color .5s; }

/* ---------- v16 (17/10/2026): rifinitura prima della pubblicazione ---------- */
/* 1. Apertura: il nome è nell'H1 (per Google) ma si vede solo quando parte la macchina da scrivere */
.js .intro__type:not(.is-ready) { visibility: hidden; }

/* 2. Ora di Roma con un piccolo segno di orientamento (cerchio, quattro tacche come le croci della griglia, nord pieno) */
.statement__clock { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.compass { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; overflow: visible; }
.compass .compass__n { fill: currentColor; stroke: none; transform-origin: 12px 12px; transition: transform 1.2s var(--ease); }
.statement.is-in .compass .compass__n { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) { .compass .compass__n { transition: none; } }

/* 4. Testo d'accompagnamento a destra, più in basso del titolo, vicino alla linea che chiude l'intestazione */
@media (min-width: 760px) {
  .works__head { grid-template-rows: auto auto; padding-bottom: 5vh; }
  .works__head > div { grid-column: 1; grid-row: 1; }
  .works__head > .head__aside { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; margin-top: 4vh; }
  .vids__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: end; }
  .vids__head > div { grid-column: 1; grid-row: 1; }
  .vids__head > .head__aside { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; margin-top: 3vh; }
}

/* 6. Poster, motion e ricerca: titoli in minuscolo; anteprime video verticali senza tagli */
.hl__title { text-transform: none; }   /* 17/10 sera: iniziale maiuscola, i titoli si scrivono così nei dati */
.hl__preview--v.is-tall { aspect-ratio: auto; width: 200px; height: auto; }

/* 7. Frammenti di lavori: crediti dentro ogni cella, visibili solo a griglia aperta */
.reel9__cell { position: relative; margin: 0; min-width: 0; min-height: 0; }
.reel9__grid > .reel9__cell:not(:nth-child(5)) { opacity: var(--o, 1); transition: opacity .2s linear; }
.reel9__grid .reel9__cell video { opacity: 1; }
.reel9__cell figcaption {
  position: absolute; left: 10px; top: 10px; right: 10px; font-size: 12px; line-height: 1.3; color: var(--ink);
  text-shadow: 0 1px 10px rgba(0,0,0,.85); opacity: 0; transition: opacity .4s; pointer-events: none;
}
.reel9__cell figcaption b { font-weight: 600; margin-right: 4px; }
.reel9__grid.is-open .reel9__cell figcaption { opacity: 1; }
.reel9__caption p { max-width: 34ch; text-align: right; }
@media (max-width: 759px) {
  .reel9__cell figcaption { font-size: 10px; left: 5px; top: 4px; }
  .reel9__caption p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .reel9__cell figcaption { opacity: 1; } }

/* 8. Come lavoro: croci agli incroci della griglia dei quattro momenti, come in apertura */
.steps__board--marks::after {
  content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 3;
  background: var(--plus) no-repeat 0 0, var(--plus) no-repeat 50% 0, var(--plus) no-repeat 100% 0,
              var(--plus) no-repeat 0 50%, var(--plus) no-repeat 50% 50%, var(--plus) no-repeat 100% 50%,
              var(--plus) no-repeat 0 100%, var(--plus) no-repeat 50% 100%, var(--plus) no-repeat 100% 100%;
  background-size: 11px 11px;
}
.steps__side .label { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (max-width: 759px) { .steps__board--marks::after { display: none; } }

/* 9. Contatti: domanda su una riga quando c'è spazio, email sempre su una riga */
.contact__email { white-space: nowrap; }
@media (min-width: 900px) {
  .contact__title { max-width: none; white-space: nowrap; font-size: clamp(40px, 4.6vw, 96px); }
}
@media (max-width: 759px) {
  .contact__title { font-size: clamp(34px, 10vw, 52px); }
  .contact__email { font-size: clamp(19px, 5.6vw, 26px); }
}

/* v16b (17/10): lavori in evidenza. A sinistra titolo e sottotitolo; a destra categoria e informazioni, impilate e allineate a destra.
   Niente "Apri il progetto": la pagina resta raggiungibile dall'immagine al centro. */
.work__tr { flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 4px; text-align: right; }
.work__tr .work__cat { color: var(--ink); }
.work__title { margin-top: 0; }
@media (max-width: 759px) {
  .work__tr { align-items: flex-start; text-align: left; flex-direction: column; gap: 2px; }
}

/* v16c: testi d'accompagnamento distribuiti in modo equilibrato sulle righe */
.head__aside, .reel9__caption p { text-wrap: balance; }
.reel9__caption p { max-width: 42ch; }
@media (min-width: 760px) { .reel9__caption p { max-width: none; } .reel9__caption p span { display: block; } }

/* v16d: ADV Instagram, le tre slide affiancate come un'unica schermata orizzontale */
.hl__preview--trio { display: flex; gap: 2px; width: 420px; height: auto; background: #000; border-radius: 4px; overflow: hidden; }
.hl__preview--trio video { flex: 1 1 0; width: 0; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
