/* Hallmark · shape: report sheet, the results first, then who, how, proof · genre: editorial · theme: custom · brand: Revna (from revna.it, fetched 2026-10-31) · job: book (an audit gratuito) · idea: "the page reads like the first page of a Revna report: the results on top, the method as the process that produced them" · vibe: "dark, exact, consulting report, warm orange signal"
 * paper: oklch(16.8% 0 0) · accent: oklch(62.1% 0.179 33) · display: Funnel Display (brand face, kept by brand lock) · body: Funnel Sans (brand face) · hero: brand line set large over three real averages in a ruled row · nav: wordmark left, six links, one action · footer: wordmark mast over sedi, contatti, info and company data · imagery: the clients' own photographs in the case studies · signature: +41% / +32% / 50+ set as the first thing on the page
 * axes: dark/grotesk/warm · posture: dark with one warm signal · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: P, the brand line is in English and says little; the averages beside it carry the argument */
/* Hallmark · waive 2b · .phero h1.grad only, the page title · the orange gradient title is how the current revna.it sets every page head, kept on request */
/* Hallmark · dismissed 23 · the orange averages repeat the live revna.it stats row, the one place the brand sets numbers in orange */
/* Hallmark · waive 11 · case photos drift on scroll inside a fixed frame, no hover zoom · Giovanni asked for an immersive, more engaging revna.it */
/* Hallmark · dismissed 58 · the long homepage is the brief: Giovanni wants a page that sells and collects contacts, so it carries a calculator and a three-step form */
/* Hallmark · dismissed 46a · the three averages, the press logos and the case studies are taken from the live revna.it homepage */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1.0625rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-hero: clamp(3rem, 7.2vw + 0.5rem, 7.5rem);
  --text-figure: clamp(3rem, 5vw + 1rem, 5.75rem);
  --text-section: clamp(2rem, 2.6vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1320px; --gutter: 56px; --gap-columns: 32px; --section-gap: 144px;
  --z-sticky-nav: 300;
  --color-paper: oklch(16.8% 0.005 34); --color-paper-2: oklch(20.9% 0.006 34); --color-paper-3: oklch(25.2% 0.007 34);
  --color-ink: oklch(96.7% 0.005 34); --color-ink-2: oklch(87% 0.006 34); --color-muted: oklch(71.5% 0.008 34);
  --color-rule: oklch(30.1% 0.007 34);
  --color-accent: oklch(62.1% 0.179 33); --color-accent-2: oklch(70.9% 0.151 34.1); --color-accent-ink: oklch(16.8% 0.005 34); --color-focus: oklch(70.9% 0.151 34.1);
  --color-glow: oklch(62.1% 0.179 33 / 0.22); --color-mask: oklch(16.8% 0.005 34); --color-mask-clear: oklch(16.8% 0.005 34 / 0); --color-shade: oklch(16.8% 0.005 34 / 0.85); --color-clear: oklch(16.8% 0.005 34 / 0);
  --font-display: "Funnel Display", ui-sans-serif, system-ui, sans-serif; --font-body: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 6px; --radius-pill: 999px; --rule-hair: 1px;
  --tracking-display: -0.025em;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--space-3xl); scrollbar-color: var(--color-paper-3) var(--color-paper); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--tracking-display); line-height: 1.04; font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); text-decoration: none; white-space: nowrap; border: 1px solid var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.link { color: var(--color-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent-2); }
.link:active { color: var(--color-accent); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { position: relative; display: flex; align-items: center; gap: var(--space-xl); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.brand svg.mark { width: 22px; height: auto; }
.brand svg.word { width: 92px; height: auto; }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: var(--space-lg); margin: 0; padding: 0; }
.menu { display: none; min-height: 40px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.menu:hover { border-color: var(--color-muted); }
.menu:active { border-color: var(--color-ink-2); }
.menu:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.nav ul a { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-xs); transition: color var(--dur-short) var(--ease-out); }
.nav ul a:hover { color: var(--color-ink); }
.nav ul a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.nav .btn { min-height: 40px; font-size: var(--text-sm); padding: 0 var(--space-md); }

/* hero */
.hero { position: relative; padding-block: var(--space-3xl) var(--space-2xl); isolation: isolate; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 70vmax; height: 70vmax; max-width: 1100px; max-height: 1100px; background: radial-gradient(circle at center, var(--color-glow), var(--color-clear) 62%); z-index: -1; pointer-events: none; }
.hero h1 { font-size: var(--text-hero); max-width: 11ch; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-xl); margin-top: var(--space-xl); }
.hero-sub p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
.result { padding: var(--space-lg) var(--space-lg) 0 0; }
.result + .result { border-left: var(--rule-hair) solid var(--color-rule); padding-left: var(--space-lg); }
.result strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-figure); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-accent); }
.result span { display: block; margin-top: var(--space-xs); color: var(--color-ink-2); }
.results-note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* press */
.press { border-block: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); }
.press .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.press p { color: var(--color-muted); font-size: var(--text-sm); }
.press ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xl); margin: 0; padding: 0; }
.press img { height: 30px; width: auto; opacity: 0.72; }
.press li:nth-child(1) img { height: 38px; }
.press li:nth-child(2) img { height: 40px; }

/* sections */
section.block { padding-block: var(--section-gap) 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.head h2 { font-size: var(--text-section); }
.head p { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 44ch; }

/* segments */
.segments { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.segments li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.segments h3 { font-size: var(--text-2xl); }
.segments p { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 48ch; }

/* method */
.method { background: var(--color-paper-2); margin-top: var(--section-gap); padding-block: var(--section-gap); }
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: phase; }
.phase { padding: var(--space-xl) var(--space-lg) var(--space-xl) 0; border-top: 2px solid var(--color-rule); position: relative; }
.phase + .phase { padding-left: var(--space-lg); }
.phase::before { content: ""; position: absolute; top: -2px; left: 0; width: 25%; height: 2px; background: var(--color-accent); }
.phase:nth-child(2)::before { width: 50%; } .phase:nth-child(3)::before { width: 75%; } .phase:nth-child(4)::before { width: 100%; }
.phase .n { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--color-accent); line-height: 1; }
.phase h3 { font-size: var(--text-xl); margin-top: var(--space-lg); }
.phase p { color: var(--color-ink-2); margin-top: var(--space-sm); }
.phase .out { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); font-size: var(--text-sm); }
.phase .out b { display: block; color: var(--color-muted); font-weight: 400; }
.method .more { margin-top: var(--space-2xl); }

/* cases */
.cases { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: var(--gap-columns); }
.case { position: relative; display: block; border-radius: var(--radius-card); overflow: hidden; color: var(--color-ink); text-decoration: none; background: var(--color-paper-2); }
.case:first-child { grid-row: span 2; }
.case img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.case:first-child img { aspect-ratio: auto; min-height: 560px; }
.case .cap { position: absolute; inset: auto 0 0 0; padding: var(--space-xl) var(--space-lg) var(--space-lg); background: linear-gradient(to top, var(--color-shade), var(--color-clear)); }
.case h3 { font-size: var(--text-2xl); }
.case .cap p { color: var(--color-ink-2); font-size: var(--text-sm); margin-top: var(--space-2xs); }
.case h3 { transition: color var(--dur-short) var(--ease-out); }
.case:hover h3 { color: var(--color-accent-2); }
.case:active h3 { color: var(--color-accent); }
.case:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.cases-more { margin-top: var(--space-xl); }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap-columns); list-style: none; margin: 0; padding: 0; }
.services a { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.services a strong { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: var(--tracking-display); }
.services a span { color: var(--color-muted); }
.services a:hover strong { color: var(--color-accent-2); }
.services a:active strong { color: var(--color-accent); }
.services a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); list-style: none; margin: 0; padding: 0; }
.posts a { display: block; padding-top: var(--space-lg); border-top: 2px solid var(--color-accent); text-decoration: none; }
.posts span { color: var(--color-muted); font-size: var(--text-sm); }
.posts h3 { font-size: var(--text-title); margin-top: var(--space-sm); line-height: 1.2; transition: color var(--dur-short) var(--ease-out); }
.posts a:hover h3 { color: var(--color-accent-2); }
.posts a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* close */
.close { margin-top: var(--section-gap); padding-block: var(--section-gap); background: radial-gradient(ellipse at 15% 100%, var(--color-glow), var(--color-clear) 60%), var(--color-paper-2); }
.close .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.close h2 { font-size: var(--text-section); }
.close .container { align-items: start; }
.close ul { list-style: none; margin: 0 0 var(--space-xl); padding: 0; }
.close li { font-size: var(--text-lead); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.close .contact { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }

/* footer */
footer { padding-block: var(--space-3xl) var(--space-xl); }
.mast svg { width: min(100%, 520px); height: auto; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.cols h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--color-accent-2); margin-bottom: var(--space-sm); }
.cols p, .cols li { color: var(--color-ink-2); font-size: var(--text-sm); }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.cols a { text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.cols a:hover { color: var(--color-ink); text-decoration: underline; }
.cols a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.news { display: flex; gap: var(--space-xs); margin-top: var(--space-sm); }
.news input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out); }
.news input::placeholder { color: var(--color-muted); }
.news input:hover { border-color: var(--color-muted); }
.news input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-accent); transition: none; }
.news input:user-invalid { border-color: var(--color-error, var(--color-accent)); }
.news .btn { min-height: 44px; font-size: var(--text-sm); padding: 0 var(--space-md); }
.news-msg { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); min-height: 1.4em; }
.legal { margin-top: var(--space-2xl); font-size: var(--text-xs); color: var(--color-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }


/* ---- immersive layer: everything below runs only with html.js, and stops under reduced motion ---- */
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); }
.glow { position: absolute; top: 0; left: 0; width: 896px; height: 896px; border-radius: 50%; background: radial-gradient(circle at center, var(--color-glow), var(--color-clear) 62%); z-index: -1; pointer-events: none; transform: translate3d(70vw, 30vh, 0); will-change: transform; }
.js .hero::before { display: none; }
.js.intro-on .nav { z-index: 950; background: transparent; border-bottom-color: transparent; }
.js.intro-on .hero h1 { opacity: 0; }
.js .hero h1 { transition: opacity 600ms var(--ease-out); }
.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .hero h1.in .w { opacity: 1; transform: none; }
.js .hero-sub, .js .results, .js .results-note { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out) 500ms, transform 700ms var(--ease-out) 500ms; }
.js .hero.in .hero-sub, .js .hero.in .results, .js .hero.in .results-note { opacity: 1; transform: none; }
.marquee { overflow: clip; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, var(--color-mask-clear), var(--color-mask) 12%, var(--color-mask) 88%, var(--color-mask-clear)); mask-image: linear-gradient(90deg, var(--color-mask-clear), var(--color-mask) 12%, var(--color-mask) 88%, var(--color-mask-clear)); }
.marquee ul { flex-wrap: nowrap; width: max-content; padding-right: var(--space-2xl); }
.js .marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .track, .marquee:focus-within .track, .words:hover .track { animation-play-state: paused; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
/* pinned method */
@media (min-width: 64.01rem) {
  .js .method { padding-block: 0; }
  .js .method .pin-wrap { height: 320vh; }
  .js .method .pin { position: sticky; top: 72px; min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-2xl); }
  .js .phase { opacity: 0.28; transition: opacity 500ms var(--ease-out); }
  .js .phase.on { opacity: 1; }
  .js .phase::before { width: 100%; transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
  .js .phase:nth-child(n)::before { width: 100%; }
  .js .phase .n { transform: translateY(var(--lift, 12px)); transition: transform 600ms var(--ease-out); }
  .js .phase.on .n { --lift: 0px; }
}
/* case parallax */
.js .case img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }
/* close: the wordmark rises behind the question list */
.close { position: relative; overflow: clip; isolation: isolate; }
.close .ghost { position: absolute; right: -2%; bottom: -8%; width: 70%; z-index: -1; color: var(--color-paper-3); pointer-events: none; transform: translate3d(0, var(--gy, 0px), 0); }
.close .ghost svg { width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .w, .js .hero-sub, .js .results, .js .results-note, .js .reveal, .js .phase { opacity: 1 !important; transform: none !important; }
  .js .marquee .track { animation: none; }
  .js .case img { transform: none; }
  .glow { display: none; }
  .js .hero::before { display: block; }
}
@media (hover: none) { .glow { display: none; } .js .hero::before { display: block; } }

/* intro: the Revna wordmark is cut out of a solid cover; the page shows through the letters, then we fly through the R into the homepage */
.intro { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.intro svg.cover { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.intro .cover rect.bg { fill: var(--color-paper); }
.intro .cover text.t { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; }
.intro .cover .logo { fill: var(--color-ink); }
.intro .hint { position: absolute; left: 50%; bottom: 6vh; transform: translateX(-50%); display: grid; justify-items: center; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.intro .hint i { display: block; width: 1px; height: 48px; background: var(--color-rule); overflow: clip; position: relative; }
.intro .hint i::after { content: ""; position: absolute; inset: 0; background: var(--color-accent); transform-origin: 50% 0; animation: drip 1600ms var(--ease-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html.intro-lock, html.intro-lock body { overflow: hidden; }


/* sticky CTA on small screens */
.dock { position: fixed; left: var(--space-md); right: var(--space-md); bottom: var(--space-md); z-index: var(--z-sticky-nav); display: none; transform: translateY(140%); transition: transform var(--dur-long) var(--ease-out); }
.dock .btn { width: 100%; }
.dock.show { transform: none; }
@media (max-width: 44rem) { .dock { display: block; } }

/* words band */
.words { overflow: clip; padding-block: var(--space-3xl) 0; }
.words .track { display: flex; width: max-content; align-items: center; gap: var(--space-xl); }
.js .words .track { animation: slide 48s linear infinite; }
.words span { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 8vw, 8rem); letter-spacing: var(--tracking-display); line-height: 1; white-space: nowrap; color: var(--color-ink); }
.words span.o { color: transparent; -webkit-text-stroke: 1px var(--color-muted); }
.words svg { width: clamp(28px, 4vw, 60px); height: auto; color: var(--color-accent); flex: none; }
@media (prefers-reduced-motion: reduce) { .js .words .track { animation: none; } }

/* calculator */
.calc { margin-top: var(--section-gap); }
.calc-box { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; }
.calc-in { padding: var(--space-xl); background: var(--color-paper-2); display: grid; gap: var(--space-lg); align-content: start; }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); display: flex; justify-content: space-between; }
.field output { color: var(--color-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--color-accent); min-height: 32px; cursor: pointer; }
input[type=range]:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc-out { padding: var(--space-xl); display: grid; align-content: space-between; gap: var(--space-xl); position: relative; isolation: isolate; }
.calc-out::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 520px; height: 520px; background: radial-gradient(circle, var(--color-glow), var(--color-clear) 65%); z-index: -1; }
.calc-out .big { font-family: var(--font-display); font-weight: 500; font-size: var(--text-figure); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.calc-out .lab { color: var(--color-ink-2); margin-top: var(--space-xs); }
.calc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.calc-rows b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.calc-rows span { color: var(--color-muted); font-size: var(--text-sm); }
.calc-note { font-size: var(--text-xs); color: var(--color-muted); }
.inline-form { display: flex; gap: var(--space-xs); }
.inline-form input, .lead input, .lead select { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out); }
.inline-form input:hover, .lead input:hover, .lead select:hover { border-color: var(--color-muted); }
.inline-form input:focus-visible, .lead input:focus-visible, .lead select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-accent); transition: none; }
.inline-form input::placeholder, .lead input::placeholder { color: var(--color-muted); }

/* retention */
.stay { margin-top: var(--section-gap); }
.stay .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }
.stay .stay-n { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(6rem, 16vw, 15rem); line-height: 0.85; letter-spacing: -0.04em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.stay p { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 36ch; }
.stay p b { color: var(--color-ink); font-weight: 500; }

/* case results */
.case .res { display: inline-block; margin-top: var(--space-sm); padding: var(--space-2xs) var(--space-sm); border: 1px dashed var(--color-muted); border-radius: var(--radius-pill); font-size: var(--text-xs); color: var(--color-ink-2); }

/* ecosystem */
.eco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); list-style: none; margin: 0; padding: 0; }
.eco li { padding: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); display: grid; gap: var(--space-sm); align-content: start; min-height: 240px; transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.eco li:hover { border-color: var(--color-accent); transform: translateY(-4px); }
.eco h3 { font-size: var(--text-xl); }
.eco p { color: var(--color-ink-2); font-size: var(--text-sm); }
.eco .kind { color: var(--color-accent-2); font-size: var(--text-sm); }

/* lead form */
.lead { display: grid; gap: var(--space-lg); }
.lead fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.lead legend { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-md); padding: 0; }
.lead .step[hidden], .btn[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); color: var(--color-ink-2); transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.chips label:hover span { border-color: var(--color-muted); }
.chips input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lead .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.lead input, .lead select { border-radius: var(--radius-card); width: 100%; }
.lead .nav-steps { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.lead .count { font-size: var(--text-sm); color: var(--color-muted); }
.ghost-btn { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.ghost-btn:hover { background: transparent; border-color: var(--color-muted); }
.alt { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); display: grid; gap: var(--space-2xs); }
.lead-msg { color: var(--color-ink-2); min-height: 1.4em; font-size: var(--text-sm); }


/* 2026 results */
.y26 { margin-top: var(--section-gap); }
.y26-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule-hair) solid var(--color-rule); margin-bottom: var(--space-2xl); }
.y26-top div { padding: var(--space-lg) var(--space-lg) 0 0; }
.y26-top div + div { border-left: var(--rule-hair) solid var(--color-rule); padding-left: var(--space-lg); }
.y26-top b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-3xl); letter-spacing: var(--tracking-display); line-height: 1.05; font-variant-numeric: tabular-nums; }
.y26-top span { display: block; color: var(--color-ink-2); font-size: var(--text-sm); margin-top: var(--space-xs); }
.y26-list { list-style: none; margin: 0; padding: 0; }
.y26-list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.y26-list .pct { font-family: var(--font-display); font-weight: 500; font-size: var(--text-figure); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-accent); font-variant-numeric: tabular-nums; }
.y26-list h3 { font-size: var(--text-xl); }
.y26-list p { color: var(--color-ink-2); }
.y26-note { margin-top: var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); max-width: 80ch; }
/* more motion */
.cursor { position: fixed; top: 0; left: 0; width: 40px; height: 40px; margin: 0; border: 1px solid var(--color-accent); border-radius: 50%; pointer-events: none; z-index: 950; opacity: 0; transition: opacity var(--dur-short) var(--ease-out), scale var(--dur-short) var(--ease-out); }
.cursor.on { opacity: 1; }
.cursor.big { scale: 1.8; }
@media (hover: none), (prefers-reduced-motion: reduce) { .cursor { display: none; } }
.js .scrub .sw { opacity: var(--o, 0.18); transition: opacity 200ms linear; }
.js .stagger li { opacity: 0; transform: translateX(-32px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js .stagger.in li { opacity: 1; transform: none; }
.eco li { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: border-color var(--dur-short) var(--ease-out), transform 300ms var(--ease-out); }
.eco li:hover { --ty: -4px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty)); }
.js .case { clip-path: inset(8% 8% 8% 8% round 12px); transition: clip-path 1100ms var(--ease-out); }
.js .case.in { clip-path: inset(0 0 0 0 round 6px); }
.stay .bar { height: 2px; background: var(--color-rule); margin-bottom: var(--space-lg); overflow: clip; }
.stay .bar i { display: block; height: 100%; width: 70%; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1600ms var(--ease-out); }
.stay.in .bar i { transform: scaleX(1); }
.check { display: flex; gap: var(--space-sm); align-items: flex-start; font-size: var(--text-sm); color: var(--color-ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--color-accent); margin: var(--space-3xs) 0 0; flex: none; }
.check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc-rows-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* band */
.band { margin-top: var(--section-gap); }
.band-pin { position: relative; height: 100vh; display: grid; place-items: center; overflow: clip; }
.band-fig { margin: 0; width: 100%; height: 100%; overflow: clip; transform: scale(var(--bs, 1)); border-radius: var(--br, 0px); }
.band-fig img { width: 100%; height: 100%; object-fit: cover; }
.band-txt { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--space-3xl); max-width: 18ch; font-family: var(--font-display); font-weight: 500; font-size: var(--text-section); line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-ink); text-wrap: balance; opacity: var(--bo, 1); transform: translateY(var(--by, 0px)); text-shadow: 0 2px 30px var(--color-shade); }
@media (min-width: 64.01rem) {
  .js .band-wrap { height: 220vh; }
  .js .band-pin { position: sticky; top: 72px; height: calc(100vh - 72px); }
  .js .band-fig { --bs: 0.5; --br: 24px; }
  .js .band-txt { --bo: 0; --by: 40px; }
  /* horizontal cases */
  .js .hwrap { height: var(--hh, 260vh); }
  .js .hpin { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; align-items: center; overflow: visible; }
  .js .hpin .cases { display: flex; gap: var(--gap-columns); width: max-content; transform: translate3d(var(--hx, 0px), 0, 0); will-change: transform; }
  .js .hpin .case, .js .hpin .case:first-child { width: min(62vw, 900px); flex: none; grid-row: auto; }
  .js .hpin .case img, .js .hpin .case:first-child img { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
}
.case-more { display: grid; place-items: end start; min-height: 320px; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.case-more h3 { font-size: var(--text-2xl); }
.case-more p { color: var(--color-ink-2); margin-top: var(--space-xs); }
.case-more:hover h3 { color: var(--color-accent-2); }
@media (prefers-reduced-motion: reduce) {
  .js .stagger li { opacity: 1; transform: none; }
  .js .case { clip-path: none; }
  .js .scrub .sw { opacity: 1; }
  .eco li { transform: none !important; }
}
/* four square boxes */
.boxes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); perspective: 1200px; }
.box a { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); text-decoration: none; overflow: clip; transition: transform 500ms var(--ease-out); }
.box a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--color-glow), var(--color-clear) 60%); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.box a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent); transform: translateY(101%); transition: transform 650ms cubic-bezier(0.76, 0, 0.24, 1); }
.box a:hover::before, .box a:focus-visible::before { opacity: 1; }
.box a:hover::after, .box a:focus-visible::after { transform: none; }
.box a:hover, .box a:focus-visible { color: var(--color-accent-ink); }
.box a:active { transform: scale(0.98); }
.box a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.box .bn { font-family: var(--font-display); font-size: var(--text-figure); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-accent); transition: color var(--dur-long) var(--ease-out), transform 650ms var(--ease-out); }
.box a:hover .bn, .box a:focus-visible .bn { color: var(--color-accent-ink); transform: translateY(-6px); }
.box h3 { font-size: var(--text-xl); line-height: 1.15; }
.box .bx { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 650ms cubic-bezier(0.76, 0, 0.24, 1); }
.box .bx > * { min-height: 0; overflow: clip; }
.box .bx p { font-size: var(--text-sm); margin-top: var(--space-sm); opacity: 0; transition: opacity 400ms var(--ease-out) 150ms; }
.box .bl { display: block; font-size: var(--text-sm); font-weight: 600; margin-top: var(--space-sm); text-decoration: underline; text-underline-offset: 0.25em; opacity: 0; transition: opacity 400ms var(--ease-out) 250ms; }
.box a:hover .bx, .box a:focus-visible .bx { grid-template-rows: 1fr; }
.box a:hover .bx p, .box a:hover .bl, .box a:focus-visible .bx p, .box a:focus-visible .bl { opacity: 1; }
.js .boxes .box { opacity: 0; transform: translateY(60px) rotateX(18deg); transform-origin: 50% 100%; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.js .boxes.in .box { opacity: 1; transform: none; }
@media (hover: none) { .box .bx { grid-template-rows: 1fr; } .box .bx p, .box .bl { opacity: 1; } }
/* arrows for the horizontal cases */
.arrows { display: none; }
.arr { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); display: grid; place-items: center; cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.arr svg { width: 22px; height: 22px; }
.arr:hover { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); }
.arr:active { transform: scale(0.95); }
.arr:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.arr[disabled] { opacity: 0.35; cursor: not-allowed; }
.cases:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 8px; }
@media (min-width: 64.01rem) {
  .js .hpin { flex-direction: column; justify-content: center; align-items: stretch; gap: var(--space-lg); }
  .js .arrows { display: flex; gap: var(--space-sm); justify-content: flex-end; }
}

@media (max-width: 64rem) { .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) { .boxes { grid-template-columns: minmax(0, 1fr); } .box a { aspect-ratio: auto; min-height: 240px; } }
@media (prefers-reduced-motion: reduce) { .js .boxes .box { opacity: 1; transform: none; } .box a::after, .box .bx { transition: none; } }

@media (max-width: 64rem) { .cases .case-more { grid-column: 1 / -1; min-height: 160px; } .calc-rows-3 { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 64rem) { .y26-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .y26-top div:nth-child(3) { border-left: 0; padding-left: 0; } .y26-list li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); } }

@media (max-width: 64rem) {
  .calc-box, .stay .container { grid-template-columns: minmax(0, 1fr); }
  .eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .eco, .lead .row, .calc-rows { grid-template-columns: minmax(0, 1fr); }
  .inline-form { flex-direction: column; }
  footer { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .eco li:hover { transform: none; } }

@media (max-width: 64rem) {
  .menu { display: inline-flex; align-items: center; }
  .nav nav { order: 3; margin-left: 0; }
  .nav .btn { margin-left: auto; }
  .nav .container { flex-wrap: wrap; gap: var(--space-md); }
  .nav ul { display: none; flex-direction: column; gap: 0; width: 100%; padding-bottom: var(--space-md); }
  .nav ul.open { display: flex; }
  .nav nav { width: 100%; }
  .nav ul a { display: block; padding-block: var(--space-sm); font-size: var(--text-md); border-top: var(--rule-hair) solid var(--color-rule); }
  .head, .segments li, .close .container { grid-template-columns: minmax(0, 1fr); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase:nth-child(3) { padding-left: 0; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 44rem) {
  :root { --gutter: 20px; --section-gap: 88px; --gap-columns: 16px; }
  .results { grid-template-columns: minmax(0, 1fr); }
  .result + .result { border-left: 0; padding-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .result { padding-bottom: var(--space-lg); }
  .phases, .services, .cols { grid-template-columns: minmax(0, 1fr); }
  .phase, .phase + .phase { padding-left: 0; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case:first-child img { min-height: 360px; }
  .brand svg.word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root { --color-veil-55: oklch(16.8% 0.005 34 / 0.55); --color-veil-25: oklch(16.8% 0.005 34 / 0.25); --color-line-soft: oklch(96.7% 0.005 34 / 0.12); --color-shadow: oklch(0% 0 0 / 0.4); --color-glow-soft: oklch(62.1% 0.179 33 / 0.18); --color-er1: oklch(50% 0.17 262); --color-er2: oklch(64% 0.15 258); --color-er-ink: oklch(97% 0.01 250); --color-white: oklch(99% 0.004 250); }
/* ===================== multi-page additions ===================== */
/* mega menus */
.nav .container { position: relative; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--color-paper-2); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); box-shadow: 0 40px 80px var(--color-shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms; z-index: 5; }
.mega.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-xl); padding-block: var(--space-xl); }
.nav .mega-in { display: grid; }
.mg-serv { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.mg-lab { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 var(--space-xs); }
.mg-list { display: grid; }
.mg-t { position: relative; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 20px; padding-left: var(--space-md); gap: var(--space-md); align-items: baseline; padding: var(--space-sm) var(--space-sm); color: var(--color-ink); text-decoration: none; border-top: 1px solid var(--color-rule); border-radius: 0; transition: background-color var(--dur-short) var(--ease-out), padding 300ms var(--ease-out); }
.mg-t:last-child { border-bottom: 1px solid var(--color-rule); }
.mg-t::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--color-accent); transform: scaleY(0); transition: transform 300ms var(--ease-out); }
.mg-t .num { font-size: var(--text-xs); color: var(--color-accent-2); font-variant-numeric: tabular-nums; }
.mg-t b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); transition: color var(--dur-short) var(--ease-out); }
.mg-t .mg-d { font-size: var(--text-sm); color: var(--color-ink-2); line-height: 1.4; }
.mg-ar { color: var(--color-accent-2); opacity: 0; transform: translateX(-6px); transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out); }
.mg-t:hover, .mg-t:focus-visible, .mg-t.on { background: var(--color-paper-3); }
.mg-t.on::before, .mg-t:hover::before { transform: scaleY(1); }
.mg-t:hover b, .mg-t.on b { color: var(--color-accent-2); }
.mg-t.on .mg-ar, .mg-t:hover .mg-ar { opacity: 1; transform: none; }
.mg-t:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.mg-tools { grid-column: 1 / -1; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: var(--space-md); align-items: center; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.mg-tools .mg-lab { margin: 0; padding-right: var(--space-md); }
.mg-tool { display: grid; gap: 2px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); text-decoration: none; transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.mg-tool b { font-family: var(--font-display); font-weight: 500; }
.mg-tool span { font-size: var(--text-xs); color: var(--color-ink-2); }
.mg-tool:hover { border-color: var(--color-accent); background: var(--color-paper-3); }
.mg-tool:hover b { color: var(--color-accent-2); }
.mg-tool:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.mg-side { display: grid; gap: var(--space-sm); align-content: start; }
.mg-prev { display: grid; gap: var(--space-2xs); color: var(--color-ink); text-decoration: none; }
.mg-shot { position: relative; display: block; border-radius: var(--radius-card); overflow: clip; border: 1px solid var(--color-rule); aspect-ratio: 16 / 10; background: var(--color-paper); }
.mg-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 650ms var(--ease-out), transform 1400ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.mg-shot img.on { opacity: 1; transform: scale(1); z-index: 1; }
.mg-prev b, .mg-prev > span:not(.mg-shot) { transition: opacity 250ms var(--ease-out), transform 350ms var(--ease-out); }
.mg-prev.swap b, .mg-prev.swap > span:not(.mg-shot) { opacity: 0; transform: translateY(6px); }
.mg-prev b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin-top: var(--space-xs); }
.mg-prev > span:not(.mg-shot):not(.link) { font-size: var(--text-sm); color: var(--color-ink-2); }
.mg-prev .link { font-size: var(--text-sm); justify-self: start; }
.mb-c:focus-visible, .mg-prev:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.blog-in { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); }
.mb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.mb-c { display: grid; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; align-content: start; }
.mb-img { display: block; border-radius: var(--radius-card); overflow: clip; }
.mb-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 700ms var(--ease-out); }
.mb-c:hover img { transform: scale(1.05); }
.mb-c b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); line-height: 1.25; }
.mb-c:hover b { color: var(--color-accent-2); }
.mb-c > span:last-child { font-size: var(--text-xs); color: var(--color-muted); }
.mb-side { display: grid; gap: var(--space-md); align-content: start; color: var(--color-ink-2); font-size: var(--text-sm); }
.mb-side .btn { justify-self: start; }
.has-mega > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--dur-short) var(--ease-out); }
.has-mega.open > a::after { transform: translateY(0) rotate(-135deg); }
@media (max-width: 64rem) { .mega { display: none; } .has-mega > a::after { display: none; } }
.nav ul a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.5em; }
/* page hero */
.phero { position: relative; min-height: 760px; display: flex; align-items: flex-end; padding-block: var(--space-4xl) var(--space-3xl); }
.phero .container { position: relative; z-index: 2; }
.phero h1 { font-size: clamp(2.75rem, 6vw + 0.5rem, 6.25rem); max-width: 16ch; }
.phero h1.grad { background: linear-gradient(100deg, var(--color-ink) 0%, var(--color-ink) 40%, var(--color-accent-2) 75%, var(--color-accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); margin-top: var(--space-xl); }
.ph-lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 46ch; }
.glass { background: var(--color-veil-55); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--color-line-soft); border-radius: var(--radius-card); padding: var(--space-lg); }
.ph-img { position: absolute; inset: 0; z-index: 0; overflow: clip; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate3d(0, var(--hy, 0px), 0); }
.ph-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--color-paper) 4%, var(--color-veil-55) 45%, var(--color-veil-25)); }
.has-img h1.grad { background: none; color: var(--color-ink); }
.crumb { margin-bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.crumb a { color: inherit; }
canvas.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.inner .glow { z-index: 0; }
/* cta band */
.ctaband-wrap { margin-top: var(--space-3xl); }
.ctaband { position: relative; overflow: clip; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: linear-gradient(110deg, var(--color-paper-2), var(--color-paper-3)); border: 1px solid var(--color-rule); }
.ctaband::before { content: ""; position: absolute; inset: -40% auto -40% -10%; width: 45%; background: radial-gradient(circle, var(--color-glow), var(--color-clear) 70%); z-index: -1; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(160%); } }
.ctaband p { font-family: var(--font-display); font-size: var(--text-xl); max-width: 40ch; line-height: 1.25; }
/* split text */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); }
.lead-xl { font-family: var(--font-display); font-size: clamp(1.5rem, 1.6vw + 1rem, 2.4rem); line-height: 1.2; letter-spacing: -0.015em; }
.split-r { display: grid; gap: var(--space-md); color: var(--color-ink-2); }
.nums { margin-top: var(--space-3xl); }
/* shared box text */
.bn { font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1; color: var(--color-accent); letter-spacing: -0.02em; }
/* 1. flip cards */
.flips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); perspective: 1400px; }
.flip { aspect-ratio: 3 / 4; outline: none; }
.f-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 800ms cubic-bezier(0.76, 0, 0.24, 1); }
.flip:hover .f-in, .flip:focus-visible .f-in, .flip.on .f-in { transform: rotateY(180deg); }
.flip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-card); }
.f-front, .f-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--radius-card); padding: var(--space-lg); display: flex; flex-direction: column; justify-content: space-between; }
.f-front { background: var(--color-paper-2); border: 1px solid var(--color-rule); }
.f-front h3 { font-size: var(--text-xl); }
.f-hint { font-size: var(--text-sm); color: var(--color-muted); }
.f-back { background: var(--color-accent); color: var(--color-accent-ink); transform: rotateY(180deg); justify-content: flex-start; gap: var(--space-md); }
.f-back h3 { font-size: var(--text-lg); }
.f-back p { font-size: var(--text-sm); }
/* 2. bento with spotlight */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); }
.b-card { position: relative; isolation: isolate; overflow: clip; grid-column: span 2; min-height: 240px; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); display: flex; flex-direction: column; gap: var(--space-sm); }
.b-card.b0 { grid-column: span 4; grid-row: span 2; justify-content: flex-end; }
.b-card.b0 h3 { font-size: var(--text-2xl); }
.b-card.b0 .bn { font-size: clamp(4rem, 8vw, 8rem); margin-bottom: auto; }
.b-card.b3 { grid-column: span 3; } .b-card.b4 { grid-column: span 3; }
.b-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; background: radial-gradient(360px circle at var(--mx, -100px) var(--my, -100px), var(--color-accent), var(--color-rule) 45%); -webkit-mask: linear-gradient(var(--color-mask) 0 0) content-box, linear-gradient(var(--color-mask) 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.b-card::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(500px circle at var(--mx, -200px) var(--my, -200px), var(--color-glow), var(--color-clear) 55%); }
.b-card h3 { font-size: var(--text-xl); }
.b-card p { color: var(--color-ink-2); }
/* 3. sticky stacking cards */
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); }
.s-card { position: sticky; top: calc(96px + var(--i) * 18px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: 420px; border-radius: 10px; overflow: clip; background: var(--color-paper-2); border: 1px solid var(--color-rule); box-shadow: 0 -20px 60px var(--color-shadow); transform-origin: 50% 0; transform: scale(var(--sc, 1)); }
.s-txt { padding: var(--space-2xl) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); justify-content: center; }
.s-txt h3 { font-size: var(--text-2xl); }
.s-txt p { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 52ch; }
.s-img { position: relative; }
.s-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-out { font-size: var(--text-md) !important; color: var(--color-ink) !important; padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.s-out b { display: block; color: var(--color-accent-2); font-weight: 500; }
.stack .s-card:not(:has(.s-img)) { grid-template-columns: minmax(0, 1fr); }
/* 4. expanding panels */
.panels { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-sm); height: 480px; }
.pan { position: relative; flex: 1; min-width: 0; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); border: 1px solid var(--color-rule); overflow: clip; display: flex; flex-direction: column; gap: var(--space-md); transition: flex-grow 700ms cubic-bezier(0.76, 0, 0.24, 1), background-color 400ms var(--ease-out), border-color 400ms var(--ease-out); cursor: pointer; outline: none; }
.pan h3 { font-size: var(--text-md); line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; transition: font-size 0s; }
.panels:not(:hover):not(:focus-within) .pan:first-child h3, .pan:hover h3, .pan:focus-visible h3, .pan:focus-within h3 { font-size: var(--text-xl); -webkit-hyphens: manual; hyphens: manual; }
.pan p { color: var(--color-ink-2); }
.js .pan p { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); max-width: 46ch; }
.pan p { max-width: 46ch; }
.panels:not(:hover):not(:focus-within) .pan:first-child, .pan:hover, .pan:focus-visible, .pan:focus-within { flex-grow: 3.2; background: linear-gradient(160deg, var(--color-paper-3), var(--color-paper-2)); border-color: var(--color-accent); }
.js .panels:not(:hover):not(:focus-within) .pan:first-child p, .js .pan:hover p, .js .pan:focus-visible p { opacity: 1; transform: none; transition-delay: 250ms; }
.pan:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
/* 5. rotating gradient border */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.gcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.gc { position: relative; padding: 1px; border-radius: 10px; background: conic-gradient(from var(--ang), var(--color-rule) 0deg, var(--color-accent) 60deg, var(--color-rule) 120deg, var(--color-rule) 360deg); animation: spin 6s linear infinite; animation-play-state: paused; }
.gc:nth-child(2) { animation-delay: -1s; } .gc:nth-child(3) { animation-delay: -2s; } .gc:nth-child(4) { animation-delay: -3s; } .gc:nth-child(5) { animation-delay: -4s; } .gc:nth-child(6) { animation-delay: -5s; }
.gcards.in .gc { animation-play-state: running; }
@keyframes spin { to { --ang: 360deg; } }
.gc-in { height: 100%; border-radius: 9px; background: var(--color-paper); padding: var(--space-xl) var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); transition: background-color 400ms var(--ease-out); }
.gc:hover .gc-in { background: var(--color-paper-2); }
.gc h3 { font-size: var(--text-xl); }
.gc p { color: var(--color-ink-2); }
/* 6. journey */
.journey { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--space-xl); }
.j-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--color-rule); overflow: clip; }
.j-line i { display: block; height: 100%; background: var(--color-accent); transform-origin: 50% 0; transform: scaleY(var(--jp, 0)); }
.j-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.j-dot { grid-column: 2; justify-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-paper); border: 2px solid var(--color-rule); font-family: var(--font-display); color: var(--color-muted); transition: border-color 500ms var(--ease-out), color 500ms var(--ease-out), background-color 500ms var(--ease-out); z-index: 1; }
.j-step.on .j-dot { border-color: var(--color-accent); color: var(--color-accent-ink); background: var(--color-accent); }
.j-box { grid-row: 1; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); border: 1px solid var(--color-rule); opacity: 0.35; transform: translateX(var(--jx, -40px)); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.j-step:nth-child(odd) .j-box { grid-column: 1; }
.j-step:nth-child(even) .j-box { grid-column: 3; --jx: 40px; }
.j-step.on .j-box { opacity: 1; transform: none; }
.j-box h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.j-box p { color: var(--color-ink-2); }
/* 7. tilt + glare */
.tilts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-md); perspective: 1000px; }
.tl { position: relative; overflow: clip; padding: var(--space-xl) var(--space-lg); border-radius: 10px; background: linear-gradient(150deg, var(--color-paper-3), var(--color-paper-2)); border: 1px solid var(--color-rule); display: flex; flex-direction: column; gap: var(--space-sm); min-height: 280px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.tl:hover { border-color: var(--color-accent); }
.tl .bn { font-size: clamp(3.5rem, 6vw, 5.5rem); color: transparent; -webkit-text-stroke: 1px var(--color-accent); margin-bottom: auto; }
.tl h3 { font-size: var(--text-xl); }
.tl p { color: var(--color-ink-2); }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, -40%), var(--color-line-soft), var(--color-clear) 55%); opacity: 0; transition: opacity 300ms var(--ease-out); }
.tl:hover .glare { opacity: 1; }
/* arrows on the pinned method */
.ph-arr { display: none; }
@media (min-width: 64.01rem) { .js .ph-arr { display: flex; justify-content: flex-end; gap: var(--space-sm); margin-bottom: var(--space-md); } }
/* phases without pinning */
.phases.static-ph { list-style: none; margin: 0; padding: 0; }
.big-res b { font-size: clamp(3rem, 5vw + 1rem, 5.5rem) !important; color: var(--color-accent); }
.js .phase.static { opacity: 1; }
.js .phase.static::before { transform: scaleX(1); }
/* cases grid (inner) */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.cgrid.one { grid-template-columns: minmax(0, 1fr); }
.cgrid.one .cg img { aspect-ratio: 21 / 9; }
.cg { position: relative; display: block; overflow: clip; border-radius: var(--radius-card); color: var(--color-ink); text-decoration: none; }
.cg img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--ease-out); }
.cg:hover img { transform: scale(1.06); }
.cg .cap { position: absolute; inset: auto 0 0 0; padding: var(--space-xl) var(--space-lg) var(--space-lg); background: linear-gradient(to top, var(--color-shade), var(--color-clear)); }
.cg h3 { font-size: var(--text-xl); transition: color var(--dur-short) var(--ease-out); }
.cg:hover h3 { color: var(--color-accent-2); }
.cg p { color: var(--color-ink-2); font-size: var(--text-sm); }
.cg:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
/* products */
.prods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-md); }
.prod { position: relative; overflow: clip; isolation: isolate; padding: var(--space-xl) var(--space-lg); border-radius: 12px; display: flex; flex-direction: column; gap: var(--space-sm); min-height: 340px; border: 1px solid var(--color-rule); background: var(--color-paper-2); transition: transform 500ms var(--ease-out); }
.prod:hover { transform: translateY(-6px); }
.prod h3 { font-size: var(--text-2xl); }
.prod p { color: var(--color-ink-2); }
.prod .link { margin-top: auto; }
.prod .kind, .path .kind, .pb .kind, .cs-cap .kind { font-size: var(--text-sm); color: var(--color-accent-2); }
.prod.er { background: linear-gradient(150deg, var(--color-er1), var(--color-er2)); border-color: transparent; }
.prod.er p, .prod.er .kind { color: var(--color-er-ink); }
.prod.er .link { color: var(--color-white); text-decoration-color: var(--color-white); }
.p-logo { width: 150px; height: auto; }
.prod.botp::before, .prod.myp::before { content: ""; position: absolute; inset: auto -30% -50% auto; width: 380px; height: 380px; background: radial-gradient(circle, var(--color-glow), var(--color-clear) 65%); z-index: -1; }
.prod.rsm { background: linear-gradient(160deg, var(--color-paper-3), var(--color-paper)); }
/* Revna Concierge */
.rbot { margin-top: var(--section-gap); }
.rb-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.rb-copy { display: grid; gap: var(--space-lg); }
.rb-tag { color: var(--color-accent-2); font-size: var(--text-sm); }
.rb-copy h2 { font-size: var(--text-section); }
.rb-copy p { color: var(--color-ink-2); font-size: var(--text-lead); }
.rb-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.rb-feats li { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); border: 1px solid var(--color-rule); font-size: var(--text-sm); }
.rb-chat { border-radius: 16px; background: var(--color-paper-2); border: 1px solid var(--color-rule); overflow: clip; box-shadow: 0 40px 120px var(--color-glow-soft); }
.rb-top { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); background: var(--color-accent); color: var(--color-accent-ink); }
.rb-top b { display: block; } .rb-top span { font-size: var(--text-sm); }
.rb-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--color-paper); color: var(--color-accent); font-family: var(--font-display); font-weight: 600; }
.rb-body { padding: var(--space-lg); display: grid; gap: var(--space-md); min-height: 420px; align-content: start; }
.rb-msg { max-width: 80%; padding: var(--space-sm) var(--space-md); border-radius: 14px; font-size: var(--text-sm); }
.rb-msg.me { justify-self: end; background: var(--color-accent); color: var(--color-accent-ink); border-bottom-right-radius: 4px; }
.rb-msg.bot { background: var(--color-paper-3); border-bottom-left-radius: 4px; }
.rb-typing { display: flex; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md); background: var(--color-paper-3); border-radius: 14px; width: max-content; }
.rb-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); animation: blink 1s ease-in-out infinite; }
.rb-typing i:nth-child(2) { animation-delay: 0.15s; } .rb-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.2; transform: translateY(-2px); } }
.rb-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.rb-room { background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: 10px; overflow: clip; font-size: var(--text-xs); display: grid; gap: var(--space-3xs); padding-bottom: var(--space-sm); }
.rb-room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: var(--space-xs); }
.rb-room b, .rb-room > span, .rb-room dl { padding-inline: var(--space-sm); }
.rb-room b { font-size: var(--text-sm); }
.rb-room > span { color: var(--color-muted); }
.rb-room dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3xs) var(--space-xs); margin: var(--space-xs) 0; }
.rb-room dd { margin: 0; font-weight: 600; color: var(--color-ink); }
.rb-room dt { color: var(--color-ink-2); }
.rb-book { margin-inline: var(--space-sm); text-align: center; padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink) !important; font-weight: 600; }
.rb-input { margin: 0 var(--space-lg) var(--space-md); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.rb-note { padding: 0 var(--space-lg) var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
.js .rb-chat .rb-msg, .js .rb-chat .rb-typing, .js .rb-chat .rb-rooms { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .rb-chat .s1 { opacity: 1; transform: none; }
.js .rb-chat .rb-typing.gone { display: none; }
.js .rb-chat .rb-rooms .rb-room { opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.js .rb-chat .rb-rooms.s1 .rb-room { opacity: 1; transform: none; }
.js .rb-chat .rb-rooms.s1 .rb-room:nth-child(2) { transition-delay: 150ms; } .js .rb-chat .rb-rooms.s1 .rb-room:nth-child(3) { transition-delay: 300ms; }
/* quote */
.quote { margin-top: var(--section-gap); }
.quote figure { margin: 0; text-align: center; }
.quote blockquote { margin: 0 auto; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw + 1rem, 4.5rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; }
.quote figcaption { margin-top: var(--space-lg); color: var(--color-accent-2); }
/* academy paths */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.path { padding: var(--space-2xl) var(--space-xl); border-radius: 12px; background: var(--color-paper-2); border: 1px solid var(--color-rule); display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start; }
.path h3 { font-size: var(--text-2xl); }
.path p { color: var(--color-ink-2); }
.path .btn { margin-top: auto; }
.path.hot { background: radial-gradient(ellipse at 100% 100%, var(--color-glow), var(--color-clear) 60%), var(--color-paper-2); border-color: var(--color-accent); }
/* cases stacked list */
.cstack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); }
.cs-card { position: sticky; top: calc(90px + var(--i) * 14px); }
.cs-card a { position: relative; display: block; height: min(78vh, 720px); border-radius: 14px; overflow: clip; color: var(--color-ink); text-decoration: none; box-shadow: 0 -30px 80px var(--color-shadow); transform-origin: 50% 0; transform: scale(var(--sc, 1)); }
.cs-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.cs-card a:hover img { transform: scale(1.04); }
.cs-cap { position: absolute; left: var(--space-xl); bottom: var(--space-xl); max-width: 520px; display: grid; gap: var(--space-xs); }
.cs-cap h3 { font-size: var(--text-section); }
.cs-cap p { color: var(--color-ink-2); }
.cs-card a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
/* case page */
.case-hero { min-height: 860px; }
.gal { position: relative; }
.gal-track { display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; outline: none; padding-bottom: var(--space-xs); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.gal-track figure { margin: 0; flex: 0 0 min(64vw, 820px); scroll-snap-align: start; border-radius: 10px; overflow: clip; }
.gal-track img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; pointer-events: none; }
.gal-arr { display: flex !important; justify-content: flex-end; gap: var(--space-sm); margin-top: var(--space-md); }
.did { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-md); }
.d-card { padding: var(--space-xl) var(--space-lg); border-radius: 10px; background: var(--color-paper-2); border: 1px solid var(--color-rule); display: flex; flex-direction: column; gap: var(--space-sm); transition: border-color 400ms var(--ease-out), transform 500ms var(--ease-out); }
.d-card:hover { border-color: var(--color-accent); transform: translateY(-6px); }
.d-card h3 { font-size: var(--text-xl); }
.d-card p { color: var(--color-ink-2); }
.concl { margin-top: var(--space-2xl); font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.35; max-width: 60ch; color: var(--color-ink-2); }
.nextcase { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-xl); padding: var(--space-xl); border-radius: 14px; background: var(--color-paper-2); border: 1px solid var(--color-rule); color: var(--color-ink); text-decoration: none; overflow: clip; }
.nextcase span { color: var(--color-accent-2); font-size: var(--text-sm); grid-column: 1; }
.nextcase b { grid-column: 1; font-family: var(--font-display); font-weight: 500; font-size: var(--text-section); line-height: 1.05; }
.nextcase img { grid-column: 2; grid-row: 1 / span 2; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; transition: transform 900ms var(--ease-out); }
.nextcase:hover img { transform: scale(1.05); }
.nextcase:hover b { color: var(--color-accent-2); }
.nextcase:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
/* blog */
.posts-big { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.pb a { display: grid; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.pb-img { overflow: clip; border-radius: 10px; }
.pb-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 900ms var(--ease-out); }
.pb a:hover img { transform: scale(1.06); }
.pb h3 { font-size: var(--text-xl); line-height: 1.2; transition: color var(--dur-short) var(--ease-out); }
.pb a:hover h3 { color: var(--color-accent-2); }
.pb p { color: var(--color-ink-2); font-size: var(--text-sm); }
.pb a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
/* careers form */
.job { max-width: 880px; gap: var(--space-xl); }
.job legend { font-size: var(--text-lg); }
.job textarea { width: 100%; padding: var(--space-md); border-radius: var(--radius-card); border: 1px solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); resize: vertical; }
.job textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.file { position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-card); border: 1px dashed var(--color-muted); color: var(--color-ink-2); cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-2xl); }
.contacts > div { padding: var(--space-lg); border-radius: 10px; background: var(--color-paper-2); border: 1px solid var(--color-rule); }
.contacts h3 { font-size: var(--text-lg); color: var(--color-accent-2); margin-bottom: var(--space-sm); }
.contacts p { color: var(--color-ink-2); }
@media (max-width: 64rem) {
  .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-card, .b-card.b0, .b-card.b3, .b-card.b4 { grid-column: span 2; grid-row: auto; }
  .s-card { grid-template-columns: minmax(0, 1fr); }
  .s-img { min-height: 220px; }
  .panels { flex-direction: column; height: auto; }
  .js .pan p { opacity: 1; transform: none; }
  .gcards, .cgrid, .posts-big, .contacts { grid-template-columns: minmax(0, 1fr); }
  .rb-grid, .split, .paths, .nextcase { grid-template-columns: minmax(0, 1fr); }
  .nextcase img { grid-column: 1; grid-row: auto; }
  .j-line { left: 28px; }
  .j-step { grid-template-columns: 64px minmax(0, 1fr); }
  .j-dot { grid-column: 1; }
  .j-step:nth-child(odd) .j-box, .j-step:nth-child(even) .j-box { grid-column: 2; --jx: 30px; }
  .cs-card a { height: 64vh; }
}
@media (max-width: 44rem) {
  .flips { grid-template-columns: minmax(0, 1fr); }
  .flip { aspect-ratio: auto; height: 280px; }
  .rb-rooms { grid-template-columns: minmax(0, 1fr); }
  .rb-room img { aspect-ratio: 16 / 7; }
  .rb-feats { grid-template-columns: minmax(0, 1fr); }
  .cs-cap { left: var(--space-md); right: var(--space-md); bottom: var(--space-md); }
  .phero { min-height: 600px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctaband::before, .gc { animation: none; }
  .j-box { opacity: 1; transform: none; }
  .js .rb-chat .rb-msg, .js .rb-chat .rb-typing, .js .rb-chat .rb-rooms, .js .rb-chat .rb-rooms .rb-room { opacity: 1; transform: none; }
  .f-in { transition: none; }
}

/* MyRevna */
.myr { margin-top: var(--section-gap); }
.myr-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.myr-copy { display: grid; gap: var(--space-lg); }
.myr-copy h2 { font-size: var(--text-section); }
.myr-lead { color: var(--color-ink-2); font-size: var(--text-lead); }
.myr-note { color: var(--color-muted); font-size: var(--text-sm); }
.mr-tabs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.mr-tab { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-md); align-items: start; padding: var(--space-md); border: 1px solid var(--color-rule); background: var(--color-paper-2); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.mr-tab b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-ink); }
.mr-tab span span { display: block; max-height: 0; overflow: hidden; opacity: 0; color: var(--color-ink-2); font-size: var(--text-sm); transition: max-height 500ms var(--ease-out), opacity 400ms var(--ease-out), margin 400ms var(--ease-out); }
.mr-tab.on { background: var(--color-paper-3); border-color: var(--color-accent); }
.mr-tab.on span span { max-height: 140px; opacity: 1; margin-top: var(--space-2xs); }
.mr-tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.mr-ic { width: 40px; height: 40px; display: grid; place-items: center; color: var(--color-muted); }
.mr-tab.on .mr-ic { color: var(--color-accent); }
.mr-ic svg, .mr-bi svg, .mr-item i svg { width: 22px; height: 22px; }
.mr-stage { position: sticky; top: 110px; display: grid; justify-items: center; gap: var(--space-sm); }
.mr-stage::before { content: ""; position: absolute; inset: 10% 0 auto; height: 70%; background: radial-gradient(circle, var(--color-glow), var(--color-clear) 65%); z-index: -1; }
.mr-phone { width: 330px; height: 670px; border-radius: 46px; padding: 14px; background: var(--color-paper); border: 1px solid var(--color-rule); box-shadow: 0 40px 120px var(--color-glow-soft), inset 0 0 0 6px var(--color-paper-2); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: clip; font-size: 13px; }
.mr-top { display: flex; align-items: center; gap: 10px; padding: 18px 12px 10px; }
.mr-mn { width: 30px; height: 30px; display: grid; place-items: center; background: var(--color-paper-2); color: var(--color-ink-2); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.mr-top b { display: block; font-family: var(--font-display); font-size: 15px; }
.mr-top span span { display: block; color: var(--color-muted); font-size: 11px; }
.mr-view { position: relative; overflow: clip; }
.mr-scr { position: absolute; inset: 0; padding: 8px 12px; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(14px); transition: opacity 450ms var(--ease-out), transform 550ms var(--ease-out); pointer-events: none; }
.mr-scr.on { opacity: 1; transform: none; }
.mr-hero { display: grid; gap: 6px; }
.mr-hero b { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.mr-hero > span:last-child { color: var(--color-muted); font-size: 12px; }
.mr-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--color-accent); color: var(--color-paper); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); box-shadow: 0 0 40px var(--color-glow); }
.mr-mark svg { width: 26px; height: 26px; }
.mr-q { justify-self: end; max-width: 85%; padding: 8px 12px; background: var(--color-accent); color: var(--color-accent-ink); border-radius: 12px 12px 4px 12px; }
.mr-a { max-width: 92%; padding: 10px 12px; background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: 12px 12px 12px 4px; color: var(--color-ink-2); line-height: 1.45; }
.mr-in { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--color-paper-2); color: var(--color-muted); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.mr-in i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; background: var(--color-paper-3); }
.mr-h { font-family: var(--font-display); font-size: 22px; }
.mr-sub { color: var(--color-muted); margin-top: -6px; }
.mr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mr-stats span, .mr-card, .mr-item, .mr-post { background: var(--color-paper-2); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.mr-stats span { padding: 10px 12px; color: var(--color-muted); font-size: 11px; }
.mr-stats b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--color-ink); }
.mr-stats b.acc { color: var(--color-accent); }
.mr-card { padding: 10px 12px; display: grid; gap: 2px; }
.mr-lab { letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); font-size: 10px; margin-bottom: 4px; }
.mr-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid var(--color-rule); font-size: 11.5px; }
.mr-row span:first-child { color: var(--color-muted); }
.mr-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 12px; align-items: start; }
.mr-item i { color: var(--color-accent); }
.mr-item i.dot { width: 8px; height: 8px; margin: 5px 8px; border-radius: 50%; background: var(--color-accent); }
.mr-item b { display: block; color: var(--color-ink); }
.mr-item span { color: var(--color-muted); font-size: 11.5px; }
.mr-post { display: grid; gap: 8px; padding-bottom: 10px; }
.mr-post img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.mr-post b { padding-inline: 12px; font-size: 12.5px; line-height: 1.3; }
.mr-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--color-rule); padding: 8px 2px 6px; }
.mr-bi { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--color-muted); transition: color 300ms var(--ease-out), background-color 300ms var(--ease-out); }
.mr-bi em { font-style: normal; font-size: 9.5px; }
.mr-bi.on { color: var(--color-accent); background: var(--color-paper-2); }
.mr-cap { font-size: var(--text-xs); color: var(--color-muted); }
@media (max-width: 960px) {
  .myr-grid { grid-template-columns: minmax(0, 1fr); }
  .mr-stage { position: relative; top: 0; }
}
@media (max-width: 400px) { .mr-phone { width: 300px; height: 620px; } }

.blog-more { margin-top: var(--space-xl); }

.eco.eco5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.eco5 li { padding: 0; }
.eco5 a { display: grid; gap: var(--space-sm); align-content: start; height: 100%; padding: var(--space-lg); color: var(--color-ink); text-decoration: none; }
.eco5 a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-card); }
@media (max-width: 1180px) { .eco.eco5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .eco.eco5 { grid-template-columns: minmax(0, 1fr); } .eco5 li { min-height: 0; } }

/* home: team and testimonial (placeholders until photos and bios arrive) */
.tm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-md); }
.tm { display: grid; gap: var(--space-3xs); }
.tm-photo { aspect-ratio: 4 / 5; border-radius: var(--radius-card); border: 1px dashed var(--color-rule); background: var(--color-paper-2); display: grid; place-items: center; margin-bottom: var(--space-xs); }
.tm-photo span { font-size: var(--text-xs); color: var(--color-muted); }
.tm b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); }
.tm > span:last-child { font-size: var(--text-sm); color: var(--color-ink-2); }
.tm-quote { position: relative; margin: var(--space-2xl) 0 0; padding: var(--space-2xl); border: 1px dashed var(--color-rule); border-radius: var(--radius-card); display: grid; gap: var(--space-md); }
.tm-quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.25; color: var(--color-ink-2); max-width: 40ch; }
.tm-quote figcaption { color: var(--color-muted); font-size: var(--text-sm); }
.tm-ph { position: absolute; top: var(--space-md); right: var(--space-md); font-size: var(--text-xs); color: var(--color-accent-2); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-sm); }
@media (max-width: 1100px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tm-quote { padding: var(--space-xl) var(--space-lg); padding-top: var(--space-2xl); } }

/* team: chi siamo */
.tp-group { margin: 0 0 var(--space-2xl); border-radius: var(--radius-card); overflow: clip; border: 1px solid var(--color-rule); }
.tp-group img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; }
.tp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); }
.tp { display: grid; gap: var(--space-md); align-content: start; }
.tp-ph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-card); overflow: clip; background: radial-gradient(ellipse at 30% 20%, var(--color-glow), var(--color-clear) 70%), var(--color-paper-2); border: 1px solid var(--color-rule); display: grid; place-items: center; }
.tp-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25); transition: transform 900ms var(--ease-out), filter 600ms var(--ease-out); }
.tp:hover .tp-ph img, .tp-partner:hover .tp-ph img { transform: scale(1.04); filter: none; }
.tp-ini { font-family: var(--font-display); font-size: var(--text-section); color: var(--color-accent-2); opacity: 0.85; }
.tp h3 { font-size: var(--text-xl); }
.tp .kind, .tp-partner .kind { color: var(--color-accent-2); font-size: var(--text-sm); margin-top: var(--space-3xs); }
.tp-tx p:last-child { color: var(--color-ink-2); font-size: var(--text-sm); margin-top: var(--space-xs); line-height: 1.55; }
.tp-partner { margin-top: var(--space-2xl); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-xl); align-items: center; padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); }
.tp-ph.sm .tp-ini { font-size: var(--text-2xl); }
.tp-lab { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-2xs); }
.tp-partner h3 { font-size: var(--text-xl); }
.tp-partner p:last-child { color: var(--color-ink-2); font-size: var(--text-sm); margin-top: var(--space-xs); max-width: 60ch; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tm-photo .tp-ini { font-size: var(--text-2xl); }
.tm-photo { border-style: solid; overflow: clip; }
.tm { align-content: start; }
.tm-quote { border-style: solid; background: radial-gradient(ellipse at 0% 0%, var(--color-glow-soft), var(--color-clear) 60%), var(--color-paper-2); }
.tm-quote blockquote { color: var(--color-ink); }
.team .more { margin-top: var(--space-lg); }
@media (max-width: 1000px) { .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tp-grid { grid-template-columns: minmax(0, 1fr); } .tp-partner { grid-template-columns: 1fr; } .tp-partner .tp-ph { max-width: 200px; } }

/* ===================== touch / small screens ===================== */
@media (max-width: 64rem), (hover: none) {
  /* boxes in home: the orange fill rises when the card reaches the middle of the screen */
  .box a.act::after { transform: none; }
  .box a.act { color: var(--color-accent-ink); }
  .box a.act::before { opacity: 1; }
  /* bento: the spotlight follows the scroll */
  .b-card.act { --mx: var(--sx, 50%); --my: 40%; }
  .b-card::before { background: radial-gradient(260px circle at var(--mx, -100px) var(--my, -100px), var(--color-accent), var(--color-rule) 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
  /* flip cards turn once in the middle of the screen; tap turns them back */
  .flip.act .f-in { transform: rotateY(180deg); }
  .flip.act.on .f-in { transform: none; }
  /* tilt cards lean with the scroll, glare on */
  .tl { transform: perspective(900px) rotateX(var(--rx, 0deg)); transition: transform 200ms linear, border-color 400ms var(--ease-out); }
  .tl.act { border-color: var(--color-accent); }
  .tl.act .glare { opacity: 1; }
  /* panels: the one in the middle opens up */
  .pan { transition: background-color 500ms var(--ease-out), border-color 500ms var(--ease-out), transform 500ms var(--ease-out); }
  .pan.act { background: linear-gradient(160deg, var(--color-paper-3), var(--color-paper-2)); border-color: var(--color-accent); transform: scale(1.02); }
  .pan.act h3 { color: var(--color-accent-2); }
  /* method phases light up one at a time */
  .js .phase { opacity: 0.35; transition: opacity 500ms var(--ease-out); }
  .js .phase.act { opacity: 1; }
  .js .phase::before { transform-origin: 0 50%; transform: scaleX(0); transition: transform 700ms var(--ease-out); }
  .js .phase.act::before { transform: none; }
  /* products, tools, team: lift and accent */
  .prod, .eco li, .tp-ph, .gc, .mr-tab, .cg, .pb a { transition: transform 600ms var(--ease-out), border-color 500ms var(--ease-out), box-shadow 600ms var(--ease-out); }
  .prod.act, .eco li.act { transform: translateY(-6px); border-color: var(--color-accent); }
  .tp.act .tp-ph img { filter: none; transform: scale(1.04); }
  /* home cases: swipe sideways */
  .hwrap .cases { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-md); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .hwrap .cases::-webkit-scrollbar { display: none; }
  .hwrap .case, .hwrap .case:first-child { flex: 0 0 84%; scroll-snap-align: start; grid-row: auto; }
  .hwrap .case img { aspect-ratio: 4 / 5; height: auto; min-height: 0; }
  .hwrap .case-more { min-height: 0; aspect-ratio: 4 / 5; }
  .hwrap .arrows { display: flex; gap: var(--space-sm); justify-content: flex-end; margin-bottom: var(--space-md); }
  .case img { transform: none !important; }
  .case.act img { transform: scale(1.06) !important; transition: transform 1200ms var(--ease-out); }
  /* MyRevna and Concierge: title, then the graphic, then the text */
  .myr-copy, .rb-copy { display: contents; }
  .myr-grid, .rb-grid { display: flex; flex-direction: column; gap: var(--space-lg); }
  .myr-copy h2, .rb-copy h2 { order: 1; }
  .mr-stage { order: 2; position: relative; top: 0; margin-block: var(--space-sm); align-self: center; }
  .myr-lead { order: 3; }
  .mr-tabs { order: 4; }
  .myr-note { order: 5; }
  .myr-copy .actions { order: 6; }
  .rb-chat { order: 2; align-self: stretch; }
  .rb-copy p { order: 3; }
  .rb-feats { order: 4; }
  .rb-copy .actions { order: 5; }
  .rb-tag { order: 0; }
}
@media (max-width: 400px) { .mr-phone { width: 290px; height: 600px; } }
@media (prefers-reduced-motion: reduce) { .tl { transform: none; } .flip.act .f-in { transform: none; } .pan.act { transform: none; } }

/* mobile menu: Soluzioni and Blog open in place with previews */
.msub { display: none; }
@media (max-width: 64rem) {
  .nav ul.open { max-height: calc(100dvh - 88px); overflow-y: auto; overscroll-behavior: contain; }
  .has-mega > a { display: flex !important; justify-content: space-between; align-items: center; }
  .has-mega > a::after { content: ""; display: inline-block !important; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 300ms var(--ease-out); margin-right: 4px; }
  .has-mega.mopen > a::after { transform: rotate(-135deg) translateY(-2px); }
  .has-mega.mopen > a { color: var(--color-accent-2); }
  .msub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease-out); }
  .has-mega.mopen .msub { grid-template-rows: 1fr; }
  .msub-in { overflow: hidden; min-height: 0; display: grid; gap: var(--space-2xs); }
  .has-mega.mopen .msub-in { padding-bottom: var(--space-md); }
  .ms-lab { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); margin: var(--space-sm) 0 var(--space-3xs); }
  .nav ul .ms-row { display: grid !important; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-sm); align-items: center; padding: var(--space-2xs) !important; border: 1px solid var(--color-rule) !important; border-radius: var(--radius-card); background: var(--color-paper-2); font-size: var(--text-sm) !important; opacity: 0; transform: translateY(8px); transition: opacity 350ms var(--ease-out), transform 400ms var(--ease-out), border-color 300ms var(--ease-out); }
  .has-mega.mopen .ms-row { opacity: 1; transform: none; }
  .has-mega.mopen .ms-row:nth-child(2) { transition-delay: 40ms; } .has-mega.mopen .ms-row:nth-child(3) { transition-delay: 80ms; } .has-mega.mopen .ms-row:nth-child(4) { transition-delay: 120ms; } .has-mega.mopen .ms-row:nth-child(5) { transition-delay: 160ms; } .has-mega.mopen .ms-row:nth-child(6) { transition-delay: 200ms; } .has-mega.mopen .ms-row:nth-child(7) { transition-delay: 240ms; } .has-mega.mopen .ms-row:nth-child(8) { transition-delay: 280ms; }
  .ms-row img { width: 88px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; }
  .ms-row b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); line-height: 1.2; }
  .ms-row > span > span { display: block; color: var(--color-ink-2); font-size: var(--text-xs); line-height: 1.35; margin-top: 2px; }
  .ms-post b { font-size: var(--text-sm); }
  .ms-row:active { border-color: var(--color-accent) !important; }
  .ms-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
  .nav ul .ms-chip { display: inline-block !important; padding: var(--space-2xs) var(--space-sm) !important; border: 1px solid var(--color-rule) !important; border-radius: var(--radius-pill); font-size: var(--text-sm) !important; }
  .nav ul .ms-all { border-top: 0 !important; color: var(--color-accent-2); font-size: var(--text-sm) !important; }
}
@media (prefers-reduced-motion: reduce) { .msub, .ms-row { transition: none !important; } }

.ppair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.ppair figure { margin: 0; display: grid; gap: var(--space-sm); }
.ppair figure:nth-child(2) { margin-top: var(--space-3xl); }
.ppair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); border: 1px solid var(--color-rule); transition: transform 900ms var(--ease-out); }
.ppair figure:hover img { transform: scale(1.02); }
.ppair figcaption { color: var(--color-ink-2); font-size: var(--text-sm); }
@media (max-width: 760px) { .ppair { grid-template-columns: minmax(0, 1fr); } .ppair figure:nth-child(2) { margin-top: 0; } }

/* home: first screen like the current revna.it */
.h-live { padding-top: 0; }
.h-live::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background-image: radial-gradient(circle, var(--color-rule) 1.1px, var(--color-clear) 1.6px); background-size: 30px 30px; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 70%, transparent 100%); }
.h-stage { position: relative; min-height: calc(100svh - 72px); display: grid; place-items: center; text-align: center; }
.h-live .h-stage h1 { max-width: none; font-size: clamp(3.2rem, 9.4vw, 9.6rem); line-height: 1; letter-spacing: -0.035em; background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
@media (min-width: 900px) { .h-live .h-stage h1 { font-size: min(calc((100vw - 112px) * 0.09), 110px); white-space: nowrap; } }
.h-live .h-stage h1 .w { background: inherit; -webkit-background-clip: text; background-clip: text; }
.h-badge { position: absolute; bottom: var(--space-xl); display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-ink-2); }
.h-badge svg { width: 22px; height: 22px; color: var(--color-accent); flex: none; }
.h-badge span { display: grid; line-height: 1.35; text-align: left; }
.h-badge b { color: var(--color-ink); font-weight: 500; }
.h-l { left: 0; } .h-r { right: 0; }
.h-r b { color: var(--color-accent-2); }
.h-down { position: absolute; left: 50%; bottom: var(--space-xl); transform: translateX(-50%); width: 1px; height: 56px; background: var(--color-rule); overflow: clip; }
.h-down i { position: absolute; inset: 0; background: var(--color-accent); transform-origin: 50% 0; animation: drip 1600ms var(--ease-out) infinite; }
.h-live .hero-sub { margin-top: var(--space-lg); }
@media (max-width: 44rem) { .h-stage { min-height: calc(92svh - 64px); } .h-badge { bottom: var(--space-lg); } .h-down { display: none; } }

#team + .press { margin-top: var(--section-gap); }

/* home: first screen fits one viewport, interactive dot grid */
.h-live::after { content: none; }
.h-dots { position: absolute; left: 0; top: 0; z-index: -2; pointer-events: none; }
@media (min-width: 900px) and (min-height: 540px) {
  .h-live { padding-bottom: 0; }
  .h-live > .container { min-height: calc(100svh - 72px); display: flex; flex-direction: column; padding-bottom: var(--space-lg); }
  .h-live .h-stage { flex: 1 1 auto; min-height: 0; padding: var(--space-lg) 0 72px; }
  .h-live .h-badge, .h-live .h-down { bottom: 0; }
  .h-live .h-down { display: none; }
  .h-live .hero-sub { margin-top: var(--space-lg); align-items: center; }
  .h-live .hero-sub p { font-size: clamp(1.05rem, 2.2vh, 1.35rem); }
  .h-live .results { margin-top: var(--space-lg); }
  .h-live .result { padding-top: var(--space-md); }
  .h-live .result strong { font-size: clamp(2.4rem, 7vh, 4.6rem); }
  .h-live .result span { margin-top: 4px; }
  .h-live .results-note { margin-top: var(--space-sm); }
}
@media (max-width: 899px) { .h-live .h-stage { min-height: calc(62svh - 64px); } .h-live .result strong { font-size: clamp(2.4rem, 11vw, 3.4rem); } }

/* home results: 300+ alone, the two increments share one note */
.results.r-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.r-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: var(--rule-hair) solid var(--color-rule); }
.r-pair .result:first-child { padding-left: var(--space-lg); }
.r-pair .result + .result { border-left: var(--rule-hair) solid var(--color-rule); }
.r-note { grid-column: 1 / -1; padding: var(--space-sm) 0 0 var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.r-note::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--color-accent); vertical-align: middle; margin-right: 10px; }
.js .hero .r-split { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out) 500ms, transform 700ms var(--ease-out) 500ms; }
.js .hero.in .r-split { opacity: 1; transform: none; }
@media (max-width: 44rem) {
  .results.r-split { grid-template-columns: minmax(0, 1fr); }
  .r-split > .result { padding-bottom: var(--space-md); }
  .r-pair { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .r-pair .result:first-child { padding-left: 0; }
  .r-note { padding-left: 0; }
}

/* home: statement opening the results section */
.say { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: var(--tracking-display); color: var(--color-ink); margin-bottom: var(--space-2xl); }
.say span { display: block; }
.say .say-a { background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* home: areas band, words fill left to right as they rise through the screen */
.wstack { padding-block: var(--section-gap) 0; }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(0.2rem, 1vw, 0.8rem); }
.ws-list li { display: flex; align-items: baseline; gap: clamp(0.8rem, 2vw, 1.6rem); --f: 1; }
.ws-n { font-size: var(--text-sm); color: var(--color-accent); font-variant-numeric: tabular-nums; min-width: 2ch; opacity: calc(0.35 + var(--f) * 0.65); }
.ws-w { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 7.2vw, 7.4rem); line-height: 1.02; letter-spacing: var(--tracking-display); color: transparent; -webkit-text-stroke: 1px var(--color-muted); background: linear-gradient(90deg, var(--color-ink) 0, var(--color-ink) calc(var(--f) * 100%), transparent calc(var(--f) * 100%)); -webkit-background-clip: text; background-clip: text; }
.ws-list li.now .ws-w { background-image: linear-gradient(90deg, var(--color-accent-2) 0, var(--color-accent) calc(var(--f) * 100%), transparent calc(var(--f) * 100%)); }
.js .ws-list li { --f: 0; }
@media (prefers-reduced-motion: reduce) { .js .ws-list li { --f: 1; } }

/* home: tools showcase */
.tsc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.tl-nav { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.tl-nav li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.tl-b { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; gap: 4px; width: 100%; padding: var(--space-md) var(--space-sm) var(--space-md) 0; transition: padding 400ms var(--ease-out); }
.tl-b b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; color: var(--color-muted); transition: color 300ms var(--ease-out); }
.tl-k { font-size: var(--text-sm); color: var(--color-accent-2); }
.tl-b i { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; }
.tl-b:hover b, .tl-b.on b { color: var(--color-ink); }
.tl-b.on { padding-left: var(--space-md); }
.tl-b.on i { transform: scaleX(1); }
.tsc.auto .tl-b.on i { animation: tlbar var(--tl-dur, 6000ms) linear both; }
@keyframes tlbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tl-b:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tl-stage { display: grid; }
.tl-pane { grid-area: 1 / 1; display: grid; gap: var(--space-lg); }
.js .tl-pane { opacity: 0; visibility: hidden; transition: opacity 350ms var(--ease-out), visibility 0s 350ms; }
.js .tl-pane.on { opacity: 1; visibility: visible; transition: opacity 350ms var(--ease-out); }
.tl-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: hidden; border: var(--rule-hair) solid var(--color-rule); background: radial-gradient(120% 90% at 70% 110%, var(--color-glow), transparent 60%), #151210; }
.tl-media img { position: absolute; transition: transform 1200ms var(--ease-out), opacity 700ms var(--ease-out); }
.tl-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.tl-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 8, 0.45), transparent 55%); }
.tl-logo img { inset: 22% 18%; width: 64%; height: 56%; object-fit: contain; transform: translateY(14px); opacity: 0; }
.tl-mock img { left: 50%; bottom: -18%; width: auto; height: 108%; max-width: 82%; object-fit: contain; transform: translate(-50%, 16%); opacity: 0; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.tl-pane.on .tl-photo img { transform: scale(1); }
.tl-pane.on .tl-logo img { transform: none; opacity: 1; }
.tl-pane.on .tl-mock img { transform: translate(-50%, 0); opacity: 1; }
.tl-media:hover img { transition-duration: 600ms; }
.tl-pane.on .tl-media:hover.tl-photo img { transform: scale(1.03); }
.tl-pane.on .tl-media:hover.tl-mock img { transform: translate(-50%, -3%); }
.tl-txt { display: grid; gap: var(--space-xs); justify-items: start; max-width: 52ch; }
.tl-txt h3 { font-size: var(--text-xl); }
.tl-txt p { color: var(--color-ink-2); }
.tl-txt .link { margin-top: var(--space-xs); }
@media (max-width: 899px) {
  .tsc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl-nav { display: none; }
  .tl-stage { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter, 20px) * -1); padding-inline: var(--gutter, 20px); }
  .tl-stage::-webkit-scrollbar { display: none; }
  .tl-pane { grid-area: auto; scroll-snap-align: start; }
  .js .tl-pane, .js .tl-pane.on { opacity: 1; visibility: visible; }
  .tl-pane .tl-media img { transform: none !important; opacity: 1 !important; }
  .tl-pane .tl-mock img { transform: translate(-50%, 0) !important; }
  .tl-txt h3 { font-size: var(--text-lg); }
}
@media (prefers-reduced-motion: reduce) { .tl-media img { transition: none; } .tsc.auto .tl-b.on i { animation: none; transform: scaleX(1); } }

/* MyRevna and Revna Concierge boxes, set up like the EasyRevenue one */
.prod.myp { background: linear-gradient(150deg, oklch(52% 0.17 32), oklch(66% 0.16 44)); border-color: transparent; }
.prod.botp { background: linear-gradient(150deg, oklch(30% 0.08 25), oklch(44% 0.13 32)); border-color: transparent; }
.prod.myp::before, .prod.botp::before { content: none; }
.prod.myp p, .prod.myp .kind, .prod.botp p, .prod.botp .kind { color: oklch(96% 0.012 40); }
.prod.myp .link, .prod.botp .link { color: var(--color-white); text-decoration-color: var(--color-white); }
.p-mark { display: inline-flex; align-items: center; gap: 14px; color: var(--color-white); height: 70px; }
.p-ic { position: relative; display: grid; place-items: center; flex: none; }
.p-sh { display: block; height: 62px; width: auto; }
.p-r { position: absolute; inset: 0; display: grid; place-items: center; }
.botp .p-r { padding-bottom: 12px; }
.p-r svg { display: block; color: var(--color-white); }
.p-wm { display: grid; line-height: 0.92; }
.p-wm b { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.02em; }
.p-wm b:first-child { opacity: 0.82; }
.rsm-r { display: grid; place-items: center; flex: none; color: var(--color-accent); }
.rsm-r svg { display: block; color: var(--color-accent); }
.rsm-mark .p-wm { gap: 0; }
.rsm-rule { display: block; width: 100%; height: 11px; margin-top: 7px; color: var(--color-accent); }

/* home: what we do, list with motion */
#servizi .container { position: relative; }
.sv-fx li { position: relative; }
.sv-fx a { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-md); border-top-color: transparent; overflow: clip; }
.sv-fx a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--color-rule); transform-origin: 0 50%; transform: scaleX(var(--sl, 1)); transition: transform 900ms var(--ease-out) calc(var(--k) * 90ms); }
.sv-ln { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 500ms var(--ease-out); }
.sv-n { font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: 0.45em; transition: color 300ms var(--ease-out); }
.sv-tx { display: grid; gap: var(--space-2xs); transition: transform 450ms var(--ease-out); }
.sv-fx .sv-tx { color: var(--color-ink); }
.sv-fx .sv-tx > span { color: var(--color-muted); }
.sv-ar { font-style: normal; font-size: 1.4rem; color: var(--color-accent); opacity: 0; transform: translateX(-14px); transition: opacity 300ms var(--ease-out), transform 450ms var(--ease-out); }
.sv-th { display: none; }
.sv-fx a:hover .sv-tx, .sv-fx a:focus-visible .sv-tx, .sv-fx li.act .sv-tx { transform: translateX(10px); }
.sv-fx a:hover .sv-n, .sv-fx li.act .sv-n { color: var(--color-accent); }
.sv-fx a:hover .sv-ar, .sv-fx a:focus-visible .sv-ar, .sv-fx li.act .sv-ar { opacity: 1; transform: none; }
.sv-fx a:hover .sv-ln, .sv-fx a:focus-visible .sv-ln, .sv-fx li.act .sv-ln { transform: scaleX(1); }
.sv-fx li.act strong { color: var(--color-accent-2); }
/* entrance: lines draw in, rows rise one after the other */
.js .sv-fx a { --sl: 0; }
.js .sv-fx .sv-tx, .js .sv-fx .sv-n { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out) calc(var(--k) * 90ms + 150ms), transform 700ms var(--ease-out) calc(var(--k) * 90ms + 150ms); }
.js .sv-fx.in a { --sl: 1; }
.js .sv-fx.in .sv-tx, .js .sv-fx.in .sv-n { opacity: 1; transform: none; }
.js .sv-fx.in.done .sv-tx, .js .sv-fx.in.done .sv-n { transition: opacity 300ms var(--ease-out), transform 450ms var(--ease-out), color 300ms var(--ease-out); }
.js .sv-fx.in.done a:hover .sv-tx, .js .sv-fx.in.done li.act .sv-tx { transform: translateX(10px); }
/* desktop: a photo follows the pointer */
.sv-float { position: absolute; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: clip; pointer-events: none; z-index: 5; opacity: 0; transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) rotate(var(--fr, 0deg)) scale(var(--fs, 0.6)); transition: opacity 300ms var(--ease-out), --fs 400ms; box-shadow: 0 30px 60px var(--color-shadow); }
.sv-float.on { opacity: 1; --fs: 1; }
.sv-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 400ms var(--ease-out), transform 700ms var(--ease-out); }
.sv-float img.on { opacity: 1; transform: none; }
@property --fs { syntax: '<number>'; inherits: false; initial-value: 0.6; }
@media (hover: none), (max-width: 64rem) {
  .sv-float { display: none; }
  .sv-th { display: block; width: 76px; height: 56px; object-fit: cover; border-radius: 8px; opacity: 0.35; filter: grayscale(1); transition: opacity 400ms var(--ease-out), filter 400ms var(--ease-out); grid-column: 3; grid-row: 1; }
  .sv-ar { display: none; }
  .sv-fx li.act .sv-th { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .js .sv-fx a { --sl: 1; } .js .sv-fx .sv-tx, .js .sv-fx .sv-n { opacity: 1; transform: none; transition: none; } .sv-float { display: none; } }

/* Chi siamo: partners */
.pt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.pt { display: grid; gap: var(--space-md); align-content: space-between; height: 100%; min-height: 190px; padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: 12px; background: var(--color-paper-2); color: var(--color-ink); text-decoration: none; transition: border-color 300ms var(--ease-out), transform 400ms var(--ease-out), background 300ms var(--ease-out); }
.pt-logo { display: flex; align-items: center; height: 64px; }
.pt-logo img { max-height: 52px; max-width: 70%; width: auto; height: auto; filter: brightness(0) invert(1); opacity: 0.8; transition: opacity 300ms var(--ease-out); }
.pt-wm { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; letter-spacing: -0.02em; opacity: 0.85; }
.pt-what { color: var(--color-muted); font-size: var(--text-sm); }
a.pt:hover, a.pt:focus-visible { border-color: var(--color-accent); transform: translateY(-4px); background: var(--color-paper-3); }
a.pt:hover .pt-logo img { opacity: 1; }
a.pt:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.partners + .press { margin-top: 0; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt { min-height: 150px; padding: var(--space-md); } .pt-logo img { max-height: 40px; max-width: 85%; } .pt-wm { font-size: 1.4rem; } }

.press li.pr-alb img { height: 34px; }
.press li.pr-7g img { height: 38px; }

.press li.pr-us img { height: 20px; }

/* touch / small screens: the scroll does what the mouse does on desktop */
@media (max-width: 64rem), (hover: none) {
  .cg img, .pb a img, .nextcase img { transition: transform 900ms var(--ease-out); }
  .cg.act img, .pb a.act img, .nextcase.act img { transform: scale(1.06); }
  .cg.act h3, .pb a.act h3, .nextcase.act b { color: var(--color-accent-2); }
  .pt, .path { transition: border-color 500ms var(--ease-out), transform 600ms var(--ease-out), background 500ms var(--ease-out); }
  .pt.act, .path.act { border-color: var(--color-accent); transform: translateY(-4px); background: var(--color-paper-3); }
  .pt.act .pt-logo img { opacity: 1; }
  .gc.act .gc-in { background: var(--color-paper-2); }
  .y26-top > div { position: relative; transition: transform 600ms var(--ease-out); }
  .y26-top > div::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 40px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease-out); }
  .y26-top > div.act { transform: translateY(-3px); }
  .y26-top > div.act::after { transform: scaleX(1); }
  .y26-top > div.act b { color: var(--color-accent); transition: color 500ms var(--ease-out); }
  .ctaband.act .btn { animation: ctapulse 1800ms var(--ease-out) 2; }
  @keyframes ctapulse { 0% { box-shadow: 0 0 0 0 var(--color-glow); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
  /* words light up as the text scrolls through */
  .wsc .wd { opacity: var(--o, 0.22); transition: opacity 200ms linear; }
  .say span.wd { display: inline; }
  /* tools: swipeable panes, the one in view comes forward */
  .tl-stage .tl-pane { transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); opacity: 0.45; transform: scale(0.95); }
  .tl-stage .tl-pane.in-view { opacity: 1; transform: none; }
  .tl-stage .tl-pane .tl-media img { transition: transform 1000ms var(--ease-out) !important; }
  .tl-stage .tl-pane.in-view .tl-photo img { transform: scale(1.04) !important; }
  .tl-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-md); }
  .tl-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--color-rule); transition: width 400ms var(--ease-out), background 400ms var(--ease-out); }
  .tl-dots i.on { width: 22px; background: var(--color-accent); }
  /* full-width photo band: grows to full width as it scrolls in */
  .js .band-fig { transform: scale(var(--bs, 0.82)); border-radius: var(--br, 18px); transition: transform 120ms linear; }
  .js .band-txt { opacity: var(--bo, 0); transform: translateY(var(--by, 30px)); }
}
@media (prefers-reduced-motion: reduce) { .wsc .wd { opacity: 1; } .tl-stage .tl-pane { opacity: 1; transform: none; } }

.say-line { margin: var(--space-3xl) 0 var(--space-xl); font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.3vw, 4.2rem); line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.say-line span { background: linear-gradient(90deg, var(--color-accent-2), var(--color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) { .say-line { white-space: normal; } .say-line span { display: block; } }

/* home: who we work with, the photo of the live site rises on hover / in view */
.boxes .box a { aspect-ratio: auto; min-height: 460px; }
.box .bimg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 750ms cubic-bezier(0.76, 0, 0.24, 1), transform 1400ms var(--ease-out); }
.box .bimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 11, 10, 0.94) 0%, rgba(14, 11, 10, 0.78) 48%, rgba(14, 11, 10, 0.25) 100%); }
.box a::after { display: none; }
.box a:hover, .box a:focus-visible, .box a.act { color: var(--color-ink); }
.box a:hover .bimg, .box a:focus-visible .bimg, .box a.act .bimg { clip-path: inset(0 0 0 0); transform: scale(1); }
.box a:hover .bn, .box a:focus-visible .bn, .box a.act .bn { color: var(--color-accent); }
.box a:hover .bl, .box a:focus-visible .bl, .box a.act .bl { text-decoration-color: var(--color-accent); }
@media (max-width: 64rem) { .boxes .box a { min-height: 380px; } }
@media (max-width: 44rem) { .boxes .box a { min-height: 340px; } }

/* values (Chi siamo, Academy): same boxes as "Lavoriamo con...", orange rises on hover / in view */
.vboxes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.vbox { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); min-height: 380px; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); transition: color 500ms var(--ease-out); }
.vbox::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent); transform: translateY(101%); transition: transform 650ms cubic-bezier(0.76, 0, 0.24, 1); }
.vbox .bn { font-family: var(--font-display); font-size: var(--text-figure); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-accent); transition: color 500ms var(--ease-out), transform 650ms var(--ease-out); }
.vbox h3 { font-size: var(--text-xl); line-height: 1.15; }
.vbox p { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); transition: color 500ms var(--ease-out); }
.vbox:hover::after, .vbox.act::after { transform: none; }
.vbox:hover, .vbox.act { color: var(--color-accent-ink); }
.vbox:hover .bn, .vbox.act .bn { color: var(--color-accent-ink); transform: translateY(-6px); }
.vbox:hover p, .vbox.act p { color: var(--color-accent-ink); }
.js .vboxes .vbox { opacity: 0; transform: translateY(50px); transition: opacity 800ms var(--ease-out) calc(var(--i) * 110ms), transform 800ms var(--ease-out) calc(var(--i) * 110ms), color 500ms var(--ease-out); }
.js .vboxes.in .vbox { opacity: 1; transform: none; }
@media (max-width: 64rem) { .vboxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vbox { min-height: 300px; } }
@media (max-width: 44rem) { .vboxes { grid-template-columns: minmax(0, 1fr); } .vbox { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .js .vboxes .vbox { opacity: 1; transform: none; } .vbox::after { transition: none; } }
.tp-partner + .tp-partner { margin-top: var(--space-lg); }

/* home: Google reviews, one at a time */
.tq-rot { display: grid; }
.tq-rot .tq { grid-area: 1 / 1; margin: 0; display: grid; gap: var(--space-md); align-content: start; opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); pointer-events: none; }
.tq-rot .tq.on { opacity: 1; transform: none; pointer-events: auto; }
.tq-rot .tq blockquote { margin: 0; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.25; color: var(--color-ink); max-width: 40ch; }
.tq-rot .tq figcaption { color: var(--color-muted); font-size: var(--text-sm); }
.tq-dots { grid-area: 2 / 1; display: flex; gap: 8px; margin-top: var(--space-lg); }
.tq-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--color-rule); cursor: pointer; transition: width 400ms var(--ease-out), background 400ms var(--ease-out); }
.tq-dots i.on { width: 22px; background: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .tq-rot .tq { transition: none; } }

/* reviews: clear prev/next controls with counter and timer bar */
.tq-dots { display: none; }
.tq-nav { grid-area: 2 / 1; display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); }
.tq-arr { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--color-rule); color: var(--color-ink); background: var(--color-paper); transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), color 300ms var(--ease-out); }
.tq-arr svg { width: 22px; height: 22px; }
.tq-arr:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.tq-arr:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.tq-count { font-variant-numeric: tabular-nums; color: var(--color-muted); min-width: 4ch; text-align: center; }
.tq-count b { color: var(--color-ink); font-weight: 500; }
.tq-bar { flex: 1; height: 2px; background: var(--color-rule); overflow: clip; max-width: 320px; }
.tq-bar i { display: block; height: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: 0 50%; }
.tq-rot.run .tq-bar i { animation: tqbar 6500ms linear both; }
@keyframes tqbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.vboxes.v5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vboxes.v5 .vbox { min-height: 320px; }
@media (max-width: 75rem) { .vboxes.v5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 64rem) { .vboxes.v5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) { .vboxes.v5 { grid-template-columns: minmax(0, 1fr); } .vboxes.v5 .vbox { min-height: 0; } }

/* legal pages */
.lg-doc { max-width: 820px; }
.lg-doc .lg-k { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-ink); margin-bottom: var(--space-lg); }
.lg-doc h3 { font-size: var(--text-lg); margin: var(--space-xl) 0 var(--space-xs); color: var(--color-ink); }
.lg-doc p { color: var(--color-ink-2); line-height: 1.7; margin: 0 0 var(--space-sm); overflow-wrap: anywhere; }
.lg-doc p.lg-d { font-size: var(--text-sm); color: var(--color-muted); padding-left: var(--space-md); border-left: 2px solid var(--color-accent); }
.lg-doc a { color: var(--color-accent-2); }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.lg-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-lg); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); border: 1px solid var(--color-rule); color: var(--color-ink); text-decoration: none; transition: border-color 300ms var(--ease-out), transform 400ms var(--ease-out); }
.lg-card .bn { font-size: var(--text-2xl); }
.lg-card b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); }
.lg-card span span { display: block; color: var(--color-muted); font-size: var(--text-sm); margin-top: 4px; }
.lg-card i { font-style: normal; font-size: var(--text-sm); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }
.lg-card:hover, .lg-card.act { border-color: var(--color-accent); transform: translateX(6px); }
@media (max-width: 44rem) { .lg-card { grid-template-columns: auto minmax(0, 1fr); } .lg-card i { grid-column: 2; } }

.lg-doc h2 { font-size: var(--text-xl); margin: var(--space-2xl) 0 var(--space-sm); color: var(--color-ink); }
.lg-doc ul { margin: 0 0 var(--space-md); padding-left: 1.2em; color: var(--color-ink-2); line-height: 1.7; }
.lg-doc li { margin-bottom: 6px; }
.lg-dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; margin: 0 0 var(--space-lg); border-top: 1px solid var(--color-rule); }
.lg-dl dt, .lg-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--color-rule); line-height: 1.6; }
.lg-dl dt { color: var(--color-accent-2); font-size: var(--text-sm); padding-right: var(--space-md); }
.lg-dl dd { color: var(--color-ink-2); }
.lg-upd { margin-top: var(--space-2xl) !important; font-size: var(--text-sm); color: var(--color-muted) !important; }
@media (max-width: 44rem) { .lg-dl { grid-template-columns: minmax(0, 1fr); } .lg-dl dt { padding-bottom: 0; border-bottom: 0; } }

footer { position: relative; isolation: isolate; overflow: clip; }
footer > .h-dots { z-index: -1; }

/* footer like the current revna.it */
.f-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-2xl); padding-top: var(--space-xl); }
.f-logo { display: inline-flex; align-items: center; gap: 21px; color: var(--color-ink); text-decoration: none; }
.f-logo .f-mark { width: 66px; height: auto; color: var(--color-accent); }
.f-logo .f-word { width: 200px; height: auto; color: var(--color-ink); }
.f-brand .f-lab { margin-top: var(--space-2xl); }
.f-brand .news { margin-top: var(--space-sm); max-width: 420px; }
.f-col { display: grid; gap: var(--space-2xl); align-content: start; }
.f-lab { font-size: var(--text-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-md); }
.f-col p:not(.f-lab) { color: var(--color-ink); line-height: 1.6; }
.f-col b, .f-strong { font-weight: 600; color: var(--color-ink); }
.f-col a { color: var(--color-ink); text-decoration: none; }
.f-col a:hover { color: var(--color-accent-2); }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.f-col ul a { font-weight: 500; color: var(--color-ink-2); }
footer .legal { margin-top: var(--space-3xl); }
@media (max-width: 900px) { .f-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .f-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); } }
@media (max-width: 480px) { .f-col { grid-template-columns: minmax(0, 1fr); } }

.rsm-build { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg); align-items: start; }
.rsm-intro { position: sticky; top: 120px; display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl) var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-card); background: radial-gradient(120% 90% at 100% 0%, rgba(210, 90, 60, 0.22), transparent 60%), var(--color-paper-2); }
.rsm-intro .p-mark { height: auto; gap: 20px; }
.rsm-intro .rsm-r svg { width: 58px; height: 76px; }
.rsm-intro .p-wm b { font-size: clamp(2rem, 3.2vw, 2.9rem); }
.rsm-intro .rsm-rule { height: 16px; margin-top: 10px; }
.rsm-intro p { color: var(--color-ink-2); font-size: var(--text-md, 1.1rem); max-width: 36ch; }
.rsm-intro .link { align-self: flex-start; }
.rsm-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.rb-row { position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--space-md); align-items: start; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); transition: color 500ms var(--ease-out); }
.rb-row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent); transform: translateX(-101%); transition: transform 650ms cubic-bezier(0.76, 0, 0.24, 1); }
.rb-row .bn { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--color-accent); transition: color 500ms var(--ease-out); }
.rb-row h3 { font-size: var(--text-xl); line-height: 1.15; }
.rb-row p { margin-top: var(--space-xs, 8px); font-size: var(--text-sm); color: var(--color-ink-2); transition: color 500ms var(--ease-out); }
.rb-row:hover::after, .rb-row.act::after { transform: none; }
.rb-row:hover, .rb-row.act, .rb-row:hover .bn, .rb-row.act .bn, .rb-row:hover p, .rb-row.act p { color: var(--color-accent-ink); }
.js .rsm-rows .rb-row { opacity: 0; transform: translateY(40px); transition: opacity 800ms var(--ease-out) calc(var(--i) * 100ms), transform 800ms var(--ease-out) calc(var(--i) * 100ms), color 500ms var(--ease-out); }
.js .rsm-rows.in .rb-row { opacity: 1; transform: none; }
@media (max-width: 64rem) { .rsm-build { grid-template-columns: minmax(0, 1fr); } .rsm-intro { position: static; } }
@media (max-width: 44rem) { .rb-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); } }
@media (prefers-reduced-motion: reduce) { .js .rsm-rows .rb-row { opacity: 1; transform: none; } .rb-row::after { transition: none; } }

.ctab-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn.btn-ol { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.btn.btn-ol:hover { background: var(--color-accent); color: var(--color-accent-ink); }

.calc-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 700ms cubic-bezier(0.76, 0, 0.24, 1); }
.calc-drawer.open { grid-template-rows: 1fr; }
.cd-in { overflow: hidden; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.cd-in > .cd-calc { width: 100%; opacity: 0; transform: translateY(-24px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.calc-drawer.open .cd-calc { opacity: 1; transform: none; transition-delay: 250ms; }
.cd-close { margin: 0 auto var(--space-xl); background: none; border: 0; cursor: pointer; font: inherit; color: var(--color-ink); }
.calc-drawer:not(.open) .cd-in { visibility: hidden; transition: visibility 0s 700ms; }
@media (prefers-reduced-motion: reduce) { .calc-drawer, .cd-in > .cd-calc { transition: none; } }

.er-intro { border-color: #4f7fdc; background: linear-gradient(150deg, #3a64c8, #5a8ee0); }
.er-intro p { color: rgba(255, 255, 255, 0.92); }
.er-intro .link { color: #fff; }
.er-logo { display: block; width: min(300px, 80%); height: auto; }

/* home: method in one row */
.mrow-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.mrow-list li { position: relative; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); border-top: 2px solid var(--color-accent); display: grid; gap: var(--space-xs); align-content: start; }
.mrow-list .num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--color-accent); }
.mrow-list h3 { font-size: var(--text-xl); margin-top: var(--space-sm); }
.mrow-list p { font-size: var(--text-sm); color: var(--color-ink-2); }
.js .mrow-list li { opacity: 0; transform: translateY(30px); transition: opacity 700ms var(--ease-out) calc(var(--k) * 110ms), transform 700ms var(--ease-out) calc(var(--k) * 110ms); }
.js .mrow-list.in li { opacity: 1; transform: none; }
@media (max-width: 64rem) { .mrow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .mrow-list { grid-template-columns: minmax(0, 1fr); } }
.y26-more, .mrow .more { margin-top: var(--space-lg); }
/* home: team as a strip of photos */
.tstrip { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; height: clamp(300px, 34vw, 440px); }
.ts { flex: 1 1 0; min-width: 0; transition: flex-grow 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.ts a { position: relative; display: block; height: 100%; border-radius: var(--radius-card); overflow: clip; background: var(--color-paper-2); }
.ts img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: grayscale(0.85); transition: filter 500ms var(--ease-out), transform 900ms var(--ease-out); }
.ts .tp-ini { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 2rem; color: var(--color-accent-2); }
.ts-cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(10, 10, 10, 0.85), transparent); display: grid; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.ts-cap b { font-size: var(--text-sm); color: #fff; white-space: nowrap; }
.ts-cap span { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts:hover, .ts:focus-within { flex-grow: 2.2; }
.ts:hover img, .ts:focus-within img { filter: none; transform: scale(1.03); }
.ts:hover .ts-cap, .ts:focus-within .ts-cap { opacity: 1; transform: none; }
@media (hover: none), (max-width: 48rem) {
  .tstrip { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ts { flex: 0 0 62%; scroll-snap-align: start; }
  .ts a { aspect-ratio: 3 / 4; }
  .ts img { filter: none; }
  .ts-cap { opacity: 1; transform: none; }
  .ts:hover { flex-grow: 0; }
}

/* method row: hover and active effects */
.mrow-list li { isolation: isolate; overflow: clip; transition: color 500ms var(--ease-out), transform 500ms var(--ease-out); }
.mrow-list li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent); transform: translateY(101%); transition: transform 650ms cubic-bezier(0.76, 0, 0.24, 1); }
.mrow-list li .num, .mrow-list li p { transition: color 500ms var(--ease-out), transform 600ms var(--ease-out); }
.mrow-list li:hover::after, .mrow-list li.act::after { transform: none; }
.mrow-list li:hover, .mrow-list li.act, .mrow-list li:hover .num, .mrow-list li.act .num, .mrow-list li:hover p, .mrow-list li.act p { color: var(--color-accent-ink); }
.mrow-list li:hover .num, .mrow-list li.act .num { transform: translateY(-6px); }
.mrow-list li:hover { transform: translateY(-4px); }
.js .mrow-list.in li:hover { transform: translateY(-4px); }
/* home: case studies belt, as on revna.it */
.cb-head { display: grid; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.cb-head .eyebrow { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.cb-track-wrap { overflow: hidden; }
.cb-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: cbmove 45s linear infinite; }
.cb-track-wrap:hover .cb-track, .cb-track-wrap:focus-within .cb-track { animation-play-state: paused; }
@keyframes cbmove { to { transform: translateX(calc(-100% / 3)); } }
.cb-card { position: relative; display: block; width: clamp(280px, 30vw, 430px); aspect-ratio: 430 / 550; border-radius: var(--radius-card); overflow: clip; color: #fff; }
.cb-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.cb-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.15) 40%, rgba(10, 10, 10, 0.55)); }
.cb-card:hover img { transform: scale(1.05); }
.cb-tags { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; gap: 6px; }
.cb-tags i { font-style: normal; font-size: 11px; padding: 3px 14px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 99px; }
.cb-card b { position: absolute; left: 28px; right: 28px; top: 50%; z-index: 1; transform: translateY(-50%); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.cb-arr { position: absolute; right: 28px; bottom: 28px; z-index: 1; width: 62px; height: 62px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; display: grid; place-items: center; transition: background 400ms var(--ease-out), border-color 400ms var(--ease-out); }
.cb-arr svg { width: 26px; height: 26px; }
.cb-card:hover .cb-arr { background: var(--color-accent); border-color: var(--color-accent); }
.cbelt .more { margin-top: var(--space-lg); }
@media (max-width: 48rem) { .cb-card { width: 74vw; } }
@media (prefers-reduced-motion: reduce) { .cb-track { animation: none; } .cb-track-wrap { overflow-x: auto; } }
/* home: calculator invitation */
.ct-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; padding: var(--space-xl) var(--space-2xl, 56px); border-radius: var(--radius-card); border: 1px solid var(--color-rule); background: radial-gradient(90% 120% at 100% 50%, rgba(210, 90, 60, 0.22), transparent 60%), var(--color-paper-2); color: var(--color-ink); transition: border-color 400ms var(--ease-out); }
.ct-card:hover { border-color: var(--color-accent); }
.ct-tx { display: grid; gap: var(--space-sm); justify-items: start; }
.ct-tx h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.ct-tx p { color: var(--color-ink-2); }
.ct-tx .btn { margin-top: var(--space-sm); }
.ct-viz { display: grid; gap: 18px; padding: var(--space-lg); border-radius: var(--radius-card); background: rgba(0, 0, 0, 0.25); }
.ct-sl { display: grid; gap: 8px; font-size: var(--text-xs); color: var(--color-ink-2); }
.ct-sl i { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.ct-sl i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 4px; background: var(--color-accent); animation: ctsl 4s ease-in-out infinite alternate; }
.ct-sl i::after { content: ""; position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--color-accent); animation: ctdot 4s ease-in-out infinite alternate; }
.ct-sl:nth-child(2) i::before, .ct-sl:nth-child(2) i::after { animation-delay: -1.3s; }
.ct-sl:nth-child(3) i::before, .ct-sl:nth-child(3) i::after { animation-delay: -2.1s; }
.ct-sl:nth-child(4) i::before, .ct-sl:nth-child(4) i::after { animation-delay: -0.6s; }
@keyframes ctsl { to { width: calc(var(--v) * 100% + 14%); } }
@keyframes ctdot { to { left: calc(var(--v) * 100% + 14%); } }
@media (max-width: 52rem) { .ct-card { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); } }
@media (prefers-reduced-motion: reduce) { .ct-sl i::before, .ct-sl i::after { animation: none; } }

.rsm-er { margin-top: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); display: grid; gap: var(--space-xs); }
.rsm-er > span { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted, #9a948f); }
.rsm-er a { display: inline-flex; align-items: center; gap: var(--space-md); align-self: start; padding: 10px 18px 10px 12px; border-radius: 14px; background: linear-gradient(150deg, #3a64c8, #5a8ee0); color: #fff; transition: transform 400ms var(--ease-out); }
.rsm-er a:hover { transform: translateY(-3px); }
.rsm-er img { width: 130px; height: auto; }
.rsm-er em { font-style: normal; font-size: var(--text-sm); border-bottom: 1px solid rgba(255,255,255,0.6); }
.er-acts { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.ct-card, .ct-card *, .cb-card, .cb-card * { text-decoration: none; }
.cb-head h2 { font-size: var(--text-section); line-height: 1.05; }

/* EasyRevenue: product image from easyrevenue.io */
.er-intro { background: radial-gradient(90% 70% at 80% 0%, rgba(43, 92, 255, 0.45), transparent 60%), linear-gradient(170deg, #0d1638, #0b1230 60%, #121c48); border-color: #2a3f8f; overflow: clip; }
.er-shot { display: block; width: calc(100% + 2 * var(--space-lg)); max-width: none; margin: 0 calc(-1 * var(--space-lg)); height: auto; border-radius: 0; transition: transform 1200ms var(--ease-out); }
.er-intro:hover .er-shot { transform: scale(1.04); }
.er-intro .link { color: #fff; text-decoration-color: #4d7dff; }
.prod.er { background: linear-gradient(180deg, rgba(13, 22, 56, 0.2), rgba(11, 18, 48, 0.92) 62%), url(er-mock-box.jpg) 70% 0% / 150% auto no-repeat, #0b1230; border-color: #2a3f8f; }
.prod.er .link { text-decoration-color: #4d7dff; }

/* case belt: arrows and scroll-driven movement (replaces the css loop) */
.cb-track { animation: none; will-change: transform; }
.cb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.cb-top .cb-head { margin-bottom: 0; }
.cb-nav { display: flex; gap: 10px; flex: none; }
.cb-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); display: grid; place-items: center; cursor: pointer; transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 300ms var(--ease-out); }
.cb-btn svg { width: 22px; height: 22px; }
.cb-btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.cb-btn:active { transform: scale(0.94); }
.cb-track-wrap { cursor: grab; touch-action: pan-y; }
.cb-track-wrap.drag { cursor: grabbing; }
.cb-track-wrap.drag a { pointer-events: none; }
@media (max-width: 48rem) { .cb-btn { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .cb-track-wrap { overflow: hidden; } }

/* metodo: phase illustrations */
.s-viz { position: relative; display: grid; place-items: center; padding: var(--space-lg); background: radial-gradient(90% 80% at 80% 10%, rgba(210, 90, 60, 0.22), transparent 60%), linear-gradient(160deg, #1d1816, #141110); border-left: 1px solid var(--color-rule); overflow: clip; }
.s-viz .s-big { position: absolute; right: -0.06em; bottom: -0.22em; font-family: var(--font-display); font-size: clamp(9rem, 18vw, 15rem); line-height: 1; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.vz { position: relative; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.vz-h { fill: var(--color-ink); font-family: var(--font-display); font-size: 19px; }
.vz-l { fill: var(--color-ink-2); font-size: 13px; }
.vz-mt { fill: var(--color-accent-ink); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity 500ms 900ms; }
.vz-tr { fill: rgba(255, 255, 255, 0.08); }
.vz-bar { fill: var(--color-accent); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) var(--d); }
.vz-ring { fill: rgba(210, 90, 60, 0.08); stroke: var(--color-ink); stroke-width: 3; }
.vz-hdl { stroke: var(--color-ink); stroke-width: 6; stroke-linecap: round; }
.vz-lens { transform: translate(-150px, -40px); opacity: 0; transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1) 600ms, opacity 600ms 600ms; }
.vz-path { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms cubic-bezier(0.65, 0, 0.35, 1) 300ms; }
.vz-dot { fill: #141110; stroke: var(--color-accent); stroke-width: 3; }
.vz-node { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--d), transform 500ms var(--d); }
.vz-flag { fill: var(--color-accent); stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; opacity: 0; transition: opacity 500ms 1800ms; }
.vz-day { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.12); }
.vz-day-on { fill: rgba(210, 90, 60, 0.1); stroke: var(--color-accent); transition: fill 600ms 700ms; }
.vz-box { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.vz-chk { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 500ms var(--d); }
.vz-task { opacity: 0.35; transition: opacity 400ms var(--d); }
.vz-tile { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.12); }
.vz-up { fill: none; stroke: #4cc38a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vz-kpi { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--d), transform 500ms var(--d); }
.vz-ax { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.5; }
.vz-line { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms cubic-bezier(0.65, 0, 0.35, 1) 400ms; }
.vz-area { fill: rgba(210, 90, 60, 0.14); opacity: 0; transition: opacity 900ms 1500ms; }
.s-card.on .vz-bar { transform: none; }
.s-card.on .vz-lens { transform: none; opacity: 1; }
.s-card.on .vz-path, .s-card.on .vz-line, .s-card.on .vz-chk { stroke-dashoffset: 0; }
.s-card.on .vz-node, .s-card.on .vz-kpi { opacity: 1; transform: none; }
.s-card.on .vz-flag, .s-card.on .vz-area, .s-card.on .vz-mt { opacity: 1; }
.s-card.on .vz-day-on { fill: var(--color-accent); }
.s-card.on .vz-task { opacity: 1; }
@media (max-width: 48rem) { .s-viz { border-left: 0; border-top: 1px solid var(--color-rule); padding: var(--space-md); } }
@media (prefers-reduced-motion: reduce) { .vz * { transition: none !important; } }

@media (max-width: 48rem) {
  .stack .s-card:has(.s-viz) { position: relative; top: auto; transform: none; }
  .s-viz { order: -1; border-top: 0; border-bottom: 1px solid var(--color-rule); }
  .s-viz .vz { max-width: 340px; }
}

.mrow-list.how3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how3 .how-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(210, 90, 60, 0.14); }
.how3 .how-ic svg { width: 24px; height: 24px; }
.how3 li:hover .how-ic, .how3 li.act .how-ic { background: rgba(0, 0, 0, 0.12); }
.how3 p { font-size: var(--text-md, 1rem); line-height: 1.6; }
@media (max-width: 64rem) { .mrow-list.how3 { grid-template-columns: minmax(0, 1fr); } }

/* audience boxes: mini videos from revna.it, always visible, brighter on hover */
.box .bimg.bvid { clip-path: none; transform: none; opacity: 0.38; filter: saturate(0.6); transition: opacity 600ms var(--ease-out), filter 600ms var(--ease-out); }
.box .bvid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1400ms var(--ease-out); }
.box a:hover .bimg.bvid, .box a:focus-visible .bimg.bvid, .box a.act .bimg.bvid { opacity: 1; filter: none; }
.box a:hover .bvid video, .box a.act .bvid video { transform: scale(1); }

/* home hero: the Revna team in the opening, people first */
.h-people { position: relative; isolation: isolate; overflow: clip; }
.h-people .h-dots, .h-people .glow { display: none; }
.h-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.h-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(1.08); animation: hkb 26s ease-in-out infinite alternate; will-change: transform; }
.h-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 10, 0.8) 0%, rgba(14, 11, 10, 0.6) 30%, rgba(14, 11, 10, 0.38) 48%, rgba(14, 11, 10, 0.6) 66%, rgba(14, 11, 10, 0.94) 84%, var(--color-paper, #0e0b0a) 100%); }
@keyframes hkb { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.h-people .h-stage h1 { text-shadow: none; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.45)); }
.h-people .h-badge, .h-people .hero-sub p, .h-people .result span, .h-people .r-note { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 44rem) { .h-photo img { object-position: 52% 30%; } }
@media (prefers-reduced-motion: reduce) { .h-photo img { animation: none; } }

/* results as flip cards */
.fcards { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.fc { position: relative; min-height: 340px; outline: none; cursor: pointer; }
.fc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1); }
.fc:hover .fc-in, .fc:focus-visible .fc-in, .fc.on .fc-in { transform: rotateY(180deg); }
.fc-f, .fc-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; padding: var(--space-lg); display: flex; flex-direction: column; }
.fc-f { justify-content: space-between; background: var(--color-paper-2); border: 1px solid var(--color-rule); }
.fc-f h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.15; }
.fc-ic { align-self: flex-end; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--color-rule); color: var(--color-accent); transition: transform 600ms var(--ease-out); }
.fc-ic svg { width: 22px; height: 22px; }
.fc:hover .fc-ic { transform: rotate(180deg); }
.fc-b { transform: rotateY(180deg); background: var(--color-accent); color: var(--color-accent-ink); justify-content: flex-end; gap: var(--space-xs); }
.fc-b .pct { font-family: var(--font-display); font-size: clamp(3.6rem, 6vw, 5.4rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--color-accent-ink); margin-bottom: auto; }
.fc-b h3 { font-size: var(--text-md, 1rem); font-weight: 600; color: var(--color-accent-ink); }
.fc-b p { font-size: var(--text-sm); color: oklch(16.8% 0.005 34 / 0.8); }
.js .fcards .fc { opacity: 0; transform: translateY(40px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .fcards.in .fc { opacity: 1; transform: none; }
.js .fcards.in .fc:nth-child(2) { transition-delay: 110ms; } .js .fcards.in .fc:nth-child(3) { transition-delay: 220ms; } .js .fcards.in .fc:nth-child(4) { transition-delay: 330ms; }
@media (max-width: 64rem) { .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .fcards { grid-template-columns: minmax(0, 1fr); } .fc { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .fc-in { transition: none; } }


/* ===== home: audience boxes in a row, the hovered one opens wider (videos kept) ===== */
@media (min-width: 64.01rem) {
  .home .boxes { display: flex; gap: var(--space-md); }
  .home .boxes .box { flex: 1 1 0; min-width: 0; transition: flex-grow 700ms cubic-bezier(0.22, 1, 0.36, 1); }
  .home .boxes:hover .box { flex-grow: 0.8; }
  .home .boxes .box:hover, .home .boxes .box:focus-within { flex-grow: 1.9; }
}
/* ===== home: method phases overlap, rising and warming in order ===== */
@media (min-width: 64.01rem) {
  .home .mrow-list { display: flex; align-items: flex-end; gap: 0; padding-right: 0; }
  .home .mrow-list li { flex: 1 1 0; position: relative; overflow: clip; box-shadow: -24px 0 50px rgba(0, 0, 0, 0.45); transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
  .home .mrow-list li + li { margin-left: -9%; }
  .home .mrow-list li:nth-child(1) { min-height: 230px; z-index: 1; }
  .home .mrow-list li:nth-child(2) { min-height: 280px; z-index: 2; }
  .home .mrow-list li:nth-child(3) { min-height: 330px; z-index: 3; }
  .home .mrow-list li:nth-child(4) { min-height: 380px; z-index: 4; }
  .home .mrow-list li > * { padding-left: 9%; }
  .home .mrow-list li:first-child > * { padding-left: 0; }
  .home .mrow-list li::after { display: none; }
  .home .mrow-list li:hover { transform: translateY(-10px); }
}
.home .mrow-list li { align-content: end; border-radius: 22px; }
.home .mrow-list li:nth-child(1) { background: var(--color-paper-2); }
.home .mrow-list li:nth-child(2) { background: color-mix(in oklch, var(--color-paper-2), var(--color-accent) 18%); }
.home .mrow-list li:nth-child(3) { background: color-mix(in oklch, var(--color-paper-2), var(--color-accent) 42%); }
.home .mrow-list li:nth-child(4) { background: var(--color-accent); color: var(--color-accent-ink); }
.home .mrow-list li:nth-child(4) p { color: var(--color-accent-ink); }
.home .mrow-list li h3 { margin-top: 0; }

@media (min-width: 64.01rem) { .home .mrow-list li:not(:last-child) > * { padding-right: 12%; } }
.home .box a { justify-content: flex-end; }

.home .mrow-list li::after { display: none; }
.home .mrow-list li.act:not(:nth-child(4)), .home .mrow-list li.act:not(:nth-child(4)) p, .home .mrow-list li:not(:nth-child(4)):hover p { color: var(--color-ink); }
.home .mrow-list li:not(:nth-child(4)) p { color: var(--color-ink-2); }
@media (max-width: 64rem) {
  .home .mrow-list { display: flex; flex-direction: column; gap: 0; }
  .home .mrow-list li { position: relative; box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.5); padding-top: var(--space-xl); }
  .home .mrow-list li + li { margin-top: -22px; }
  .home .mrow-list li:nth-child(1) { z-index: 1; } .home .mrow-list li:nth-child(2) { z-index: 2; } .home .mrow-list li:nth-child(3) { z-index: 3; } .home .mrow-list li:nth-child(4) { z-index: 4; }
}

/* services as flip boxes */
.sfcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.sfc { position: relative; aspect-ratio: 4 / 3.4; outline: none; cursor: pointer; }
.sfc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1); }
.sfc:hover .sfc-in, .sfc:focus-within .sfc-in, .sfc.on .sfc-in { transform: rotateY(180deg); }
.sfc-f, .sfc-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; overflow: hidden; }
.sfc-f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sfc-f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 7, 0.05) 30%, rgba(10, 8, 7, 0.85) 100%); }
.sfc-f h3 { position: absolute; z-index: 1; left: var(--space-lg); right: 80px; bottom: var(--space-lg); margin: 0; color: #fff; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; }
.sfc-ic { position: absolute; z-index: 1; right: var(--space-lg); bottom: var(--space-lg); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); color: #fff; }
.sfc-ic svg { width: 20px; height: 20px; }
.sfc-b { transform: rotateY(180deg); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-lg); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-sm); }
.sfc-b h3 { margin: 0 0 auto; font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; color: var(--color-accent-ink); }
.sfc-b p { font-size: var(--text-lead, 1.15rem); color: var(--color-accent-ink); }
.sfc-b .link { color: var(--color-accent-ink); text-decoration-color: var(--color-accent-ink); align-self: flex-start; }
.js .sfcards .sfc { opacity: 0; transform: translateY(40px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .sfcards.in .sfc { opacity: 1; transform: none; }
.js .sfcards.in .sfc:nth-child(2), .js .sfcards.in .sfc:nth-child(5) { transition-delay: 110ms; } .js .sfcards.in .sfc:nth-child(3), .js .sfcards.in .sfc:nth-child(6) { transition-delay: 220ms; }
@media (max-width: 64rem) { .sfcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .sfcards { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sfc-in { transition: none; } }

/* method as a scroll-driven path */
.mscroll { position: relative; height: 320svh; }
.ms-pin { position: sticky; top: 72px; min-height: calc(100svh - 72px); display: flex; align-items: center; padding: var(--space-xl) 0; }
.ms-pin > .container { width: 100%; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-2xl, 56px); align-items: center; margin-top: var(--space-xl); }
.ms-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ms-names li span { display: inline-block; font-family: var(--font-display); font-size: clamp(2.4rem, 5.2vw, 4.8rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--color-ink); opacity: 0.16; transform-origin: 0 50%; transition: opacity 500ms var(--ease-out), color 500ms var(--ease-out), transform 600ms var(--ease-out); }
.ms-names li.done span { opacity: 0.4; }
.ms-names li.on span { opacity: 1; color: var(--color-accent); transform: translateX(14px); }
.ms-card { position: relative; min-height: 300px; border-radius: 22px; background: var(--color-paper-2); border: 1px solid var(--color-rule); overflow: hidden; }
.ms-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 80% at 100% 0%, rgba(210, 90, 60, 0.22), transparent 60%); }
.ms-d { position: absolute; inset: 0; padding: var(--space-xl); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-sm); opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.ms-d.on { opacity: 1; transform: none; }
.ms-d h3 { font-size: var(--text-2xl, 2rem); margin: 0 0 auto; }
.ms-d p { font-size: var(--text-lead, 1.2rem); color: var(--color-ink-2); }
.ms-out { margin-top: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font-size: var(--text-md, 1rem) !important; color: var(--color-ink) !important; }
.ms-out b { display: block; color: var(--color-accent-2); font-weight: 500; margin-bottom: 4px; }
.ms-foot { display: flex; align-items: center; gap: var(--space-xl); margin-top: var(--space-xl); }
.ms-foot .more { margin: 0; white-space: nowrap; }
.ms-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ms-bar i { position: relative; height: 3px; border-radius: 3px; background: var(--color-rule); overflow: hidden; }
.ms-bar b { position: absolute; inset: 0; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 64rem) {
  .mscroll { height: auto; }
  .ms-pin { position: static; min-height: 0; padding: var(--space-2xl, 56px) 0; }
  .ms-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .ms-names { display: none; }
  .ms-card { min-height: 0; background: none; border: 0; overflow: visible; display: grid; gap: 12px; }
  .ms-card::before { display: none; }
  .ms-d { position: relative; opacity: 1; transform: none; border-radius: 18px; background: var(--color-paper-2); border: 1px solid var(--color-rule); padding: var(--space-lg); }
  .ms-d h3 { margin-bottom: var(--space-xs); color: var(--color-accent); }
  .ms-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ms-d, .ms-names li span { transition: none; } }

.ms-btn { all: unset; cursor: pointer; display: inline-block; }
.ms-btn:focus-visible span { outline: 2px solid var(--color-accent); outline-offset: 6px; border-radius: 6px; }
.ms-names li:not(.on) .ms-btn:hover span { opacity: 0.7; }

/* results as growth bars */
.gbars { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; }
.gb-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--space-xl); align-items: center; padding: var(--space-lg) 0; border-top: 1px solid var(--color-rule); }
.gb-row:last-child { border-bottom: 1px solid var(--color-rule); }
.gb-tx h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; }
.gb-tx p { margin-top: 6px; font-size: var(--text-sm); color: var(--color-muted); }
.gb-bars { display: grid; gap: 12px; padding-right: 5.5rem; }
.gb-l { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: var(--space-md); }
.gb-l span { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.gb-l i { position: relative; display: block; height: 14px; border-radius: 8px; transform-origin: 0 50%; }
.gb-prev { width: calc(var(--b) * 100%); background: var(--color-paper-3); }
.gb-now { width: calc(var(--t) * 100%); background: var(--color-accent); transform: scaleX(calc(var(--b) / var(--t))); transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1) 300ms; }
.gb-row.in .gb-now { transform: scaleX(1); }
.gb-pct { position: absolute; left: 100%; top: 50%; margin-left: 14px; transform: translateY(-50%) scale(0.6); transform-origin: 0 50%; opacity: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1; color: var(--color-accent); white-space: nowrap; transition: opacity 400ms var(--ease-out) 1700ms, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 1700ms; }
.gb-row.in .gb-pct { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 52rem) { .gb-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); } .gb-l { grid-template-columns: 6rem minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .gb-now { transform: none; transition: none; } .gb-pct { opacity: 1; transform: translateY(-50%); transition: none; } }

.gb-pct { font-style: normal; }
.gb-bars { padding-right: 0; }
.gb-l i.gb-prev { width: calc(var(--b) * 76%); } .gb-l i.gb-now { width: calc(var(--t) * 76%); }
.gb-l span { white-space: nowrap; }
@media (max-width: 52rem) { .gb-l { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 10px; } .gb-l span { font-size: 10px; letter-spacing: 0.04em; } .gb-l i.gb-prev { width: calc(var(--b) * 72%); } .gb-l i.gb-now { width: calc(var(--t) * 72%); } .gb-pct { font-size: 1.6rem; margin-left: 10px; } }

.stay-810 { white-space: nowrap; }
.stay-810 span { font-size: 0.42em; letter-spacing: 0; color: var(--color-ink-2); margin: 0 0.12em; vertical-align: 0.55em; }
.stay .bar i { width: 80%; }

/* inner pages: same path as the home; no numbered lists */
.mpath { height: 260svh; }
.mpath .ms-pin { top: 72px; min-height: calc(100svh - 72px); }
.mpath .ms-grid { margin-top: 0; width: 100%; }
.mpath .ms-pin { flex-direction: column; justify-content: center; align-items: stretch; }
.inner .bn.num, .inner .phase .n.num, .inner .s-viz .s-big { display: none !important; }
.inner .j-dot { font-size: 0 !important; color: transparent !important; }
@media (max-width: 64rem) { .mpath { height: auto; } }
/* header: menu spread along the bar */
@media (min-width: 64.01rem) {
  .nav nav { flex: 1; display: flex; justify-content: center; margin-left: 0; }
  .nav ul { gap: clamp(28px, 3.4vw, 56px); }
  .nav ul a { font-size: 0.98rem; }
}

.inner .rb-row { grid-template-columns: minmax(0, 1fr); }

.inner .lg-card { grid-template-columns: minmax(0, 1fr) auto; }

/* ===== Cosa facciamo: pinned horizontal gallery ===== */
.sx { position: relative; background: var(--color-paper); }
.sx-top .head { margin-bottom: 0; }
.sx-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.sx-c a { position: relative; display: block; height: 100%; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #111; }
.sx-ph { position: absolute; inset: 0; overflow: hidden; }
.sx-ph img { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; object-fit: cover; max-width: none; transform: translateX(var(--px, 0px)) scale(var(--s, 1.02)); transition: filter 900ms ease, transform 1200ms cubic-bezier(0.2, 0.75, 0.25, 1); will-change: transform; }
.sx-c a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 5, 0) 35%, rgba(8, 6, 5, 0.82) 100%); pointer-events: none; }
.sx-t { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.4vw, 36px); display: grid; gap: 10px; }
.sx-t h3 { font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.05; margin: 0; color: #fff; }
.sx-d { display: grid; gap: 12px; }
.sx-d p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: var(--text-md); max-width: 30ch; }
.sx-d .link { color: #fff; justify-self: start; }
.sx-foot { display: none; }
@media (min-width: 64.01rem) {
  .sx { height: calc(var(--n) * 62vh + 100vh); }
  .sx-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding-top: clamp(96px, 12vh, 140px); padding-bottom: 28px; gap: 3vh; grid-template-columns: minmax(0, 1fr); }
  .sx-pin > * { min-width: 0; }
  .sx-row { width: max-content; }
  .sx-row { align-items: center; padding-left: max(24px, calc((100vw - 1240px) / 2)); will-change: transform; }
  .sx-c { flex: 0 0 auto; width: min(40vw, 620px); height: 58vh; transform: scale(0.86); transform-origin: 50% 60%; opacity: 0.55; transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 700ms ease, width 700ms cubic-bezier(0.2, 0.75, 0.25, 1); }
  .sx-c.on { transform: none; opacity: 1; }
  .sx-c:not(.on) .sx-ph img { filter: grayscale(0.6) brightness(0.6); --s: 1.18; }
  .sx-c a { clip-path: inset(6% 6% 6% 6% round 22px); transition: clip-path 1000ms cubic-bezier(0.2, 0.75, 0.25, 1); }
  .sx-c.on a { clip-path: inset(0 0 0 0 round 22px); }
  .sx-c:not(.on) .sx-t { padding-bottom: calc(clamp(20px, 2.4vw, 36px) + 6%); padding-left: calc(clamp(20px, 2.4vw, 36px) + 5%); }
  .sx-t { transition: padding 1000ms cubic-bezier(0.2, 0.75, 0.25, 1); }
  .sx-c a { background: transparent; }
  .sx-c:not(.on) a::after { opacity: 0.9; }
  .sx-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .sx-bg img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; opacity: 0; filter: blur(48px) saturate(1.2) brightness(0.32); transform: scale(1.12); transition: opacity 1100ms ease, transform 1600ms ease; }
  .sx-bg img.on { opacity: 1; transform: scale(1); }
  .sx-pin > :not(.sx-bg) { position: relative; z-index: 1; }
  .sx-d { opacity: 0; transform: translateY(14px); max-height: 0; transition: opacity 500ms ease, transform 500ms ease, max-height 500ms ease; }
  .sx-c.on .sx-d { opacity: 1; transform: none; max-height: 200px; transition-delay: 200ms; }
  .sx-foot { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .sx-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
  .sx-names button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--text-sm); color: var(--color-ink-2); cursor: pointer; transition: color 300ms ease; }
  .sx-names button:hover, .sx-names button.on { color: var(--color-accent-2); }
  .sx-bar { height: 2px; background: var(--color-rule); border-radius: 2px; overflow: hidden; }
  .sx-bar i { display: block; height: 100%; width: 100%; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
}
@media (max-width: 64rem) {
  .sx-bg { display: none; }
  .sx { padding-block: var(--section-gap); }
  .sx-top { margin-bottom: var(--space-lg); }
  .sx-row { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scrollbar-width: none; }
  .sx-row::-webkit-scrollbar { display: none; }
  .sx-c { flex: 0 0 82vw; height: 120vw; max-height: 560px; scroll-snap-align: center; }
  .sx-ph img { left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sx-c, .sx-d, .sx-ph img { transition: none; } }

/* metodo: phase illustrations */
.s-viz { position: relative; display: grid; place-items: center; padding: var(--space-lg); background: radial-gradient(90% 80% at 80% 10%, rgba(210, 90, 60, 0.22), transparent 60%), linear-gradient(160deg, #1d1816, #141110); border-left: 1px solid var(--color-rule); overflow: clip; }
.s-viz .s-big { position: absolute; right: -0.06em; bottom: -0.22em; font-family: var(--font-display); font-size: clamp(9rem, 18vw, 15rem); line-height: 1; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.vz { position: relative; width: 100%; max-width: 440px; height: auto; overflow: visible; }
.vz-h { fill: var(--color-ink); font-family: var(--font-display); font-size: 19px; }
.vz-l { fill: var(--color-ink-2); font-size: 13px; }
.vz-mt { fill: var(--color-accent-ink); font-size: 11px; font-weight: 600; opacity: 0; transition: opacity 500ms 900ms; }
.vz-tr { fill: rgba(255, 255, 255, 0.08); }
.vz-bar { fill: var(--color-accent); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 1100ms cubic-bezier(0.22, 1, 0.36, 1) var(--d); }
.vz-ring { fill: rgba(210, 90, 60, 0.08); stroke: var(--color-ink); stroke-width: 3; }
.vz-hdl { stroke: var(--color-ink); stroke-width: 6; stroke-linecap: round; }
.vz-lens { transform: translate(-150px, -40px); opacity: 0; transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1) 600ms, opacity 600ms 600ms; }
.vz-path { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms cubic-bezier(0.65, 0, 0.35, 1) 300ms; }
.vz-dot { fill: #141110; stroke: var(--color-accent); stroke-width: 3; }
.vz-node { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--d), transform 500ms var(--d); }
.vz-flag { fill: var(--color-accent); stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; opacity: 0; transition: opacity 500ms 1800ms; }
.vz-day { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.12); }
.vz-day-on { fill: rgba(210, 90, 60, 0.1); stroke: var(--color-accent); transition: fill 600ms 700ms; }
.vz-box { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.vz-chk { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 500ms var(--d); }
.vz-task { opacity: 0.35; transition: opacity 400ms var(--d); }
.vz-tile { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.12); }
.vz-up { fill: none; stroke: #4cc38a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vz-kpi { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--d), transform 500ms var(--d); }
.vz-ax { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.5; }
.vz-line { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms cubic-bezier(0.65, 0, 0.35, 1) 400ms; }
.vz-area { fill: rgba(210, 90, 60, 0.14); opacity: 0; transition: opacity 900ms 1500ms; }
.mtb-c.on .vz-bar { transform: none; }
.mtb-c.on .vz-lens { transform: none; opacity: 1; }
.mtb-c.on .vz-path, .mtb-c.on .vz-line, .mtb-c.on .vz-chk { stroke-dashoffset: 0; }
.mtb-c.on .vz-node, .mtb-c.on .vz-kpi { opacity: 1; transform: none; }
.mtb-c.on .vz-flag, .mtb-c.on .vz-area, .mtb-c.on .vz-mt { opacity: 1; }
.mtb-c.on .vz-day-on { fill: var(--color-accent); }
.mtb-c.on .vz-task { opacity: 1; }
@media (max-width: 48rem) { .s-viz { border-left: 0; border-top: 1px solid var(--color-rule); padding: var(--space-md); } }
@media (prefers-reduced-motion: reduce) { .vz * { transition: none !important; } }

@media (max-width: 48rem) {
  .stack .s-card:has(.s-viz) { position: relative; top: auto; transform: none; }
  .s-viz { order: -1; border-top: 0; border-bottom: 1px solid var(--color-rule); }
  .s-viz .vz { max-width: 340px; }
}

.mblocks { padding-block: var(--section-gap); }
.mtb-grid { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; perspective: 1200px; }
.mtb-grid::before { content: ""; position: absolute; left: 4%; right: 4%; top: 150px; height: 2px; background: var(--color-rule); z-index: 0; }
.mtb-grid::after { content: ""; position: absolute; left: 4%; right: 4%; top: 150px; height: 2px; background: var(--color-accent); z-index: 0; transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); box-shadow: 0 0 12px var(--color-accent); }
.mtb-c { position: relative; z-index: 1; display: flex; flex-direction: column; border-radius: 20px; background: var(--color-paper-2); border: 1px solid var(--color-rule); overflow: hidden;
  opacity: 0.35; transform: translateY(var(--ty, 24px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: opacity 700ms ease, transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1), border-color 300ms ease, box-shadow 400ms ease; }
.mtb-c.in { opacity: 1; --ty: 0px; }
.mtb-c.on { border-color: rgba(226, 96, 63, 0.45); }
.mtb-c::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(226, 96, 63, 0.22), transparent 60%); }
.mtb-c:hover { --ty: -8px; border-color: var(--color-accent); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); transition: opacity 700ms ease, transform 160ms ease-out, border-color 300ms ease, box-shadow 400ms ease; }
.mtb-c:hover::after { opacity: 1; }
.mtb-c:hover .mtb-b h3 { color: var(--color-accent-2); }
.mtb-b h3 { transition: color 300ms ease; }
.mtb-viz { background: #0e0b0a; border-bottom: 1px solid var(--color-rule); aspect-ratio: 400 / 330; overflow: hidden; }
.mtb-viz .vz { width: 100%; height: auto; display: block; margin-top: -1%; transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1); }
.mtb-c:hover .mtb-viz .vz { transform: scale(1.05); }
.mtb-b { padding: 24px 24px 26px; display: grid; gap: 10px; align-content: start; flex: 1; }
.mtb-b h3 { margin: 0; font-size: clamp(1.4rem, 1.8vw, 1.8rem); }
.mtb-b > p { margin: 0; color: var(--color-ink-2); }
.mtb-out { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--color-rule); display: grid; gap: 4px; font-size: var(--text-sm); color: var(--color-ink); }
.mtb-out b { color: var(--color-accent-2); font-weight: 500; }
.mtb-more { margin-top: var(--space-lg); }
@media (max-width: 64rem) { .mtb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mtb-grid::before, .mtb-grid::after { display: none; } }
@media (max-width: 40rem) { .mtb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .mtb-c::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .mtb-c { opacity: 1; transform: none; transition: none; } .mtb-grid::after { transform: scaleX(1); } }

/* ===== service-page phase sections (scala / ciclo / itinerario) ===== */
.p3 { margin-top: var(--space-xl); }
.p3-viz { background: #0e0b0a; border-bottom: 1px solid var(--color-rule); }
.p3v { display: block; width: 100%; height: auto; }
.p3-h { font: 500 19px var(--font-display, inherit); fill: #fff; }
.p3-l { font: 15px var(--font-body, inherit); fill: rgba(255,255,255,.86); }
.p3-s { font: 13px var(--font-body, inherit); fill: rgba(255,255,255,.66); }
.p3-acc { fill: var(--color-accent-2, #f08a6a); }
.p3-tr { fill: rgba(255,255,255,.08); }
.p3-bar { fill: rgba(226,96,63,.7); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 900ms cubic-bezier(.2,.75,.25,1) var(--d, 0ms); }
.p3-bar-hi { fill: var(--color-accent); }
.p3-ax { stroke: rgba(255,255,255,.25); stroke-width: 1.5; fill: none; }
.p3-grid { stroke: rgba(255,255,255,.12); stroke-width: 1; fill: none; stroke-dasharray: 4 5; }
.p3-path { stroke: var(--color-accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms ease 200ms; }
.p3-ly { stroke: rgba(255,255,255,.3); stroke-width: 2; fill: none; stroke-dasharray: 5 5; }
.p3-link { stroke: rgba(226,96,63,.6); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms ease var(--d, 0ms); }
.p3-chk { stroke: var(--color-accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 400ms ease var(--d, 0ms); }
.p3-dot { fill: var(--color-accent); } .p3-dot-old { fill: rgba(255,255,255,.3); }
.p3-node { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.18); }
.p3-node-hi { fill: rgba(226,96,63,.18); stroke: var(--color-accent); }
.p3-col { fill: rgba(255,255,255,.12); } .p3-col-hi { fill: var(--color-accent); }
.p3-colb { fill: rgba(226,96,63,.75); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 700ms cubic-bezier(.2,.75,.25,1) var(--d, 0ms); }
.p3-coast { stroke: rgba(120,180,220,.55); stroke-width: 2.5; fill: none; }
.p3-pin { fill: var(--color-accent); } .p3-pin-c { fill: #0e0b0a; }
.p3-pop, .p3-drop { opacity: 0; transition: opacity 500ms ease var(--d, 0ms), transform 600ms cubic-bezier(.3,1.4,.5,1) var(--d, 0ms); transform-box: fill-box; transform-origin: 50% 100%; }
.p3-pop { transform: scale(.85); } .p3-drop { transform: translateY(-26px); }
.on .p3-bar, .on .p3-colb { transform: none; }
.on .p3-path, .on .p3-link, .on .p3-chk { stroke-dashoffset: 0; }
.on .p3-pop, .on .p3-drop { opacity: 1; transform: none; }
.p3-b { padding: 22px 24px 24px; display: grid; gap: 8px; align-content: start; }
.p3-b h3 { margin: 0; font-size: clamp(1.3rem, 1.7vw, 1.7rem); transition: color 300ms ease; }
.p3-b p { margin: 0; color: var(--color-ink-2); }

/* scala */
.p3s { position: relative; }
.p3s-line { position: absolute; left: 12.5%; right: 12.5%; top: 0; width: 75%; height: 120px; overflow: visible; }
.p3s-line path { fill: none; stroke: var(--color-accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp, 0)); }
.p3s-row { list-style: none; margin: 0; padding: 150px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.p3s-c { border-radius: 18px; overflow: hidden; background: var(--color-paper-2); border: 1px solid var(--color-rule); transform: translateY(calc(var(--k) * -36px + 40px)); opacity: .25; transition: transform 800ms cubic-bezier(.2,.75,.25,1), opacity 600ms ease, border-color 300ms ease, box-shadow 300ms ease; }
.p3s-c.on { transform: translateY(calc(var(--k) * -36px)); opacity: 1; border-color: rgba(226,96,63,.4); }
.p3s-c:hover { box-shadow: 0 24px 50px rgba(0,0,0,.45); border-color: var(--color-accent); transform: translateY(calc(var(--k) * -36px - 10px)); }
.p3s-c:hover h3 { color: var(--color-accent-2); }

/* ciclo */
.p3c { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.p3c-wheel { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.p3c-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.p3c-track { fill: none; stroke: var(--color-rule); stroke-width: 2; }
.p3c-arc { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--arc, 0)); transform: rotate(-90deg); transform-origin: 200px 200px; transition: stroke-dashoffset 700ms cubic-bezier(.2,.75,.25,1); }
.p3c-arrow { transform-origin: 200px 200px; transform: rotate(var(--rot, 0deg)); transition: transform 700ms cubic-bezier(.2,.75,.25,1); }
.p3c-arrow path { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.p3c-n { position: absolute; transform: translate(-50%, -50%); border: 1px solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); border-radius: 999px; padding: 12px 18px; font: inherit; font-family: var(--font-display); font-size: clamp(.95rem, 1.2vw, 1.15rem); cursor: pointer; transition: background 300ms ease, color 300ms ease, border-color 300ms ease, transform 400ms cubic-bezier(.3,1.4,.5,1); white-space: nowrap; }
.p3c-n:hover { border-color: var(--color-accent); }
.p3c-n.on { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink, #140d0b); transform: translate(-50%, -50%) scale(1.08); }
.p3c-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; pointer-events: none; }
.p3c-mid b { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 500; }
.p3c-mid span { color: var(--color-ink-2); font-size: var(--text-sm); }
.p3c-panels { position: relative; display: grid; }
.p3c-p { grid-area: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--color-paper-2); border: 1px solid var(--color-rule); opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity 500ms ease, transform 600ms cubic-bezier(.2,.75,.25,1); }
.p3c-p.on { opacity: 1; transform: none; pointer-events: auto; }

/* itinerario */
.p3i { position: relative; }
.p3i-route { display: block; width: 100%; height: auto; overflow: visible; }
.p3i-bg { fill: none; stroke: var(--color-rule); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.p3i-fg { fill: none; stroke: var(--color-accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp, 0)); }
.p3i-ring { fill: var(--color-paper); stroke: var(--color-rule); stroke-width: 2; vector-effect: non-scaling-stroke; transition: stroke 300ms ease, r 300ms ease; }
.p3i-core { fill: var(--color-rule); transition: fill 300ms ease; }
.p3i-stop.on .p3i-ring { stroke: var(--color-accent); }
.p3i-stop.on .p3i-core { fill: var(--color-accent); }
.p3i-stop.hv .p3i-ring { r: 17; }
.p3i-car { fill: var(--color-accent); filter: drop-shadow(0 0 8px rgba(226,96,63,.8)); }
.p3i-row { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p3i-c { border-radius: 18px; overflow: hidden; background: var(--color-paper-2); border: 1px solid var(--color-rule); opacity: .3; transform: scale(.96); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.75,.25,1), border-color 300ms ease; }
.p3i-c.on { opacity: 1; transform: none; }
.p3i-c:hover { border-color: var(--color-accent); }
.p3i-c:hover h3 { color: var(--color-accent-2); }


/* box heads */
.p3h { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 25% 15%, rgba(226,96,63,.28), transparent 60%), radial-gradient(80% 80% at 90% 100%, rgba(226,96,63,.12), transparent 70%), #0e0b0a; }
.p3h::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.p3h-ic { position: relative; width: 68px; height: 68px; fill: none; stroke: var(--color-accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 500ms cubic-bezier(.3,1.4,.5,1); }
.p3h-ic > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms ease 150ms; }
.on .p3h-ic > * { stroke-dashoffset: 0; }
li:hover .p3h-ic { transform: scale(1.12) rotate(-4deg); }
.p3r-c .p3h-ic > * { stroke-dashoffset: 0; transition: none; }
.p3r-c:not(.on) .p3h-ic { opacity: .55; }
.p3r-c.on .p3h-ic > * { animation: p3draw 1100ms ease both; }
@keyframes p3draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.p3-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p3-chips li { font-size: 12.5px; line-height: 1; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--color-rule); color: var(--color-ink-2); transition: border-color 300ms ease, color 300ms ease; }
li.on .p3-chips li, li:hover .p3-chips li { border-color: rgba(226,96,63,.5); color: var(--color-ink); }


/* giro (flip) */
.p3g-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) 30px minmax(0,1fr) 30px minmax(0,1fr) 30px minmax(0,1fr); gap: 8px; align-items: center; }
.p3g-c { position: relative; height: 380px; perspective: 1400px; outline: none; cursor: pointer; opacity: .4; transform: translateY(16px); transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.75,.25,1); }
.p3g-c.on { opacity: 1; transform: none; }
.p3g-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 850ms cubic-bezier(.2,.75,.25,1); }
.p3g-c:hover .p3g-in, .p3g-c:focus-visible .p3g-in, .p3g-c.flip .p3g-in { transform: rotateY(180deg); }
.p3g-f, .p3g-b { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 30px 28px; display: flex; flex-direction: column; }
.p3g-f { background: #1d1817; border: 1px solid rgba(255,255,255,.07); }
.p3g-f h3 { margin: 0; font-size: clamp(1.25rem, 1.6vw, 1.7rem); line-height: 1.08; color: #f1ece8; hyphens: none; -webkit-hyphens: none; word-break: keep-all; overflow-wrap: normal; }
.p3g-ic { width: 34px; height: 34px; fill: none; stroke: rgba(226,96,63,.55); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.p3g-rot { margin-top: auto; align-self: flex-end; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; transition: transform 500ms ease, border-color 300ms ease; }
.p3g-rot svg { width: 20px; height: 20px; fill: none; stroke: var(--color-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p3g-c:hover .p3g-rot { transform: rotate(180deg); border-color: var(--color-accent); }
.p3g-b { transform: rotateY(180deg); background: linear-gradient(200deg, #d0583c 0%, #8a3a28 55%, #3a2420 100%); color: #fff; gap: 14px; justify-content: flex-end; }
.p3g-b h3 { margin: 0; font-size: clamp(1.3rem, 1.6vw, 1.6rem); color: #fff; }
.p3g-b p { margin: 0; color: rgba(255,255,255,.9); }
.p3g-b .p3-chips li { border-color: rgba(255,255,255,.45); color: #fff; }
.p3g-a { display: grid; place-items: center; }
.p3g-a svg { width: 26px; height: 26px; fill: none; stroke: var(--color-rule); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 400ms ease; }
.p3g-a.on svg { stroke: var(--color-accent); }
@media (max-width: 64rem) { .p3g-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .p3g-a { display: none; } }
@media (max-width: 40rem) { .p3g-row { grid-template-columns: minmax(0, 1fr); } .p3g-c { height: 300px; } }

/* pila */
.p3k-img { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, rgba(226,96,63,.32), transparent 60%), radial-gradient(80% 80% at 90% 100%, rgba(226,96,63,.14), transparent 70%), #0e0b0a; overflow: hidden; }
.p3k-img::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; }
.p3k-ic { position: relative; width: clamp(90px, 10vw, 140px); height: auto; stroke-width: 1.1; }
.p3k .s-txt .p3-chips { margin-top: 6px; }
.p3k .p3-chips li { border-color: rgba(226,96,63,.45); color: var(--color-ink); }
/* flusso */
.p3f-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr); gap: 8px; align-items: stretch; }
.p3f-c { border-radius: 18px; overflow: hidden; background: var(--color-paper-2); border: 1px solid var(--color-rule); opacity: .35; transform: translateY(18px); transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.75,.25,1), border-color 300ms ease, box-shadow 300ms ease; }
.p3f-c.on { opacity: 1; transform: none; border-color: rgba(226,96,63,.4); }
.p3f-c:hover { border-color: var(--color-accent); box-shadow: 0 22px 46px rgba(0,0,0,.45); transform: translateY(-6px); }
.p3f-c:hover h3 { color: var(--color-accent-2); }
.p3f-a { display: grid; place-items: center; }
.p3f-a svg { width: 30px; height: 30px; fill: none; stroke: var(--color-rule); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 400ms ease, transform 400ms ease; }
.p3f-a.on svg { stroke: var(--color-accent); transform: translateX(3px); }

/* ciclo2 */
.p3r-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.p3r-c { border-radius: 18px; overflow: hidden; background: var(--color-paper-2); border: 1px solid var(--color-rule); cursor: pointer; opacity: .55; transition: opacity 500ms ease, transform 600ms cubic-bezier(.2,.75,.25,1), border-color 300ms ease, box-shadow 300ms ease; outline: none; }
.p3r-c.on { opacity: 1; transform: translateY(-10px); border-color: var(--color-accent); box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 0 1px var(--color-accent); }
.p3r-c.on h3 { color: var(--color-accent-2); }
.p3r-c:hover { opacity: 1; }
.p3r-under { position: relative; margin-top: 6px; }
.p3r-loop { display: block; width: 100%; height: 90px; overflow: visible; }
.p3r-track { fill: none; stroke: var(--color-rule); stroke-width: 2; vector-effect: non-scaling-stroke; }
.p3r-run { fill: none; stroke: var(--color-accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.p3r.loop .p3r-run { animation: p3loop 1400ms ease forwards; }
@keyframes p3loop { to { stroke-dashoffset: 0; } }
.p3r-cap { position: absolute; left: 0; right: 0; top: 52px; margin: 0; text-align: center; }
.p3r-cap span { background: var(--color-paper); padding: 0 14px; color: var(--color-ink-2); font-size: var(--text-sm); }

@media (max-width: 64rem) {
  .p3f-row, .p3r-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .p3f-a, .p3r-under { display: none; }
  .p3r-c.on { transform: none; }
  .p3s-line { display: none; }
  .p3s-row, .p3i-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; }
  .p3s-c, .p3s-c.on, .p3s-c:hover { transform: none; }
  .p3c { grid-template-columns: minmax(0, 1fr); }
  .p3c-wheel { max-width: 340px; }
  .p3i-route { display: none; }
}
@media (max-width: 40rem) {
  .p3f-row, .p3r-row { grid-template-columns: minmax(0, 1fr); }
  .p3s-row, .p3i-row { grid-template-columns: minmax(0, 1fr); }
  .p3c-n { padding: 9px 13px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .p3 * { transition: none !important; } }

.mstrip .head { margin-bottom: var(--space-lg); }
.ms2 { overflow: hidden; padding-block: 8px; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ms2-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; width: max-content; will-change: transform; }
.ms2-c { position: relative; flex: none; width: min(560px, 78vw); height: clamp(420px, 56vh, 520px); border-radius: 22px; background: #161413; border: 1px solid rgba(255,255,255,.06); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; transition: border-color 300ms ease; }
.ms2-c:hover { border-color: rgba(226,96,63,.45); }
.ms2-t { position: relative; z-index: 1; padding: 40px 40px 0; display: grid; gap: 10px; }
.ms2-t h3 { margin: 0; font-size: clamp(1.7rem, 2.3vw, 2.2rem); line-height: 1.08; color: #f1ece8; }
.ms2-t p { margin: 0; color: rgba(255,255,255,.62); font-size: var(--text-md); max-width: 30ch; }
.ms2-cv { position: absolute; left: 0; bottom: 0; width: 70%; height: 72%; }
.ms2-out { position: relative; z-index: 1; justify-self: end; align-self: end; grid-row: 3; margin: 0 32px 32px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; background: rgba(22,20,19,.7); max-width: 260px; display: grid; gap: 4px; font-size: var(--text-sm); color: #f1ece8; }
.ms2-out b { font-weight: 500; color: var(--color-accent-2); }
.ms2-acc { width: min(300px, 62vw); border: 0; background: linear-gradient(200deg, #d0583c 0%, #8a3a28 45%, #3a2420 100%); clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px); }
.ms2-acc a { position: absolute; inset: 0; padding: 92px 32px 32px; display: flex; flex-direction: column; gap: 12px; color: #fff; text-decoration: none; }
.ms2-at { font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.1; }
.ms2-as { color: rgba(255,255,255,.8); font-size: var(--text-sm); max-width: 24ch; }
.ms2-arr { margin-top: auto; width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.4; transition: transform 300ms ease; }
.ms2-acc:hover .ms2-arr { transform: translate(4px, -4px); }
.ms2-foot { margin-top: var(--space-lg); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ms2-nav { display: flex; gap: 10px; }
.ms2-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--color-rule); background: transparent; color: var(--color-ink); cursor: pointer; display: grid; place-items: center; transition: background 200ms ease, border-color 200ms ease, color 200ms ease; }
.ms2-nav button:hover { background: var(--color-accent); border-color: var(--color-accent); color: #140d0b; }
.ms2-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ms2p-foot { margin-top: 22px; display: flex; align-items: center; gap: 24px; }
.ms2p-foot .ms2p-bar { flex: 1; margin-top: 0; }
.ms2-static { mask-image: none; -webkit-mask-image: none; }
.ms2-static .ms2-track { animation: none; padding-left: max(24px, calc((100vw - 1240px) / 2)); padding-right: 24px; will-change: transform; }
.ms2-big { width: min(640px, 82vw); height: clamp(480px, 68vh, 600px); }
.ms2-big .ms2-t p { max-width: 44ch; font-size: var(--text-md); line-height: 1.5; color: rgba(255,255,255,.7); }
.ms2-big .ms2-cv { width: 55%; height: 52%; }
.ms2p-bar { margin-top: 22px; height: 2px; background: var(--color-rule); position: relative; overflow: hidden; border-radius: 2px; }
.ms2p-bar i { position: absolute; inset: 0; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (min-width: 64.01rem) {
  .ms2p { height: calc(var(--n) * 70vh + 100vh); }
  .ms2p-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
}
@media (max-width: 64rem) {
  .ms2p-foot { display: flex; } .ms2p-foot .ms2p-bar { display: none; } .ms2p-foot .ms2-nav { margin-left: auto; }
  .ms2-static { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ms2-static .ms2-c { scroll-snap-align: center; }
  .ms2-big { height: auto; min-height: 560px; }
}
@media (max-width: 40rem) { .ms2-t { padding: 28px 26px 0; } .ms2-out { margin: 0 20px 20px; } .ms2-cv { width: 90%; } }

