/* =================================================================
   Simone Endrizzi — Portfolio
   Palette: dark warm grey + warm ochre · Archivo Expanded / Archivo / Space Mono
================================================================== */

:root {
  /* --- Color --- */
  --bg:        #121110;          /* near-black, warm */
  --bg-2:      #1a1815;          /* raised surface */
  --bg-3:      #221f1b;          /* cards / hover */
  --ink:       #f1ede4;          /* warm off-white */
  --ink-soft:  #aaa395;          /* secondary text */
  --ink-mute:  #7d766a;          /* tertiary / labels */
  --line:      rgba(241,237,228,.12);
  --line-soft: rgba(241,237,228,.06);
  --accent:    #e8a41e;          /* warm ochre / gold (slightly more saturated) */
  --accent-2:  #f3b537;          /* lighter ochre (hover) */
  --accent-ink:#141210;          /* dark text on ochre */

  /* --- Type --- */
  --display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --sans:    "Archivo", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", monospace;

  /* mono-label scale — ONE coherent system for every small uppercase label
     across the site. Same tier = same size + tracking, so things at the same
     hierarchical level always read as equals.
       lg → section eyebrow / page kicker that announces a heading (accent)
       md → standalone section label · CTA · caption · filter · meta line
       sm → dense in-card meta only (card subtitle, still tag) */
  --label-lg: 12px;  --label-lg-ls: .2em;
  --label-md: 11px;  --label-md-ls: .18em;
  --label-sm: 10px;  --label-sm-ls: .12em;

  /* display-heading ceiling — the home-page quote is the LARGEST text used
     anywhere on the site; no reading heading may exceed it (Simone's rule).
     Page leads sit AT --fs-max; secondary headings one step below at --fs-h2. */
  --fs-max: clamp(17px, 2.1vw, 28px);
  --fs-h2:  clamp(19px, 2.1vw, 26px);

  /* --- Space --- */
  --gut: clamp(18px, 4.5vw, 64px);
  --sec: clamp(64px, 12vw, 170px);
  --header-h: 78px;

  /* --- Motion --- */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-io:  cubic-bezier(.65, .05, .36, 1);

  --radius: 4px;
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }

body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }

/* Display headline helper */
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .9; }

/* Global 35mm film grain — monochrome, cinematic patina over the whole site.
   soft-light modulates lighter AND darker around the mid value, so the overall
   brightness is preserved — it adds texture, not exposure. */
#filmgrain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;   /* behind content → grain shows only on the background, never over images */
  opacity: .85;
  mix-blend-mode: soft-light;
  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='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* progressive "lens" blur at the top — content softly defocuses under the menu */
#topblur {
  position: fixed; top: 0; left: 0; right: 0; height: clamp(72px, 11vh, 120px);
  z-index: 790; pointer-events: none; opacity: 1; transition: opacity .4s ease;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 38%, transparent 100%);
  background: linear-gradient(to bottom, rgba(18,17,16,.5), transparent);
}
/* always on now (2026-08-19): every view scrolls content under the fixed header,
   including Home since the hero merge — no more locked, non-scrolling intro view to except */

/* Per-media film grain disabled — grain lives only on the background (#filmgrain),
   never over the preview images/posters. */
.grain { display: none; }

/* ================================================================ Cursor */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 12px; height: 12px;
  pointer-events: none; transform: translate(-50%, -50%);
  transition: width .5s var(--e-out), height .5s var(--e-out), opacity .3s ease;
  display: flex; align-items: center; justify-content: center; opacity: 0;
}
body.cursor-on #cursor { opacity: 1; }
/* soft premium glow + faint film grain around the cursor — screens over the
   background so it reads mainly on darker/grey areas, as if the cursor lightly
   lit the surface. Kept very subtle (barely there). */
#cursor::before, #cursor::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  z-index: -1; mix-blend-mode: screen;
}
#cursor::before {
  background: radial-gradient(circle, rgba(255,238,204,.048) 0%, rgba(232,164,30,.024) 34%, transparent 68%);
}
#cursor::after {
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle, #000 0%, transparent 60%);
}
.cursor__dot { width: 100%; height: 100%; border-radius: 50%; background: var(--accent); display: block; }
#cursor.is-hover { width: 16px; height: 16px; }   /* grows a little over links / buttons */
#cursor.is-view  { width: 15px; height: 15px; }   /* grows a little over project cards — kept subtle, 2026-08-19 */
#cursorLabel {
  position: absolute; top: 100%; left: 50%; margin-top: 4px; transform: translateX(-50%) scale(.6);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap;
}
#cursor.is-view #cursorLabel { opacity: 1; transform: translateX(-50%) scale(1); }
/* Over ochre backgrounds → dark dot so it stays visible */
#cursor.on-accent .cursor__dot { background: var(--accent-ink); }
#cursor.on-accent #cursorLabel { color: var(--accent-ink); }

/* ============================================================ Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 9000; background: var(--bg);
  display: grid; place-items: center;
}
.pre__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.pre__icon { width: 68px; height: 68px; position: relative; }
.pre__icon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.pre__icon svg .ink { fill: var(--ink); }
.pre__icon svg .acc { fill: var(--accent); }
.pre__bar { width: clamp(110px, 32vw, 150px); height: 2px; background: var(--line); position: relative; overflow: hidden; }
.pre__bar-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--accent); }
.pre__name {
  position: absolute; bottom: var(--gut); left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-mute);
}

/* =============================================================== Header */
#header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 800; height: var(--header-h);
  display: flex; align-items: center; justify-content: flex-start;
  padding: 0 var(--gut); color: var(--ink);
}
.brand { margin-right: auto; }   /* brand left, everything else grouped right */
.lang-switch { display: flex; align-items: center; gap: 7px; margin-left: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.lang-switch button { color: var(--ink-mute); text-transform: uppercase; transition: color .3s var(--e-out); }
.lang-switch button:hover { color: var(--accent); }
.lang-switch button.is-active { color: var(--accent); }
.lang-switch__sep { color: var(--ink-mute); opacity: .5; }
#header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20,19,17,.75), transparent);
  opacity: 0; transition: opacity .4s ease;
}
body[data-view="home"] #header::before,
body[data-view="project"] #header::before { opacity: 1; }
.brand {
  display: inline-flex; align-items: flex-start; gap: .24em;   /* logo trottola 2026-11-02: icona + nome su due righe */
  font-family: var(--sans); font-weight: 700; font-size: 15.4px;   /* +10% on desktop (icon scales too, it's em/cap-based) — felt small next to the vw-scaled headings */
  letter-spacing: .02em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.brand__name { display: flex; flex-direction: column; line-height: .92; }
/* trottola 1,045×: alta (0,92em interlinea + 0,686em maiuscole) × 1,045, centrata su quello spazio — come i definitivi (−5%, Simone 2026-11-02) */
.brand__top { height: 1.678em; width: auto; margin-top: .072em; flex: none; fill: var(--accent); }
.brand sup { font-size: .6em; vertical-align: super; }
.nav { display: flex; gap: 22px; }
.nav a {
  position: relative; font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 0;
  transition: color .3s var(--e-out);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--e-out);
}
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav a.is-current { color: var(--accent); }   /* white → yellow on hover */

.menu-toggle { display: none; width: 42px; height: 42px; position: relative; z-index: 810; }
.menu-toggle span {
  position: absolute; left: 9px; width: 24px; height: 2px; background: var(--ink);
  transition: transform .4s var(--e-out), opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* =============================================================== Views */
#app { position: relative; }
.view { display: none; }
.view.is-active { display: block; }
.view:not(.view--home) { padding-top: var(--header-h); }

/* ============================================================ Home hero (the showreel — merged into Home 2026-08-19, no more separate intro gate)
   Full-bleed like the old intro: no top padding, header floats fixed on top with its scrim. */
.home__hero { height: 100dvh; position: relative; overflow: hidden; padding: 0 var(--gut); display: flex; flex-direction: column; justify-content: center; }
.intro__media { position: absolute; inset: 0; z-index: 0; }
.intro__video { position: absolute; inset: 0; }
.intro__video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh;
  transform: translate(-50%, -50%); border: 0; pointer-events: none;
}
.intro__video video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.intro__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(18,17,16,.62) 0%, rgba(18,17,16,.18) 48%, rgba(18,17,16,.32) 100%),
    linear-gradient(to top, rgba(18,17,16,.8) 0%, rgba(18,17,16,.12) 50%, rgba(18,17,16,.34) 100%);
}
/* roles + enter live together at the bottom-centre, roles above the button */
.intro__center { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 1.6vw, 18px); }
.intro__eyebrow {
  font-family: var(--mono); font-weight: 400; font-size: clamp(9px, 1vw, 11px); letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink); margin: 0; text-align: center; white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
/* single entry: a tappable pill, yellow so it reads clearly — same treatment
   on every screen size (was mobile-only; desktop liked it enough to match). */
.enter-btn {
  display: inline-flex; flex-direction: row; align-items: center; gap: 0;
  font-family: var(--mono); font-size: clamp(8.5px, 1vw, 11px); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transform: translateY(8px);
  padding: clamp(10px, 1.2vw, 13px) clamp(20px, 2.2vw, 26px);
  border: 1px solid rgba(232,164,30,.5); border-radius: 100px;
  background: rgba(18,17,16,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .3s, background .3s;
}
.enter-btn.is-in { opacity: 1; transform: none; transition: opacity .7s var(--e-out), transform .7s var(--e-out); }
.enter-btn__label { transition: color .35s; }
.enter-btn:hover { border-color: rgba(232,164,30,.85); background: rgba(18,17,16,.5); }
.enter-btn__line { display: none; }
.enter-btn:hover .enter-btn__label { color: var(--accent); }
@keyframes slide { 0%{transform:translateX(-100%)} 50%{transform:translateX(0)} 100%{transform:translateX(100%)} }

.intro__footer {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(20px, 4vh, 40px);
  z-index: 3; display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  text-shadow: 0 1px 16px rgba(0,0,0,.5);
}
.intro__corner { padding-bottom: 2px; }

/* ============================================================ Ticker
   (roles marquee removed 2026-08-19 — header carries the accent colour and
   the home hero now shows the roles line directly, see .home__roles below.
   @keyframes marquee stays: still used by .clients__track.) */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================ Section title */
.section-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: var(--fs-max); line-height: .92; letter-spacing: -.02em;
}
.section-title span { display: inline-block; }

/* ============================================================ Home
   Spacing rhythm matches the rest of the site: each block only carries its
   own TOP gap (about__hero / work__head pattern), never both top+bottom —
   so gaps never double up between sections. One shared value (--home-gap)
   drives every inter-section gap so the rhythm reads as one system, not
   ad hoc numbers per block. The closing CTA is the only bottom padding on
   the whole view (view-level padding-bottom removed — it was doubling up
   with the CTA's own bottom space before the footer). */
:root { --home-gap: clamp(40px, 6vw, 80px); }
.view--home { padding-bottom: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* roles shown as a small rounded gold badge (2026-08-19, replaces both the
   borrowed quote and the old rotating-star divider) — a single considered
   gold touch, same corner radius as the project cards below it */
.home__roles { display: flex; flex-direction: column; align-items: center; }
.home__roles-link {
  display: inline-block; margin: 0 auto; max-width: min(60ch, 88vw);
  color: var(--ink); font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.25;
  font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .01em;
  transition: color .3s var(--e-out);
}
.home__roles-link:hover { color: var(--accent); }   /* white → gold on hover, same convention as the nav links */

/* closing triptych: one photo | the Diario post-it | one photo, the note kept
   centered and the two images flanking it, aligned to the page margins. */
.home__closing {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;   /* photos stretch to the Diario's height */
  gap: clamp(20px, 3.5vw, 60px);
  max-width: 1200px; margin-inline: auto;
  padding: clamp(60px, 8vw, 116px) var(--gut) clamp(64px, 9vw, 120px);   /* extra breathing room between the logos and the Diario row */
}
.home__figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 44px -14px rgba(0,0,0,.5); }
.home__figure img { display: block; width: 100%; aspect-ratio: 15 / 8; object-fit: cover; transition: transform .7s var(--e-out); }
/* in the triptych the side photos take the exact height of the Diario box (the
   middle item sets the row height; the photos fill it and crop via object-fit) */
.home__closing .home__figure { height: 100%; }
.home__closing .home__figure img { height: 100%; aspect-ratio: auto; }
.home__figure:hover img { transform: scale(1.05); }
.home__figure--bw img { filter: grayscale(1) contrast(1.05); }
.home__figure[data-reveal] { transform: scale(1.08); transition: opacity 1.1s var(--e-out), transform 1.1s var(--e-out); }
.home__figure[data-reveal].is-in { transform: scale(1); }

/* 6 work previews, first thing after the showreel hero.
   Same rhythm unit as every other section gap on this page (--home-gap). */
.home__featured { padding: var(--home-gap) 0 0; }
/* discreet kicker label, centered on the page and in the accent gold — same
   color as the "Scopri gli altri lavori" CTA below the grid, so the two read
   as a matched pair framing this section (open in gold, close in gold). */
.home__featured-label {
  display: block; font-family: var(--mono); font-size: var(--label-md); letter-spacing: var(--label-md-ls);
  text-transform: uppercase; color: var(--accent); text-align: center; padding: 0 var(--gut); margin-bottom: clamp(28px, 4vw, 50px);
}
/* hovering a preview turns its title gold */
.home__featured .card__title { transition: color .3s var(--e-out); }
.home__featured .card:hover .card__title { color: var(--accent); }

/* Diario — a post-it, not another yellow banner: small, off-axis, slightly
   rotated, tucked to one side so it reads as a handwritten aside rather than
   a repeat of the footer's full-width ochre block right below it. */
.home__now {
  background: var(--accent); color: var(--accent-ink);
  max-width: min(360px, 90vw); margin: 0 auto;   /* centered in its column; the .home__closing grid handles surrounding spacing */
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 28px);
  border-radius: 2px; transform: rotate(-2.2deg);
  box-shadow: 0 18px 34px -10px rgba(0,0,0,.45);
}
.home__now-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(16px, 1.9vw, 21px); margin-bottom: 10px;
}
.home__now-text { font-size: clamp(13px, 1.2vw, 15px); line-height: 1.4; }
.home__now-text strong { font-weight: 800; }
.home__now-text + .home__now-text { margin-top: 6px; }

/* same --home-gap rhythm above; no bottom padding — the clients block below carries its own */
.home__cta { display: flex; justify-content: center; padding: var(--home-gap) var(--gut) 0; }

@media (max-width: 720px) {
  .home__now { transform: rotate(-1.4deg); }
  /* triptych stacks: photo, Diario, photo — Diario centered, photos constrained */
  .home__closing { grid-template-columns: 1fr; justify-items: center; gap: clamp(24px, 6vw, 40px); }
  .home__closing .home__figure { width: min(440px, 100%); }
}

/* ============================================================ Work */
.view--work { padding-bottom: var(--sec); }
.work__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(44px, 7vw, 100px) var(--gut) clamp(28px, 4vw, 50px);
}
.work__filters { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.filter {
  position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute);
  padding: 9px 0; transition: color .3s var(--e-out);
}
.filter::after {
  content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--e-out);
}
.filter:hover::after, .filter.is-active::after { transform: scaleX(1); transform-origin: left; }
.filter:hover, .filter.is-active { color: var(--accent); }
/* thin divider between the format filters (Spot/Film AI) and the client-type tags */
.filter__sep { flex: 0 0 auto; align-self: center; width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: clamp(8px, .9vw, 14px); padding: 0 var(--gut); }
.card {
  position: relative; overflow: hidden; background: var(--bg-2);
  aspect-ratio: 16 / 9; display: block; cursor: pointer; border-radius: var(--radius);
  --pz: 1;   /* default = true framing; JS bumps this only for top/bottom letterbox bars */
}
.card__media { position: absolute; inset: 0; overflow: hidden; }
.card__media .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  transform: scale(var(--pz)); transition: transform .9s var(--e-out);  /* transform only = GPU-cheap, no jank */
}
.card:hover .card__media .poster { transform: scale(calc(var(--pz) + .04)); }
.card__media .ghost { position: absolute; inset: 0; display: grid; place-items: center; transform: scale(1.04); transition: transform 1.1s var(--e-out); }
.card:hover .card__media .ghost { transform: scale(1.09); }
.card__ghost-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 5vw, 64px); color: rgba(241,237,228,.07); text-align: center; padding: 0 8%; letter-spacing: -.01em;
}
.card__overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(14,13,11,.9) 0%, rgba(14,13,11,.25) 42%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(14px, 1.6vw, 26px);
}
.card__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .94; font-size: clamp(17px, 1.7vw, 24px); letter-spacing: -.01em; }
.card__title em { color: var(--accent); }
.card__sub { display: flex; align-items: center; gap: 9px; margin-top: 9px; font-family: var(--mono); font-size: var(--label-sm); letter-spacing: var(--label-sm-ls); text-transform: uppercase; color: var(--ink-soft); flex-wrap: wrap; }
.card__sub .cat { color: var(--accent); }
.card__sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); flex: none; }

/* ============================================================ Project detail */
.view--project { padding-bottom: var(--sec); }
.proj__back {
  display: inline-flex; align-items: center; gap: 12px; margin: clamp(24px, 4vw, 48px) var(--gut) clamp(18px, 3vw, 32px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); transition: color .3s, gap .3s;
}
.proj__back:hover { color: var(--accent); gap: 18px; }
.proj__head { padding: 0 var(--gut); margin-bottom: clamp(26px, 4vw, 48px); }
.proj__cat { font-family: var(--mono); font-size: var(--label-lg); letter-spacing: var(--label-lg-ls); text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.proj__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.05; font-size: var(--fs-max); letter-spacing: -.01em; }
.proj__title em { color: var(--accent); }
.proj__sub { margin-top: 10px; color: var(--ink-soft); font-size: var(--fs-h2); line-height: 1.3; }
.proj__lede { max-width: 56ch; margin-top: 24px; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; }
/* client-type tags, shown under the project title */
.proj__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(16px, 2vw, 22px); }
.proj__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 13px; border: 1px solid var(--line); border-radius: 100px;
}

.video-embed { position: relative; margin: 0 var(--gut); aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; border-radius: var(--radius); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__poster { position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video-embed__poster .ghost { position: absolute; inset: 0; z-index: 0; }
.video-embed__poster .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-embed__poster::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(16,15,13,.32); transition: background .4s; }
.video-embed__poster:hover::after { background: rgba(16,15,13,.18); }
.play {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); transition: color .35s var(--e-out); text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.play::before { content: ""; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video-embed__poster:hover .play { color: var(--accent); }

.proj__stills { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 1vw, 16px); padding: clamp(8px, 1vw, 16px) var(--gut) 0; }
.still { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-2); border-radius: var(--radius); }
.still .ghost { position: absolute; inset: 0; transform: scale(1.02); transition: transform 1s var(--e-out); }
.still:hover .ghost { transform: scale(1.07); }
.still__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transform: scale(1.02); transition: transform 1s var(--e-out); }
.still:hover .still__img { transform: scale(1.07); }
.still__tag { position: absolute; left: 16px; bottom: 14px; z-index: 3; font-family: var(--mono); font-size: var(--label-sm); letter-spacing: var(--label-sm-ls); text-transform: uppercase; color: var(--ink-soft); }
.still.has-img .still__tag { display: none; }   /* a real frame doesn't need the "Still 01" label */

/* ---- Portrait (9:16) projects: vertical hero player + a row of vertical stills ---- */
.video-embed--portrait { aspect-ratio: 9 / 16; width: min(46vh, 430px); max-width: calc(100% - var(--gut) * 2); margin-inline: auto; }
.proj__stills--portrait { grid-template-columns: repeat(4, 1fr); }
.proj__stills--portrait .still { aspect-ratio: 9 / 16; }
.proj__stills--4-3 .still { aspect-ratio: 4 / 3; }
/* Mixed-ratio split: row 1 = the two 4:3 stills, row 2 = the two 16:9 stills.
   One-off for projects whose source stills genuinely come in two different ratios
   (e.g. wurth-mendel-speck) — the still order in data.js must match this pattern:
   slot 1–2 = 4:3, slot 3–4 = 16:9. */
.proj__stills--split .still:nth-child(1),
.proj__stills--split .still:nth-child(2) { aspect-ratio: 4 / 3; }
.proj__stills--split .still:nth-child(3),
.proj__stills--split .still:nth-child(4) { aspect-ratio: 16 / 9; }

.proj__credits { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 80px); padding: clamp(34px, 5vw, 82px) var(--gut) 0; border-top: 1px solid var(--line); margin: clamp(34px, 5vw, 82px) var(--gut) 0; }
.proj__credits-h { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h2); letter-spacing: -.01em; }
.credits-list { display: grid; gap: 0; }
.credit-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.credit-row__role { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.credit-row__name { font-size: clamp(16px, 1.6vw, 21px); font-weight: 500; }
.credit-row__name em { color: var(--accent); }
.credits-copy { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-mute); }

.proj__nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: var(--sec) var(--gut) 0; padding-top: clamp(30px, 5vw, 56px); border-top: 1px solid var(--line); }
.proj__nav-label { font-family: var(--mono); font-size: var(--label-md); letter-spacing: var(--label-md-ls); text-transform: uppercase; color: var(--ink-mute); }
.proj__nav-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h2); letter-spacing: -.01em; transition: color .4s; }
.proj__nav a:hover .proj__nav-title { color: var(--accent); }

/* ============================================================ Contact */
.view--contact { padding-bottom: var(--sec); }
.contact__head { padding: clamp(50px, 8vw, 120px) var(--gut) clamp(36px, 6vw, 64px); }
.contact__lead { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.12; letter-spacing: -.01em; font-size: var(--fs-max); }
.contact__lead span { display: block; }
.contact__lead em { color: var(--accent); }
.contact__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 100px); padding: clamp(40px, 6vw, 64px) var(--gut) 0; border-top: 1px solid var(--line); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
  font-family: var(--sans); font-weight: 500; font-size: clamp(14px, 1.2vw, 16px); padding: 8px 0 14px; resize: none; transition: border-color .4s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); opacity: .7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field__error { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 8px; min-height: 14px; letter-spacing: .02em; }
.contact__submit-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 16px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 18px 30px; border-radius: 100px; transition: transform .4s var(--e-out), background .4s, gap .4s;
}
.submit-btn:hover { gap: 22px; background: var(--accent-2); }
.submit-btn[disabled] { opacity: .55; pointer-events: none; }
.submit-btn__arrow { transition: transform .4s var(--e-out); }
.submit-btn:hover .submit-btn__arrow { transform: translateX(4px); }
.form-status { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-soft); }
.form-status.is-ok { color: var(--accent); }
.form-status.is-err { color: #e0664e; }

.contact__aside { display: grid; gap: 32px; align-content: start; }
.contact__block { display: grid; gap: 8px; }
.contact__label { font-family: var(--mono); font-size: var(--label-md); letter-spacing: var(--label-md-ls); text-transform: uppercase; color: var(--ink-mute); }
.contact__value { font-size: clamp(15px, 1.3vw, 17px); font-weight: 500; }
a.contact__value { position: relative; width: fit-content; transition: color .3s var(--e-out); }
a.contact__value::after { content:""; position:absolute; left:0; bottom:-2px; width:100%; height:1px; background:var(--accent); transform:scaleX(0); transform-origin:right; transition:transform .4s var(--e-out); }
a.contact__value:hover { color: var(--accent); }
a.contact__value:hover::after { transform:scaleX(1); transform-origin:left; }
.contact__socials { display: flex; flex-direction: column; gap: 8px; }
.contact__socials a { font-size: 14px; font-weight: 500; width: fit-content; transition: color .3s, padding-left .3s; }
.contact__socials a:hover { color: var(--accent); padding-left: 6px; }

/* ============================================================ Footer */
#footer { background: var(--bg); position: relative; }
.footer__main { background: var(--accent); color: var(--accent-ink); }
.footer__top { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: clamp(50px, 8vw, 100px) var(--gut) clamp(36px, 5vw, 64px); }
.footer__statement { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(15px, 1.7vw, 23px); line-height: 1.02; letter-spacing: 0; max-width: 30ch; }
.footer__contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-content: start; font-size: 12px; }
.footer__contacts > div { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.footer__label { font-family: var(--mono); font-size: var(--label-sm); letter-spacing: var(--label-sm-ls); text-transform: uppercase; opacity: .65; margin-bottom: 5px; }
.footer__contacts a { width: fit-content; transition: opacity .3s; font-weight: 500; }
.footer__contacts a:hover { opacity: .6; }

/* infinite name marquee strip */
.footer__marquee-track {
  display: inline-flex; will-change: transform; animation: marquee 28s linear infinite;
  font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
}
.footer__marquee-track span { display: inline-flex; align-items: center; gap: clamp(24px, 4vw, 60px); padding: clamp(10px, 1.7vw, 20px) clamp(24px, 4vw, 60px) clamp(10px, 1.7vw, 20px) 0; font-size: clamp(23px, 4.6vw, 60px); }
.footer__marquee-track span::before { content: "✦"; font-size: .42em; vertical-align: middle; }

/* clients band — scrolling logo strip at the very bottom (Simone preferred it to the static row,
   2026-11-02 sera); label centred. The home logo wall stays removed. */
.clients { background: var(--bg); color: var(--ink); padding: var(--s5) 0; display: grid; gap: var(--s3); overflow: hidden; border-top: 1px solid var(--line); }
.clients__label { font-family: var(--mono); font-size: var(--label-sm); letter-spacing: var(--label-sm-ls); text-transform: uppercase; color: var(--ink-mute); text-align: center; padding: 0 var(--gut); }
.clients__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.clients__track { display: inline-flex; align-items: center; will-change: transform; animation: marquee 120s linear infinite reverse; }
@media (hover: hover) { .clients:hover .clients__track { animation-play-state: paused; } }
.client { display: inline-flex; align-items: center; padding: 0 clamp(18px, 2.6vw, 42px); }
.client__logo { height: calc(clamp(18px, 2.2vw, 30px) * var(--logo-scale, 1)); width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .55; transition: opacity .4s; }
.client:hover .client__logo { opacity: 1; }

.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px var(--gut); background: var(--bg); color: var(--ink-mute); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ============================================================ Reveal anim */
[data-reveal], [data-split] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--e-out), transform 1.05s var(--e-out); will-change: transform, opacity; }
[data-reveal].is-in, [data-split].is-in { opacity: 1; transform: none; }

/* ============================================================ Page transition */
#wipe { position: fixed; inset: 0; z-index: 8500; background: var(--bg); transform: scaleY(0); transform-origin: bottom; display: grid; place-items: center; pointer-events: none; }
#wipeLabel { font-family: var(--mono); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); opacity: 0; }

/* ============================================================ Responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .proj__credits { grid-template-columns: 1fr; gap: 24px; }
  .contact__body { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  #header::before { opacity: 1; }                /* always show scrim on mobile */
  .nav {
    position: fixed; inset: 0; background: var(--bg); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 6px; z-index: 700;
    padding: 0 var(--gut); transform: translateY(-101%); transition: transform .6s var(--e-io); pointer-events: none;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { transform: translateY(0); pointer-events: auto; }
  .nav a { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 12.5vw; letter-spacing: -.02em; white-space: nowrap; }
  .nav a::after { display: none; }
  .nav a.is-current { color: var(--accent); }
  .menu-toggle { display: block; }
  .brand { font-size: 14px; }   /* keep the mobile logo at its current size (only desktop gets the +10%) */

  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card, .card--wide { grid-column: span 1; aspect-ratio: 16/9; }

  .work__head { align-items: flex-start; flex-direction: column; }
  /* filters on a single row (shrink + scroll if ever needed, no wrap) */
  .work__filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
  .work__filters::-webkit-scrollbar { display: none; }
  .filter { font-size: 9px; padding: 7px 2px; letter-spacing: .08em; white-space: nowrap; flex: 0 0 auto; }
  .work__filters { gap: 16px; }
  /* roles stay on one line on phones */
  .intro__eyebrow { font-size: clamp(6.5px, 2.3vw, 10px); letter-spacing: .12em; }
  /* Tried a shorter, less-cropped hero (aspect-ratio 4/5) — reverted 2026-08-19:
     it let the "Selected Work" grid peek in below the fold, which read as an
     awkward cut rather than a clean full-screen moment. Back to 100dvh (inherited
     from the base rule) — full screen wins over the crop trade-off. */

  .proj__stills { grid-template-columns: 1fr; }
  .proj__stills--portrait { grid-template-columns: repeat(2, 1fr); }   /* vertical frames: 2-up on phones */
  .contact__form { grid-template-columns: 1fr; }
  .footer__contacts { grid-template-columns: 1fr 1fr; }
  .footer__base { flex-direction: column; gap: 5px; font-size: 9px; }   /* each line on its own row, no wrapping */
  .footer__base span { white-space: nowrap; }
  .credit-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }

  .intro__footer { flex-direction: column; align-items: center; gap: 12px; bottom: clamp(24px, 5vh, 44px); font-size: 9px; letter-spacing: .1em; }
  .intro__footer > span:first-child { display: none; }   /* hide "Showreel '26" only — not the button's label */
  .intro__center { gap: 20px; }   /* roles on top, with breathing room */
}

@media (max-width: 420px) {
  .field input, .field textarea { font-size: 16px; }   /* avoid iOS zoom (16px is the safe minimum) */
}

/* ============================================================ Legal page (privacy / cookie) */
.legal { max-width: 70ch; padding: clamp(40px, 8vw, 110px) var(--gut) clamp(60px, 10vw, 130px); }
.legal .proj__back { display: inline-flex; margin-bottom: 38px; }
.legal__title { font-size: var(--fs-h2); line-height: 1.05; margin-bottom: 14px; }
.legal__updated { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 40px; }
.legal h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.8vw, 22px); letter-spacing: -.005em; margin: 40px 0 14px; }
.legal p { color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; margin-bottom: 14px; }
.legal ul { list-style: none; margin: 0 0 14px; padding: 0; }
.legal li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; margin-bottom: 12px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__todo { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--accent); }

/* ============================================================ Footer legal link */
.footer__legal { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: opacity .3s var(--e-out); }
.footer__legal:hover { opacity: .65; }

/* ============================================================ Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .clients__track, .footer__marquee-track { animation: none; }
  .intro__scroll i::after { animation: none; }
  #cursor { display: none; }
  body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: auto; }
  [data-reveal], [data-split], .enter-btn { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
   GRIGLIA About / Contatti — 2026-11-02 (skill impaginazione)
   margine = --gut (64 px a 1440) su tutti i lati della colonna di testo
   12 colonne · canale --cg (24 px a 1440)
   scala verticale: --s1 8 · --s2 16 · --s3 24 · --s4 40 · --s5 64 · --s6 96
   (fluida: si stringe in proporzione sul telefono)
   About: foto col 1–4 · bio col 6–11 · indice: titolo col 1–3, contenuto col 4–12
   Contatti: recapiti col 1–4 · modulo col 6–12
   Il titolo della pagina resta a --fs-max (regola di Simone: nessun titolo lo supera).
================================================================== */
:root {
  --cg: clamp(14px, 1.7vw, 24px);
  --s1: 8px; --s2: clamp(12px, 1.1vw, 16px); --s3: clamp(18px, 1.7vw, 24px);
  --s4: clamp(28px, 2.8vw, 40px); --s5: clamp(40px, 4.5vw, 64px); --s6: clamp(56px, 6.7vw, 96px);
}

/* ---- testata comune (About + Contatti) ---- */
.view--about, .view--contact { padding-bottom: var(--sec); }
.ab__head { padding: clamp(50px, 8vw, 120px) var(--gut) var(--s5); }
.ab__lead { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.12; font-size: var(--fs-max); letter-spacing: -.01em; }
.ab__lead em { color: var(--accent); }

/* ---- About: due colonne (v2, 2026-11-02 sera — Simone: «meglio sinistra e destra»)
   sinistra col 1–5: bio + foto, FERMA mentre scorre il curriculum (sticky)
   destra col 7–12: curriculum compatto, l'anno sta sopra la voce (niente vuoto orizzontale) ---- */
.ab__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); align-items: start; padding: var(--s5) var(--gut) 0; border-top: 1px solid var(--line); }
.ab__left { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s4)); }
.ab__right { grid-column: 7 / -1; }
.ab__bio { margin-top: -.42em; }   /* maiuscole della prima riga sulla stessa linea della prima voce a destra */
.ab__bio p { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.55; color: var(--ink); }
.ab__bio p + p { margin-top: 1em; color: var(--ink-soft); }
.ab__bio strong { font-weight: 500; color: var(--ink); }
.ab__photo { margin: var(--s5) 0 0; width: 40%; }
.ab__photo img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---- About: curriculum ---- */
.ab__block { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.ab__block:first-child { padding-top: 0; border-top: 0; }
.ab__block:last-child { padding-bottom: 0; }
.ab__h { font-family: var(--sans); font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--ink-mute); margin-bottom: var(--s2); }
.ab__block:first-child .ab__h { margin-top: -.25em; }
.ab__list { display: grid; gap: var(--s3); }
.ab__item { display: grid; }
.ab__y { order: -1; font-family: var(--mono); font-size: 12px; line-height: 1.4; color: var(--ink-mute); margin-bottom: 4px; }
.ab__t, .ab__text { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.4; color: var(--ink); }
.ab__t { font-weight: 500; }
.ab__d { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-top: 4px; }
.ab__d em { color: var(--accent); }
.ab__d--long { margin-top: var(--s1); }
.ab__d--long em { color: var(--ink); }
.ab__links { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s3); font-size: 15px; }
.ab__links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .3s, text-decoration-color .3s; }
.ab__links a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---- Contatti ---- */
.ct__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); align-items: start; padding: var(--s5) var(--gut) 0; border-top: 1px solid var(--line); }
.ct__info { grid-column: 1 / span 4; display: grid; gap: var(--s4); align-content: start; }
.ct__block { display: grid; gap: 6px; }
.ct__label { font-size: 14px; color: var(--ink-mute); }
.ct__mail { font-size: clamp(16px, 1.32vw, 19px); font-weight: 500; width: fit-content; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; transition: color .3s; }
.ct__mail:hover { color: var(--accent); }
.ct__value { font-size: clamp(16px, 1.32vw, 19px); line-height: 1.4; }
.ct__links { display: flex; gap: var(--s3); }
.ct__links a { transition: color .3s; } .ct__links a:hover { color: var(--accent); }
.ct__form { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--cg); row-gap: var(--s4); }
.ct__intro { grid-column: 1 / -1; font-size: clamp(16px, 1.32vw, 19px); line-height: 1.4; color: var(--ink); margin-top: -.3em; }
.ct__form .field label { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-mute); margin-bottom: 4px; }
.ct__form .field input, .ct__form .field textarea { font-size: clamp(16px, 1.2vw, 17px); }
.ct__form .field__error { font-family: var(--sans); font-size: 13px; }
.ct__form .contact__submit-row { flex-direction: row; align-items: center; justify-content: flex-start; }
.ct__privacy { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-top: calc(var(--s2) * -1); }
.ct__privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ct__privacy a:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .ab__left { grid-column: 1 / span 6; }
  .ab__right { grid-column: 8 / -1; }
  .ct__info { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: var(--s5); margin-bottom: var(--s5); }
  .ct__form { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ab__left { grid-column: 1 / -1; position: static; }
  .ab__right { grid-column: 1 / -1; margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
  .ab__photo { width: 52%; max-width: 240px; margin-inline: auto; }
  .ct__info { grid-template-columns: 1fr; gap: var(--s3); }
  .ct__form { grid-template-columns: 1fr; }
}

/* ---- Showreel integrale: pulsante nell'hero + lightbox ---- */
.reel-btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; transition: color .3s; }
.reel-btn:hover { color: var(--accent); }
.reel-btn__ic { width: 0; height: 0; border-left: 8px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.home__hero .intro__media { cursor: pointer; }
.reel { position: fixed; inset: 0; z-index: 8800; display: grid; place-items: center; padding: 72px var(--gut); background: #0c0b0a; opacity: 0; transition: opacity .35s var(--e-out); }
.reel[hidden] { display: none; }
.reel.is-open { opacity: 1; }
.reel__frame { width: min(100%, calc((100dvh - 144px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.reel__video { display: block; width: 100%; height: 100%; background: #000; }
.reel__close { position: absolute; top: 24px; right: var(--gut); padding: 7px 0; line-height: 1.4; display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: var(--label-md); letter-spacing: var(--label-md-ls); text-transform: uppercase; color: var(--ink); transition: color .3s; }
.reel__close:hover { color: var(--accent); }
body.reel-open { overflow: hidden; }
body.reel-open #cursor { opacity: 0 !important; }
body.cursor-on .reel, body.cursor-on .reel * { cursor: auto; }

/* ---- avviso sotto i player esterni (click-to-load) ---- */
.video-note { margin: 10px var(--gut) 0; font-size: 12px; line-height: 1.4; color: var(--ink-mute); }
.video-note a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.video-embed--portrait + .video-note { text-align: center; }

/* ---- Showreel: selettore di qualità (solo con hls.js; su iPhone sceglie Apple) ---- */
.reel__quality { position: absolute; top: 24px; left: var(--gut); display: flex; align-items: center; gap: var(--s2); line-height: 1.4; font-family: var(--mono); font-size: var(--label-md); letter-spacing: var(--label-md-ls); text-transform: uppercase; color: var(--ink-mute); }
.reel__quality[hidden] { display: none; }
.reel__qbtns { display: flex; gap: 4px; }
.reel__qbtns button { font: inherit; line-height: 1.4; letter-spacing: inherit; text-transform: inherit; color: var(--ink-soft); padding: 6px 9px; border: 1px solid transparent; border-radius: var(--radius); transition: color .3s, border-color .3s; }
.reel__qbtns button:hover { color: var(--ink); }
.reel__qbtns button.is-active { color: var(--accent); border-color: var(--accent); }
.reel__qbtns button .q-now { color: var(--ink-mute); margin-left: 4px; }
@media (max-width: 600px) { .reel__quality { top: 22px; gap: 8px; } .reel__qlabel { display: none; } .reel__qbtns button { padding: 6px 6px; } }

/* ---- About: AI policy evidenziata in oro (Simone, 2026-11-02) ---- */
.ab__block--policy { margin-top: var(--s4); padding: var(--s4); border-top: 0; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
.ab__block--policy .ab__h { color: var(--accent-ink); opacity: .7; }
.ab__block--policy .ab__t { color: var(--accent-ink); }
.ab__block--policy .ab__d, .ab__block--policy .ab__d--long em { color: var(--accent-ink); }
.ab__block--policy .ab__d { opacity: .85; }
.ab__block--policy .ab__links a { color: var(--accent-ink); text-decoration-color: rgba(20,18,16,.4); }
.ab__block--policy .ab__links a:hover { color: var(--accent-ink); text-decoration-color: var(--accent-ink); }
.ab__block--policy:last-child { padding-bottom: var(--s4); }
