/* AC Creative Lab · v2 · Esploso di precisione (rev. 2: iPhone 3D, scroll-driven) */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("fonts/schibsted-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; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("fonts/schibsted-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: "Spline Sans Mono"; font-weight: 300 700; font-style: normal; font-display: swap; src: url("fonts/spline-mono-latin.woff2") format("woff2"); }

/* ---------- Tokens: the workshop, lights off (default) ---------- */
:root {
  --bg: #0b0c0f; --bg-2: #0f1116; --plate: #15171c; --plate-hi: #1c1f26;
  --line: rgba(242, 246, 255, 0.10); --line-strong: rgba(242, 246, 255, 0.24); --edge: rgba(242, 246, 255, 0.30);
  --ice: #8ab4ff; --ice-text: #a9c6ff; --ice-rim: rgba(138, 180, 255, 0.70); --ice-rim-soft: rgba(138, 180, 255, 0.28);
  --text: #f2f6ff; --text-2: #9aa3ad; --text-3: #8089a3;
  --pool: rgba(138, 180, 255, 0.13);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 2px 4px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 44px 80px -36px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 0.5);
  --screen: #ffffff; --selection: rgba(138, 180, 255, 0.35);
  --body-hi: #3a3e47; --body: #1a1c22; --body-lo: #0a0b0e;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4.2vw, 64px); --max: 1320px; --bar-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --p: 0; color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #e9ecf1; --bg-2: #dfe3ea; --plate: #f6f8fb; --plate-hi: #ffffff;
  --line: rgba(16, 18, 24, 0.10); --line-strong: rgba(16, 18, 24, 0.26); --edge: rgba(255, 255, 255, 0.95);
  --ice: #2f6fe4; --ice-text: #2258bd; --ice-rim: rgba(47, 111, 228, 0.60); --ice-rim-soft: rgba(47, 111, 228, 0.22);
  --text: #101218; --text-2: #4b515b; --text-3: #5d6470;
  --pool: rgba(47, 111, 228, 0.10);
  --shadow: 0 30px 60px -34px rgba(20, 30, 60, 0.35), 0 1px 2px rgba(20, 30, 60, 0.12);
  --shadow-lift: 0 44px 80px -40px rgba(20, 30, 60, 0.45), 0 2px 4px rgba(20, 30, 60, 0.12);
  --selection: rgba(47, 111, 228, 0.22);
  --body-hi: #c9cdd6; --body: #8d929c; --body-lo: #4a4e57;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--bar-h) + 24px); scrollbar-color: var(--text-3) var(--bg); }
:root { caret-color: var(--ice); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--selection); color: var(--text); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 3px; }
img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ice); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }

/* Rim light: a 1px ice edge that lives only on the border */
.rim { position: relative; }
.rim::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(calc(135deg + var(--sweep, 0) * 1deg), var(--ice-rim) 0%, transparent 38%, transparent 62%, var(--ice-rim-soft) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }

/* Plates: brushed steel */
.plate { position: relative; border-radius: 8px; background: linear-gradient(160deg, var(--plate-hi), var(--plate) 60%); border: 1px solid var(--line); box-shadow: inset 1px 1px 0 var(--edge), var(--shadow); overflow: hidden; }
.plate__cap { position: absolute; left: 14px; right: 14px; top: 10px; z-index: 4; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.plate__cap > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate__cap::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice-rim); }
.plate__body { padding: 36px 18px 20px; }
.plate--shot .plate__body { padding: 34px 0 0; }
.plate--shot img { width: 100%; height: auto; display: block; }
.plate--demo .plate__cap { color: var(--text-3); }
.plate--demo .plate__cap::before { background: var(--text-3); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .plate { transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease); }
  .plate:hover { transform: translateY(-2px); box-shadow: inset 1px 1px 0 var(--edge), var(--shadow-lift); }
  .plate.rim:hover::before { --ice-rim: rgba(138, 180, 255, 0.95); --ice-rim-soft: rgba(138, 180, 255, 0.5); }
}

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(10px); }
.bar__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: 4px; }
.nav a { font-size: 14px; color: var(--text-2); text-decoration: none; padding: 7px 11px; border-radius: 5px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: var(--plate); }
.bar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-decoration: none; padding: 9px 10px; border-radius: 5px; color: var(--text-2); }
.lang:hover { color: var(--text); background: var(--plate); }
.switch { display: inline-flex; align-items: center; gap: 8px; background: var(--plate); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px; cursor: pointer; color: var(--text-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.switch__knob { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); box-shadow: inset 1px 1px 0 var(--edge), 0 0 0 1px var(--line-strong); position: relative; }
.switch__knob::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice-rim); opacity: 0.25; transition: opacity 0.3s; }
:root[data-theme="light"] .switch__knob::after { opacity: 1; }
.switch__on, .switch__off { display: none; }
:root:not([data-theme="light"]) .switch__off { display: inline; }
:root[data-theme="light"] .switch__on { display: inline; }
.btn { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 11px 16px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -0.005em; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--plate-hi), var(--plate)); color: var(--text); box-shadow: inset 1px 1px 0 var(--edge); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.2s; position: relative; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 1px 1px 0 var(--edge), 0 10px 24px -12px rgba(0,0,0,0.8); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.btn--light { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: none; }
.btn--light:hover { box-shadow: 0 10px 24px -12px rgba(0,0,0,0.8); }
.btn--rim { border-color: transparent; }
.btn--rim::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--ice-rim), var(--ice-rim-soft) 50%, var(--ice-rim)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--sm .btn__long + span { margin-left: -5px; }
.menu-btn { display: none; }
.drawer { display: none; }

/* ---------- iPhone 3D (CSS only) ---------- */
.phone { --w: 300px; position: relative; width: var(--w); aspect-ratio: 9 / 19.5; transform-style: preserve-3d; }
.phone__layer { position: absolute; inset: 0; border-radius: calc(var(--w) * 0.165); transform-style: preserve-3d; }
.phone__body { background: linear-gradient(135deg, var(--body-hi) 0%, var(--body) 28%, var(--body-lo) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), inset 2px 2px 3px rgba(255,255,255,0.12), inset -2px -2px 4px rgba(0,0,0,0.6), 0 40px 70px -30px rgba(0,0,0,0.9); }
.phone__body::before { content: ""; position: absolute; inset: 5px; border-radius: inherit; border: 1px solid rgba(0,0,0,0.6); background: #000; }
.phone__body i { position: absolute; background: linear-gradient(90deg, var(--body-lo), var(--body-hi)); border-radius: 2px; width: 3px; }
.phone__body i:nth-child(1) { left: -3px; top: 17%; height: 5%; }
.phone__body i:nth-child(2) { left: -3px; top: 25%; height: 9%; }
.phone__body i:nth-child(3) { left: -3px; top: 36%; height: 9%; }
.phone__body i:nth-child(4) { right: -3px; top: 28%; height: 13%; background: linear-gradient(90deg, var(--body-hi), var(--body-lo)); }
.phone__screen { inset: 9px; border-radius: calc(var(--w) * 0.14); overflow: hidden; background: var(--screen); container-type: inline-size; }
.phone__screen::after { content: ""; position: absolute; left: 50%; top: 2.6%; width: 30%; height: 3.4%; transform: translateX(-50%); background: #0a0a0a; border-radius: 999px; z-index: 5; }
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease-slow); }
.scr.is-on { opacity: 1; }
.scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__glass { inset: 9px; border-radius: calc(var(--w) * 0.14); background: linear-gradient(118deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.06) 28%, rgba(255,255,255,0) 46%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.05) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); pointer-events: none; }
.phone__glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(calc(100deg + var(--sweep, 0) * 1deg), transparent 40%, rgba(255,255,255,0.10) 50%, transparent 60%); }
.phone__label { position: absolute; left: 36%; bottom: -4px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.phone__label b { color: var(--text); font-weight: 500; }

/* ---------- Hero: the scroll stage ---------- */
.hero { position: relative; height: 200vh; background: radial-gradient(ellipse 55% 45% at 18% 12%, var(--pool) 0%, transparent 70%), var(--bg); }
.stage { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); display: grid; align-content: center; overflow: clip; padding-block: 24px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hook { font-size: clamp(34px, 4.2vw, 62px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
.hook span { color: var(--text-2); }
.sub { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--text-2); line-height: 1.55; }
.sub strong { color: var(--text); font-weight: 500; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.hero__meta span { white-space: nowrap; }

/* Exploded iPhone: assembled at p=0, three layers apart at p=1 */
.exploded { position: relative; height: min(72svh, 720px); perspective: 1600px; perspective-origin: 50% 45%; --gap: 110px; }
.exploded .phone { top: 46%; }
.exploded .phone { --w: min(300px, 36vh); position: absolute; left: 36%; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateY(calc(-22deg - var(--p) * 22deg)) rotateX(calc(6deg + var(--p) * 4deg)) rotateZ(calc(var(--p) * -4deg)); }
.exploded .phone__body { transform: translateZ(calc(var(--p) * var(--gap) * -1)); }
.exploded .phone__screen { transform: translateZ(1px); }
.exploded .phone__glass { transform: translateZ(calc(1px + var(--p) * var(--gap))); }
.exploded .phone__label { opacity: calc(1 - var(--p) * 2); z-index: 3; }
.callouts { position: absolute; left: 62%; right: 0; top: 10%; bottom: 10%; pointer-events: none; z-index: 2; }
.callout { position: absolute; left: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); max-width: 100%; opacity: calc((var(--p) - 0.35) * 2.2); transform: translateX(calc((1 - var(--p)) * -16px)); }
.callout::before { content: ""; position: absolute; left: -64px; top: 50%; width: 52px; height: 1px; background: var(--ice-rim); }
.callout::after { content: ""; position: absolute; left: -66px; top: calc(50% - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }
.callout b { display: block; color: var(--text); font-weight: 500; letter-spacing: 0.04em; }
.callout--open { opacity: calc(1 - var(--p) * 4); transform: none; }

/* ---------- Scroll reveals: sections enter under the light ---------- */
.rv { opacity: 0; transform: translateY(32px) scale(0.985); transition: opacity 1s var(--ease-slow), transform 1s var(--ease-slow); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.em { opacity: 0; filter: blur(14px) brightness(0.45); transition: opacity 1.2s var(--ease-slow), filter 1.2s var(--ease-slow); transition-delay: calc(var(--d, 0) * 90ms); }
.em.in { opacity: 1; filter: blur(0) brightness(1); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44ch); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.section__head p { color: var(--text-2); font-size: 16px; }
.section__head p a { color: var(--text); }

/* Register */
.register { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.register caption { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding-bottom: 12px; }
.register th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-strong); }
.register td { font-variant-numeric: tabular-nums; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.register tbody tr { transition: background 0.2s; }
.register tbody tr:hover td { background: var(--plate); }
.register td:first-child { font-weight: 500; }
.register td:first-child a { text-decoration: none; }
.register td:first-child a:hover { color: var(--ice-text); }
.register td:first-child small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; }
.register .stack-cell, .register .platform-cell { color: var(--text-2); font-size: 14.5px; }
.status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); }
.status--dev { color: var(--ice-text); }
.status--dev::before { background: var(--ice); box-shadow: 0 0 8px var(--ice-rim); }

/* ---------- Case studies: three products, equal rank ---------- */
.case { padding-block: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); }
.case__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.case__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 14px; }
.case__head h3 { font-size: clamp(30px, 3.4vw, 48px); }
.case__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.case__lede { max-width: 54ch; font-size: clamp(17px, 1.3vw, 20px); color: var(--text-2); }
.case__lede strong { color: var(--text); font-weight: 500; }
.sheet { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line-strong); }
.sheet > div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.sheet h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; color: var(--text-3); margin-bottom: 8px; }
.sheet p, .sheet li { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.sheet li strong, .sheet p strong { color: var(--text); font-weight: 500; }
.sheet ul { margin: 0; padding: 0; list-style: none; }
.sheet li + li { margin-top: 4px; }
.case__store { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Mockup: tilted phone, optional browser plate behind */
.mock { position: relative; height: clamp(520px, 62vh, 700px); perspective: 1500px; perspective-origin: 50% 40%; }
.mock .phone { --w: min(280px, 30vh); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotateY(-24deg) rotateX(5deg) rotateZ(-2deg); transition: transform 0.9s var(--ease-slow); }
.mock .phone__screen { transform: translateZ(1px); }
.mock .phone__glass { transform: translateZ(2px); }
.phones .phone__screen { transform: translateZ(1px); }
.phones .phone__glass { transform: translateZ(2px); }
.mock--console .phone { left: 68%; top: 56%; }
.mock .browser { position: absolute; left: 0; top: 10%; width: 78%; border-radius: 10px; overflow: hidden; background: var(--plate); border: 1px solid var(--line); box-shadow: inset 1px 1px 0 var(--edge), var(--shadow-lift); transform: rotateY(-14deg) rotateX(3deg); }
.mock .browser__bar { height: 28px; background: var(--plate-hi); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock .browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock .browser__bar span { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-3); }
.mock .browser img { width: 100%; height: auto; }
.mock__note { position: absolute; left: 0; bottom: -28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) { .mock:hover .phone { transform: translate(-50%, -50%) rotateY(-14deg) rotateX(3deg) rotateZ(-1deg); } }

/* Touchable plates under the case studies */
.tools { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; align-items: start; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.plate--tool .plate__body { padding: 40px 20px 22px; }
.tool { display: grid; gap: 14px; }
.tool__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.field { display: grid; gap: 5px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.field select, .field input { font: 500 15px var(--font); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 10px; width: 100%; box-shadow: inset 1px 1px 0 rgba(0,0,0,0.3); accent-color: var(--ice); }
.field select:focus-visible, .field input:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 9px; font: 500 15px var(--font); color: var(--text); align-self: end; padding-bottom: 10px; }
.check input { width: 17px; height: 17px; accent-color: var(--ice); margin: 0; }
.cascade { border-top: 1px solid var(--line-strong); font-family: var(--mono); }
.cascade div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cascade span:first-child { color: var(--text-2); font-family: var(--font); font-size: 15px; }
.cascade .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cascade .minus { color: var(--ice-text); }
.cascade .net { border-bottom: 0; padding-top: 14px; }
.cascade .net span:first-child { color: var(--text); font-weight: 500; font-size: 18px; }
.cascade .net .num { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.cascade .net small { font-size: 13px; color: var(--text-2); font-weight: 400; }
.tool__foot { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.week { display: grid; grid-template-columns: 54px repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 12.5px; }
.week .h, .week .t { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); text-align: center; padding: 6px 0; }
.week .t { text-align: left; padding: 10px 0; }
.slot { border: 1px solid var(--line); background: var(--bg-2); border-radius: 5px; min-height: 42px; padding: 5px 7px; cursor: pointer; text-align: left; line-height: 1.3; font-size: 12px; color: var(--text); transition: transform 0.25s var(--ease), border-color 0.2s, background 0.2s; white-space: pre-line; }
.slot:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.slot.is-busy { background: transparent; color: var(--text-3); cursor: default; }
.slot.is-busy:hover { transform: none; border-color: var(--line); }
.slot.is-ok { border-color: var(--ice); box-shadow: 0 0 0 1px var(--ice-rim-soft), 0 0 14px var(--ice-rim-soft); color: var(--text); font-weight: 500; }
.slot.is-conflict { border-color: var(--text); background: var(--plate-hi); color: var(--text); font-weight: 500; }
.week-out { margin-top: 12px; min-height: 44px; font-size: 14px; line-height: 1.45; padding: 10px 12px; border-left: 1px solid var(--ice-rim); color: var(--text-2); }
.week-out strong { color: var(--text); font-weight: 500; }
.week-out.is-ok strong { color: var(--ice-text); }

/* ---------- App Store: a grid of small 3D phones ---------- */
.phones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(10px, 1.5vw, 20px); }
.phones a { text-decoration: none; display: block; perspective: 900px; }
.phones .phone { --w: 100%; width: 100%; margin: 0 auto; transform: rotateY(-26deg) rotateX(6deg); transition: transform 0.6s var(--ease-slow); container-type: inline-size; }
.phones .phone__layer { border-radius: 16.5cqw; }
.phones .phone__body i { width: 2px; }
.phones .phone__screen, .phones .phone__glass { inset: 4px; border-radius: 14cqw; }
.phones .phone__screen::after { height: 3%; }
.phones .scr { opacity: 1; }
.phones .phone__name { margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--text); text-align: center; }
.phones .phone__name span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; }
.phone--icon .phone__screen { background: #0d0f14; }
.scr--icon { display: grid; place-content: center; justify-items: center; gap: 6cqw; padding: 0 10cqw; text-align: center; }
.scr--icon img { width: 52cqw; height: 52cqw; border-radius: 12cqw; box-shadow: 0 10cqw 20cqw -8cqw rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08); }
.scr--icon span { font-family: var(--font); font-size: 6cqw; font-weight: 500; color: #f2f6ff; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) { .phones a:hover .phone { transform: rotateY(0) rotateX(0) scale(1.04); } }

/* ---------- Animation show: one loop at a time, large ---------- */
.figures { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 18px 44px; align-items: end; margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-strong); }
.figure strong { display: block; font-family: var(--mono); font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.figure span { font-size: 13.5px; color: var(--text-2); }
.clients { color: var(--text-2); font-size: 15px; line-height: 1.6; justify-self: end; text-align: right; max-width: 34ch; }
.clients b { font-weight: 500; color: var(--text); }
.figures .btn { grid-column: 1 / -1; justify-self: start; }

/* Sites */
.sites { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sites__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sites__shots > a:first-child { grid-column: span 2; }
.sites__shots a { text-decoration: none; }
.sites__shots .plate__body { padding: 32px 0 0; }
.sites__shots img { width: 100%; aspect-ratio: 2000 / 924; object-fit: cover; object-position: top; }
.sites__shots .plate__name { padding: 9px 14px 11px; font-size: 13.5px; font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.list li span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); text-align: right; }
.list li a { font-weight: 500; text-decoration: none; }
.list li a:hover { color: var(--ice-text); }
.list li em { font-style: normal; font-weight: 500; }
.also { margin-top: 28px; }
.also h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; color: var(--text-3); margin-bottom: 8px; }
.also p { font-size: 15.5px; max-width: 46ch; color: var(--text-2); }
.also p strong { color: var(--text); font-weight: 500; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.about .plate { aspect-ratio: 1; }
.about video, .about img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; padding: 32px 14px 34px; }
.about .play-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.about .play-hint svg { width: 44px; height: 44px; fill: var(--text); opacity: 0.75; }
.about .plate.needs-tap .play-hint { opacity: 1; }
.about h2 { font-size: clamp(30px, 3.2vw, 44px); }
.about p { margin-top: 16px; max-width: 58ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--text-2); }
.about p strong { color: var(--text); font-weight: 500; }
.stackline { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.stackline span { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-2); border: 1px solid var(--line); border-radius: 5px; padding: 5px 10px; background: var(--plate); box-shadow: inset 1px 1px 0 var(--edge); }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); max-width: 860px; interpolate-size: allow-keywords; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1px solid var(--text-2); border-bottom: 1px solid var(--text-2); transform: rotate(45deg); margin-right: 6px; transition: transform 0.3s var(--ease), border-color 0.2s; }
.faq__item[open] summary::after { transform: rotate(-135deg); border-color: var(--ice); }
.faq__item summary:hover { color: var(--ice-text); }
.faq__item p { padding: 0 0 20px; max-width: 68ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.faq__item::details-content { height: 0; overflow: clip; opacity: 0; transition: height 0.28s var(--ease), opacity 0.28s var(--ease), content-visibility 0.28s allow-discrete; }
.faq__item[open]::details-content { height: auto; opacity: 1; }

/* Contact */
.contact { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 60% at 50% 70%, var(--pool) 0%, transparent 70%), var(--bg); }
.contact .plate { width: min(100%, 760px); margin: 0 auto; }
.contact .plate__body { padding: 44px 36px 36px; }
.contact h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 16px; }
.contact p { font-size: 16.5px; color: var(--text-2); max-width: 54ch; margin-bottom: 22px; }
.contact .actions { margin-top: 0; }
.contact .actions .btn { font-size: 16px; padding: 13px 18px; }
.contact .foot-line { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact .foot-line a { text-decoration: none; color: var(--text-2); }
.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { text-decoration: none; color: var(--text-2); }

/* Theme change: the lights come up, nothing jumps */
html.theming, html.theming *, html.theming *::before, html.theming *::after { transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .exploded .phone { left: 28%; --w: min(260px, 32vh); }
  .phone__label { left: 28%; }
  .callouts { left: 56%; }
  .phones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tools .span-4, .tools .span-5, .tools .span-6, .tools .span-7, .tools .span-8 { grid-column: span 6; }
}
@media (max-width: 900px) {
  .hero { height: auto; }
  .stage { position: static; height: auto; padding-block: 28px 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__grid > * { min-width: 0; }
  .exploded { height: 520px; --gap: 70px; }
  .exploded .phone { left: 30%; --w: 220px; }
  .phone__label { left: 0; transform: none; bottom: -2px; white-space: normal; max-width: 100%; }
  .callouts { left: 60%; }
  .callouts { left: 60%; }
  .progress { display: none; }
  .case__grid { grid-template-columns: 1fr; gap: 24px; }
  .mock { height: 480px; margin-bottom: 20px; }
  .mock .phone { --w: 220px; }
  .mock--console .phone { left: 66%; }
  .sites { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about .plate { max-width: 420px; }
  .figures { grid-template-columns: repeat(2, auto); }
  .clients { justify-self: start; text-align: left; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--plate); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px 7px 12px; font-size: 13.5px; font-weight: 500; cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; }
  .drawer { position: fixed; inset: var(--bar-h) 0 auto 0; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 16px; flex-direction: column; gap: 2px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8); opacity: 0; translate: 0 -8px; transition: opacity 0.2s var(--ease), translate 0.2s var(--ease), display 0.2s allow-discrete; }
  .drawer.is-open { display: flex; opacity: 1; translate: 0 0; }
  @starting-style { .drawer.is-open { opacity: 0; translate: 0 -8px; } }
  .drawer a { font-size: 17px; font-weight: 500; text-decoration: none; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .switch__on, .switch__off { display: none !important; }
  .switch { padding-right: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hook { font-size: clamp(32px, 9.4vw, 44px); }
  .exploded { height: 460px; --gap: 54px; }
  .exploded { height: 480px; }
  .exploded .phone { left: 27%; --w: 180px; top: 44%; }
  .callouts { left: 56%; }
  .callout { font-size: 11px; } .callout::before { left: -40px; width: 30px; } .callout::after { left: -42px; }
  .callout:nth-child(2) { top: 26% !important; } .callout:nth-child(3) { top: 50% !important; } .callout:nth-child(4) { top: 76% !important; }
  .section__head { grid-template-columns: 1fr; }
  .register thead { display: none; }
  .register tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .register td { display: block; padding: 0; border: 0; }
  .register td:first-child { grid-column: 1; }
  .register td.status-cell { grid-column: 2; grid-row: 1; }
  .register td.platform-cell, .register td.stack-cell { grid-column: 1 / -1; font-size: 14px; }
  .register td.platform-cell::before { content: attr(data-label) " · "; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
  .sheet { grid-template-columns: 1fr; }
  .mock { height: 460px; margin-bottom: 24px; }
  .mock .phone { --w: 190px; top: 50%; }
  .mock__note { bottom: -30px; }
  .mock .browser { width: 88%; top: 6%; }
  .tools { gap: 16px; }
  .tools .span-4, .tools .span-5, .tools .span-6, .tools .span-7, .tools .span-8 { grid-column: span 12; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .phones .phone__name { font-size: 12px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .sites__shots { grid-template-columns: 1fr; }
  .sites__shots > a:first-child { grid-column: auto; }
  .week { grid-template-columns: 44px repeat(5, minmax(0, 1fr)); font-size: 12px; }
  .slot { font-size: 12px; padding: 4px 5px; min-height: 38px; }
  .plate--tool .plate__body { padding: 40px 14px 18px; }
  .contact .plate__body { padding: 36px 20px 28px; }
  .btn__long { display: none; }
  .foot { font-size: 12.5px; }
}

/* ---------- Reduced motion: everything still and already visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation: none !important; }
  .hero { height: auto; }
  .stage { position: static; height: auto; }
  .progress { display: none; }
  .rv, .em { opacity: 1; transform: none; filter: none; }
}

/* EN hero: the show takes the mechanism's place */

/* =====================================================================
   rev. 3 · home curata: strati, finestre, ecosistema, non solo app
   ===================================================================== */
.section { padding-block: clamp(96px, 14vw, 200px); }
.section__head--one { grid-template-columns: minmax(0, 1fr); max-width: 60ch; }
.section__head h2 { font-size: clamp(32px, 4vw, 58px); letter-spacing: -0.03em; }
.section__head p { font-size: clamp(16px, 1.25vw, 19px); }
.more { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.more:hover { color: var(--ice-text); } .more:hover svg { transform: translateX(3px); }

/* ---- Hero: the layers (rev. 1 mechanism) ---- */
.hero { height: 270vh; }
.hero__grid { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
.hook { font-size: clamp(36px, 4.1vw, 62px); }
.hero .actions { margin-top: 34px; }
.layers { position: relative; height: min(70svh, 700px); perspective: 1700px; perspective-origin: 50% 45%; --gap: 115px; --sc: 0.66; --tx: -14%; --ty: 8%; }
.layers__group { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate(var(--tx, 0px), var(--ty, 0px)) rotateX(52deg) rotateZ(-20deg) scale(var(--sc)); transform-origin: 50% 60%; }
.lyr { position: absolute; left: 0; width: 62%; height: 56%; top: 36%; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap) * var(--pl, var(--p)) + var(--i) * 6px)); will-change: transform; }
.lyr--app { left: 44%; top: 26%; width: 26%; height: 76%; }
.lyr .plate { position: absolute; inset: 0; border-radius: 10px; }
.lyr--app .plate { border-radius: 16px; }
.lyr .plate--shot .plate__body { padding: 34px 0 0; height: 100%; }
.lyr .plate--shot img { height: 100%; object-fit: cover; object-position: top left; }
.lyr--app .plate__body { padding: 30px 10px 12px; height: 100%; }
.lyr--app img { height: 100%; object-fit: cover; object-position: top; border-radius: 10px; }
.schema { position: absolute; inset: 36px 16px 16px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.schema b { position: absolute; display: block; border: 1px solid var(--line-strong); border-radius: 4px; padding: 4px 8px; font-weight: 500; color: var(--text); background: var(--bg-2); white-space: nowrap; }
.schema svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.schema svg path { fill: none; stroke: var(--ice-rim-soft); stroke-width: 1; }
.code { position: absolute; inset: 36px 16px 16px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--text-2); white-space: pre; overflow: hidden; margin: 0; }
.code b { font-weight: 400; color: var(--text); } .code i { font-style: normal; color: var(--ice-text); } .code em { font-style: normal; color: var(--text-3); }
.lyr .anchor, .lyr .probe { position: absolute; left: 100%; top: 50%; width: 0; height: 0; pointer-events: none; }
.tags-q { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity 0.4s var(--ease); }
.layers.tags-ready .tags-q { opacity: 1; }
.tag-q { position: absolute; left: 0; top: 0; transform: translate3d(0, 0, 0); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; backface-visibility: hidden; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; line-height: 1.45; will-change: transform; }
.tag-q b { display: block; color: var(--text); font-weight: 500; letter-spacing: 0.06em; transform: translateY(-100%); position: absolute; left: 0; top: -2px; }
.tag-q__t { display: block; color: var(--text-2); position: absolute; left: 0; top: 2px; }
.tag-q__line { position: absolute; right: calc(100% + 6px); top: 0; height: 1px; width: 40px; background: var(--ice-rim); }
.tag-q { transition: opacity 0.3s var(--ease); }
.tag-q.is-off { opacity: 0; }
.tag-q__dot { position: absolute; left: -3px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }
.progress { bottom: 28px; }

/* ---- Selected work: three console windows that separate ---- */
.works { position: relative; height: 320vh; }
.works__stage { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: clip; display: grid; align-content: center; }
.works__head { position: absolute; left: var(--gutter); top: clamp(28px, 5vh, 56px); max-width: 44ch; z-index: 5; }
.works__head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.works__deck { position: relative; height: min(62svh, 640px); margin-top: clamp(80px, 12vh, 140px); perspective: 1800px; perspective-origin: 50% 30%; }
.win { position: absolute; left: 50%; top: 0; width: min(880px, 72vw); aspect-ratio: 16 / 10; transform-style: preserve-3d; transform: translate(-50%, calc(var(--k) * 10%)) rotateX(calc(14deg * var(--rest))) scale(calc(0.92 - var(--k) * 0.04)); transform-origin: 50% 0; z-index: calc(10 - var(--k)); transition: transform 0.9s var(--ease-slow), opacity 0.9s var(--ease-slow), filter 0.9s var(--ease-slow); filter: brightness(calc(1 - var(--rest) * 0.45)); }
.win.is-front { transform: translate(-50%, 0) rotateX(0) scale(1); --rest: 0; }
.win.is-back { --rest: 1; }
.win.is-gone { opacity: 0; transform: translate(-50%, -8%) rotateX(0) scale(1.04); pointer-events: none; }
.win__frame { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: var(--plate); border: 1px solid var(--line); box-shadow: inset 1px 1px 0 var(--edge), var(--shadow-lift); }
.win__bar { height: 30px; background: var(--plate-hi); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.win__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.win__bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-3); }
.win__frame img { width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: top left; }
.win .phone { position: absolute; right: -4%; bottom: -8%; --w: min(220px, 22vw); transform: rotateY(-18deg) rotateX(4deg); }
.win .phone__screen { transform: translateZ(1px); } .win .phone__glass { transform: translateZ(2px); }
.win__info { position: absolute; left: 0; right: 0; bottom: -100px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; padding-right: 12%; align-items: baseline; gap: 6px 24px; opacity: 0; transition: opacity 0.6s var(--ease-slow) 0.3s; }
.win__info h3 { white-space: nowrap; }
.win__info .more { white-space: nowrap; }
.win.is-front .win__info { opacity: 1; }
.win__info h3 { font-size: 22px; letter-spacing: -0.02em; }
.win__info p { color: var(--text-2); font-size: 15.5px; }
.works__dots { position: absolute; right: var(--gutter); top: 50%; display: grid; gap: 10px; }
.works__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background 0.3s, box-shadow 0.3s; }
.works__dots i.on { background: var(--ice); box-shadow: 0 0 8px var(--ice-rim); }

/* ---- Ecosystem: iPhone + iPad + browser align ---- */
.eco { position: relative; height: 180vh; }
.eco__stage { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: clip; display: grid; align-content: center; }
.eco__scene { position: relative; height: min(56svh, 560px); perspective: 1800px; perspective-origin: 50% 40%; }
.eco__browser, .eco__pad, .eco__phone { position: absolute; transform-style: preserve-3d; }
.eco__browser { left: 4%; top: 8%; width: 58%; aspect-ratio: 16 / 10; transform: translate(calc(var(--e) * -6% - 6%), calc(var(--e) * 4%)) rotateY(calc(14deg - var(--e) * 14deg)) rotateX(calc(4deg - var(--e) * 4deg)); }
.eco__pad { left: 50%; top: 14%; width: 30%; aspect-ratio: 3 / 4; transform: translate(calc(var(--e) * 8% + 10%), calc(var(--e) * -6% + 6%)) rotateY(calc(-18deg + var(--e) * 18deg)) rotateZ(calc(6deg - var(--e) * 6deg)); }
.eco__phone { left: 70%; top: 26%; transform: translate(calc(var(--e) * 12% + 14%), calc(var(--e) * 2% + 12%)) rotateY(calc(-28deg + var(--e) * 10deg)) rotateZ(calc(-8deg + var(--e) * 8deg)); }
.pad { position: relative; border-radius: 18px; background: linear-gradient(135deg, var(--body-hi), var(--body) 30%, var(--body-lo)); padding: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 40px 70px -30px rgba(0,0,0,0.9); }
.pad img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 8px; display: block; background: #000; }
.eco__caption { margin: clamp(28px, 5vh, 56px) auto 0; width: min(100% - 2 * var(--gutter), var(--max)); max-width: none; }
.eco__caption h2, .eco__caption p { max-width: 40ch; }
.eco__caption h2 { font-size: clamp(28px, 3vw, 42px); }
.eco__caption p { margin-top: 10px; color: var(--text-2); font-size: 16px; }

.eco__phone .phone { --w: min(200px, 16vw); }

/* ---- Not only apps ---- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); perspective: 1600px; }
.trio a { text-decoration: none; display: block; }
.trio .win__frame { position: relative; aspect-ratio: 16 / 11; transform: rotateY(calc(var(--ry) * 1deg)) rotateX(3deg); transition: transform 0.7s var(--ease-slow); }
.trio a:nth-child(1) .win__frame { --ry: 16; } .trio a:nth-child(2) .win__frame { --ry: 0; } .trio a:nth-child(3) .win__frame { --ry: -16; }
@media (hover: hover) and (pointer: fine) { .trio a:hover .win__frame { transform: rotateY(0) rotateX(0) translateY(-4px); } }
.trio p { margin-top: 14px; font-size: 15px; font-weight: 500; }
.trio p span { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; }
.surprise { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.surprise__scene { position: relative; height: min(70svh, 620px); perspective: 1400px; }
.surprise__icons { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8%; padding: 6% 12%; filter: blur(6px); opacity: 0.45; }
.surprise__icons img { width: 100%; aspect-ratio: 1; border-radius: 22%; object-fit: cover; }
.surprise .phone { --w: min(260px, 30vh); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotateY(-14deg) rotateX(4deg); }
.surprise .phone__screen { transform: translateZ(1px); } .surprise .phone__glass { transform: translateZ(2px); }

/* ---- Numbers ---- */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); border-top: 1px solid var(--line-strong); padding-top: clamp(28px, 4vw, 48px); }
.num strong { display: block; white-space: nowrap; font-family: var(--mono); font-size: clamp(44px, 6vw, 96px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 10px; color: var(--text-2); font-size: 16px; }

/* ---- Closing: the AC logo recomposes ---- */
.close { position: relative; padding-block: clamp(120px, 18vw, 240px); text-align: center; background: radial-gradient(ellipse 50% 60% at 50% 60%, var(--pool) 0%, transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.close__logo { position: relative; width: min(320px, 60vw); aspect-ratio: 300 / 53; margin: 0 auto clamp(36px, 5vw, 64px); }
.close__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease-slow), opacity 1.2s var(--ease-slow); }
.close__logo img:nth-child(1) { clip-path: inset(0 66.6% 0 0); transform: translate(-40px, -18px); opacity: 0; }
.close__logo img:nth-child(2) { clip-path: inset(0 33.3% 0 33.4%); transform: translateY(26px); opacity: 0; transition-delay: 0.12s; }
.close__logo img:nth-child(3) { clip-path: inset(0 0 0 66.7%); transform: translate(40px, -18px); opacity: 0; transition-delay: 0.24s; }
.close__logo.in img { transform: none; opacity: 1; }
.close h2 { font-size: clamp(34px, 4.6vw, 68px); letter-spacing: -0.035em; }
.close p { margin: 18px auto 30px; max-width: 48ch; color: var(--text-2); font-size: clamp(16px, 1.3vw, 19px); }
.close .actions { justify-content: center; }
.close .foot-line { margin-top: 36px; justify-content: center; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.close .foot-line a { text-decoration: none; color: var(--text-2); }

/* ---- Responsive rev. 3 ---- */
@media (max-width: 1100px) {
  .layers { --gap: 110px; }
  .win { width: min(760px, 80vw); }
  .eco__phone .phone { --w: 150px; }
}
@media (max-width: 900px) {
  .hero { height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .stage { position: static; height: auto; padding-block: 28px 0; }
  .layers { height: 460px; --gap: 70px; perspective-origin: 50% 30%; }
  .layers__group { transform: translate(var(--tx, 0px), var(--ty, 0px)) rotateX(52deg) rotateZ(-14deg) scale(var(--sc)); transform-origin: 50% 64%; }
  .lyr { left: 0; width: 64%; height: 50%; top: 40%; }
  .lyr--app { left: 56%; width: 30%; height: 70%; top: 26%; }
  .layers { --sc: 0.84; --tx: 0px; --ty: 0px; }
  .quote::before, .quote::after { display: none; }
  .works { height: auto; }
  .works__stage { position: static; height: auto; overflow: visible; }
  .works__head { position: static; margin: 0 var(--gutter) 28px; }
  .works__deck { height: auto; margin-top: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 100px; perspective: none; }
  .win { min-width: 0; aspect-ratio: auto; }
  .win .win__frame { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .win .phone { bottom: auto; top: calc(min(100vw - 40px, 100%) * 0.625 - 150px); }
  .win__info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 0; margin-top: 56px; }
  .win__info h3 { white-space: normal; }
  .win__info p { max-width: 100%; }
  .win { position: relative; left: auto; top: auto; width: 100%; transform: none !important; filter: none !important; opacity: 1 !important; }
  .win .phone { right: 4%; bottom: 6%; --w: 104px; }
  .win__info { position: static; margin-top: 18px; opacity: 1 !important; flex-direction: column; gap: 4px; }
  .works__dots { display: none; }
  .eco { height: auto; padding-top: 96px; }
  .eco__stage { position: static; height: auto; }
  .eco__scene { height: 500px; margin-bottom: 32px; }
  .eco__browser { width: 72%; left: 0; top: 0; transform: none !important; }
  .eco__pad { width: 40%; left: 52%; top: 16%; transform: none !important; }
  .eco__phone { left: 64%; top: 50%; transform: rotateY(-14deg) rotateZ(-3deg) !important; }
  .eco__phone .phone { --w: 110px; }
  .trio { grid-template-columns: 1fr; gap: 28px; }
  .trio .win__frame { transform: none; }
  .surprise { grid-template-columns: 1fr; }
  .surprise__scene { height: 460px; }
  .nums { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .layers { height: 460px; --gap: 60px; --sc: 0.72; --tx: -16%; --ty: 0px; }
  .tag-q__t { display: none; }
  .tag-q b { font-size: 11px; transform: translateY(-50%); top: 0; }
  .code { font-size: 9.5px; }
  .layers__group { transform: translate(var(--tx, 0px), var(--ty, 0px)) rotateX(52deg) rotateZ(-10deg) scale(var(--sc)); }
  .tag-q { font-size: 9.5px; letter-spacing: 0.06em; }
  .hook { font-size: clamp(34px, 9.6vw, 46px); }
  .win .phone { --w: 92px; bottom: 5%; }
  .eco__scene { height: 420px; margin-bottom: 24px; }
  .eco__phone { left: 60%; top: 52%; }
  .eco__phone .phone { --w: 96px; }
  .num strong { font-size: clamp(34px, 10.5vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .works, .eco { height: auto; }
  .works__stage, .eco__stage { position: static; height: auto; }
  .works__deck { height: auto; display: grid; gap: 100px; perspective: none; }
  .win { position: relative; left: auto; width: 100%; transform: none !important; filter: none !important; opacity: 1 !important; }
  .win__info { position: static; opacity: 1 !important; margin-top: 18px; }
  .works__head { position: static; }
  .close__logo img { transform: none !important; opacity: 1 !important; }
  .layers { --p: 1; }
  .eco__scene { --e: 1; }
}

/* project pages: the touchable tools span the full width under the two-column intro */
.case__grid > .tools { grid-column: 1 / -1; }

/* 404: la sezione di chiusura diventa la pagina intera */
.nf { min-height: calc(100svh - var(--bar-h)); display: grid; align-items: center; }
.nf h1 { font-size: clamp(34px, 4.6vw, 68px); letter-spacing: -0.035em; }
.nf__code { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-3); }
.nf__code b { color: var(--ice); font-weight: 500; }
.nf__code span { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Loops (GIF per i social): riquadri alla loro misura, mai oltre la risoluzione nativa.
   --k = quanti px CSS per px del file: 1x su schermi normali (0.97 lascia spazio all'hover),
   su retina il file copre al massimo 1,2x i pixel reali (1,24x con l'hover). */
.anims { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(80px, 10vw, 140px); }
.anims--page { margin-top: clamp(28px, 4vw, 48px); grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); }
.anims__text { position: sticky; top: calc(var(--bar-h) + 32px); }
.anims__text h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; }
.anims__text > p { color: var(--text-2); margin: 12px 0 22px; max-width: 42ch; }
.anims__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.figures--side { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; gap: 22px 28px; }
.figures--side .clients { grid-column: 1 / -1; justify-self: start; text-align: left; }
.loops { --k: 0.97; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(18px, 2vw, 28px); }
@media (min-resolution: 1.3dppx) { .loops { --k: 0.6; } }
@media (min-resolution: 2.5dppx) { .loops { --k: 0.4; } }
.loop { container-type: inline-size; max-width: 320px; position: relative; }
.loop__frame { width: min(100cqw, calc(var(--w) * var(--k) * 1px), calc(100cqw * var(--w) / var(--h))); aspect-ratio: var(--w) / var(--h); margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--text) 5%, var(--bg)); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
.loop__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.loop p { margin: 10px 0 0; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--text); }
.loop p span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 400; }
.loop__frame[role="button"] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .loop:hover { z-index: 2; }
  .loop:hover .loop__frame { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-lift); border-color: var(--ice-rim); }
}
@media (max-width: 900px) {
  .anims, .anims--page { grid-template-columns: 1fr; }
  .anims__text { position: static; }
}
@media (max-width: 640px) {
  .loops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .loop { max-width: none; }
  .anims { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { .loop__frame { transition: none; } .loop:hover .loop__frame { transform: none; } }
.figures--side .figure strong { font-size: clamp(26px, 2.3vw, 36px); white-space: nowrap; }

/* Cosa faccio: 8 aree con icone line-art che si disegnano all'ingresso; settori in un marquee morbido */
.services__grid { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.svc { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, var(--plate-hi), var(--plate) 70%); opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease) calc(var(--i) * 80ms), transform 0.7s var(--ease) calc(var(--i) * 80ms), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.services__grid.is-in .svc { opacity: 1; transform: none; }
.svc__icon { display: block; width: 44px; height: 44px; fill: none; stroke: var(--ice); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc__icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) calc(var(--i) * 80ms + 200ms); }
.services__grid.is-in .svc__icon > * { stroke-dashoffset: 0; }
.svc h3 { margin-top: 18px; font-size: 17px; letter-spacing: -0.01em; }
.svc p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { border-color: var(--ice-rim); box-shadow: 0 0 0 1px var(--ice-rim-soft), 0 18px 50px -24px rgba(138, 180, 255, 0.45); }
  .svc:hover .svc__icon { animation: svc-bob 1.8s var(--ease) infinite; }
}
@keyframes svc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px) rotate(-3deg); } }
.sectors { margin-top: clamp(40px, 6vw, 72px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sectors__track { display: flex; width: max-content; animation: sectors 60s linear infinite; }
.sectors:hover .sectors__track { animation-play-state: paused; }
.sectors ul { display: flex; list-style: none; margin: 0; padding: 0; }
.sectors li { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; padding-right: 22px; }
.sectors li::after { content: "·"; padding-left: 22px; color: var(--text-3); }
@keyframes sectors { to { transform: translateX(-50%); } }
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc { padding: 20px 16px; } .svc h3 { font-size: 15.5px; } .svc p { font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) {
  .svc, .svc__icon > * { transition: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .svc:hover .svc__icon { animation: none; }
  .sectors { -webkit-mask-image: none; mask-image: none; }
  .sectors__track { animation: none; width: auto; }
  .sectors ul { flex-wrap: wrap; row-gap: 8px; } .sectors ul[aria-hidden] { display: none; }
}

/* Lavori scelti: binario orizzontale bloccato, guidato dallo scroll verticale. Nessuna dissolvenza tra progetti:
   si muovono solo fisicamente (translate + parallasse: dispositivi 1,25×, finestra 1×, testo 0,8×; inclinazione con la velocità). */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) { .works { height: 240vh; } }
.works__viewport { position: relative; overflow: hidden; margin-top: clamp(84px, 13vh, 140px); }
.works__track { position: relative; display: flex; will-change: transform; }
.works .win { position: relative; left: auto; top: auto; width: 100vw; aspect-ratio: auto; flex: 0 0 100vw; transform: none; transition: none; filter: none; opacity: 1; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding: 0 max(var(--gutter), (100vw - var(--max)) / 2); }
.works .win__scene { position: relative; aspect-ratio: 16 / 10.5; perspective: 1800px; will-change: transform; }
.works .win__browser, .works .win__pad, .works .win__phone { position: absolute; transform-style: preserve-3d; will-change: transform; }
.works .win__browser { left: 0; top: 4%; width: 80%; aspect-ratio: 16 / 10; transform: none; }
.works .win__browser .win__frame { position: absolute; inset: 0; }
.works .win__phone { left: 76%; top: 16%; transform: rotateY(-18deg); }
.works .win__scene--pad .win__pad { left: 4%; top: 0; width: 46%; aspect-ratio: 3 / 4; transform: none; }
.works .win__pad .pad { height: 100%; }
.works .win__scene--pad .win__phone { left: 56%; top: 10%; }
.works .win .win__phone .phone { position: relative; right: auto; bottom: auto; --w: min(190px, 13.5vw); transform: none; }
.works .win__info { position: static; display: block; opacity: 1; padding: 0; transition: none; will-change: transform; }
.works .win__info h3 { white-space: normal; font-size: clamp(24px, 2.2vw, 32px); }
.works .win__info p { margin: 12px 0 18px; max-width: 34ch; }
/* alone: un solo gradiente continuo lungo il binario (ghiaccio → viola → ambra), si muove con il binario */
.works__halo { position: absolute; top: -12%; bottom: -12%; left: 0; width: 300vw; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg, rgb(143 197 255 / 0.24) 0%, rgb(143 197 255 / 0.24) 14%, rgb(139 123 255 / 0.24) 47%, rgb(242 179 94 / 0.24) 80%, rgb(242 179 94 / 0.24) 100%);
  -webkit-mask-image: radial-gradient(ellipse 15% 46% at 14% 50%, #000, transparent), radial-gradient(ellipse 15% 46% at 47% 50%, #000, transparent), radial-gradient(ellipse 15% 46% at 80% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 15% 46% at 14% 50%, #000, transparent), radial-gradient(ellipse 15% 46% at 47% 50%, #000, transparent), radial-gradient(ellipse 15% 46% at 80% 50%, #000, transparent); }
.works__index { position: absolute; right: var(--gutter); bottom: clamp(24px, 5vh, 48px); display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--text-3); z-index: 5; }
.works__num { color: var(--text); min-width: 2ch; }
.works__bar { position: relative; width: 120px; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.works__bar b { position: absolute; inset: 0; background: var(--ice); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
@media (max-width: 900px) {
  .works__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; margin-top: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .works__viewport::-webkit-scrollbar { display: none; }
  .works__track { gap: 16px; padding: 0 var(--gutter) 8px; }
  .works .win { flex: 0 0 84vw; width: 84vw; display: block; padding: 0; scroll-snap-align: center; }
  .works .win__scene { aspect-ratio: 16 / 11.5; perspective: none; }
  .works .win__browser { width: 82%; }
  .works .win__phone { left: 72%; top: 8%; transform: none; }
  .works .win__scene--pad .win__phone { left: 58%; top: 8%; }
  .works .win .win__phone .phone { --w: min(96px, 22vw); }
  .works .win__info { margin-top: 16px; }
  .works .win__info h3 { font-size: 21px; }
  .works__halo, .works__index { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .works__viewport { overflow: visible; margin-top: 0; }
  .works__track { flex-direction: column; gap: 100px; }
  .works .win { flex: none; width: auto; }
  .works__halo, .works__index { display: none; }
}

/* indice 01 / 02 / 03 cliccabile */
.works__steps { display: flex; gap: 4px; }
.works__step { font: inherit; letter-spacing: inherit; color: var(--text-3); background: none; border: 0; padding: 6px 6px; cursor: pointer; border-radius: 6px; transition: color 0.3s var(--ease); }
.works__step:hover, .works__step.on { color: var(--text); }
.works__step:focus-visible { outline: 2px solid var(--ice-rim); outline-offset: 2px; }
@media (max-width: 900px) { .works .win { scroll-snap-stop: always; } }

/* Navigazione: voce attiva, footer, breadcrumb */
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; display: block; height: 1px; margin-top: 3px; background: var(--ice-rim); }
.drawer a[aria-current="page"] { color: var(--text); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.foot__nav a { text-decoration: none; color: var(--text-2); }
.foot__nav a:hover { color: var(--text); }
.crumbs { display: flex; gap: 10px; align-items: center; margin: 0 0 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

/* Pagine interne: intro con risposta diretta */
.page__intro { padding-bottom: clamp(16px, 3vw, 32px); }
.page__intro h1 { font-size: clamp(32px, 4.2vw, 60px); letter-spacing: -0.035em; max-width: 22ch; line-height: 1.05; }
.page__answer { margin-top: 22px; max-width: 64ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--text-2); }
.faq-wrap > h2 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 18px; }

/* Servizi: le 8 aree estese */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.svc-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, var(--plate-hi), var(--plate) 70%); scroll-margin-top: calc(var(--bar-h) + 20px); }
.svc-item .svc__icon > * { stroke-dashoffset: 0; }
.svc-item h2 { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.02em; }
.svc-item p { margin-top: 10px; color: var(--text-2); line-height: 1.6; }
.svc-item .svc-item__lede { color: var(--text); }
.svc-item .more { margin-top: 14px; }
@media (max-width: 900px) { .svc-list { grid-template-columns: 1fr; } .svc-item { grid-template-columns: 1fr; gap: 10px; } }

/* Lavori: filtri e gruppi */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filters button { font: 500 14px/1 var(--sans, inherit); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer; transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease); }
.filters button:hover { color: var(--text); border-color: var(--ice-rim); }
.filters button[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.filters button:focus-visible { outline: 2px solid var(--ice-rim); outline-offset: 2px; }
.wgroup { padding-top: clamp(40px, 6vw, 72px); }
.wgroup:first-child { padding-top: 0; }
.wgroup > h2 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; }
.wgroup__intro { margin: 12px 0 28px; max-width: 70ch; color: var(--text-2); line-height: 1.6; }
.wgroup[hidden] { display: none; }
.works-all .anims--page { margin-top: 0; }

/* Passaggio tra pagine (View Transitions API, cross-document): header fermo, contenuto in leggera dissolvenza */
@view-transition { navigation: auto; }
.bar { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(root) { animation: vt-out 0.22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.services__more { margin-top: 26px; }
.works__head .more { margin-top: 10px; }
.page__intro { padding-top: clamp(40px, 6vw, 84px); }
.drawer a[aria-current="page"] { color: var(--ice-text); }
.drawer a[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); margin-right: 10px; vertical-align: middle; }

/* Senza JavaScript tutto il contenuto resta visibile e fermo (crawler, lettori, connessioni lente) */
html:not(.js) .rv, html:not(.js) .em, html:not(.js) .svc { opacity: 1; transform: none; filter: none; }
html:not(.js) .svc__icon > * { stroke-dashoffset: 0; }
html:not(.js) .close__logo img { opacity: 1; transform: none; }
.case__answer { margin-top: 14px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }
.case__related { margin-top: 22px; color: var(--text-2); }
.case__related a { color: var(--text); }

.sheet .sheet__h { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; color: var(--text-3); margin-bottom: 8px; }

/* Home: chi sono in breve (le FAQ stanno in /chi-sono/) */
.about-teaser__in { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; max-width: 880px; }
.about-teaser__photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.about-teaser h2 { font-size: clamp(24px, 2.4vw, 34px); }
.about-teaser p { margin: 10px 0 14px; color: var(--text-2); line-height: 1.6; max-width: 60ch; }
@media (max-width: 640px) { .about-teaser__in { grid-template-columns: 1fr; } .about-teaser__photo { width: 96px; height: 96px; } }

/* Responsive: quote dell'hero senza descrizione sotto i 900 px; spazio sotto la scena Bacchi sui telefoni */
@media (max-width: 900px) { .tag-q__t { display: none; } }
@media (max-width: 640px) { .eco__scene { margin-bottom: 72px; } }
@media (max-width: 380px) { .eco__phone .phone { --w: 82px; } .svc { padding: 16px 12px; } }
