@font-face { font-family: "Archivo"; src: url(assets/fonts/archivo-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url(assets/fonts/geist-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --sc-canvas:     #0b0a09;
  --sc-surface:    #151311;
  --sc-ink:        #efebe4;
  --sc-ink-soft:   #a39d94;
  --sc-accent:     #e8412b;   /* matita grassa rossa: your picks and the action that sends them */
  --sc-accent-ink: #0b0a09;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-shadow-color: 24 20% 2%;
  --ink-sun: #12100e;           /* titles set on the sunlit frame */
  --film: #141210;              /* the provino's film base */
  --rail: 0px;                  /* room the provino takes on the left */
  --sc-r-sm: 2px;               /* one radius for the whole page, focus ring included */
  --foot: 0px;                  /* room the provino takes at the bottom (phones) */
}
@media (min-width: 861px) { :root { --rail: 76px; } }

body { line-height: 1.66; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: calc(var(--rail) + 1rem); top: 1rem; padding: .6rem 1rem; background: var(--sc-ink); color: var(--sc-canvas); border-radius: var(--sc-r-sm); translate: 0 -200%; }
.skip:focus-visible { translate: none; }

/* ---------------------------------------------------------------- buttons */
.btn, .mark, .cta, .cta-top {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 44px; padding: 0 1.05rem; border-radius: var(--sc-r-sm);
  font: 500 .92rem/1 var(--sc-font-text); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn { background: transparent; color: var(--sc-ink); border: 1px solid var(--sc-hairline-strong); }
.btn svg { width: .7em; height: .7em; }
.mark { background: transparent; color: var(--sc-ink); border: 1px solid transparent; padding-inline: .5rem; }
.mark svg { width: 1.5em; height: 1.1em; overflow: visible; }
.mark svg path { fill: none; stroke: var(--sc-accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .7; transition: stroke-dashoffset 420ms var(--sc-ease-out); }
.mark[aria-pressed="true"] { color: var(--sc-accent); }
.mark[aria-pressed="true"] svg path { stroke-dashoffset: 0; stroke-width: 2; }
.cta, .cta-top { background: var(--sc-accent); color: var(--sc-accent-ink); border: 1px solid var(--sc-accent); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--sc-ink); }
  .mark:hover { color: var(--sc-accent); }
  .cta:hover, .cta-top:hover { background: color-mix(in oklab, var(--sc-accent) 88%, white); }
}
.btn:active, .mark:active, .cta:active, .cta-top:active { transform: scale(.97); }
.btn:disabled, .mark:disabled { opacity: .4; cursor: not-allowed; }

/* Header: the mark (back to the opening name), the showreel, Scrivimi. */
.top { position: fixed; z-index: var(--sc-z-chrome); top: max(1rem, env(safe-area-inset-top)); left: calc(var(--rail) + var(--sc-gutter)); right: var(--sc-gutter); display: flex; gap: .5rem; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { margin-right: auto; width: 44px; height: 44px; border-radius: var(--sc-r-sm); box-shadow: var(--sc-e2); }
.brand svg { width: 100%; height: 100%; }
.top-reel { background: var(--sc-canvas); }

/* ----------------------------------------------------------------- provino
   A contact sheet as the index: one real frame per work, sprocket holes,
   edge print. The red loops are the visitor's own picks. */
.provino {
  position: fixed; z-index: var(--sc-z-chrome); inset: 0 auto 0 0; width: var(--rail);
  background: var(--film); display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center;
  box-shadow: 1px 0 0 color-mix(in oklab, var(--sc-ink) 8%, transparent);
}
.provino::before, .provino::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(to bottom, transparent 0 7px, var(--sc-canvas) 7px 12px) 0 0 / 7px 100%;
  border-radius: 1px;
}
.provino::before { left: 6px; } .provino::after { right: 6px; }
.provino__edge { writing-mode: vertical-rl; rotate: 180deg; align-self: end; margin-bottom: 1.5rem; font: 500 .62rem/1 var(--sc-font-text); letter-spacing: .32em; text-transform: uppercase; color: var(--sc-ink-soft); text-decoration: none; }
.provino__edge--foot { align-self: start; margin: 1.5rem 0 0; }
.provino ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.provino li { position: relative; }
.provino a.frame { display: block; width: 50px; height: 34px; border-radius: 1px; outline-offset: 3px; }
.provino a.frame img { width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.5); transition: opacity 240ms var(--sc-ease-out), filter 240ms var(--sc-ease-out); }
.provino a.frame[aria-current] img, .provino a.frame:focus-visible img { opacity: 1; filter: none; }
.provino a.frame[aria-current] { box-shadow: 0 0 0 1px var(--sc-ink); }
.provino .loop { position: absolute; inset: -9px -10px; width: calc(100% + 20px); height: calc(100% + 18px); pointer-events: none; overflow: visible; }
/* Dash 1, gap 2: at rest the whole path sits in the gap, so no round cap dot. */
.provino .loop path { fill: none; stroke: var(--sc-accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 560ms var(--sc-ease-out); }
.provino li.is-picked .loop path { stroke-dashoffset: 0; }
.provino .tip { position: absolute; left: calc(100% + 14px); top: 50%; translate: 0 -50%; padding: .3rem .55rem; background: var(--sc-surface); color: var(--sc-ink); font-size: .78rem; line-height: 1.2; white-space: nowrap; border-radius: var(--sc-r-sm); box-shadow: var(--sc-e2), var(--sc-edge); opacity: 0; pointer-events: none; transition: opacity 140ms var(--sc-ease-out); }
.provino a.frame:focus-visible + .tip { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .provino a.frame:hover img { opacity: 1; filter: none; }
  .provino a.frame:hover + .tip { opacity: 1; }
}
@media (pointer: coarse) and (min-width: 861px) { .provino a.frame { height: 44px; } }

@media (max-width: 860px) {
  .provino { inset: auto 0 0 0; width: auto; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-rows: none; grid-template-columns: 1fr; align-items: center; box-shadow: 0 -1px 0 color-mix(in oklab, var(--sc-ink) 8%, transparent); }
  .provino::before, .provino::after { top: auto; bottom: auto; left: 0; right: 0; width: auto; height: 6px; background: repeating-linear-gradient(to right, transparent 0 7px, var(--sc-canvas) 7px 12px) 0 0 / 100% 6px; }
  .provino::before { top: 4px; } .provino::after { bottom: calc(4px + env(safe-area-inset-bottom)); }
  .provino__edge { display: none; }
  .provino ol { grid-auto-flow: column; grid-auto-columns: minmax(0, 44px); gap: 4px; justify-content: center; width: 100%; padding-inline: 4px; }
  .provino a.frame { width: 100%; height: 44px; padding: 7px 0; }
  .provino .loop { inset: 1px -5px; width: calc(100% + 10px); height: calc(100% - 2px); }
  .provino .tip { display: none; }
  :root { --foot: calc(58px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--foot); }
}
/* 320px: eight frames at 36px fall short of the 40px tap target. The gaps move
   inside the links, so each frame is a 40px target and still reads apart. */
@media (max-width: 340px) {
  .provino ol { gap: 0; padding-inline: 0; }
  .provino a.frame { padding: 7px 2px; }
}

/* ------------------------------------------------------------------ labels
   One schema for every work, facts only. */
.label { color: var(--sc-ink); }
.label__title { font: 600 var(--sc-t-2xl)/.96 var(--sc-font-display); font-stretch: 112%; letter-spacing: -.025em; margin: 0; }
.label__meta { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; row-gap: .15rem; margin: var(--sc-5) 0 0; font-size: .86rem; line-height: 1.5; }
.label__meta dt { color: var(--sc-ink-soft); }
.label__meta dd { margin: 0; font-variant-numeric: tabular-nums; }
.label__note { margin: var(--sc-4) 0 0; max-width: 34ch; color: var(--sc-ink-soft); font-size: .98rem; line-height: 1.62; text-wrap: pretty; }
.label__actions { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: var(--sc-5); }

/* ------------------------------------------------------------------- rooms
   A flow screening: one work, uncropped, in the dark, label beside it. */
.room { position: relative; padding: var(--sc-10) var(--sc-gutter) var(--sc-10) calc(var(--rail) + var(--sc-gutter)); }
.screen { margin: 0; background: #070605; box-shadow: var(--sc-e3); }
.screen img, .screen video { width: 100%; height: 100%; object-fit: cover; }
.screen--v { aspect-ratio: 9 / 16; height: min(84svh, 900px); }
.screen--w { aspect-ratio: 16 / 9; width: min(100%, 72rem); }

.room--rally { min-height: 100svh; padding-block: var(--sc-9); display: grid; grid-template-columns: minmax(15rem, 26rem) auto; justify-content: space-between; align-items: end; column-gap: var(--sc-9); }
.room--rally .label { padding-bottom: 6svh; }
.room--rally .label__title { font-size: var(--sc-t-3xl); font-stretch: 118%; }

.room--persone { padding-block: var(--sc-9) var(--sc-11); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sc-5); align-items: start; }
.work--set { grid-column: 1 / 9; }
.work--mare { grid-column: 9 / 13; margin-top: 30svh; }
.work--set .print { aspect-ratio: 2048 / 1365; }
.work--mare .print { aspect-ratio: 1170 / 1530; margin-left: -18%; position: relative; z-index: 2; }
.print { margin: 0; overflow: visible; }
.print img { width: 100%; height: 100%; object-fit: cover; box-shadow: var(--sc-e3); }
.work--set .label { margin-top: var(--sc-6); display: grid; grid-template-columns: auto 1fr; gap: 0 var(--sc-8); align-items: start; }
.work--set .label .label__note { grid-column: 2; margin-top: 0; }
.work--set .label .label__meta { grid-column: 1; }
.work--set .label .label__actions { grid-column: 2; }
.work--mare .label { margin-top: var(--sc-6); }
.room--persone .label__title { font-size: var(--sc-t-xl); }

.room--padel { min-height: 100svh; display: grid; grid-template-columns: auto minmax(15rem, 28rem); justify-content: start; align-items: center; column-gap: clamp(3rem, 9vw, 10rem); }

.room--azienda { padding-top: var(--sc-9); display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; column-gap: var(--sc-8); align-items: end; }
.room--azienda .screen { justify-self: end; }
.room--azienda .label { padding-bottom: var(--sc-2); }

/* ----------------------------------------------------- 1 · titoli di testa
   Four planes in one scene box sized like object-fit: cover, so every plane
   keeps its alignment with the photograph. */
.hero { --W: max(100vw, 150svh); --H: calc(var(--W) / 1.5); --hero-s: .6; --hero-tx: -12vw; }
.hero__stage { background: var(--sc-canvas); }
.hero__scene {
  position: absolute; left: 50%; top: 50%; width: var(--W); height: var(--H);
  --k: clamp(0, (var(--sc-p, 0) - .56) / .26, 1);
  --d: min(clamp(0, (var(--sc-p, 0) - .03) / .45, 1), clamp(0, (.86 - var(--sc-p, 0)) / .28, 1));
  transform: translate(-50%, -50%) translateX(calc(var(--hero-tx) * var(--k))) scale(calc(1 + (var(--hero-s) - 1) * var(--k)));
  box-shadow: 0 40px 120px -30px hsl(var(--sc-shadow-color) / calc(.9 * var(--k)));
  overflow: hidden; will-change: transform;
}
.hero__scene img { position: absolute; max-width: none; }
.hero__plate, .hero__soft { inset: 0; width: 100%; height: 100%; transform-origin: 52.3% 81.3%; transform: scale(calc(1 + .035 * var(--d))); }
.hero__poster { inset: 0; width: 100%; height: 100%; }
.hero__scene:not(.is-ready) > :not(.hero__poster) { visibility: hidden; }
.hero__soft { opacity: min(clamp(0, (var(--sc-p, 0) - .05) / .32, 1), clamp(0, (.88 - var(--sc-p, 0)) / .2, 1)); }
.hero__surfer { left: 40.43%; top: 15.31%; width: 44.73%; height: 67.47%; transform-origin: 26.5% 97.8%; transform: scale(calc(1 + .085 * var(--d))); }
.hero__spray { left: 24.27%; top: 66.3%; width: 55.37%; height: 33.7%; transform-origin: 50.6% 44.6%; transform: translateY(calc(5% * var(--d))) scale(calc(1 + .2 * var(--d))); opacity: calc(1 - .9 * var(--d)); }

.hero__title, .hero__beat { position: absolute; z-index: 4; color: var(--ink-sun); left: max(calc(50vw - var(--W) * .425), calc(var(--rail) + 1.25rem)); }
.hero__title { top: calc(50svh - var(--H) * .5 + var(--H) * .56); }
.hero__title h1 { font: 680 calc(var(--W) * .066)/.86 var(--sc-font-display); font-stretch: 118%; letter-spacing: -.045em; margin: 0 0 0 -.05em; }
.hero__title h1 span { display: block; }
.hero__title p { margin: calc(var(--W) * .006) 0 0; font: 560 calc(var(--W) * .0118)/1.2 var(--sc-font-text); letter-spacing: .01em; }
.hero__beat { top: calc(50svh - var(--H) * .5 + var(--H) * .785); width: calc(var(--W) * .21); margin: 0; font: 520 calc(var(--W) * .0115)/1.42 var(--sc-font-text); text-wrap: pretty; }
.hero__band { display: none; }
.hero__label { position: absolute; z-index: 4; right: var(--sc-gutter); top: 50%; translate: 0 -50%; width: min(24rem, 26vw); }
.hero__label .label__title { font-size: var(--sc-t-3xl); }

@media (max-width: 860px) {
  .hero { --hero-s: .3; --hero-tx: 0px; --hero-ty: -17svh; }
  .hero__scene { --k: clamp(0, (var(--sc-p, 0) - .56) / .26, 1); transform: translate(-50%, -50%) translateY(calc(var(--hero-ty) * var(--k))) scale(calc(1 + (var(--hero-s) - 1) * var(--k))); }
  /* Measured: the stock band left the role line at 3.9:1 over bright spray.
     v2's two-line name reaches higher, so the band follows the top of the
     name (--name-top, from the bottom) instead of a fixed share of the screen. */
  .hero__band { --name-top: calc(21svh + 40vw + 1.7rem); display: block; background: linear-gradient(to top,
    color-mix(in oklab, var(--sc-canvas) 96%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 88%, transparent) 26%,
    color-mix(in oklab, var(--sc-canvas) 72%, transparent) var(--name-top),
    transparent calc(var(--name-top) + 16svh)); }
  .hero__title, .hero__beat { color: var(--sc-ink); left: var(--sc-gutter); right: var(--sc-gutter); }
  .hero__title { top: auto; bottom: 21svh; }
  .hero__title h1 { font-size: 21vw; }
  .hero__title p { font-size: 1.05rem; margin-top: .6rem; }
  .hero__beat { top: auto; bottom: 9svh; width: auto; font-size: 1rem; max-width: 30ch; }
  .hero__label { top: auto; bottom: calc(var(--foot) + 2svh); translate: none; left: var(--sc-gutter); width: auto; }
  .hero__label .label__title { font-size: var(--sc-t-2xl); }
}

/* --------------------------------------------------------- 4 · the peak
   Black, a slit of light, scope, the full frame, then the whole room. */
.peak__stage { background: var(--sc-canvas); display: grid; place-items: center; }
.peak__screen {
  --p: var(--sc-p, 0);
  --a: clamp(0, (var(--p) - .12) / .07, 1);
  --b: clamp(0, (var(--p) - .22) / .18, 1);
  --c: clamp(0, (var(--p) - .48) / .12, 1);
  --e: clamp(0, (var(--p) - .6) / .12, 1);
  --f: clamp(0, (var(--p) - .8) / .1, 1);
  --cover: 1.2;
  width: min(100vw, 177.78svh); aspect-ratio: 16 / 9; background: #070605;
  clip-path: inset(calc(49.4% - 36.6% * var(--b) - 12.8% * var(--c)) calc(50% - 50% * var(--a)));
  transform: translateY(calc(-9svh * var(--f))) scale(calc((1 + (var(--cover) - 1) * var(--e)) * (1 - var(--f)) + .78 * var(--f)));
  will-change: clip-path, transform;
}
.peak__screen video, .peak__screen img { width: 100%; height: 100%; object-fit: cover; }
.peak__label { position: absolute; z-index: 4; left: calc(var(--rail) + var(--sc-gutter)); right: var(--sc-gutter); bottom: 5svh; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: end; column-gap: var(--sc-7); }
.peak__label .label__meta { margin: 0; }
.peak__label .label__note { margin: 0; }
.peak__label .label__actions { margin: 0; justify-self: end; }
@media (max-width: 860px) {
  .peak__label { grid-template-columns: 1fr; bottom: calc(var(--foot) + 2svh); row-gap: var(--sc-3); }
  .peak__label .label__actions { justify-self: start; }
  .peak__screen { transform: translateY(calc(-16svh * var(--f))) scale(calc((1 + (var(--cover) - 1) * var(--e)) * (1 - var(--f)) + 1 * var(--f))); }
}
/* Short phones (360x640 and the like): the receded frame rides higher and
   the label tightens, so the two never overlap. */
@media (max-width: 860px) and (max-height: 720px) {
  .hero { --hero-ty: -28svh; }
  .peak__screen { transform: translateY(calc(-24svh * var(--f))) scale(calc((1 + (var(--cover) - 1) * var(--e)) * (1 - var(--f)) + 1 * var(--f))); }
  .hero__label .label__title, .peak__label .label__title { font-size: 1.9rem; }
  .hero__label .label__meta, .peak__label .label__meta { font-size: .8rem; line-height: 1.38; margin-top: var(--sc-3); }
  .hero__label .label__note, .peak__label .label__note { font-size: .88rem; line-height: 1.5; margin-top: var(--sc-3); }
  .hero__label .label__actions { margin-top: var(--sc-2); }
  .peak__label { row-gap: var(--sc-2); }
}

/* ------------------------------------------------------------ 5 · cibo pan */
.cibo__stage { background: var(--sc-canvas); display: flex; align-items: center; }
.rail { align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: 0 12vw 0 calc(var(--rail) + var(--sc-gutter)); height: 100%; }
.rail > * { flex: none; }
.rail .label { width: min(24rem, 80vw); }
.plate { margin: 0; }
.plate img { height: var(--h); width: auto; aspect-ratio: 535 / 670; object-fit: cover; box-shadow: var(--sc-e3); }
.plate figcaption { margin-top: var(--sc-3); font-size: .86rem; color: var(--sc-ink-soft); max-width: 26ch; }
.plate:nth-of-type(1) { --h: 60svh; align-self: flex-start; margin-top: 14svh; }
.plate:nth-of-type(2) { --h: 48svh; align-self: flex-end; margin-bottom: 10svh; }
.plate:nth-of-type(3) { --h: 68svh; }
.plate:nth-of-type(4) { --h: 52svh; align-self: flex-start; margin-top: 10svh; }
@media (prefers-reduced-motion: no-preference) {
  .plate { --s: clamp(0, (var(--sc-p, 0) - var(--at)) / .22, 1); opacity: calc(.55 + .45 * var(--s)); transform: translateY(calc((1 - var(--s)) * 22px)); }
  .plate:nth-of-type(1) { --at: -.1; } .plate:nth-of-type(2) { --at: .12; }
  .plate:nth-of-type(3) { --at: .34; } .plate:nth-of-type(4) { --at: .56; }
}
@media (max-width: 860px) {
  .plate:nth-of-type(n) { --h: 50svh; align-self: center; margin: 0; }
  .plate:nth-of-type(2), .plate:nth-of-type(4) { --h: 42svh; }
}

/* ------------------------------------------------------- 8 · titoli di coda */
.credits__stage { background: var(--sc-canvas); }
.credits__roll {
  --t: clamp(0, var(--sc-p, 0) / .5, 1);
  position: absolute; left: 50%; top: 0; width: min(40rem, calc(100vw - 2 * var(--sc-gutter)));
  transform: translate(-50%, calc(48svh - var(--t) * (62svh + 100%)));
  text-align: center; will-change: transform;
}
.credits__head { font: 600 .78rem/1 var(--sc-font-text); letter-spacing: .28em; text-transform: uppercase; color: var(--sc-ink-soft); margin: 0 0 var(--sc-8); }
.credits__list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem var(--sc-6); margin: 0 0 var(--sc-9); }
.credits__list dt { text-align: right; color: var(--sc-ink-soft); font-size: .9rem; line-height: 1.5; padding-top: .2rem; }
.credits__list dd { margin: 0; text-align: left; font: 560 1.25rem/1.3 var(--sc-font-display); font-stretch: 108%; position: relative; justify-self: start; }
.credits__list dd.is-picked::after { content: ""; position: absolute; inset: -.35em -.6em; border: 2px solid var(--sc-accent); border-radius: 50% 46% 52% 48% / 55% 50% 50% 45%; rotate: -3deg; }
.credits__list dt:nth-of-type(2), .credits__list dd:nth-of-type(2) { margin-top: var(--sc-6); }
.endcard { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: var(--sc-8) var(--sc-gutter) calc(var(--sc-8) + 3rem) calc(var(--rail) + var(--sc-gutter)); }
.endcard__name { font: 680 clamp(3.4rem, 9vw, 8.5rem)/.86 var(--sc-font-display); font-stretch: 118%; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.endcard__role { margin: var(--sc-4) 0 0; color: var(--sc-ink-soft); }
.endcard__brief { margin: var(--sc-7) 0 0; max-width: 40ch; text-wrap: balance; }
.endcard__brief b { color: var(--sc-accent); font-weight: 600; }
.endcard__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: var(--sc-6); }
.cta { min-height: 52px; padding-inline: 1.6rem; font-size: 1.02rem; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem var(--sc-6); margin: var(--sc-7) 0 0; font-size: .88rem; }
.contacts div { display: flex; gap: .5rem; }
.contacts dt { color: var(--sc-ink-soft); }
.contacts dd { margin: 0; }
.contacts a, .endcard__small a, .modulo a { color: inherit; text-underline-offset: .2em; }
.endcard__small { position: absolute; left: calc(var(--rail) + var(--sc-gutter)); right: var(--sc-gutter); bottom: max(1.25rem, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; font-size: .78rem; color: var(--sc-ink-soft); }
.endcard__small svg { display: inline-block; width: 1.25rem; height: 1.25rem; vertical-align: -.35em; margin-right: .6rem; }
@media (max-width: 860px) { .endcard__small { bottom: calc(var(--foot) + .75rem); } .endcard { padding-bottom: calc(var(--foot) + 4rem); } .credits__list dd { font-size: 1.05rem; } }
/* 320×568: the two-line name pushed the stack under the header. Less air, same order. */
@media (max-width: 860px) and (max-height: 600px) { .endcard__brief, .contacts { margin-top: var(--sc-5); } }

/* ----------------------------------------------------------------- viewer */
.viewer { width: min(92vw, 1280px); max-height: 92svh; padding: 0; border: 0; background: var(--sc-canvas); color: var(--sc-ink); border-radius: var(--sc-r-sm); box-shadow: var(--sc-e3); overflow: visible; }
.viewer::backdrop { background: color-mix(in oklab, #050404 88%, transparent); }
.viewer[data-shape="v"] { width: auto; }
.viewer video { display: block; width: 100%; max-height: calc(92svh - 3.5rem); background: var(--sc-canvas); }
.viewer[data-shape="v"] video { width: auto; height: calc(92svh - 3.5rem); aspect-ratio: 9 / 16; }
.viewer__bar { display: flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem 1rem; }
.viewer__title { flex: 1 1 auto; min-width: 0; margin: 0; font: 600 1rem/1.2 var(--sc-font-display); font-stretch: 108%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__count { margin: 0 .5rem 0 0; font-size: .86rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer__bar .btn { padding-inline: .85rem; }
/* Narrow bars keep the arrows; the words stay for screen readers. */
.viewer[data-shape="v"] .viewer__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) { .viewer__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

/* ----------------------------------------------------------------- modulo */
.modulo { width: min(92vw, 34rem); max-height: 92svh; padding: 0; border: 0; background: var(--sc-canvas); color: var(--sc-ink); border-radius: var(--sc-r-sm); box-shadow: var(--sc-e3), var(--sc-edge); }
.modulo::backdrop { background: color-mix(in oklab, #050404 88%, transparent); }
.modulo form { display: grid; gap: var(--sc-4); padding: var(--sc-5); }
.modulo__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modulo h2 { margin: 0; font: 600 var(--sc-t-xl)/1 var(--sc-font-display); font-stretch: 112%; letter-spacing: -.02em; }
.modulo label { display: grid; gap: .35rem; font-size: .86rem; color: var(--sc-ink-soft); }
.modulo input:not([type="checkbox"]), .modulo textarea { width: 100%; min-height: 44px; padding: .6rem .75rem; background: var(--sc-surface); color: var(--sc-ink); border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-sm); font-size: 1rem; }
.modulo textarea { resize: vertical; line-height: 1.5; }
.modulo .modulo__ok { display: flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--sc-ink); font-size: .92rem; }
.modulo__ok input { width: 1.25rem; height: 1.25rem; flex: none; margin: 0; }
.modulo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; font-size: .92rem; }
.modulo__status { margin: 0; min-height: 1.5em; font-size: .92rem; }

/* ---------------------------------------------------------------- privacy */
.doc { max-width: 42rem; margin-inline: auto; padding: var(--sc-8) var(--sc-gutter) var(--sc-9); }
.doc h1 { font: 650 var(--sc-t-2xl)/1 var(--sc-font-display); font-stretch: 112%; letter-spacing: -.025em; margin: var(--sc-6) 0; }
.doc h2 { font: 600 var(--sc-t-lg)/1.2 var(--sc-font-display); margin: var(--sc-7) 0 var(--sc-3); }
.doc p, .doc li { color: var(--sc-ink-soft); }
.doc a { color: var(--sc-ink); text-underline-offset: .2em; }

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__scene { transform: translate(-50%, -50%); }
  .hero__plate, .hero__surfer, .hero__spray { transform: none; }
  .hero__soft { display: none; }
  .hero__spray { opacity: 1; }
  /* No recede without motion, so the label needs its own ground over the photo. */
  .hero__label { background: var(--sc-surface); padding: var(--sc-6); box-shadow: var(--sc-e3), var(--sc-edge); }
  .peak__screen { clip-path: none; transform: translateY(-9svh) scale(.78); }
  .credits__roll { display: none; }
  .provino .loop path, .mark svg path { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .hero__scene { transform: translate(-50%, -50%); }
  .peak__screen { transform: translateY(-16svh); }
}

@media (max-width: 860px) {
  .room { padding: var(--sc-9) var(--sc-gutter); }
  .room--rally, .room--padel, .room--azienda { display: flex; flex-direction: column; align-items: stretch; gap: var(--sc-6); min-height: 0; }
  .room--rally .label { order: 2; padding: 0; }
  .screen--v { height: auto; width: min(100%, 62svh * 9 / 16 * 1.6); align-self: center; }
  .room--persone { display: block; padding-block: var(--sc-9); }
  .work--mare { margin: var(--sc-9) 0 0 18%; }
  .work--mare .print { margin-left: 0; }
  .work--set .label { display: block; }
  .work--set .label .label__note { margin-top: var(--sc-4); }
}
