/* =========================================================
   DELUXE MEDIA — style
   Palette dal logo: blu notte + oro sfumato
   ========================================================= */
:root {
  --bg: #05070f;
  --bg-2: #02030a;
  --navy: #0b1f3a;
  --gold: #c9a45c;
  --gold-2: #f3dfa2;
  --gold-3: #8f6d34;
  --ivory: #efe9dc;
  --muted: rgba(239, 233, 220, .64);
  --dim: rgba(239, 233, 220, .38);
  --line: rgba(239, 233, 220, .12);
  --f-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-brand: 'Cinzel', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html { background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.is-loading { overflow: hidden; }
body { background: var(--bg); color: var(--ivory); font-family: var(--f-sans); font-weight: 400; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #05070f; }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.gold {
  background: linear-gradient(100deg, #8f6d34 0%, #f3dfa2 30%, #c9a45c 50%, #fff3cf 65%, #a07a3a 85%, #f3dfa2 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
  padding-right: .06em;
}
@keyframes shine { to { background-position: -250% 0; } }
.label { color: var(--gold-2); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Layer di fondo ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.no-webgl #gl { display: none; }
.no-webgl body { background: radial-gradient(ellipse at 70% 20%, #13294d 0%, var(--bg) 60%); background-attachment: fixed; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-2%,6%); } 80% { transform: translate(5%,-2%); } }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%); }
main { position: relative; z-index: 2; }

/* ---------- Bottoni ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px;
  border: 1px solid rgba(201, 164, 92, .45);
  font-size: 14px; letter-spacing: .03em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, #a07a3a, #f3dfa2 50%, #c9a45c);
  transform: translateY(102%); transition: transform .6s var(--ease);
}
.btn:hover { color: #0a0a0a; border-color: transparent; }
.btn:hover::before { transform: none; }
.btn--solid { color: #0a0a0a; border-color: transparent; background: linear-gradient(100deg, #a07a3a, #f3dfa2 50%, #c9a45c); box-shadow: 0 0 40px rgba(201,164,92,.25); }
.btn--solid::before { background: var(--ivory); }
.btn--sm { padding: 11px 18px; font-size: 13px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  transition: background .6s, padding .6s, border-color .6s, transform .8s var(--ease);
  border-bottom: 1px solid transparent;
  transform: translateY(-110%);
}
.is-ready .nav { transform: none; transition-delay: 0s, 0s, 0s, .5s; }
.nav.is-scrolled { background: rgba(3, 5, 12, .55); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); padding-block: 12px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand__name { font-family: var(--f-brand); font-weight: 600; font-size: 13px; line-height: 1.05; letter-spacing: .28em; }
.brand__name b { font-weight: 500; font-size: 9.5px; letter-spacing: .52em; color: var(--gold); }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 42px); list-style: none; }
.nav__links a { position: relative; display: flex; align-items: baseline; gap: 7px; font-size: 13.5px; letter-spacing: .04em; color: var(--muted); transition: color .4s; padding: 6px 0; }
.nav__links a span { font-family: var(--f-mono); font-size: 9px; color: var(--gold); }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--ivory); transition: transform .5s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 55; background: rgba(2, 3, 10, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease-io); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu ul { list-style: none; }
.menu li a { display: flex; align-items: baseline; gap: 16px; font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.25; }
.menu li a span { color: var(--gold); }
.menu__mail { margin-top: 40px; color: var(--gold-2); }

/* ---------- HUD fisso ---------- */
.rail { position: fixed; right: calc(var(--pad) * .6); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transition: opacity 1s .8s; }
.is-ready .rail { opacity: 1; }
.rail__track { width: 1px; height: 130px; background: var(--line); position: relative; overflow: hidden; }
.rail__fill { position: absolute; inset: 0; background: linear-gradient(var(--gold-2), var(--gold)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail .mono { font-size: 9.5px; color: var(--dim); writing-mode: vertical-rl; letter-spacing: .2em; }
.rail__num { color: var(--gold-2) !important; }
.hud-world { position: fixed; left: var(--pad); bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; font-size: 9.5px; color: var(--dim); opacity: 0; transition: opacity 1s .8s; }
.is-ready .hud-world { opacity: 1; }
.is-ready .hud-world.is-hidden { opacity: 0; }
.hud-world__dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 8px var(--gold); }
.is-world2 .hud-world__dot { background: #8fd0ff; box-shadow: 0 0 10px #8fd0ff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 130px var(--pad) 70px; }
.hero__frame i { position: absolute; width: 22px; height: 22px; border-color: rgba(243,223,162,.35); border-style: solid; border-width: 0; opacity: 0; transition: opacity 1s 1s; }
.is-ready .hero__frame i { opacity: 1; }
.hero__frame i:nth-child(1) { top: 96px; left: var(--pad); border-top-width: 1px; border-left-width: 1px; }
.hero__frame i:nth-child(2) { top: 96px; right: var(--pad); border-top-width: 1px; border-right-width: 1px; }
.hero__frame i:nth-child(3) { bottom: 26px; left: var(--pad); border-bottom-width: 1px; border-left-width: 1px; opacity: 0 !important; }
.hero__frame i:nth-child(4) { bottom: 26px; right: var(--pad); border-bottom-width: 1px; border-right-width: 1px; }
.hero__meta { position: absolute; top: 112px; right: calc(var(--pad) + 36px); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 10px; color: var(--dim); }
.hero__eyebrow { color: var(--gold-2); margin-bottom: 28px; display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity 1s .3s; }
.hero__eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.is-ready .hero__eyebrow { opacity: 1; }
.hero__title { font-weight: 300; font-size: clamp(2.6rem, 6.6vw, 7rem); line-height: .98; letter-spacing: -.045em; }
.hero__title em { font-size: 1.1em; letter-spacing: -.02em; line-height: .8; }
.line { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.08em; }
.line > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.6s var(--ease); }
.is-ready .line > span { transform: none; }
.line:nth-child(2) > span { transition-delay: .08s; }
.line:nth-child(3) > span { transition-delay: .16s; }
.line:nth-child(4) > span { transition-delay: .24s; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero__sub { max-width: 430px; color: var(--muted); font-size: 16.5px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-size: 9.5px; color: var(--dim); }
.hero__scroll i { width: 1px; height: 26px; background: linear-gradient(transparent, var(--gold-2)); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Manifesto ---------- */
.manifesto { padding: 34vh var(--pad) 30vh; max-width: 1400px; }
.manifesto__text { font-size: clamp(1.9rem, 4.4vw, 4.6rem); font-weight: 300; line-height: 1.1; letter-spacing: -.035em; max-width: 21ch; }
.manifesto__text .w { opacity: .13; transition: opacity .5s; }
.manifesto__text .w.on { opacity: 1; }

/* ---------- VR ---------- */
.vr { position: relative; height: 560vh; }
.vr__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.lens { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; visibility: hidden; }
.lens__rims circle { fill: none; stroke: #f3dfa2; stroke-width: 1.2; filter: drop-shadow(0 0 8px rgba(243,223,162,.9)); }
.lens__flash { opacity: 0; mix-blend-mode: screen; }
.vr__hud { position: absolute; inset: 88px var(--pad) 28px; pointer-events: none; opacity: var(--hud, 0); transition: opacity .4s; }
.vr__hud i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(143,208,255,.6); }
.vr__hud i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.vr__hud i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.vr__hud i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.vr__hud i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.vr__rec { position: absolute; top: 10px; left: 40px; display: flex; align-items: center; gap: 8px; color: #8fd0ff; font-size: 10px; }
.vr__rec b { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; animation: pulse 1s infinite; }
.vr__spec { position: absolute; top: 10px; right: 40px; color: #8fd0ff; font-size: 10px; }
.vr__lenshud { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #bfe3ff; font-size: 10px; opacity: 0; pointer-events: none; text-align: center; }
.vr__lenshud strong { font-weight: 400; font-size: 22px; color: var(--gold-2); letter-spacing: .1em; }
.vr__cross { width: 34px; height: 34px; border: 1px solid rgba(191,227,255,.5); border-radius: 50%; position: relative; margin-bottom: 6px; }
.vr__cross::before, .vr__cross::after { content: ''; position: absolute; background: rgba(191,227,255,.8); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.vr__cross::before { width: 1px; height: 52px; } .vr__cross::after { width: 52px; height: 1px; }
.vr__chapter { position: absolute; top: 110px; right: var(--pad); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--dim); font-size: 10px; }
.vr__bar { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.vr__bar i { display: block; height: 100%; background: var(--gold-2); transform-origin: left; transform: scaleX(var(--v, 0)); }
.vr__steps { position: absolute; left: var(--pad); right: var(--pad); bottom: 11vh; pointer-events: none; }
.vr__sticky::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none; background: linear-gradient(transparent, rgba(1,2,8,.82)); opacity: var(--shade, 0); }
.vr__steps, .vr__chapter { z-index: 2; }
.vr__step { position: absolute; left: 0; bottom: 0; max-width: 720px; opacity: 0; will-change: opacity, transform; }
.vr__step h2 { font-size: clamp(2.1rem, 5vw, 5rem); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.vr__step h2 em { font-size: 1.06em; }
.vr__copy { margin-top: 22px; max-width: 440px; color: var(--muted); font-size: 16px; }

/* ---------- Sezioni con velo leggero ---------- */
.veil { position: relative; }
.veil::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(1,2,8,0), rgba(1,2,8,.55) 14vh, rgba(1,2,8,.55) calc(100% - 14vh), rgba(1,2,8,0)); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 12vh; padding-bottom: 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2.6rem, 7vw, 7.2rem); font-weight: 300; letter-spacing: -.05em; line-height: .92; }
.section-head h2 em { font-size: 1.08em; }
.section-head__aside { max-width: 300px; color: var(--muted); font-size: 15px; }
.section-head__aside .mono { color: var(--gold-2); margin-left: 6px; }

/* ---------- Lavori ---------- */
.works { padding: 24vh var(--pad) 20vh; }
.works__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 14vh; }
.work { display: block; position: relative; transition: opacity .7s var(--ease), filter .7s var(--ease); }
.work:nth-child(1) { grid-column: 1 / 8; }
.work:nth-child(2) { grid-column: 9 / 13; margin-top: 24vh; }
.work:nth-child(3) { grid-column: 1 / 8; }
.work:nth-child(4) { grid-column: 9 / 13; margin-top: 10vh; }
.work:nth-child(5) { grid-column: 1 / 7; }
.work:nth-child(6) { grid-column: 8 / 12; margin-top: 20vh; }
.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 3px; background: linear-gradient(135deg, #10172a, #05070f); transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); }
.work:nth-child(2) .work__media, .work:nth-child(6) .work__media { aspect-ratio: 3 / 4; }
.work:nth-child(3) .work__media { aspect-ratio: 16 / 9; }
.work__media img, .work__media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.72); transform: scale(1.03); transition: filter 1s var(--ease), transform 1.6s var(--ease); opacity: 0; }
.work__media img.is-loaded { opacity: 1; transition: filter 1s var(--ease), transform 1.6s var(--ease), opacity 1s; }
.work__media::before { content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%; z-index: 2; pointer-events: none; background: linear-gradient(transparent, rgba(243,223,162,.22), transparent); }
.work__media::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(243,223,162,0); transition: box-shadow .8s var(--ease); }
.work__glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,244,214,.55), transparent 42%); mix-blend-mode: overlay; opacity: 0; transition: opacity .6s; }
.works__grid:hover .work:not(:hover) { opacity: .4; filter: blur(1px); }
.work:hover .work__media img, .work.is-active .work__media img, .work:hover .work__media video, .work.is-active .work__media video { filter: grayscale(0) contrast(1.05) brightness(1.08) saturate(1.15); transform: scale(1.09); }
.work:hover .work__media::before, .work.is-active .work__media::before { animation: scan 1.3s var(--ease) forwards; }
.work:hover .work__media::after, .work.is-active .work__media::after { box-shadow: inset 0 0 0 1px rgba(243,223,162,.55), inset 0 0 60px rgba(243,223,162,.12); }
.work:hover .work__glare { opacity: 1; }
@keyframes scan { to { top: 100%; } }
.work__meta { display: grid; grid-template-columns: auto 1fr auto; column-gap: 16px; row-gap: 4px; align-items: baseline; margin-top: 18px; }
.work__idx { color: var(--gold); }
.work__meta h3 { font-size: clamp(18px, 1.8vw, 24px); font-weight: 400; letter-spacing: -.01em; transition: color .5s; }
.work:hover h3 { color: var(--gold-2); }
.work__meta p { grid-column: 2 / 4; color: var(--muted); font-size: 14px; }
.work__tag { color: var(--dim); font-size: 10px; }

/* ---------- Servizi ---------- */
.services { padding: 18vh var(--pad) 20vh; }
.svc { position: relative; isolation: isolate; display: grid; grid-template-columns: 90px 1fr minmax(280px, 1.05fr); gap: 28px; padding: 46px 0; border-top: 1px solid var(--line); align-items: start; }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(201,164,92,.13), rgba(201,164,92,0) 70%); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.svc:hover::before { transform: scaleX(1); }
.svc__n { color: var(--gold); padding-top: 14px; }
.svc h3 { font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; transition: transform .8s var(--ease), color .5s; }
.svc:hover h3 { transform: translateX(20px); color: var(--gold-2); }
.svc__body p { color: var(--muted); font-size: 16px; max-width: 460px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc__tags span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); transition: border-color .5s, color .5s; }
.svc:hover .svc__tags span { border-color: rgba(201,164,92,.45); color: var(--ivory); }

/* ---------- Studio ---------- */
.studio { padding: 20vh var(--pad); }
.studio__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.studio__title { font-size: clamp(2rem, 4.2vw, 4.2rem); font-weight: 300; line-height: 1.06; letter-spacing: -.04em; }
.studio__copy { color: var(--muted); font-size: 17px; margin-bottom: 56px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 28px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.stat__num { font-size: clamp(2.6rem, 4.6vw, 4.4rem); font-weight: 200; line-height: 1; letter-spacing: -.04em; color: var(--gold-2); }
.stat .mono { color: var(--dim); font-size: 10px; }
.stat__num--word { font-size: clamp(1.7rem, 2.7vw, 2.7rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }

/* ---------- Contatti ---------- */
.contact { min-height: 115vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20vh var(--pad) 14vh; }
.contact__title { font-size: clamp(3rem, 9.4vw, 10rem); font-weight: 300; line-height: .92; letter-spacing: -.055em; text-shadow: 0 4px 60px rgba(0,0,0,.6); }
.contact__title em { font-size: 1.04em; }
.contact__mail { margin-top: 48px; font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 300; position: relative; padding-bottom: 6px; }
.contact__mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); }
.contact__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

.footer { position: relative; padding: 60px var(--pad) 36px; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(1,2,8,.85)); }
.footer__logo { width: min(240px, 50vw); margin: 0 auto 44px; opacity: .95; }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 10px; }
.footer__row a:hover { color: var(--gold-2); }
.footer__legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; text-align: center; line-height: 1.8; }
.menu__mail--2 { margin-top: 14px; color: var(--muted); }
.menu__mail { padding: 6px 0; }

/* ---------- Cursore ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }
.cursor__ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(243,223,162,.5); display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s, border-color .5s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--gold-2); }
.cursor.is-label .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: rgba(243,223,162,.95); border-color: transparent; }
.cursor__label { color: #0a0a0a; font-size: 10px; opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* =========================================================
   LOADER — omino con visore VR che corre verso il portale
   ========================================================= */
.loader { --p: 0; position: fixed; inset: 0; z-index: 200; background: #03040a; display: flex; flex-direction: column; justify-content: space-between; padding: 26px var(--pad); transition: background-color 1s .45s, visibility 0s 1.8s; }
.loader__top, .loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; transition: opacity .6s; }
.loader__top { color: var(--dim); }
.loader__center { display: flex; flex-direction: column; align-items: center; gap: 36px; transition: opacity .6s .3s; }
.loader__logo { width: 120px; opacity: 0; transition: opacity 1s; }
.loader__logo.is-loaded { opacity: .95; }
.loader__track { position: relative; width: min(560px, 82vw); height: 86px; }
.loader__line { position: absolute; left: 0; right: 30px; bottom: 9px; height: 1px; background: var(--line); overflow: hidden; }
.loader__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transform-origin: left; transform: scaleX(var(--p)); }
.runner { position: absolute; bottom: 8px; left: calc(var(--p) * (100% - 74px)); width: 46px; height: 62px; }
.runner__svg { width: 100%; height: 100%; overflow: visible; }
.runner line { stroke: var(--ivory); stroke-width: 4.4; stroke-linecap: round; }
.runner .arm--back line, .runner .leg--back line { stroke: rgba(239,233,220,.45); }
.runner .head { fill: var(--ivory); }
.runner .visor { fill: var(--gold-2); filter: drop-shadow(0 0 4px rgba(243,223,162,.9)); }
.runner__shadow { fill: rgba(243,223,162,.25); transform-origin: 30px 77px; animation: shadow .29s ease-in-out infinite alternate; }
.runner__body { transform-origin: 30px 46px; animation: bob .29s ease-in-out infinite alternate; }
.leg { transform-origin: 30px 46px; animation: thigh .58s linear infinite; }
.leg .shin { transform-origin: 30px 58px; animation: shin .58s linear infinite; }
.arm { transform-origin: 30px 27px; animation: arm .58s linear infinite; }
.arm .fore { transform-origin: 30px 38px; transform: rotate(-80deg); }
.leg--back, .leg--back .shin, .arm--back { animation-delay: -.29s; }
@keyframes thigh { 0%, 100% { transform: rotate(-40deg); } 50% { transform: rotate(34deg); } }
@keyframes shin { 0%, 100% { transform: rotate(12deg); } 35% { transform: rotate(40deg); } 55% { transform: rotate(98deg); } 80% { transform: rotate(72deg); } }
@keyframes arm { 0%, 100% { transform: rotate(42deg); } 50% { transform: rotate(-48deg); } }
@keyframes bob { from { transform: translateY(0) rotate(9deg); } to { transform: translateY(-3.5px) rotate(9deg); } }
@keyframes shadow { from { transform: scaleX(1); } to { transform: scaleX(.75); } }
.loader__portal { position: absolute; right: 0; bottom: -10px; width: 20px; height: 50px; border-radius: 50%; border: 1.5px solid var(--gold-2); box-shadow: 0 0 22px rgba(243,223,162,.7), inset 0 0 14px rgba(243,223,162,.6); animation: portal 1.6s ease-in-out infinite; }
@keyframes portal { 50% { box-shadow: 0 0 36px rgba(243,223,162,.95), inset 0 0 22px rgba(243,223,162,.9); } }
.loader__count { display: flex; align-items: flex-start; gap: 6px; font-size: clamp(4rem, 13vw, 11rem); font-weight: 200; line-height: .85; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.loader__count small { color: var(--gold); margin-top: .8em; }
.loader__tip { color: var(--dim); max-width: 220px; }
/* uscita: l'omino si tuffa nel portale, il portale esplode in un anello d'oro */
.loader.is-done { background-color: rgba(3,4,10,0); visibility: hidden; }
.loader.is-done .loader__top, .loader.is-done .loader__bottom, .loader.is-done .loader__logo, .loader.is-done .loader__line { opacity: 0 !important; }
.loader.is-done .runner { left: calc(100% - 34px); opacity: 0; transition: left .4s ease-in, opacity .2s .25s; }
.loader.is-done .loader__portal { animation: none; transform: scale(90); opacity: 0; transition: transform 1.5s var(--ease-io) .3s, opacity .5s 1.2s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav nav, .nav__cta { display: none; }
  .burger { display: block; }
  .rail { display: none; }
  .hero__meta { display: none; }
  .works__grid { grid-template-columns: 1fr; row-gap: 72px; }
  .work:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work:nth-child(n) .work__media { aspect-ratio: 4 / 3; }
  .works__grid:hover .work:not(:hover) { opacity: 1; filter: none; }
  .svc { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .svc__n { padding: 0; }
  .studio__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-bottom: 80px; }
  .hero__title { font-size: clamp(2.3rem, 11.5vw, 3.4rem); }
  .hero__bottom { margin-top: 32px; }
  .hero__sub { font-size: 15.5px; }
  .hero__frame { display: none; }
  .btn { padding: 14px 20px; }
  .manifesto { padding: 24vh var(--pad); }
  .vr__chapter { top: 92px; }
  .vr__hud { inset: 80px 16px 18px; }
  .vr__spec { display: none; }
  .vr__steps { bottom: 13vh; }
  .stats { gap: 30px 18px; }
  .loader__track { height: 76px; }
  .hud-world { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .gold { animation: none; }
}

.work__media video { opacity: 1; }


/* anteprima interattiva (sito vero, scorrevole) */
.viewer { position: fixed; inset: 0; z-index: 400; background: rgba(3,4,9,.94); backdrop-filter: blur(10px); display: flex; flex-direction: column; padding: 14px clamp(10px,3vw,40px) 18px; cursor: auto; }
.viewer[hidden] { display: none; }
.viewer__bar { display: flex; align-items: center; gap: 16px; padding: 6px 2px 12px; flex-wrap: wrap; }
.viewer__title { color: #f3dfa2; flex: 1 1 auto; }
.viewer__hint { color: var(--muted, #8a93a6); }
.viewer__open { color: #f3dfa2; border: 1px solid rgba(243,223,162,.4); padding: 9px 14px; border-radius: 99px; text-decoration: none; }
.viewer__open:hover { background: #f3dfa2; color: #05070f; }
.viewer__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.viewer__close:hover { background: #fff; color: #05070f; }
.viewer__frame { position: relative; flex: 1; width: min(1360px, 100%); margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid rgba(243,223,162,.25); background: #000; box-shadow: 0 30px 120px rgba(0,0,0,.7); }
.viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #05070f; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; color: #f3dfa2; pointer-events: none; transition: opacity .5s; }
.viewer__loading.is-done { opacity: 0; }
@media (max-width: 700px) { .viewer__hint { display: none; } .viewer { padding: 8px 6px 10px; } }

/* anteprima senza video: lenta panoramica verticale, come uno scorrimento */
.work__media img.kb { object-position: 50% 0%; animation: kbpan 16s ease-in-out infinite alternate; }
@keyframes kbpan { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }
@media (prefers-reduced-motion: reduce) { .work__media img.kb { animation: none; } }

/* =========================================================
   Leggibilità: i testi devono staccare dalla scena 3D
   ========================================================= */
:root { --dim: rgba(239, 233, 220, .58); }
.stat .mono, .work__tag, .footer__row, .footer__legal, .vr__chapter, .hero__meta { font-size: 11px; }
.stat .mono { color: var(--muted); line-height: 1.6; }
.work__tag { color: var(--muted); }
/* titolo e testo d'apertura: ombra scura morbida dove passano sopra la sfera */
.hero__title, .hero__sub, .hero__eyebrow { text-shadow: 0 2px 28px rgba(2,3,10,.85), 0 0 6px rgba(2,3,10,.5); }
.hero__title .gold { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(2,3,10,.8)); }
/* passi del metodo: velo scuro dietro al testo, così anelli e fasci di luce non lo attraversano */
.vr__step::before { content: ''; position: absolute; z-index: -1; inset: -70px -90px -50px -90px; pointer-events: none; background: radial-gradient(ellipse at 35% 60%, rgba(1,2,8,.86) 0%, rgba(1,2,8,.6) 45%, rgba(1,2,8,0) 72%); }
.vr__step h2, .vr__copy, .vr__step .label { text-shadow: 0 2px 22px rgba(1,2,8,.95), 0 0 5px rgba(1,2,8,.7); }
.vr__step h2 .gold { text-shadow: none; filter: drop-shadow(0 2px 12px rgba(1,2,8,.9)); }
.vr__copy { color: rgba(239, 233, 220, .82); }
/* contatti: velo scuro al centro, sopra il bagliore dorato */
.contact { position: relative; isolation: isolate; }
.contact::before { content: ''; position: absolute; z-index: -1; inset: 6vh 0 0 0; pointer-events: none; background: radial-gradient(ellipse 62% 46% at 50% 44%, rgba(1,2,8,.88) 0%, rgba(1,2,8,.7) 50%, rgba(1,2,8,0) 100%); }
.contact__title { text-shadow: 0 4px 40px rgba(1,2,8,.9); }
.contact__title .gold { text-shadow: none; filter: drop-shadow(0 3px 18px rgba(1,2,8,.95)); }
.contact__mail { text-shadow: 0 2px 20px rgba(1,2,8,.95); }
.contact .btn:not(.btn--solid) { background: rgba(3,5,12,.72); border-color: rgba(243,223,162,.6); }
.contact .btn:not(.btn--solid):hover { background: transparent; }
.footer { background: linear-gradient(rgba(1,2,8,.35), rgba(1,2,8,.92)); }
.footer__row, .footer__legal { color: var(--muted); }
@media (max-width: 600px) {
  /* telefono: velo scuro dietro al titolo (la sfera resta visibile in alto) e niente etichetta fissa sopra i testi */
  .hero { background: linear-gradient(rgba(2,3,10,0) 14%, rgba(2,3,10,.5) 36%, rgba(2,3,10,.78) 62%, rgba(2,3,10,.6) 100%); }
  .hud-world { display: none; }
  /* link comodi da toccare */
  .menu__mail { font-size: 13px; padding: 14px 0; margin-top: 28px; letter-spacing: .1em; }
  .menu__mail--2 { margin-top: 0; }
  .footer__row a { padding: 14px 10px; margin: -14px -10px; }
  .footer__row { justify-content: center; text-align: center; gap: 10px 18px; }
  .contact::before { inset: 4vh 0 0 0; background: radial-gradient(ellipse 120% 48% at 50% 46%, rgba(1,2,8,.9) 0%, rgba(1,2,8,.72) 55%, rgba(1,2,8,0) 100%); }
}
