/* =========================================================
   BRUSH — portfolio
   3 mondi: home (chiaro, editoriale) · director (scuro) · youtube (bianco/rosso)
   ========================================================= */

:root {
  --paper: #f5f4f0;
  --ink: #0e0e0e;
  --muted: #77756f;
  --line: rgba(14, 14, 14, .12);
  --d-bg: #050506;
  --d-ink: #f1f1f3;
  --d-muted: #8d8f99;
  --d-red: #e3241b;
  --yt-red: #ff0000;
  --yt-ink: #0f0f0f;
  --yt-muted: #606060;
  --yt-chip: #f2f2f2;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: "Unbounded", "Inter Tight", sans-serif;
  --yt-font: "Roboto", system-ui, Arial, sans-serif;
  --topbar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .7s ease, color .7s ease;
}
body[data-view="director"] { background: var(--d-bg); color: var(--d-ink); }
body[data-view="youtube"] { background: #fff; color: var(--yt-ink); font-family: var(--yt-font); }
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

[hidden] { display: none !important; }
.view { display: none; }
body[data-view="home"] #home,
body[data-view="director"] #director,
body[data-view="youtube"] #youtube { display: block; }

.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > * { display: inline-block; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* =========================================================
   INTRO
   ========================================================= */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: #f0efec;
  display: grid; place-items: center; align-content: center; gap: 18px;
  overflow: hidden;
}
.intro__word {
  font-family: var(--wide); font-weight: 800;
  font-size: clamp(56px, 15vw, 210px);
  letter-spacing: -.04em; line-height: 1;
  display: flex; color: #0b0b0b;
  will-change: transform, filter;
}
.intro__word span { display: inline-block; transform-origin: 0 50%; will-change: transform, filter, opacity; }
.intro__tag { font-size: clamp(15px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; color: #111; }
.intro__tag span { display: inline-block; will-change: filter, opacity; }
.intro__orb {
  position: absolute; left: 50%; bottom: 0;
  width: min(46vw, 420px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 110%);
  background: radial-gradient(circle at 35% 25%, #fff 0 18%, rgba(255, 255, 255, .55) 40%, rgba(232, 231, 228, .9) 70%);
  box-shadow: inset 0 -18px 40px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(255, 255, 255, .9), 0 30px 60px rgba(0, 0, 0, .12);
  will-change: transform;
}
.intro__orb i {
  position: absolute; inset: 8%; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 200deg, transparent 0 35%, #1c1c1c 55%, transparent 80%);
  filter: blur(14px);
}
.intro__skip {
  position: absolute; right: 24px; bottom: 22px;
  font-size: 13px; color: #666; padding: 12px 14px; min-height: 44px;
}
.intro__skip:hover { color: #000; }


/* =========================================================
   TOPBAR + SWITCH
   ========================================================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--topbar-h);
  padding: 0 clamp(16px, 4vw, 64px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
body[data-view="home"] .topbar { background: linear-gradient(var(--paper) 15%, transparent); }
body[data-view="director"] .topbar { background: linear-gradient(#050506 10%, transparent); }
body[data-view="youtube"] .topbar { background: linear-gradient(rgba(255, 255, 255, .75), transparent); }

.logo { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-weight: 700; font-size: 22px; letter-spacing: -.03em; min-height: 44px; }
.logo sup { font-size: .5em; margin-left: 1px; }
.logo__play { display: none; width: 34px; height: 24px; border-radius: 7px; background: var(--yt-red); }
.logo__play svg { width: 100%; height: 100%; }
body[data-view="youtube"] .logo__play { display: block; }
body[data-view="director"] .logo { font-family: var(--wide); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: 20px; color: var(--d-red); }
body[data-view="director"] .topbar .btn, body[data-view="director"] .switch__btn { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
body[data-view="youtube"] .logo { font-family: var(--yt-font); letter-spacing: -.04em; }

.topbar__cta { justify-self: end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
body[data-view="director"] .btn--solid { background: #fff; color: #000; box-shadow: none; }
body[data-view="youtube"] .btn--solid { background: var(--yt-ink); box-shadow: none; }
.btn--light { background: #fff; color: #000; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }

/* switch */
.switch {
  position: relative; display: inline-flex; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
}
.switch__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: color .3s;
}
.switch__btn svg { width: 20px; height: 20px; }
.switch__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: var(--ink);
  transition: transform .5s var(--ease), width .5s var(--ease), background-color .35s, opacity .3s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}
.switch[data-on="youtube"] .switch__thumb { background: var(--yt-red); box-shadow: 0 6px 18px rgba(255, 0, 0, .35); }
.switch[data-on="director"] .switch__btn[data-go="director"],
.switch[data-on="home"] .switch__btn[data-go="home"],
.switch[data-on="youtube"] .switch__btn[data-go="youtube"] { color: #fff; }

.switch--top { justify-self: center; }
body[data-view="home"] .switch--top { visibility: hidden; opacity: 0; }
body[data-view="director"] .switch--top { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
body[data-view="director"] .switch--top .switch__btn { color: #cfd0d6; }
body[data-view="director"] .switch--top .switch__thumb { background: #fff; box-shadow: none; }
body[data-view="director"] .switch--top[data-on="director"] .switch__btn[data-go="director"],
body[data-view="director"] .switch--top[data-on="home"] .switch__btn[data-go="home"] { color: #000; }
body[data-view="director"] .switch--top[data-on="youtube"] .switch__thumb { background: var(--yt-red); }
body[data-view="youtube"] .switch--top { background: rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1.5px 0 #fff, 0 10px 30px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .05); }

.switch--hero { margin-top: 14px; padding: 6px; }
.switch--hero .switch__btn { min-height: 56px; padding: 0 34px; font-size: 16px; }
.switch--hero .switch__thumb { top: 6px; bottom: 6px; }

/* =========================================================
   HOME
   ========================================================= */
.view--home { background: var(--paper); }
.home__hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 100%, #fff 0, transparent 70%),
    var(--paper);
  padding-top: calc(var(--topbar-h) + clamp(8px, 3vh, 40px));
}
.home__head { position: relative; z-index: 5; text-align: center; padding: 0 16px; }
.home__title {
  font-family: var(--wide); font-weight: 800;
  font-size: clamp(64px, min(17vw, 23svh), 300px);
  line-height: .9; letter-spacing: -.045em;
}
.home__title .line { padding: .04em 0 .06em; white-space: nowrap; }
.home__title [data-in], .stage__img { will-change: translate; }

.stage {
  position: absolute; bottom: 0;
  left: 0; right: 0; margin-inline: auto;
  width: min(68svh, 780px, 100vw); aspect-ratio: 1;
}
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, transparent, #000 12% 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 80%, transparent), linear-gradient(90deg, transparent, #000 12% 88%, transparent);
  mask-composite: intersect;
}
.badge { position: absolute; z-index: 4; right: clamp(16px, 7vw, 110px); top: calc(var(--topbar-h) + 60px); width: 96px; aspect-ratio: 1; }
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge text { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; fill: var(--ink); }
.badge i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

.home__foot { position: absolute; z-index: 4; bottom: clamp(20px, 6vh, 64px); font-size: 14px; color: var(--muted); line-height: 1.35; }
.home__foot hr { width: 22px; margin: 0 0 12px; border: 0; border-top: 1px solid var(--muted); }
.home__foot--l { left: clamp(16px, 4vw, 64px); }
.home__foot--r { right: clamp(16px, 4vw, 64px); }
.home__foot--r i { display: block; font-style: normal; font-size: 22px; color: var(--ink); margin: 0 0 10px 34px; }

/* chi sono */
.about { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(80px, 14vh, 160px) clamp(16px, 4vw, 64px) 150px; }
.about { isolation: isolate; }
.about::before { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; translate: -50% 0; width: 100vw; height: 45svh; pointer-events: none; background: radial-gradient(60% 100% at 50% 0, #fff 0, transparent 70%); }
.about__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.about__eyebrow::before { content: ""; width: 22px; border-top: 1px solid var(--muted); }
.about__lead { margin-top: 22px; max-width: 18ch; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.about__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 8vh, 96px); }
.about__bio { display: grid; gap: 18px; align-content: start; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #3b3a36; }
.about__facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.about__facts > div:last-child { border-bottom: 1px solid var(--line); }
.about__facts dt { flex: none; color: var(--muted); }
.about__facts dd { font-weight: 600; text-align: right; }
.about__skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(48px, 8vh, 90px); list-style: none; padding: 0; }
.about__skills li { padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; background: rgba(255, 255, 255, .8); border: 1px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .06), inset 0 1px 0 #fff; }
.about__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(60px, 10vh, 120px); }
.about__cta p { font-family: var(--wide); font-weight: 800; font-size: clamp(30px, 5vw, 72px); letter-spacing: -.045em; line-height: 1; }
.about__end { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(50px, 8vh, 90px); padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* slider fisso in basso (solo home) */
.switch--dock {
  position: fixed; z-index: 48; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  overflow: hidden; white-space: nowrap; background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .16), inset 0 1px 0 #fff;
}
.switch--dock .switch__btn { flex: none; }
@media (max-width: 760px) {
  .about__cols { grid-template-columns: minmax(0, 1fr); }
  .about__lead { max-width: none; }
  .switch--dock .switch__btn { padding: 0 18px; }
}

/* =========================================================
   DIRECTOR — nero, grana, crediti da poster in rosso
   ========================================================= */
.view--director { position: relative; overflow: hidden; padding-top: var(--topbar-h); font-family: var(--mono); }
#dots { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

.d-hero {
  position: relative; z-index: 2; min-height: calc(100svh - var(--topbar-h));
  padding: 70px clamp(16px, 4vw, 64px) 50px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(60% 50% at 50% 45%, rgba(5, 5, 6, .9), transparent 75%);
}
.d-hud { position: absolute; top: 18px; left: clamp(16px, 4vw, 64px); right: clamp(16px, 4vw, 64px); display: flex; gap: 22px; justify-content: space-between; font-size: 12px; line-height: 1; letter-spacing: .14em; color: var(--d-red); }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--d-red); box-shadow: 0 0 12px var(--d-red); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.d-over, .d-under { font-family: var(--wide); font-weight: 600; text-transform: uppercase; color: #e9e9e9; }
.d-over { font-size: clamp(11px, 1vw, 14px); letter-spacing: .18em; line-height: 1.6; }
.d-brush {
  display: flex; justify-content: center;
  font-family: var(--wide); font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 21vw, 380px); line-height: .95; letter-spacing: -.03em;
  color: #e4e4e4; margin: .06em 0 0;
  text-shadow: 0 0 .12em rgba(255, 255, 255, .35);
  will-change: filter, transform; user-select: none;
}
.d-brush span { display: inline-block; will-change: transform, filter, opacity; }
.d-under { font-size: clamp(16px, 2.6vw, 40px); letter-spacing: .02em; filter: blur(1.2px); opacity: .9; }

.d-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; max-width: 900px; margin-top: clamp(26px, 5vh, 54px); font-size: clamp(11px, .95vw, 14px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--d-red); }
.d-credits li:not(:last-child)::after { content: "•"; margin: 0 .9em; }
.d-credits span { font-weight: 400; }
.d-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 30px; }
.d-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #e9e9e9; transition: color .2s, letter-spacing .4s var(--ease); }
.d-link:hover { color: var(--d-red); letter-spacing: .22em; }

.d-section { position: relative; z-index: 2; padding: clamp(60px, 10vh, 120px) clamp(16px, 4vw, 64px) 0; }
.d-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid rgba(227, 36, 27, .5); color: var(--d-red); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.d-sechead h3 { font: inherit; font-weight: 700; }

.d-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(34px, 4vw, 64px) clamp(14px, 1.6vw, 24px); }
.work { display: block; width: 100%; text-align: left; font-family: var(--mono); }
.work:first-child { grid-column: 1 / -1; }
.work__cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #0c0c0d; }
.work:first-child .work__cover { aspect-ratio: 21 / 9; }
.work__cover::before { content: ""; position: absolute; inset: 0; background: var(--img, var(--g)) center / cover; filter: grayscale(1) brightness(.6) contrast(1.1); transform: scale(1.02); transition: filter .6s, transform 1.2s var(--ease); }
.work:hover .work__cover::before, .work:focus-visible .work__cover::before { filter: grayscale(0) brightness(1); transform: scale(1.07); }
.work__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: brightness(.82) contrast(1.05); transition: opacity .8s, filter .6s; }
.work__yt { position: absolute; inset: 0; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 1s; }
.work__yt iframe { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border: 0; transform: translate(-50%, -50%) scale(1.45); }
.work.is-playing .work__yt { opacity: .85; }
.work.is-playing .work__vid { opacity: 1; }
.work:hover .work__vid, .work:focus-visible .work__vid { filter: none; }
.work.is-playing .work__title { opacity: .5; }
.work__num { position: absolute; z-index: 1; top: 14px; left: 16px; font-size: 12px; letter-spacing: .14em; color: #fff; }
.work__play { position: absolute; z-index: 1; right: 16px; bottom: 14px; font-size: 12px; letter-spacing: .14em; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); }
.work:hover .work__play, .work:focus-visible .work__play { opacity: 1; transform: none; }
.work__title { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 0 16px; text-align: center; font-family: var(--wide); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 3.2vw, 54px); letter-spacing: -.02em; line-height: 1; color: #f0f0f0; filter: blur(5px); opacity: .85; transition: filter .6s var(--ease), opacity .4s; }
.work:first-child .work__title { font-size: clamp(26px, 6vw, 110px); }
.work:hover .work__title, .work:focus-visible .work__title { filter: blur(0); opacity: 1; }
.work__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 22px; padding-top: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--d-red); }
.work__meta dt { font-weight: 400; opacity: .75; }
.work__meta dd { margin: 0; font-weight: 700; }
.work__meta .yr { grid-column: 3; grid-row: 1 / span 3; color: #e9e9e9; font-weight: 400; }

.d-contact { position: relative; z-index: 2; text-align: center; padding: clamp(90px, 16vh, 200px) clamp(16px, 4vw, 64px) 26px; }
.d-contact p { color: var(--d-red); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.d-contact__big { display: inline-block; margin-top: 10px; font-family: var(--wide); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 12.5vw, 230px); line-height: 1; letter-spacing: -.04em; color: var(--d-red); filter: blur(3px); transition: filter .5s var(--ease), text-shadow .5s, opacity .8s var(--ease), transform .8s var(--ease); }
.d-contact__big.is-in:hover, .d-contact__big.is-in:focus-visible { filter: blur(0); text-shadow: 0 0 80px rgba(227, 36, 27, .8); }
.d-contact__big[data-reveal].is-in { filter: blur(3px); }
.d-contact__big[data-reveal].is-in:hover, .d-contact__big[data-reveal].is-in:focus-visible { filter: blur(0); }
.d-end { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(60px, 10vh, 120px); padding-top: 14px; border-top: 1px solid rgba(227, 36, 27, .5); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-red); }

/* =========================================================
   YOUTUBE — solo i video, card "liquid glass"
   ========================================================= */
.view--youtube { position: relative; min-height: 100svh; padding: calc(var(--topbar-h) + clamp(16px, 3vw, 40px)) clamp(16px, 4vw, 64px) 90px; overflow: hidden; }
.yt-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.yt-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1680px; margin: 0 auto; }
.vid {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; text-align: left;
  padding: 10px 10px 16px; border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(236, 236, 240, .4));
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 -1.5px 1px rgba(255, 255, 255, .45),
    inset 1.5px 0 1px rgba(255, 255, 255, .5), inset -1.5px 0 1px rgba(255, 255, 255, .3),
    0 24px 50px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .05), 0 2px 6px rgba(0, 0, 0, .05);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* riflesso che segue il mouse */
.vid::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255, 255, 255, .7), transparent 65%); mix-blend-mode: soft-light; }
.vid::after { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1.5px; border-radius: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, #fff, transparent); }
.vid:hover, .vid:focus-visible { transform: translateY(-8px) scale(1.015); box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 -1.5px 1px rgba(255, 255, 255, .45),
    inset 1.5px 0 1px rgba(255, 255, 255, .5), inset -1.5px 0 1px rgba(255, 255, 255, .3),
    0 40px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .05), 0 4px 10px rgba(0, 0, 0, .06); }
.vid:hover::before, .vid:focus-visible::before { opacity: 1; }
.vid:active { transform: scale(.985); }

.vid__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 23px; overflow: hidden; background: var(--g); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.vid__thumb::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center / cover; transition: transform .9s var(--ease); }
.vid:hover .vid__thumb::before { transform: scale(1.06); }
.vid__ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--wide); font-weight: 800; font-size: clamp(20px, 2.2vw, 32px); color: rgba(255, 255, 255, .92); letter-spacing: -.03em; text-align: center; line-height: 1.15; }
.vid__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.vid__play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .9), 0 10px 24px rgba(0, 0, 0, .2); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease); }
.vid__play svg { width: 24px; height: 24px; margin-left: 3px; }
.vid:hover .vid__play, .vid:focus-visible .vid__play { opacity: 1; transform: none; }
.vid__info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 10px 0; }
.vid__info strong { font-size: 16px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid__info span { flex: none; font-size: 13px; color: var(--yt-muted); }

/* =========================================================
   INDICATORI DI SCORRIMENTO (sostituiscono la barra del browser)
   ========================================================= */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
.scrub { position: fixed; z-index: 45; display: none; touch-action: none; user-select: none; cursor: grab; }
.scrub:active { cursor: grabbing; }

/* Director: ghiera dello zoom di un obiettivo */
body[data-view="director"] .scrub--lens { display: block; }
.scrub--lens {
  right: 0; top: 50%; width: 58px; height: min(66vh, 580px); transform: translateY(-50%);
  overflow: hidden; font-family: var(--mono); color: #e9e9e9;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .11) 45%, rgba(255, 255, 255, .02));
  border-left: 1px solid rgba(255, 255, 255, .14);
  -webkit-mask-image: linear-gradient(transparent, #000 22% 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22% 78%, transparent);
}
.lens__strip {
  position: absolute; right: 0; top: 0; width: 100%; will-change: transform;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .5) 0 1px, transparent 1px 11px) right / 9px 100% no-repeat;
}
.lens__strip span { position: absolute; right: 0; transform: translateY(-50%); padding-right: 24px; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1; }
.lens__strip span::after { content: ""; position: absolute; right: 0; top: 50%; width: 19px; height: 1px; background: #fff; }
.lens__mark { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--d-red); box-shadow: 0 0 10px var(--d-red); }
.lens__read { display: none; position: fixed; z-index: 45; right: 68px; top: 50%; transform: translateY(-50%); font: 700 11px/1 var(--mono); letter-spacing: .1em; color: var(--d-red); pointer-events: none; }
body[data-view="director"] .lens__read { display: block; }
.lens__read::after { content: " ▸"; }

/* YouTube: barra di avanzamento del video, in verticale */
body[data-view="youtube"] .scrub--yt { display: block; }
.scrub--yt { --p: 0; right: 10px; top: calc(var(--topbar-h) + 14px); bottom: 22px; width: 24px; }
.ytbar__track { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; border-radius: 4px; overflow: hidden; background: rgba(0, 0, 0, .14); transition: width .15s, margin .15s; }
.scrub--yt:hover .ytbar__track, .scrub--yt:active .ytbar__track { width: 6px; margin-left: -3px; }
.ytbar__fill { position: absolute; inset: 0; background: var(--yt-red); transform-origin: 50% 0; transform: scaleY(var(--p)); }
.ytbar__knob { position: absolute; left: 50%; top: calc(var(--p) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--yt-red); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .15s; }
.scrub--yt:hover .ytbar__knob, .scrub--yt:active .ytbar__knob { transform: scale(1.3); }

@media (min-width: 761px) {
  .d-hud, .d-section, .d-contact { padding-right: calc(clamp(16px, 4vw, 64px) + 34px); }
  .d-hud { right: 34px; padding-right: 0; }
}
@media (max-width: 760px) {
  .scrub--lens { width: 20px; }
  .lens__strip span { font-size: 0; padding: 0; }
  .lens__strip span::after { width: 16px; }
  .lens__read { right: 26px; }
  .scrub--yt { right: -3px; width: 20px; }
  .d-section, .d-contact { padding-right: 30px; }
}

/* =========================================================
   PLAYER
   ========================================================= */
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(20px); } }
.pop {
  width: min(1080px, 94vw); max-height: 92svh; margin: auto; padding: 14px; overflow: auto;
  border-radius: 36px; border: 1px solid rgba(255, 255, 255, .8); color: var(--yt-ink); font-family: var(--yt-font);
  background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5));
  -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .5), 0 40px 110px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .05);
}
.pop[open] { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; animation: pop .45s var(--ease); }
.pop::backdrop { background: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pop__media { position: relative; align-self: start; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--g, #111); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.pop__media::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center / cover; }
.pop__media.is-tall { aspect-ratio: auto; height: min(80svh, 760px); background: #fff; }
.pop__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pop__media .pop__play, .pop__media .pop__dur { z-index: 1; }
.pop__media iframe { position: relative; width: 100%; height: 100%; border: 0; }
.pop__play { position: relative; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .26); border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .9), 0 14px 34px rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); transition: transform .5s var(--ease), background-color .3s; }
.pop__play:hover { transform: scale(1.08); background: rgba(255, 255, 255, .4); }
.pop__play svg { width: 32px; height: 32px; margin-left: 4px; }
.pop__dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pop__soon { position: relative; padding: 24px; text-align: center; font-size: 15px; line-height: 1.5; color: #fff; }
.pop__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 16px 10px 20px; }
.pop__eyebrow { font-size: 13px; font-weight: 500; color: var(--yt-red); padding-right: 44px; }
.pop__title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.av { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #d9d9d9 center / cover; font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #555; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.vid__txt { min-width: 0; display: grid; gap: 8px; }
.vid__ch, .pop__ch { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--yt-muted); }
.pop__ch { font-size: 15px; font-weight: 500; color: inherit; margin-top: -4px; }
.pop__ch .av { width: 34px; height: 34px; font-size: 15px; }
.pop__go.is-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #833ab4); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .4), 0 12px 28px rgba(225, 48, 108, .35); }
.pop__desc { font-size: 14.5px; line-height: 1.5; opacity: .8; white-space: pre-line; overflow-wrap: anywhere; }
.pop[data-kind="d"] .pop__desc { font-size: 12.5px; letter-spacing: .02em; }
.pop__info { display: grid; margin-top: 4px; }
.pop__info > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(0, 0, 0, .1); font-size: 14px; }
.pop__info dt { color: var(--yt-muted); flex: none; }
.pop__info dd { font-weight: 500; text-align: right; }
.pop__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pop__go { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #fff; background: var(--yt-red); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), 0 12px 28px rgba(255, 0, 0, .3); transition: transform .4s var(--ease), box-shadow .3s; }
.pop__go:hover { transform: translateY(-2px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), 0 18px 36px rgba(255, 0, 0, .4); }
.pop__go[aria-disabled] { opacity: .55; }
.pop__close { position: absolute; right: 18px; top: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; font-size: 14px; color: inherit; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .4s var(--ease); }
.pop__close:hover { transform: rotate(90deg); }

/* etichette "cosa ho fatto" — vetro */
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; color: #fff; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 12px rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%); }
.vid__tags { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; gap: 6px; }
.pop__tags .tag { color: var(--yt-ink); background: rgba(255, 255, 255, .6); border-color: rgba(0, 0, 0, .08); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(0, 0, 0, .08); }

/* versione Director: vetro scuro, mono, rosso */
.pop[data-kind="d"] { color: #f1f1f1; font-family: var(--mono); border-color: rgba(255, 255, 255, .16); background: linear-gradient(135deg, rgba(34, 34, 38, .62), rgba(8, 8, 10, .56)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .22), 0 40px 120px rgba(0, 0, 0, .7); }
.pop[data-kind="d"]::backdrop { background: rgba(0, 0, 0, .45); }
.pop[data-kind="d"] .pop__media::before { filter: grayscale(1) contrast(1.1); }
.pop[data-kind="d"] .pop__eyebrow { color: var(--d-red); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.pop[data-kind="d"] .pop__title { font-family: var(--wide); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(22px, 2.2vw, 32px); }
.pop[data-kind="d"] .pop__info > div { border-color: rgba(255, 255, 255, .14); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.pop[data-kind="d"] .pop__info dt { color: var(--d-red); }
.pop[data-kind="d"] .pop__go { background: var(--d-red); text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .3), 0 12px 30px rgba(227, 36, 27, .35); }
.pop[data-kind="d"] .pop__close { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }

@media (max-width: 760px) {
  .pop { padding: 10px; border-radius: 28px; }
  .pop[open] { grid-template-columns: minmax(0, 1fr); }
  .pop__media { border-radius: 20px; }
  .pop__side { padding: 10px 10px 8px; }
  .pop__eyebrow { padding-right: 0; }
  .pop__close { right: 20px; top: 20px; }
  .pop__go { margin-top: 6px; }
  .vid__tags { top: 8px; right: 8px; }
}

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: #111; color: #fff; font-size: 14px; opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
}
@media (max-width: 760px) {
  :root { --topbar-h: 64px; }
  .topbar { grid-template-columns: auto 1fr; }
  .topbar__cta { display: none; }
  .switch--top { justify-self: end; }
  .switch--top .switch__btn { padding: 0 11px; font-size: 12px; min-height: 40px; }
  body[data-view="director"] .switch--top .switch__btn { font-size: 10.5px; letter-spacing: .04em; }
  body[data-view="home"] .topbar { grid-template-columns: 1fr auto; }
  body[data-view="home"] .switch--top { display: none; }
  body[data-view="home"] .topbar__cta { display: inline-flex; }
  .badge, .home__foot { display: none; }
  .switch--hero .switch__btn { padding: 0 15px; min-height: 52px; font-size: 14px; gap: 6px; }
  .switch--hero .switch__btn svg { width: 17px; height: 17px; }
  .home__title { font-size: min(20vw, 20svh); }
  .stage { width: min(135vw, 70svh); left: 50%; right: auto; margin-left: calc(min(135vw, 70svh) / -2); }
  .d-grid { grid-template-columns: 1fr; }
  .work:first-child .work__cover { aspect-ratio: 16 / 9; }
  .d-end span:nth-child(2) { display: none; }
  .d-hud span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* =========================================================
   YOUTUBE — numeri, grafiche, creator
   ========================================================= */
.yt-nums { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(12px, 2vw, 24px); max-width: 1680px; margin: 0 auto clamp(24px, 4vw, 48px); }
.yt-nums:empty { display: none; }
.yt-num { padding: clamp(18px, 2.2vw, 30px); border-radius: 30px; background: linear-gradient(145deg, rgba(255, 255, 255, .75), rgba(236, 236, 240, .4)); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), 0 20px 44px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .05); }
.yt-num b { display: block; font-family: var(--wide); font-weight: 800; font-size: clamp(34px, 4.6vw, 72px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yt-num:first-child b { color: var(--yt-red); }
.yt-num span { display: block; margin-top: 10px; font-size: 14px; color: var(--yt-muted); }

.yt-upd { grid-column: 1 / -1; font-size: 12.5px; color: var(--yt-muted); }
.yt-block { position: relative; z-index: 1; max-width: 1680px; margin: clamp(70px, 10vw, 140px) auto 0; }
.yt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.yt-head h2 { font-family: var(--wide); font-weight: 800; font-size: clamp(30px, 5vw, 76px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.yt-head p { font-size: 15px; color: var(--yt-muted); }
.yt-head p b { color: var(--yt-ink); font-weight: 700; }

.gfx-group { margin-top: clamp(28px, 4vw, 52px); }
.gfx-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; }
.gfx-group h3 .av { width: 38px; height: 38px; font-size: 16px; }
.gfx-group h3 em { margin-left: auto; padding: 3px 11px; border-radius: 999px; background: var(--yt-chip); font-style: normal; font-size: 13px; color: var(--yt-muted); font-variant-numeric: tabular-nums; }
.gfx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.gfx { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--g); box-shadow: 0 14px 32px rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .05); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.gfx::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center / cover; transition: transform .9s var(--ease); }
.gfx--wide { grid-column: 1 / -1; aspect-ratio: 6 / 1; }
.gfx:hover, .gfx:focus-visible { transform: translateY(-5px); box-shadow: 0 24px 46px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .05); }
.gfx:hover::before { transform: scale(1.05); }
.gfx .tag { position: absolute; top: 10px; right: 10px; }
.gfx > span { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; font-family: var(--wide); font-weight: 800; font-size: clamp(14px, 1.3vw, 19px); letter-spacing: -.03em; color: rgba(255, 255, 255, .92); text-align: center; }

.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.crew__card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 30px; background: linear-gradient(145deg, rgba(255, 255, 255, .75), rgba(236, 236, 240, .4)); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), 0 20px 44px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .05); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
a.crew__card:hover, a.crew__card:focus-visible { transform: translateY(-6px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), 0 30px 60px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .05); }
.crew__card .av { width: 64px; height: 64px; font-size: 26px; margin-bottom: 8px; }
.crew__card strong { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.crew__top b { display: block; margin-top: 6px; font-family: var(--wide); font-weight: 800; font-size: clamp(32px, 3vw, 46px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.crew__top span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--yt-muted); }
.crew__top--empty span { margin-top: 10px; }
.crew__more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.crew__more span { padding: 4px 10px; border-radius: 999px; background: var(--yt-chip); font-size: 12.5px; color: var(--yt-muted); white-space: nowrap; }
.crew__more b { color: var(--yt-ink); font-weight: 700; }
.crew__work { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--yt-muted); }

/* numeri del video nel popup */
.vid__ch span, .pop__ch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop__ch { flex-wrap: wrap; }
.pop__ch em { flex: none; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .06); font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--yt-muted); white-space: nowrap; }
.pop__stats { display: grid; gap: 10px; padding: 16px 18px; border-radius: 22px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff; }
.stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stat b { font-family: var(--wide); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.045em; color: var(--yt-red); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--yt-muted); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.bars i { flex: 0 1 30px; min-width: 4px; height: var(--h); border-radius: 5px 5px 2px 2px; background: rgba(0, 0, 0, .14); transform-origin: bottom; animation: bar .9s var(--ease) backwards; }
.bars i.is-me { background: var(--yt-red); }
.bars i:nth-child(2) { animation-delay: .05s; } .bars i:nth-child(3) { animation-delay: .1s; } .bars i:nth-child(4) { animation-delay: .15s; } .bars i:nth-child(5) { animation-delay: .2s; }
.bars i:nth-child(n+6) { animation-delay: .25s; }
@keyframes bar { from { transform: scaleY(0); } }
.pop__stats small { font-size: 12px; color: var(--yt-muted); }

/* =========================================================
   DIRECTOR — prima/dopo, backstage
   ========================================================= */
.ba-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.ba-item { margin: 0; min-width: 0; }
.ba-item:first-child { grid-column: 1 / -1; }
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #0c0c0d; }
.ba-item:first-child .ba { aspect-ratio: 21 / 9; }
.ba__img { position: absolute; inset: 0; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--p)) 0 0); filter: saturate(.55) contrast(.86) brightness(1.05); }
.ba__bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--d-red); box-shadow: 0 0 14px rgba(227, 36, 27, .8); pointer-events: none; }
.ba__bar::after { content: "◂ ▸"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; padding: 7px 9px; border-radius: 999px; background: var(--d-red); color: #fff; font-size: 11px; line-height: 1; white-space: nowrap; letter-spacing: .1em; }
.ba__tag { position: absolute; z-index: 1; top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); pointer-events: none; }
.ba__tag--l { left: 16px; } .ba__tag--r { right: 16px; color: var(--d-red); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:focus-within { outline: 2px solid var(--d-red); outline-offset: 3px; }
.ba-item figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--d-red); }
.ba-item figcaption strong { font-weight: 700; }
.ba-item figcaption span { color: #cfcfcf; }

.bts { display: flex; gap: clamp(10px, 1.4vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(clamp(16px, 4vw, 64px) * -1); padding-inline: clamp(16px, 4vw, 64px); padding-bottom: 4px; }
.bts::-webkit-scrollbar { display: none; }
.bts__item { position: relative; flex: none; width: min(78vw, 460px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; scroll-snap-align: center; background: var(--g); text-align: left; font-family: var(--mono); }
.bts__item:nth-child(even) { aspect-ratio: 4 / 4.4; align-self: flex-end; }
.bts__item::before { content: ""; position: absolute; inset: 0; background: var(--img, none) center / cover; filter: grayscale(1) contrast(1.12) brightness(.82); transition: filter .7s, transform 1.2s var(--ease); }
.bts__item:hover::before, .bts__item:focus-visible::before { filter: grayscale(0); transform: scale(1.05); }
.bts__item span { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }

/* =========================================================
   CONTATTI e immagine ingrandita
   ========================================================= */
.pop--contact { width: min(520px, 94vw); }
.pop--contact[open] { grid-template-columns: minmax(0, 1fr); }
.pop--contact .pop__side { padding: 18px 12px 12px 14px; }
.pop--contact .pop__title { font-family: var(--wide); font-weight: 800; letter-spacing: -.045em; font-size: clamp(34px, 6vw, 52px); }
.contact__list { display: grid; gap: 10px; margin-top: 6px; }
.contact__row { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 16px 10px 12px; border-radius: 22px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(0, 0, 0, .06); transition: transform .4s var(--ease), background-color .3s; }
a.contact__row:hover, a.contact__row:focus-visible { transform: translateX(4px); background: rgba(255, 255, 255, .9); }
.contact__row > i { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--c, #111); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.contact__row--wa { --c: #25d366; } .contact__row--ig { --c: linear-gradient(45deg, #f9a03f, #e1306c 50%, #833ab4); } .contact__row--yt { --c: #ff0000; } .contact__row--tt { --c: #111; } .contact__row--mail { --c: #77756f; }
.contact__row > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.contact__row b { font-size: 15.5px; font-weight: 600; }
.contact__row em { font-style: normal; font-size: 13.5px; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__sel { user-select: all; }
.contact__row u, .contact__row button { flex: none; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.contact__row button { min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(0, 0, 0, .08); }
.contact__empty { padding: 18px 4px; opacity: .7; }
.pop--contact[data-kind="d"] .contact__row { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); text-transform: uppercase; letter-spacing: .05em; }
.pop--contact[data-kind="d"] a.contact__row:hover { background: rgba(255, 255, 255, .13); }
.pop--contact[data-kind="d"] .contact__row b { font-size: 13px; } .pop--contact[data-kind="d"] .contact__row em { font-size: 12px; text-transform: none; letter-spacing: 0; }
.pop--contact[data-kind="d"] .contact__row u { color: var(--d-red); font-size: 12px; }
.pop--contact[data-kind="d"] .contact__row button { background: rgba(255, 255, 255, .14); }

.lightbox { max-width: 96vw; max-height: 96svh; padding: 0; border: 0; background: none; overflow: visible; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox[open] { animation: pop .4s var(--ease); }
.lightbox img { display: block; max-width: 96vw; max-height: 88svh; border-radius: 14px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.lightbox p { margin-top: 12px; text-align: center; font-size: 14px; color: #ddd; }

@media (max-width: 760px) {
  .ba-grid { grid-template-columns: minmax(0, 1fr); }
  .ba-item:first-child .ba { aspect-ratio: 16 / 9; }
  .gfx--wide { aspect-ratio: 16 / 5; }
  .yt-num b { font-size: clamp(30px, 11vw, 48px); }
}
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } }

/* =========================================================
   CURSORE PERSONALIZZATO (js/cursor.js) — solo con il mouse
   ========================================================= */
.home__title, .d-brush, .about__cta p, .yt-head h2, .d-contact__big { user-select: none; -webkit-user-select: none; }
.home__title { cursor: default; }
html.has-cursor:not(.cur-native), html.has-cursor:not(.cur-native) * { cursor: none !important; }
#cursor { position: fixed; inset: auto; left: 0; top: 0; width: 0; height: 0; margin: 0; padding: 0; border: 0; background: none; overflow: visible; pointer-events: none; z-index: 2147483647; opacity: 0; transition: opacity .25s; }
#cursor::backdrop { display: none; }
html.has-cursor #cursor { opacity: 1; }
html.cur-native #cursor, #cursor.is-out { opacity: 0; }
.cur__ring, .cur__dot, .cur__lab { position: absolute; left: 0; top: 0; pointer-events: none; will-change: translate; }
.cur__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); transition: scale .3s var(--ease), background-color .3s, opacity .2s; }
.cur__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1.5px solid rgba(14, 14, 14, .45); transition: scale .45s var(--ease), background-color .3s, border-color .3s, opacity .3s, width .32s var(--ease), height .32s var(--ease), margin .32s var(--ease), border-radius .32s var(--ease); }
.cur__lab { margin: 0; font: 700 9px/1 var(--mono); letter-spacing: .12em; white-space: nowrap; color: #fff; opacity: 0; transform: translate(-50%, -50%); transition: opacity .25s; }
#cursor.is-down .cur__ring { scale: .8; }

/* stati — home (inchiostro) */
#cursor[data-state="link"] .cur__ring { scale: 1.2; background: rgba(14, 14, 14, .08); border-color: rgba(14, 14, 14, .7); }
#cursor[data-state="link"] .cur__dot { scale: .5; }
#cursor[data-state="play"] .cur__ring, #cursor[data-state="drag"] .cur__ring, #cursor[data-state="zoom"] .cur__ring { scale: 1.4; background: var(--ink); border-color: var(--ink); }
/* calamita: l'anello diventa l'evidenziazione del bottone e il punto sparisce */
#cursor[data-state="magnet"] .cur__ring { scale: 1; border-color: transparent; background: rgba(120, 120, 120, .16); }
#cursor[data-state="magnet"] .cur__dot { opacity: 0; scale: .2; }
#cursor[data-state="magnet"].is-down .cur__ring { scale: .96; }
#cursor[data-state="play"] .cur__dot, #cursor[data-state="drag"] .cur__dot, #cursor[data-state="zoom"] .cur__dot { opacity: 0; }
#cursor[data-state="play"] .cur__lab, #cursor[data-state="drag"] .cur__lab, #cursor[data-state="zoom"] .cur__lab { opacity: 1; }
#cursor[data-state="zoom"] .cur__lab { font-size: 16px; font-weight: 400; letter-spacing: 0; }

/* director: mirino da camera, rosso */
body[data-view="director"] #cursor .cur__dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--d-red); box-shadow: 0 0 10px var(--d-red); }
body[data-view="director"] #cursor .cur__ring {
  border: 0; border-radius: 3px;
  background:
    linear-gradient(var(--d-red), var(--d-red)) left top / 10px 1.5px, linear-gradient(var(--d-red), var(--d-red)) left top / 1.5px 10px,
    linear-gradient(var(--d-red), var(--d-red)) right top / 10px 1.5px, linear-gradient(var(--d-red), var(--d-red)) right top / 1.5px 10px,
    linear-gradient(var(--d-red), var(--d-red)) left bottom / 10px 1.5px, linear-gradient(var(--d-red), var(--d-red)) left bottom / 1.5px 10px,
    linear-gradient(var(--d-red), var(--d-red)) right bottom / 10px 1.5px, linear-gradient(var(--d-red), var(--d-red)) right bottom / 1.5px 10px;
  background-repeat: no-repeat;
}
body[data-view="director"] #cursor[data-state="link"] .cur__ring { scale: .7; rotate: 45deg; }
body[data-view="director"] #cursor[data-state="play"] .cur__ring, body[data-view="director"] #cursor[data-state="drag"] .cur__ring, body[data-view="director"] #cursor[data-state="zoom"] .cur__ring { scale: 1.4; }
body[data-view="director"] #cursor[data-state="magnet"] .cur__ring { border-radius: 3px !important; }
body[data-view="director"] #cursor .cur__lab { color: var(--d-red); text-shadow: 0 1px 8px #000; }
body[data-view="director"] #cursor .cur__ring { transition: scale .45s var(--ease), rotate .45s var(--ease), opacity .3s, width .32s var(--ease), height .32s var(--ease), margin .32s var(--ease); }

/* youtube: goccia di vetro con punto rosso */
body[data-view="youtube"] #cursor .cur__dot { background: var(--yt-red); }
body[data-view="youtube"] #cursor .cur__ring { border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(5px) saturate(180%); backdrop-filter: blur(5px) saturate(180%); box-shadow: inset 0 1.5px 0 #fff, 0 6px 18px rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .05); }
body[data-view="youtube"] #cursor .cur__ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
body[data-view="youtube"] #cursor[data-state="link"] .cur__ring { scale: 1.1; background: rgba(255, 255, 255, .5); }
body[data-view="youtube"] #cursor[data-state="play"] .cur__ring, body[data-view="youtube"] #cursor[data-state="drag"] .cur__ring, body[data-view="youtube"] #cursor[data-state="zoom"] .cur__ring { scale: 1.35; }
body[data-view="youtube"] #cursor[data-state="magnet"] .cur__ring { background: rgba(120, 120, 120, .14); border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-view="youtube"] #cursor .cur__lab { font-size: 8px; }
body[data-view="youtube"] #cursor[data-state="play"] .cur__ring, body[data-view="youtube"] #cursor[data-state="drag"] .cur__ring, body[data-view="youtube"] #cursor[data-state="zoom"] .cur__ring { background: var(--yt-red); border-color: var(--yt-red); box-shadow: 0 10px 26px rgba(255, 0, 0, .35); -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-view="youtube"] #cursor .cur__lab { font-family: var(--yt-font); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) { .cur__ring, .cur__dot { transition: opacity .2s; } }
