:root {
  --bg: #000;
  --surface: #161617;
  --surface-2: #1d1d1f;
  --ink: #f5f5f7;
  --muted: #86868b;
  --line: rgba(255, 255, 255, .08);
  --pink: #f6a9dc;
  --grad: linear-gradient(100deg, #f6a9dc 0%, #ff8fd2 40%, #c9a7ff 100%);
  --display: "Inter Tight", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: var(--pink); color: #000; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  font: 600 14px/1 var(--sans); letter-spacing: 0; color: var(--pink);
  margin: 0 0 14px;
}
.h2 {
  font: 700 clamp(44px, 7vw, 96px)/1 var(--display); margin: 0; letter-spacing: -.045em;
}
.h2 em, .h3 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3 { font: 700 clamp(24px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px;
  font: 500 16px var(--sans); transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn--pink { background: var(--pink); color: #000; }
.btn--pink:hover { background: #fff; transform: scale(1.03); }
.btn--ghost { background: rgba(255,255,255,.08); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }

/* NAV — pillola flottante */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(calc(100% - 28px), 980px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(29, 29, 31, .55); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  transition: background .4s;
}
.nav.is-scrolled { background: rgba(29, 29, 31, .8); }
.nav__logo { font: 600 17px/1 var(--display); letter-spacing: -.02em; }
.nav__logo em { color: var(--pink); }
.nav__links { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.nav__links a { padding: 9px 14px; border-radius: 999px; color: #d2d2d7; transition: background .25s, color .25s; }
.nav__links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav__links .nav__cta { background: var(--pink); color: #000; font-weight: 500; }
.nav__links .nav__cta:hover { background: #fff; color: #000; }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; border-radius: 50%; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s; }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 23px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* HERO */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 64px);
  align-items: center; padding: 130px var(--pad) 60px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
}
.hero__title {
  font: 800 clamp(64px, 11vw, 168px)/.92 var(--display); margin: 0 0 28px; letter-spacing: -.055em;
}
.hero__title .line { display: block; }
.hero__title .line--indent em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__roles { font-size: clamp(19px, 1.8vw, 24px); color: var(--muted); margin: 0 0 36px; max-width: 30ch; letter-spacing: -.02em; }
.rotator { display: inline-block; color: var(--ink); font-weight: 600; }
.rotator span { display: inline-block; animation: roleIn .6s var(--ease); }
@keyframes roleIn { from { opacity: 0; transform: translateY(50%); filter: blur(6px); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__img { margin: 0 calc(var(--pad) * -1) 0 0; position: relative; justify-self: end; width: min(100%, 460px); }
.hero__img img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 55% 40%;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 52% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 52% 50%, #000 50%, transparent 100%);
}
.hero__img::before {
  content: ""; position: absolute; inset: 20% 30% 20% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,167,255,.22), transparent); filter: blur(30px);
}

/* MARQUEE */
.marquee { overflow: hidden; padding: 28px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 36s linear infinite; align-items: center; }
.marquee span { font: 600 clamp(26px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.035em; white-space: nowrap; color: #d2d2d7; }
.marquee i { color: var(--pink); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SECTIONS */
section { padding: clamp(72px, 10vw, 140px) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.section-head { display: flex; flex-direction: column; margin-bottom: 40px; }

/* WORK */
.filters {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 36px; padding: 4px;
  background: var(--surface-2); border-radius: 999px;
}
.filter {
  font: 500 14px var(--sans); color: #d2d2d7; background: none; border: 0;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s;
}
.filter:hover { color: #fff; }
.filter.is-active { background: #f5f5f7; color: #000; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  grid-column: span 4; position: relative; cursor: pointer; border: 0; background: var(--surface);
  color: inherit; text-align: left; font: inherit; padding: 10px 10px 22px; border-radius: var(--r-lg);
  transition: transform .5s var(--ease), background .3s;
}
.card:hover { transform: translateY(-4px); background: var(--surface-2); }
.card--wide { grid-column: span 8; }
.card--half { grid-column: span 6; }
.card.is-hidden { display: none; }
.card__media { position: relative; overflow: hidden; border-radius: calc(var(--r-lg) - 8px); aspect-ratio: 4/5; background: #0c0c0d; }
.card--wide .card__media, .card--half .card__media { aspect-ratio: 16/10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__count {
  position: absolute; top: 12px; right: 12px; background: rgba(29,29,31,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
}
.card__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px); color: #000; display: grid; place-items: center; font-size: 24px; padding-left: 4px;
  transition: transform .5s var(--ease);
}
.card:hover .card__play { transform: scale(1.1); }
.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 12px 0; }
.card__title { font: 600 clamp(19px, 1.7vw, 23px)/1.2 var(--display); letter-spacing: -.025em; margin: 0; }
.card__tag {
  font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap;
  background: rgba(255,255,255,.06); padding: 4px 10px; border-radius: 999px;
}
.card__desc { color: var(--muted); font-size: 15px; margin: 6px 12px 0; max-width: 52ch; }
.card:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }


/* ABOUT */
.about-wrap { padding-inline: var(--pad); }
.about {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  background: var(--surface); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 72px);
}
.about__img img { border-radius: var(--r-lg); width: 100%; }
.about .h2 { font-size: clamp(40px, 5.2vw, 72px); margin-bottom: 28px; }
.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink); letter-spacing: -.02em; }
.about p { color: #a1a1a6; max-width: 60ch; }
.about .lead { color: var(--ink); }
.about strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 36px 0 0; }
.facts div { background: var(--surface-2); border-radius: var(--r-md); padding: 16px 18px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 600 16px/1.3 var(--display); letter-spacing: -.015em; }

/* SERVICES — bento */
.services__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services__list li {
  padding: 30px 30px 36px; background: var(--surface); border-radius: var(--r-lg);
  transition: background .3s, transform .5s var(--ease);
}
.services__list li:hover { background: var(--surface-2); transform: translateY(-4px); }
.services__list .num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: rgba(246,169,220,.12); color: var(--pink); font: 600 14px var(--display);
}
.services__list h3 { font: 600 23px/1.2 var(--display); letter-spacing: -.025em; margin: 40px 0 10px; }
.services__list p { color: var(--muted); margin: 0; font-size: 15px; }

/* CONTACT */
.contact {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  margin: clamp(40px, 6vw, 80px) var(--pad); padding: clamp(64px, 10vw, 140px) var(--pad);
  max-width: var(--max); border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 120%, rgba(246,169,220,.28), transparent 60%), var(--surface);
}
@media (min-width: 1352px) { .contact { margin-inline: auto; } }
.contact__title { font: 800 clamp(48px, 9vw, 128px)/.95 var(--display); margin: 0 0 40px; letter-spacing: -.05em; }
.contact__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact__mail {
  font: 500 clamp(16px, 2.4vw, 24px)/1.2 var(--sans); background: #f5f5f7; color: #000;
  padding: 18px 30px; border-radius: 999px; word-break: break-all; transition: transform .3s var(--ease), background .3s;
}
.contact__mail span { display: inline-block; transition: transform .4s var(--ease); }
.contact__mail:hover { background: var(--pink); transform: scale(1.03); }
.contact__mail:hover span { transform: translate(3px, -3px); }
.contact__meta { margin-top: 28px; display: flex; gap: 10px; color: #d2d2d7; font-size: 15px; }
.contact__meta > * { background: rgba(255,255,255,.07); padding: 10px 18px; border-radius: 999px; }
.contact__meta a:hover { background: rgba(255,255,255,.14); }

.footer {
  display: flex; justify-content: space-between; padding: 28px var(--pad) 40px; font-size: 13px; color: var(--muted);
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
}
.footer a:hover { color: var(--ink); }

/* GALLERIA PROGETTO */
.gallery {
  position: fixed; inset: 0; z-index: 150; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.gallery.is-open { opacity: 1; transform: none; }
.gallery[hidden] { display: none; }
.gallery__top {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad); background: rgba(0,0,0,.7);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.gallery__back {
  font: 500 15px var(--sans); color: var(--ink); background: rgba(255,255,255,.08); border: 0;
  padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: background .25s;
}
.gallery__back:hover { background: rgba(255,255,255,.16); }
.gallery__count { color: var(--muted); font-size: 14px; }
.gallery__inner { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--pad) 80px; }
.gallery__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.gallery__title { font: 700 clamp(40px, 6vw, 80px)/1 var(--display); letter-spacing: -.045em; margin: 0 0 16px; }
.gallery__head .btn[hidden] { display: none; }
.gallery__desc { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); margin: 0 0 24px; }

.gallery__grid--photo { columns: 3 280px; column-gap: 16px; }
.ptile {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--surface);
  border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; break-inside: avoid;
}
.ptile img { width: 100%; transition: transform .8s var(--ease), opacity .3s; }
.ptile:hover img { transform: scale(1.03); }
.gallery__grid--single .ptile { max-width: 1000px; cursor: zoom-in; }

.gallery__grid--video { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vtile { background: var(--surface); border-radius: var(--r-lg); padding: 8px 8px 16px; transition: background .3s, transform .5s var(--ease); }
.vtile:hover { background: var(--surface-2); transform: translateY(-3px); }
.vtile__media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; cursor: pointer;
  border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: #0c0c0d;
}
.vtile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vtile:hover .vtile__media img { transform: scale(1.04); }
.vtile__media .card__play { width: 58px; height: 58px; font-size: 18px; }
.vtile:hover .card__play { transform: scale(1.1); }
.vtile__info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 10px 0; }
.vtile__title { font: 600 16px/1.3 var(--display); letter-spacing: -.015em; }
.vtile__yt {
  flex-shrink: 0; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); transition: background .25s, color .25s;
}
.vtile__yt:hover { background: #ff0033; color: #fff; }
.ptile:focus-visible, .vtile__media:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.gallery__grid--clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; align-items: start; }
.gallery__grid--wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.ctile {
  display: flex; flex-direction: column; gap: 12px; padding: 8px 8px 14px; border: 0; cursor: pointer; text-align: left;
  background: var(--surface); color: var(--ink); border-radius: var(--r-lg); font: inherit;
  transition: background .3s, transform .5s var(--ease);
}
.ctile:hover { background: var(--surface-2); transform: translateY(-3px); }
.ctile__media { position: relative; display: block; width: 100%; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: #0c0c0d; }
.ctile__media img, .ctile__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ctile__media video { opacity: 0; transition: opacity .4s; }
.ctile.is-playing video { opacity: 1; }
.ctile .card__play { width: 54px; height: 54px; font-size: 17px; transition: opacity .3s, transform .5s var(--ease); }
.ctile.is-playing .card__play { opacity: 0; }
.ctile__title { font: 600 15px/1.3 var(--display); letter-spacing: -.015em; padding: 0 6px; }
.ctile:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.8);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  display: grid; grid-template-columns: 88px 1fr 88px; grid-template-rows: auto 1fr auto; align-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); }
.lightbox__bar strong { font: 600 19px var(--display); letter-spacing: -.02em; }
.lightbox__bar span { color: var(--muted); font-size: 14px; margin-left: 10px; white-space: nowrap; }
.lightbox__close, .lightbox__nav {
  background: rgba(255,255,255,.1); border: 0; color: var(--ink); width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; font-size: 17px; transition: background .3s, color .3s; justify-self: center;
}
.lightbox__close:hover, .lightbox__nav:hover { background: #f5f5f7; color: #000; }
.lightbox__stage { margin: 0; height: 100%; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lightbox__stage img { max-height: calc(100svh - 220px); width: auto; max-width: 100%; object-fit: contain; border-radius: var(--r-md); animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: scale(.97); } }
.lightbox__video { width: min(100%, calc((100svh - 220px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.lightbox__video[hidden], .lightbox__stage img[hidden], .lightbox__clip[hidden] { display: none; }
.lightbox__clip { max-height: calc(100svh - 220px); max-width: 100%; height: calc(100svh - 220px); width: auto; border-radius: var(--r-md); background: #000; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox__foot { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px var(--pad) 24px; text-align: center; }
.lightbox__foot p { margin: 0; color: #d2d2d7; font-size: 15px; max-width: 70ch; }
.lightbox__foot p:empty { display: none; }
.lightbox__foot .btn[hidden] { display: none; }

/* CURSOR (solo desktop) */
.cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--pink);
  pointer-events: none; z-index: 300; mix-blend-mode: difference; transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease); opacity: 0;
}
.cursor.is-big { width: 56px; height: 56px; }
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1; } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__img { width: 85%; max-width: 380px; justify-self: center; margin: -10px 0 0; }
  .hero__img img { aspect-ratio: 1; }
  .card, .card--wide, .card--half { grid-column: span 6; }
  .about { grid-template-columns: 1fr; }
  .about__img { max-width: 320px; }
  .services__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { padding-left: 18px; }
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(29,29,31,.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; gap: 4px; font-size: 17px;
    opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav__links a { padding: 14px 16px; border-radius: 16px; }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links .nav__cta { text-align: center; border-radius: 999px; }
  .grid { gap: 14px; }
  .card, .card--wide, .card--half { grid-column: 1 / -1; }
  .card .card__media { aspect-ratio: 4/3; }
  .filters { display: flex; }
  .filter { flex: 1; padding-inline: 10px; }
  .services__list { grid-template-columns: 1fr; gap: 14px; }
  .facts { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto; }
  .lightbox__stage { grid-column: 1 / -1; grid-row: 2; }
  .lightbox__nav--prev, .lightbox__nav--next { grid-row: 3; margin-top: 12px; }
  .lightbox__foot { grid-row: 4; }
  .gallery__grid--photo { columns: 2 140px; column-gap: 10px; }
  .ptile { margin-bottom: 10px; border-radius: 14px; }
  .footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
