/* Onda Digitale — cine: la Terra di notte, Milano, poi un capitolo per schermo */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #05070a;
  --surface: #10161d;
  --surface-2: #18212a;
  --ink: #f2f5f7;
  --muted: #a3b1bb;
  --accent: #3fc6ee;
  --accent-ink: #05070a;
  --paper: #eef1f3;
  --paper-2: #dfe5e9;
  --paper-ink: #05070a;
  --sea: #062431;
  --sea-2: #0b3343;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1.1vw, 2.25rem);
  --step-head: clamp(2.75rem, 1.5rem + 5.4vw, 7.25rem);
  --step-xl: clamp(3.25rem, 10vw, 11rem);

  --m: clamp(20px, 3vw, 48px);
  --gap: clamp(120px, 14vw, 220px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --slow: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%;
  font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas, picture { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-weight: 800; font-stretch: 72%; letter-spacing: -0.015em; line-height: .9; text-wrap: balance; }

/* Masked lines: each line rises out of its own slot */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
.cine .line > span { transform: translateY(108%); transition: transform 1.1s var(--ease) calc(var(--l, 0) * 90ms); }
.cine .is-in .line > span, .cine .is-in.line > span { transform: none; }
.line + .line { --l: 1; }

/* Buttons and links: one shape, fully round */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 600 var(--step-body)/1 "Archivo", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s; }
.btn:hover { background: var(--ink); transform: scale(1.04); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: var(--step-small); }
.btn-ink { background: var(--paper-ink); color: var(--paper); }
.btn-ink:hover { background: var(--bg); color: var(--accent); }
.link { display: inline-flex; gap: .4em; align-items: center; font-weight: 600; text-decoration: none; color: var(--accent); }
.link::after { content: "→"; transition: transform .4s var(--ease); }
.link:hover::after { transform: translateX(6px); }

/* Bar: plain, sits on the night, turns solid once the first scene is over */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 32px; padding: 16px var(--m);
  transition: background-color .5s, transform .5s var(--ease); }
.bar.is-solid { background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.bar-nav { display: flex; gap: 32px; }
.bar-nav a { text-decoration: none; font-size: var(--step-small); font-weight: 500; transition: color .2s; }
.bar-nav a:hover { color: var(--accent); }

/* ---------- Scene 1: orbit ----------
   Without script or with reduced motion the scene is two plain screens: the night, then Milan.
   .cine (set in the head when motion is allowed) turns it into one held stage. */
.orbit { position: relative; background: var(--bg); }
.orbit-stage { position: relative; overflow: hidden; }
.orbit-still, .globe, .ribbon { position: absolute; left: 0; top: 0; width: 100%; height: 100svh; }
.orbit-still img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.has-globe .orbit-still { display: none; }
.ribbon { pointer-events: none; }
.hero-copy { position: relative; min-height: max(100svh, 560px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 96px var(--m) 48px; }
.city { position: relative; height: 100svh; min-height: 520px; }
.cine .orbit { height: 460svh; }
.cine .orbit-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; }
.cine .globe, .cine .ribbon, .cine .orbit-still { height: 100%; }
.cine .hero-copy { position: absolute; inset: 0; min-height: 0; will-change: transform, opacity; }
.cine .city { position: absolute; inset: 0; height: auto; opacity: 0; will-change: opacity; }
.cine .manifesto { opacity: 0; }

.mark { font-size: clamp(3.25rem, 11vw, 12rem); font-weight: 700; font-stretch: 100%; letter-spacing: -0.045em; line-height: .9; white-space: nowrap; }
.hero-say { margin-top: clamp(28px, 4vh, 48px); font-size: var(--step-lead); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.hero-say .line + .line { --l: 2; }
.hero-sub { max-width: 44ch; margin-top: 20px; }
.hero-copy .btn { margin-top: 32px; }
.cine .hero-sub, .cine .hero-copy .btn { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) .55s, transform 1s var(--ease) .55s; }
.cine .is-in .hero-sub, .cine .is-in .btn { opacity: 1; transform: none; }
.cine .is-in .btn { transition-delay: .7s, .7s; }

.pin { position: absolute; left: 0; top: 0; display: none; align-items: center; gap: 12px; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.cine .pin { display: flex; }
.pin i { position: relative; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); }
.pin i::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: var(--accent); opacity: .5; animation: ping 2.4s var(--ease) infinite; }
.pin span { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
@keyframes ping { from { transform: scale(.3); opacity: .7; } to { transform: scale(2.4); opacity: 0; } }

.caption { display: none; }
.cine .caption { display: block; position: absolute; left: var(--m); bottom: calc(var(--m) + 40px); z-index: 2; max-width: 22ch; opacity: 0;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.city-pic { position: absolute; inset: 0; overflow: hidden; }
.city-pic img { width: 100%; height: 100%; object-fit: cover; }
.cine .city-pic img { will-change: transform; }
.city-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,10,.85), rgba(5,7,10,0) 60%); } /* taste-skill-ignore: neutral scrim under text on a photo */
.city figcaption { position: absolute; right: var(--m); bottom: var(--m); z-index: 1; max-width: 30ch; text-align: right; font-size: var(--step-small); color: var(--muted); }
.manifesto { position: absolute; left: var(--m); right: var(--m); bottom: calc(var(--m) + 40px); z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.manifesto h2 { grid-column: 1 / 8; font-size: var(--step-head); }
.manifesto p { grid-column: 9 / 13; max-width: 38ch; }

/* The veil over the map: darker edges and fine scan lines, so the words read while the lights stay behind */
.veil { display: none; }
.cine .veil { display: block; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; will-change: opacity;
  background:
    repeating-linear-gradient(to bottom, rgba(5,7,10,.42) 0 1px, rgba(5,7,10,0) 1px 3px), /* taste-skill-ignore: scan lines asked by the client */
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(5,7,10,.05), rgba(5,7,10,.55) 70%, rgba(5,7,10,.9)), /* taste-skill-ignore: neutral scrim */
    linear-gradient(to top, rgba(5,7,10,.92), rgba(5,7,10,0) 45%); } /* taste-skill-ignore: neutral scrim */
.pin { z-index: 2; }
.pin span { padding: 6px 16px 8px; border-radius: 999px; background: rgba(5,7,10,.82); }
.pin i { background: var(--accent); box-shadow: 0 0 0 3px var(--bg); } /* taste-skill-ignore: a ring that separates the point from the lights */
.cine .caption { z-index: 2; max-width: none; padding: 22px 28px 24px; background: rgba(5,7,10,.82); border-radius: 4px; }
.caption-at { display: block; margin-bottom: 6px; color: var(--accent); font-size: var(--step-body); font-weight: 600; letter-spacing: 0; }

/* ---------- Scene 2: the stack of seven chapters ---------- */
.stack { position: relative; z-index: 1; background: var(--bg); }
.stack-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; padding: var(--gap) var(--m) clamp(64px, 8vw, 120px); }
.stack-head h2 { grid-column: 1 / 9; font-size: var(--step-head); }
.stack-head p { grid-column: 9 / 13; max-width: 34ch; }
.card { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: var(--bg); transform-origin: 50% 0; will-change: transform; }
.cine .card { position: sticky; top: 0; }
.card-pic { position: absolute; inset: 0; }
.card-pic img, .card-pic video { width: 100%; height: 100%; object-fit: cover; will-change: transform; transform: scale(var(--zoom, 1)); }
.card-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,10,.88), rgba(5,7,10,.1) 55%); } /* taste-skill-ignore: neutral scrim under text on a photo */
.card::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }
.card-copy { position: absolute; left: var(--m); right: var(--m); bottom: clamp(32px, 6vh, 72px); z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.card-copy h3 { grid-column: 1 / -1; font-size: var(--step-xl); letter-spacing: -0.03em; line-height: .85; white-space: nowrap; }
.card-copy p { grid-column: 1 / 6; margin-top: 28px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.card-copy .link { grid-column: 9 / 13; justify-self: end; margin-top: 28px; }
.cine .card-copy p, .cine .card-copy .link { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s; }
.cine .card.is-in .card-copy p, .cine .card.is-in .card-copy .link { opacity: 1; transform: none; }
.cine .card.is-in .card-copy .link { transition-delay: .35s; }

/* ---------- Light chapter: twenty-one trades find their group, then become one wave ---------- */
.studio { position: relative; z-index: 2; background: var(--paper); color: var(--paper-ink); }
.studio-stage { position: relative; display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); padding: var(--gap) var(--m); }
.studio-lines { display: none; }
.studio-open h2 { font-size: var(--step-head); max-width: 14ch; }
.studio-open p { max-width: 40ch; margin-top: 28px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.studio-groups { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 56px; }
.studio-group h3 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.studio-group p { max-width: 30ch; margin: 8px 0 20px; color: #4a5862; }
.studio-group ul { display: flex; flex-direction: column; align-items: flex-start; }
.studio-group li { padding: 6px 0; font-size: clamp(1.125rem, .95rem + .6vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; white-space: nowrap; }
.studio-big { font-size: var(--step-head); font-weight: 800; font-stretch: 72%; letter-spacing: -0.015em; line-height: .9; max-width: 12ch; }
.studio-close p:not(.studio-big) { max-width: 46ch; margin: 28px 0 24px; }
.studio .link { color: #08799c; }

.cine .studio { height: 440svh; }
.cine .studio-stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; padding: 0 var(--m); display: block; }
.cine .studio-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cine .studio-act { position: absolute; left: var(--m); right: var(--m); z-index: 2; will-change: opacity, transform; }
.cine .studio-open { top: 50%; transform: translateY(-50%); }
.cine .studio-close { bottom: clamp(40px, 8vh, 96px); opacity: 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.cine .studio-close .studio-big { grid-column: 1 / 7; }
.cine .studio-close p:not(.studio-big) { grid-column: 8 / 13; margin: 0 0 16px; }
.cine .studio-close .link { grid-column: 8 / 13; }
.cine .studio-groups { position: absolute; left: var(--m); right: var(--m); top: clamp(96px, 16vh, 160px); }
.cine .studio-group h3, .cine .studio-group p { opacity: 0; will-change: opacity, transform; }
.cine .studio-group li { will-change: transform, opacity; transform-origin: 0 50%; }

/* ---------- Scene 3: the road, sideways ---------- */
.road { position: relative; z-index: 2; background: var(--sea); }
.road-stage { position: relative; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vh, 72px); padding: 112px 0 56px; overflow: hidden; }
.cine .road { height: 360svh; }
.cine .road-stage { position: sticky; top: 0; height: 100svh; min-height: 600px; }
.road-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; padding: 0 var(--m); }
.road-head h2 { grid-column: 1 / 8; font-size: var(--step-head); }
.road-head p { grid-column: 9 / 13; max-width: 34ch; }
.road-track { display: flex; gap: 24px; padding: 0 var(--m); will-change: transform; backface-visibility: hidden; }
.leg { flex: 0 0 min(560px, 40vw); padding: clamp(28px, 3vw, 44px); background: var(--sea-2); contain: layout paint; }
.leg h3 { font-size: var(--step-small); font-weight: 600; font-stretch: 125%; letter-spacing: .01em; color: var(--accent); }
.leg-name { margin: 12px 0 32px; font-size: var(--step-head); font-weight: 800; font-stretch: 72%; letter-spacing: -0.02em; line-height: .9; white-space: nowrap; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.row + .row { margin-top: 4px; }
.row span + span { color: var(--muted); white-space: nowrap; }
.leg-on { background: var(--accent); color: var(--accent-ink); }
.leg-on h3, .leg-on .row span + span { color: var(--accent-ink); }
.road-bar { margin: 0 var(--m); height: 6px; background: var(--sea-2); }
.road-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }

/* ---------- Live thing: the tuner ---------- */
.tuner { position: relative; z-index: 2; background: var(--bg); padding: var(--gap) var(--m); }
.tuner-form { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.tuner-copy { grid-column: 1 / 6; }
.tuner-copy h2 { font-size: var(--step-head); }
.tuner-copy p { max-width: 36ch; margin-top: 28px; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--surface-2); font-weight: 500;
  transition: transform .35s var(--ease), background-color .25s, color .25s; }
.chips label:hover span { transform: scale(1.05); }
.chips input:checked + span { background: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.tuner-scope { grid-column: 7 / 13; }
.tuner-scope .wave { width: 100%; height: clamp(260px, 32vw, 460px); background: var(--surface); }
.tuner-out { margin: 24px 0 20px; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.015em; }

/* ---------- Close: a cyan field, the name returns ---------- */
.foot { position: relative; z-index: 2; overflow: hidden; background: var(--accent); color: var(--accent-ink); padding: var(--gap) var(--m) 0; }
.foot-ask { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.foot-line { grid-column: 1 / -1; font-size: var(--step-xl); line-height: .85; }
.foot-sub { grid-column: 1 / 6; margin-top: 40px; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.foot-ask .btn { grid-column: 10 / 13; justify-self: end; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: clamp(80px, 10vw, 160px); font-size: var(--step-small); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--step-body); font-weight: 500; }
.foot a { text-decoration: none; }
.foot a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.credits { flex-basis: 100%; }
.credits summary { cursor: pointer; width: max-content; }
.credits p { max-width: 72ch; margin-top: 10px; font-size: 16px; line-height: 1.5; }
.foot-name { margin: 6vw 0 0 -0.04em; font-size: 17.6vw; font-weight: 600; letter-spacing: -0.04em; line-height: .78; white-space: nowrap; transform: translateY(16%); }

/* Entrances */
.cine [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) calc(var(--i, 0) * 80ms), transform 1s var(--ease) calc(var(--i, 0) * 80ms); }
.cine [data-rise].is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) { .manifesto h2 { grid-column: 1 / 10; } .manifesto p { grid-column: 1 / 9; margin-top: 24px; } }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .bar { gap: 16px; padding: 12px var(--m); }
  .bar-nav { display: none; }
  .brand span { font-size: var(--step-small); }
  .hero-copy { justify-content: flex-end; padding-bottom: 56px; }
  .mark { font-size: 13.4vw; }
  .hero-sub { font-size: 1.0625rem; }
  .manifesto { display: block; bottom: 88px; }
  .manifesto p { margin-top: 20px; }
  .city figcaption { left: var(--m); text-align: left; bottom: 20px; }
  .stack-head, .road-head, .tuner-form, .foot-ask { display: block; }
  .stack-head p, .road-head p { margin-top: 24px; }
  .card-copy { display: block; }
  .card-copy h3 { font-size: 16vw; }
  .card-copy p { margin-top: 18px; }
  .card-copy .link { margin-top: 20px; }
  .studio-groups { grid-template-columns: 1fr; }
  .cine .studio { height: 760svh; }
  .cine .studio-groups { top: 50%; transform: translateY(-58%); }
  .cine .studio-group h3 { font-size: min(11vw, 5.4svh); font-weight: 800; font-stretch: 72%; letter-spacing: -0.015em; }
  .cine .studio-group h3 + p { margin: 10px 0 18px; font-size: min(4.8vw, 2.4svh); line-height: 1.25; }
  .cine .studio-group li { padding: min(1.3svh, 10px) 0; font-size: min(5.6vw, 2.9svh); }
  .cine .studio-group { grid-area: 1 / 1; }
  .cine .studio-close { display: block; bottom: 40px; }
  .cine .studio-close p:not(.studio-big) { margin: 20px 0 16px; }
  .leg { flex-basis: 80vw; }
  .tuner-scope { margin-top: 40px; }
  .foot-sub { margin: 28px 0 32px; }
  .foot-ask .btn { width: 100%; }
  .foot-line { font-size: 10vw; }
}

/* Reduced motion: the .cine layout is never switched on; only the ping is stilled */
@media (prefers-reduced-motion: reduce) { .pin i::after { animation: none; } }

/* The timelapse arrives in its own colours: graded to the same cyan night as the photographs */
.card-film video { filter: grayscale(1) contrast(1.15) brightness(.7); transform: scale(calc(var(--zoom, 1) * 1.18)); }
.card-film::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #1590b8; mix-blend-mode: color; pointer-events: none; }

/* Service chapters drawn in code: each on its own ground colour */
.card { background: var(--ground, var(--bg)); }
.card-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-art::after { background: linear-gradient(to top, var(--ground, #05070a) 8%, transparent 50%); } /* taste-skill-ignore: scrim in the chapter's own ground */

/* ---------- Type: condensed heavy titles, wide light voices, letters that move ---------- */
.hero-say, .card-copy p, .studio-open p, .manifesto p, .foot-sub, .stack-head p, .road-head p, .tuner-out, .studio-group h3 + p {
  font-stretch: 116%; font-weight: 300; letter-spacing: -0.03em; }
.brand span, .caption-at, .studio-group h3 { font-stretch: 118%; }
.studio-group h3 { font-weight: 700; letter-spacing: -0.03em; }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }
.cine .kin .ch { font-weight: 100; font-stretch: 62%; opacity: .25;
  transition: font-weight 1.3s var(--ease), font-stretch 1.3s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--c) * 22ms); }
.cine .kin.is-on .ch { font-weight: inherit; font-stretch: inherit; opacity: 1; }
.cine .foot-name .ch { transition: font-weight .5s var(--ease); }

/* ---------- Menu: under 900px the bar keeps the brand and a button; the menu arrives as a wave ---------- */
.menu-btn { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 14px; border: 0; background: none; color: var(--ink); font: 600 var(--step-small)/1 "Archivo", sans-serif; font-stretch: 118%; cursor: pointer; }
.menu-btn-say { position: relative; display: grid; overflow: hidden; height: 1.2em; }
.menu-btn-say span { grid-area: 1 / 1; line-height: 1.2; transition: transform .6s var(--ease); }
.menu-btn-say span + span { transform: translateY(110%); }
.menu-btn-say.is-close span:first-child { transform: translateY(-110%); }
.menu-btn-say.is-close span + span { transform: none; }
.menu-btn svg { width: 44px; height: 20px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mb-line { stroke-dasharray: 36 40; transition: stroke-dashoffset .5s var(--ease); }
.mb-wave { stroke-dasharray: 60 60; stroke-dashoffset: 60; transition: stroke-dashoffset .7s var(--ease) .1s; }
.menu-open .mb-line { stroke-dashoffset: -38; }
.menu-open .mb-wave { stroke-dashoffset: 0; }
.menu-open .bar { background: var(--bg); }

.menu { position: fixed; inset: 0; z-index: 29; overflow: hidden; color: var(--accent-ink); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.menu.is-going .menu-nav a:not(.is-go), .menu.is-going .menu-tide, .menu.is-going .menu-foot { opacity: .2; transition: opacity .2s; }
.menu-nav a.is-go .ch { font-weight: 900 !important; font-stretch: 112% !important; transition: font-weight .2s, font-stretch .3s var(--ease); }
.menu-tide-row a.is-go, .menu-foot a.is-go { background: var(--accent-ink); color: var(--accent); }
.menu[hidden] { display: none; }
.menu-sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu-in { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 120px var(--m) max(28px, env(safe-area-inset-bottom)); }
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a { display: block; width: max-content; max-width: 100%; text-decoration: none; font-size: clamp(3.5rem, 19vw, 9rem); font-weight: 100; font-stretch: 62%; line-height: .88; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(40px); transition: opacity .5s var(--ease), transform .9s var(--ease); transition-delay: calc(.32s + var(--n) * 70ms); }
.menu-nav a .ch { display: inline-block; }
.menu-nav a:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu-tide { margin: 28px calc(var(--m) * -1) 0; overflow: hidden; opacity: 0; transition: opacity .6s var(--ease) .45s; }
.menu.is-open .menu-tide { opacity: 1; }
.menu-tide-row { display: flex; gap: 10px; width: max-content; padding: 0 var(--m); animation: tide 26s linear infinite; }
.menu-tide-row a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(5,7,10,.12); text-decoration: none; font-weight: 600; font-size: var(--step-small); font-stretch: 112%; }
.menu-tide-row a:active { background: var(--accent-ink); color: var(--accent); }
@keyframes tide { from { transform: translateX(0); } to { transform: translateX(-35%); } }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) .55s, transform .8s var(--ease) .55s; }
.menu.is-open .menu-foot { opacity: 1; transform: none; }
.menu-mail { font-weight: 600; font-stretch: 112%; text-decoration: none; }
@media (max-width: 900px) {
  .bar-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) { .bar-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .menu-tide-row { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Inner pages: a name that fills the screen ---------- */
.page-hero { position: relative; padding: clamp(120px, 18vh, 200px) var(--m) clamp(72px, 10vw, 140px); background: var(--bg); overflow: hidden; }
.page-mark { display: block; white-space: nowrap; font-size: 20vw; font-weight: 800; font-stretch: 100%; line-height: .8; letter-spacing: -0.03em; margin-left: -0.04em; }
.page-hero-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: start; margin-top: clamp(40px, 6vw, 88px); }
.page-lede { grid-column: 1 / 6; font-size: var(--step-lead); font-weight: 300; font-stretch: 116%; line-height: 1.2; letter-spacing: -0.03em; }
.page-mail { grid-column: 8 / 13; align-self: end; }
.svc-index { grid-column: 7 / 13; display: flex; flex-wrap: wrap; gap: .05em .35em; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); line-height: 1.05; }
.svc-index a { text-decoration: none; font-weight: 300; font-stretch: 72%; letter-spacing: -0.02em; transition: font-weight .5s var(--ease), font-stretch .5s var(--ease), color .3s; }
.svc-index a:hover, .svc-index a:focus-visible { color: var(--tone); font-weight: 850; font-stretch: 100%; }

/* ---------- Servizi: one chapter per service, the drawing held while the text scrolls ---------- */
.svc { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--ground); }
.svc-art { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.cine .svc-art { position: sticky; top: 0; }
.svc-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ground) 4%, transparent 42%); pointer-events: none; } /* taste-skill-ignore: scrim in the chapter's own ground */
.svc-name { position: absolute; left: var(--m); right: var(--m); bottom: clamp(28px, 5vh, 56px); z-index: 1; font-size: clamp(3rem, 8.5vw, 9rem); line-height: .85; white-space: nowrap; }
.svc-name span { display: inline-block; }
.svc-flip .svc-art { order: 2; }
.svc-body { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(96px, 14vh, 160px) clamp(24px, 5vw, 96px); min-height: 100svh; }
.svc-lead { font-size: var(--step-lead); font-weight: 300; font-stretch: 116%; line-height: 1.18; letter-spacing: -0.03em; max-width: 24ch; }
.svc-body > p:not(.svc-lead) { max-width: 46ch; color: var(--muted); }
.svc-list { display: grid; gap: 0; max-width: 40ch; }
.svc-list li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; font-weight: 500; }
.svc-list li::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--tone); transform: translateY(-4px); }
.svc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.svc-two h3 { font-size: var(--step-lead); color: var(--tone); margin-bottom: 8px; }
.svc-ask { align-self: flex-start; display: inline-flex; align-items: center; gap: .5em; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--tone); color: var(--ground); font-weight: 700; text-decoration: none; transition: transform .4s var(--ease); }
.svc-ask::after { content: "→"; transition: transform .4s var(--ease); }
.svc-ask:hover { transform: scale(1.04); }
.svc-ask:hover::after { transform: translateX(5px); }

/* ---------- Contatti: the form, and a wave that grows as you write ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--m) var(--gap); background: var(--bg); }
.contact-form { grid-column: 1 / 7; }
.contact-form h2 { font-size: var(--step-head); }
.contact-say { margin: 20px 0 48px; color: var(--muted); max-width: 40ch; }
.contact-wave { grid-column: 8 / 13; }
.contact-wave-in { position: sticky; top: 96px; display: flex; flex-direction: column; justify-content: flex-end; height: min(70svh, 620px); padding: 28px; background: var(--sea); border-radius: 4px; overflow: hidden; }
.contact-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-wave-say { position: relative; font-size: var(--step-lead); font-weight: 300; font-stretch: 116%; line-height: 1.15; letter-spacing: -0.03em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: var(--step-small); font-weight: 600; font-stretch: 118%; color: var(--muted); }
.f-wide, .consent, .form .btn { grid-column: 1 / -1; }
.f input, .f textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid #2a3540; border-radius: 0; background: transparent; color: var(--ink);
  font: 400 var(--step-lead)/1.2 "Archivo", sans-serif; font-stretch: 100%; letter-spacing: -0.02em; transition: border-color .3s, font-stretch .5s var(--ease); }
.f textarea { resize: vertical; min-height: 7em; font-size: var(--step-body); line-height: 1.5; }
.f input:focus, .f textarea:focus { outline: none; border-bottom-color: var(--accent); font-stretch: 110%; }
.f:focus-within { color: var(--accent); }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: var(--step-small); color: var(--muted); }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.od-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: off-screen honeypot */
.od-form-msg { margin-bottom: 32px; padding: 20px 24px; border-radius: 4px; font-weight: 500; }
.od-form-ok { background: var(--accent); color: var(--accent-ink); }
.od-form-err { background: #3a1016; color: #ffd0d6; }
.od-form-err a { color: inherit; }

.next { padding: var(--gap) var(--m); background: var(--paper); color: var(--paper-ink); }
.next h2 { font-size: var(--step-head); max-width: 12ch; }
.next-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; margin-top: clamp(56px, 7vw, 104px); }
.next-word { font-size: clamp(2.5rem, 1.2rem + 4vw, 5.5rem); font-weight: 800; font-stretch: 62%; line-height: .9; letter-spacing: -0.02em; margin-bottom: 20px; transition: font-stretch 1s var(--ease); }
.next-list li:hover .next-word { font-stretch: 100%; }
.next-list li p:not(.next-word) { max-width: 34ch; color: #3c4952; }

.faq { padding: var(--gap) var(--m); background: var(--bg); }
.faq h2 { font-size: var(--step-head); }
.faq-list { display: grid; gap: 8px; margin-top: clamp(48px, 6vw, 88px); }
.faq details { padding: 0 clamp(20px, 3vw, 36px); background: var(--surface); border-radius: 4px; transition: background-color .3s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 0; cursor: pointer; list-style: none;
  font-size: var(--step-lead); font-weight: 500; font-stretch: 100%; letter-spacing: -0.02em; line-height: 1.15; transition: font-stretch .6s var(--ease), color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 300; font-size: 1.4em; line-height: 1; transition: transform .5s var(--ease); }
.faq summary:hover { color: var(--accent); }
.faq details[open] summary { font-stretch: 116%; color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 60ch; padding: 0 0 32px; color: var(--muted); }

/* ---------- Text pages (privacy, cookie, 404) ---------- */
.legal { padding: clamp(140px, 20vh, 220px) var(--m) var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.legal h1 { grid-column: 1 / -1; font-size: var(--step-head); margin-bottom: clamp(40px, 6vw, 80px); }
.legal .prose, .legal .lede { grid-column: 3 / 10; }
.legal .lede { font-size: var(--step-lead); font-weight: 300; font-stretch: 116%; line-height: 1.2; letter-spacing: -0.03em; }
.legal-404 .btn { grid-column: 3 / 10; justify-self: start; margin-top: 32px; }
.prose { color: #c9d3da; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 2em; color: var(--ink); font-size: var(--step-lead); }
.prose ul, .prose ol { padding-left: 1.2em; list-style: disc; }
.prose a { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.prose td, .prose th { padding: 8px; border-bottom: 1px solid #1f2830; text-align: left; vertical-align: top; }

@media (max-width: 900px) {
  .page-hero-row { display: block; }
  .page-lede { margin-bottom: 32px; }
  .svc { display: block; }
  .svc-art, .cine .svc-art { position: relative; height: 72svh; min-height: 420px; }
  .svc-body { min-height: 0; padding: 40px var(--m) 88px; }
  .svc-two { grid-template-columns: 1fr; }
  .contact { display: flex; flex-direction: column; }
  .contact-wave { order: -1; margin-bottom: 56px; }
  .contact-wave-in { position: relative; top: 0; height: 200px; padding: 20px; }
  .contact-wave-say { font-size: 1.125rem; }
  .next-list { grid-template-columns: 1fr; }
  .legal .prose, .legal .lede, .legal-404 .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .form { grid-template-columns: 1fr; }
  .svc-name { font-size: 15vw; }
}

/* ---------- Logo: the weight of each letter rides a wave ---------- */
.logo { display: inline-flex; align-items: baseline; gap: .26em; font-size: 26px; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.logo .ch { display: inline-block; }
.logo-b { color: var(--accent); }
.brand .logo, .brand .logo span { font-stretch: 100%; }
@media (max-width: 760px) { .logo { font-size: 24px; } }

/* ---------- The claim: big; under it a bar fills up and turns into a wave, the idea on air ---------- */
.hero-say { margin-top: clamp(20px, 3vh, 36px); font-size: clamp(2.1rem, 1rem + 3.4vw, 4.4rem); font-weight: 800; font-stretch: 72%; line-height: .92; letter-spacing: -0.01em; }
.hero-say .line + .line { color: var(--accent); }
.air { display: block; position: relative; width: min(340px, 64%); height: 12px; margin: clamp(16px, 2.4vh, 26px) auto 0; overflow: hidden; }
.air i { position: absolute; left: 0; right: 0; top: 3px; height: 6px; border-radius: 3px; background: var(--accent); transform-origin: 0 50%; }
.air svg { position: absolute; left: 0; top: 0; width: 200%; height: 12px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.cine .air i { transform: scaleX(0); animation: air-fill 1.5s var(--slow) 1.1s forwards, air-off .4s ease 2.6s forwards; }
.cine .air svg { animation: air-on .5s ease 2.6s forwards, air-run 2.4s linear 2.6s infinite; }
@keyframes air-fill { to { transform: scaleX(1); } }
@keyframes air-off { to { opacity: 0; } }
@keyframes air-on { to { opacity: 1; } }
@keyframes air-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html:not(.cine) .air i { display: none; }
html:not(.cine) .air svg { opacity: 1; }
.hero-say .line > span { text-wrap: balance; }
@media (max-width: 760px) { .hero-say { font-size: 10vw; } .air { width: 56%; } }

/* ---------- Desktop scenes: each section pins at its end, the next opens over it (driven by cine.js) ---------- */
.cine main > * { position: sticky; }
.cine main::after { content: ""; display: block; height: 100svh; } /* room for the last section to stay while the footer rises */
.cine .foot { margin-top: -100svh; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: 9; background: #000; opacity: var(--leave, 0); pointer-events: none; }
.foot.scene::after { display: none; }
.cine .stack { background: #000; }
.cine .stack-head { position: sticky; top: 0; height: 100svh; min-height: 560px; padding: 0 var(--m); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; will-change: transform, opacity; }
.cine .stack-head h2 { font-size: clamp(3.5rem, 1.5rem + 7.6vw, 10rem); max-width: 13ch; }
.cine .stack-head p { max-width: 30ch; margin-top: 36px; font-size: var(--step-lead); line-height: 1.2; }
.cine .stack-head p span { transition: opacity .25s linear; }
.cine .stack-list { position: relative; z-index: 1; margin-top: 30svh; height: 800svh; }
.cine .card { margin-bottom: -100svh; will-change: opacity; }
.chapters { position: sticky; top: 88px; z-index: 12; height: 0; display: flex; justify-content: center; gap: clamp(16px, 2.2vw, 36px); opacity: 0; }
.chapters a { height: max-content; font-size: var(--step-small); font-weight: 500; text-decoration: none; color: var(--ink); opacity: .38; transition: opacity .4s; }
.chapters a:hover, .chapters a.is-on { opacity: 1; }
.cine .card .line > span { transition: none; will-change: transform; }
.cine .card-copy p, .cine .card-copy .link, .cine .card.is-in .card-copy p, .cine .card.is-in .card-copy .link { transition: none; opacity: 0; transform: none; }
.cine .card-pic { will-change: transform; }
.bar { transition: background-color .45s, color .45s, transform .5s var(--ease); }
.bar.is-solid { background: rgba(5,7,10,.66); -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px); } /* taste-skill-ignore: the translucent bar asked for, Apple-style */
.bar.is-solid.is-light { background: rgba(238,241,243,.74); color: var(--paper-ink); }
.bar .logo-b { transition: color .45s; }
.bar.is-light .logo-b { color: #08799c; }

/* Headings arrive letter by letter on transform and opacity only: nothing re-lays the page while it moves */
.cine .kin .ch, .cine .kin.is-on .ch { font-weight: inherit; font-stretch: inherit; }
.cine .kin .ch { opacity: 0; transform: translate3d(0, .32em, 0); transition: opacity .7s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--c) * 16ms); }
.cine .kin.is-on .ch { opacity: 1; transform: none; }
.cine .scene { will-change: transform; }
.leg-name { font-stretch: 86%; }
.cine .leg { will-change: transform, opacity; contain: layout paint; }

/* The tuner holds still while its wave settles */
.cine .tuner { height: 185svh; padding: 0; }
.cine .tuner-form { position: sticky; top: 0; height: 100svh; min-height: 640px; padding: 96px var(--m) 40px; }
.cine .tuner [data-rise], .cine .foot [data-rise] { transition: none; }
.cine .tuner-scope { opacity: 1; transform: none; }
.cine .tuner .wave { transform-origin: 50% 50%; will-change: transform; background: transparent; }
.cine .tuner h2, .cine .tuner-copy p, .cine .chips label, .cine .tuner-out, .cine .tuner-scope .btn { will-change: transform, opacity; }
.cine .tuner-copy > [data-rise], .cine .tuner-scope[data-rise] { opacity: 1; transform: none; }
.cine .foot-line, .cine .foot-sub, .cine .foot-ask .btn, .cine .foot-name { will-change: transform, opacity; }
.cine .foot .foot-name { transition: none; }
.cine .foot-name { font-size: 15.4vw; }
/* The manifesto over Milan keeps its original entrance */
.cine .manifesto h2.kin .ch { opacity: .25; transform: none; font-weight: 100; font-stretch: 62%; transition: font-weight 1.3s var(--ease), font-stretch 1.3s var(--ease), opacity .6s var(--ease); transition-delay: calc(var(--c) * 22ms); }
.cine .manifesto h2.kin.is-on .ch { font-weight: inherit; font-stretch: inherit; opacity: 1; }
/* Shorter holds: every stretch of scroll shows something moving */
.cine .studio { height: 350svh; }
.cine .road { height: 280svh; }

/* Logged-in preview: the WordPress admin bar sits above the fixed bar */
.admin-bar .bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .bar { top: 46px; } }
