/* Via Foundry: 12 columns / 24px gutters. Static, light-first. Tokens in :root; shared components below.
   Layout (design-system.md): tokens → base → shell (nav, footer) → shared components (hero, page hero, kicker, lead,
   section, ruled grid, card, frame, ask) → home → legacy pages → ds-v2 base. */
:root {
  --paper: #FAF7F2; --paper-2: #F2EDE4; --white: #fff; --blue-dark: #2457D6; --ink: #0F1C2E; --blue: #2D6BFF; --glow-warm: #FFC084; --sea: #0B7C80; --sunset: #F2994A;
  --line: rgba(15,28,46,.16); --line-soft: rgba(15,28,46,.08);
  --muted: rgba(15,28,46,.72); --text-2: rgba(15,28,46,.84); --blue-soft: rgba(45,107,255,.08); --ok: #16A34A; --ok-soft: rgba(22,163,74,.08);
  --space-8: 8px; --space-16: 16px; --space-24: 24px; --space-32: 32px;
  --space-48: 48px; --space-64: 64px; --space-96: 96px; --space-128: 128px; --space-160: 160px;
  --content-width: 1200px; --gutter: var(--space-24); --ui-scale: 1; --btn-h: 48px; --btn-sm-h: 36px;
  --radius: var(--radius-16); /* Compatibility for pages outside this pilot. */
  --radius-8: 8px; --radius-16: 16px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15,28,46,.06), 0 1px 1px rgba(15,28,46,.04);
  --shadow-2: 0 2px 6px rgba(15,28,46,.06), 0 12px 32px -12px rgba(15,28,46,.16);
  --shadow-3: 0 4px 12px rgba(15,28,46,.08), 0 32px 64px -24px rgba(15,28,46,.24);
  --type-13: 13px; --type-15: 15px; --type-17: 17px; --type-20: 20px;
  --type-24: 24px; --type-32: 32px; --type-44: 44px; --type-56: 56px; --type-80: 80px;
  --sans: "Nunito Sans", sans-serif; --mono: "IBM Plex Mono", monospace;
  color-scheme: light;
}
/* Desktop scale (17 Nov, Michael: 0.8 viewed at 110% looks best, so the target is 0.88). From 1024px up the token
   values are scaled to about 0.88; text keeps a 13px floor. Phones and tablets below 1024px keep the base values above. */
@media (min-width: 1024px) {
  :root {
    --ui-scale: .88;
    --space-16: 14px; --space-24: 22px; --space-32: 28px;
    --space-48: 42px; --space-64: 56px; --space-96: 84px; --space-128: 112px; --space-160: 140px;
    --type-15: 14px; --type-17: 15px; --type-20: 18px;
    --type-24: 21px; --type-32: 28px; --type-44: 39px; --type-56: 49px; --type-80: 70px;
    --btn-h: 44px;
  }
  /* Only pages migrated to tokens opt in to the scaled column with `body.ds-v2` (design-system.md → Page opt-in). Unmigrated
     page families still carry literal sizes and keep 1200px. `vf-home` is kept as an alias so no home loses its column. */
  :root:has(body.ds-v2, body.vf-home) { --content-width: 1056px; }
}
/* Phone scale for migrated pages (design-system.md → Page opt-in). */
@media (max-width: 899px) {
  .vf-home, .ds-v2 { --type-20: 17px; --type-24: 20px; --type-32: 24px; --type-44: 36px; --type-56: 44px; --type-80: 44px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: var(--space-128); }
body { margin: 0; color: var(--ink); font: 450 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.vf-home, body.ds-v2 { font: 450 var(--type-17)/1.5 var(--sans); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--blue); }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
/* Legacy element sizes: only for the English pages that have not opted in to ds-v2. ds-v2 pages get the base at the end. */
h1, h2, h3, h4, p { margin: 0; }
h2 { font-size: 52px; line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
h3 { font-weight: 800; }
h1 { font-size: 80px; line-height: .98; letter-spacing: -.04em; font-weight: 300; }
h1 strong { font-weight: 800; color: var(--blue); }
address, em { font-style: normal; }
.thin { font-weight: 400; }
.accent { color: var(--blue); }
.container { width: min(var(--content-width), calc(100% - var(--space-48))); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.grid > * { min-width: 0; }
.section { margin-top: var(--space-160); }
.section-heading { margin-bottom: var(--space-64); }
.text-link { font-size: 17px; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.skip-link { position: fixed; top: var(--space-16); left: var(--space-24); z-index: 100; padding: var(--space-16); background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Shell: navigation ---------- */
/* Solid fallback; glass blurs what scrolls under it but never saturates it (17 Nov: no tinted halo behind the nav). */
.glass { background: var(--paper); border: 1px solid var(--line); box-shadow: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: linear-gradient(135deg,rgba(250,247,242,.9),rgba(250,247,242,.7)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .nav.glass { background: rgba(250,247,242,.6); }
}
/* 88px is the sticky header box below 1024px; scaled from 1024px up (see the end of this file). */
.site-header { height: 88px; position: sticky; top: 0; z-index: 20; padding-block: var(--space-16); }
.nav { min-height: calc(56px * var(--ui-scale)); align-items: center; border-radius: var(--radius-16); }
.brand { grid-column: 1/4; padding-left: var(--space-24); display: flex; align-items: center; gap: var(--space-8); white-space: nowrap; }
.brand-wordmark { font: 700 var(--type-17)/1.2 var(--sans); }
.brand img { height: calc(24px * var(--ui-scale)); width: auto; max-width: 100%; }
.nav-links { grid-column: 4/10; display: flex; align-items: center; justify-content: center; gap: var(--space-32); font-size: var(--type-15); font-weight: 700; }
.nav-dropdown { position: relative; }
/* 44px nav hit target is intentionally unscaled for accessibility; the pill itself stays 36px. */
.nav-dropdown summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; list-style: none; cursor: pointer; }
.nav-dropdown summary::-webkit-details-marker, .mobile-nav-group summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover, .nav-dropdown[open] summary { color: var(--blue-dark); }
.nav-dropdown-panel { position: absolute; z-index: 30; top: calc(100% + var(--space-8)); left: calc(-1 * var(--space-16)); min-width: calc(200px * var(--ui-scale)); display: grid; gap: var(--space-8); padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--paper); box-shadow: var(--shadow-2); }
.nav-dropdown-panel a { display: flex; align-items: center; min-width: 44px; min-height: 44px; padding-inline: var(--space-8); border-radius: var(--radius-8); white-space: nowrap; }
.nav-dropdown-panel a:hover { background: var(--blue-soft); }
.mobile-nav-group { width: 100%; }
.mobile-nav-heading { margin: 0; padding: var(--space-8); color: var(--muted); font-size: var(--type-13); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mobile-nav-group > div { display: grid; padding-left: var(--space-24); }
.mobile-nav-group > div a { padding-block: var(--space-8); }
.nav a { text-decoration: none; }
.nav-actions { grid-column: 10/13; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-16); padding-right: var(--space-16); }
/* Buttons (design-system.md → Buttons). Small: nav ask. Standard: .vf-cta in contact.css. Both filled blue pills. */
.contact-pill { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-sm-h); padding: 0 var(--space-16); border-radius: var(--radius-pill); background: var(--blue); color: var(--white); font: 700 var(--type-13)/1.2 var(--sans); white-space: nowrap; }
/* Unscaled 4px extension gives the 36px desktop pill a 44px hit area. */
.contact-pill::before { content: ""; position: absolute; inset-block: -4px; inset-inline: 0; }
.contact-pill:hover { background: var(--blue-dark); color: var(--white); }
.contact-pill:active { transform: scale(.98); }
.contact-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.language { display: flex; align-items: center; gap: var(--space-8); font-size: var(--type-13); font-weight: 700; white-space: nowrap; }
.language a { padding-block: var(--space-8); text-decoration: none; }
.language [aria-current] { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
@media (max-width: 1100px) {
  .nav-links { gap: var(--space-16); font-size: var(--type-13); grid-column: 4/10; }
  .brand { grid-column: 1/4; padding-left: var(--space-16); }
  .nav-actions { gap: var(--space-8); }
}
/* Native mobile navigation stays absent from the desktop layout. */
.mobile-menu { display: none; }
@media (max-width: 1023px) {
  .nav:has(.mobile-menu) { display: flex; flex-wrap: nowrap; position: relative; justify-content: space-between; gap: var(--space-16); min-height: calc(56px * var(--ui-scale)); padding: 0 var(--space-8) 0 var(--space-16); border-radius: var(--radius-16); }
  .nav:has(.mobile-menu) > .nav-links, .nav:has(.mobile-menu) > .nav-actions { display: none; }
  .nav:has(.mobile-menu) .brand { padding: 0; min-height: 44px; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 44px; padding: 0 var(--space-16); font-size: var(--type-13); font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--radius-16); }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { display: grid; place-items: center; }
  .mobile-menu summary svg { width: calc(20px * var(--ui-scale)); height: calc(20px * var(--ui-scale)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mobile-menu[open] summary { background: var(--blue-soft); }
  .mobile-menu[open] summary span { transform: rotate(45deg); }
  .mobile-menu-panel { position: absolute; top: calc(100% + var(--space-8)); left: 0; right: 0; padding: var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--paper); max-height: calc(100dvh - 96px); overflow-y: auto; }
  .mobile-menu-links { display: grid; }
  .mobile-menu-links a { display: flex; align-items: center; min-height: 48px; padding-inline: var(--space-8); font-size: var(--type-15); border-bottom: 1px solid var(--line-soft); }
  .mobile-menu-actions { display: flex; justify-content: space-between; align-items: center; gap: var(--space-16); margin-top: var(--space-16); }
  .mobile-menu .contact-pill { min-height: var(--btn-h); padding-inline: var(--space-24); font-size: var(--type-15); }
  .mobile-menu .language a, .site-footer .language a { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; }
}

/* ---------- Shell: footer (one tokenised footer on every page) ---------- */
.site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); font: 400 var(--type-15)/1.6 var(--sans); }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-48) var(--gutter); padding-block: var(--space-64); }
.site-footer .footer-grid > div { min-width: 0; }
.site-footer .footer-identity { grid-column: span 3; padding-right: var(--space-24); }
.site-footer .footer-sectors { grid-column: span 2; }
.site-footer .footer-company, .site-footer .footer-legal { grid-column: span 2; }
.site-footer .footer-guides { grid-column: span 3; }
.site-footer .footer-brand { display: inline-flex; align-items: center; gap: var(--space-8); font-size: var(--type-20); line-height: 1.6; font-weight: 700; letter-spacing: -.025em; }
.site-footer .footer-brand img { width: calc(40px * var(--ui-scale)); height: calc(32px * var(--ui-scale)); object-fit: contain; }
.site-footer .footer-positioning { margin-block: var(--space-16) var(--space-24); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer h2 { margin: 0 0 var(--space-16); color: var(--ink); font: 700 var(--type-15)/2 var(--sans); letter-spacing: 0; text-wrap: initial; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--space-8); }
.site-footer a, .site-footer li a:not([class]), .site-footer .cookie-prefs { color: inherit; text-decoration: none; }
.site-footer .cookie-prefs { appearance: none; border: 0; border-radius: 0; background: none; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.site-footer a:hover, .site-footer li a:not([class]):hover, .site-footer .cookie-prefs:hover { color: var(--blue-dark); text-decoration: underline; }
.site-footer :focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-24); padding-block: var(--space-24); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-13); }
.site-footer .language { flex-shrink: 0; font-size: var(--type-13); color: var(--ink); }
.site-footer .language [aria-current] { text-decoration: underline; text-decoration-color: currentColor; }
@media (max-width: 1023px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); padding-block: var(--space-48); }
  .site-footer .footer-grid > div { grid-column: 1 / -1; padding-right: 0; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-16); }
  .site-footer a, .site-footer .cookie-prefs { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer h2 { margin-bottom: var(--space-8); }
  .site-footer li + li { margin-top: 0; }
  .site-footer .footer-linkedin { margin-top: var(--space-8); }
  .site-footer .footer-jobs { display: flex; margin-top: var(--space-8); }
}

/* ---------- Hero glow (every page hero except Chi siamo; 17 Nov) ----------
   The glow is painted inside the hero box only: it starts at the hero's top edge (never under the nav) and fades in
   over --space-96 (and out at its foot), so nothing tints the glass header. Home: blue + warm. Inner pages: the blue half only. */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -64px; pointer-events: none; background: radial-gradient(ellipse at 75% 28%,rgba(45,107,255,.45),transparent 72%),radial-gradient(ellipse at 30% 55%,rgba(255,192,132,.4),transparent 70%); filter: blur(72px); -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--space-96), black calc(100% - var(--space-96)), transparent); mask-image: linear-gradient(to bottom, transparent, black var(--space-96), black calc(100% - var(--space-96)), transparent); }
.ds-v2 .hero::before { background: radial-gradient(ellipse at 75% 28%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 72%); }
.vf-home .hero::before { background: radial-gradient(ellipse at 75% 28%,rgba(45,107,255,.15),transparent 72%),radial-gradient(ellipse at 30% 55%,rgba(255,192,132,.13),transparent 70%); }
.vf-sector .hero::before { background: radial-gradient(ellipse at 75% 28%, color-mix(in srgb, var(--blue) 15%, transparent), transparent 72%), radial-gradient(ellipse at 30% 55%, color-mix(in srgb, var(--glow-warm) 13%, transparent), transparent 70%); }
@media (max-width: 760px) {
  .hero::before { inset: 0 0 -16px; background: radial-gradient(ellipse at 72% 45%,rgba(45,107,255,.24),transparent 74%), radial-gradient(ellipse at 32% 60%,rgba(255,192,132,.28),transparent 72%); filter: none; }
  .ds-v2 .hero::before { background: radial-gradient(ellipse at 72% 45%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 74%); }
  .vf-home .hero::before { background: radial-gradient(ellipse at 72% 45%,rgba(45,107,255,.08),transparent 74%), radial-gradient(ellipse at 32% 60%,rgba(255,192,132,.09),transparent 72%); }
  .vf-sector .hero::before { background: radial-gradient(ellipse at 72% 45%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 74%), radial-gradient(ellipse at 32% 60%, color-mix(in srgb, var(--glow-warm) 9%, transparent), transparent 72%); }
}
@media (prefers-contrast: more) { .hero::before { display: none; } }

/* ---------- Inner-page hero (design-system.md → Inner-page hero) ----------
   Kicker → h1 (--type-56, bold + .thin) → .lead → at most one .vf-cta, with an optional right object on a 7/5 split. */
.page-hero { padding-block: var(--space-64) var(--space-96); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; }
.page-hero-grid > * { min-width: 0; }
.page-hero h1 { max-width: 20ch; margin-top: var(--space-24); }
.page-hero h1:first-child { margin-top: 0; }
.page-hero .vf-cta { margin-top: var(--space-32); }
.page-hero-art { width: calc(220px * var(--ui-scale)); height: auto; justify-self: center; }
/* Kicker: "Area · Page", heroes and frame headers (sector section labels are the one kept exception). */
.kicker { margin: 0; color: var(--muted); font-size: var(--type-13); line-height: 1.4; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kicker a, .kicker a:not([class]) { color: inherit; text-decoration: none; }
.kicker a:hover, .kicker a:not([class]):hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
/* Chips (Michael, 27 Nov): coloured labels in place of grey uppercase kickers. Small and pale, never a filled
   blue pill, so they never read as the CTA. Always coloured, never grey. */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; text-transform: none; letter-spacing: 0; }
.hero .kicker.chips { margin-bottom: var(--space-24); } /* clear of the H1 (Michael, 27 Nov) */
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-16); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--tint, var(--ink)) 9%, var(--white)); color: var(--tint-ink, var(--ink)); font-size: var(--type-13); line-height: 1.3; font-weight: 700; letter-spacing: 0; text-transform: none; text-decoration: none; }
.chips a.chip, .chips a.chip:not([class]) { color: var(--tint-ink, var(--ink)); text-decoration: none; }
.chips a.chip:hover { background: color-mix(in srgb, var(--tint, var(--ink)) 17%, var(--white)); color: var(--tint-ink, var(--ink)); text-decoration: none; }
.chips a.chip:focus-visible, a.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Chips colour by position, not by sector (Michael, 27 Nov): no grey chips; an explicit t-* class wins. */
.chips > .chip:nth-child(4n+1) { --tint: var(--blue); --tint-ink: var(--blue-dark); }
.chips > .chip:nth-child(4n+2) { --tint: var(--sea); --tint-ink: var(--sea); }
.chips > .chip:nth-child(4n+3) { --tint: var(--sunset); --tint-ink: color-mix(in srgb, var(--sunset) 55%, var(--ink)); }
.chips > .chip:nth-child(4n+4) { --tint: var(--ok); --tint-ink: color-mix(in srgb, var(--ok) 72%, var(--ink)); }
.t-blue { --tint: var(--blue); --tint-ink: var(--blue-dark); }
.t-sea { --tint: var(--sea); --tint-ink: var(--sea); }
.t-sunset { --tint: var(--sunset); --tint-ink: color-mix(in srgb, var(--sunset) 55%, var(--ink)); }
.t-ok { --tint: var(--ok); --tint-ink: color-mix(in srgb, var(--ok) 72%, var(--ink)); }
.t-deep { --tint: color-mix(in srgb, var(--sea) 55%, var(--blue-dark)); --tint-ink: color-mix(in srgb, var(--sea) 55%, var(--blue-dark)); }
.footer-jobs { display: flex; width: fit-content; align-items: center; gap: var(--space-8); margin-top: var(--space-16); color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-jobs:hover { text-decoration: underline; text-underline-offset: .2em; }
.section-kicker { margin-bottom: var(--space-16); }
/* Lead: the paragraph under a page or section heading. */
.lead { max-width: 60ch; margin-top: var(--space-24); color: var(--text-2); font-size: var(--type-20); line-height: 1.5; font-weight: 400; text-wrap: pretty; }
@media (max-width: 899px) {
  .page-hero { padding-block: var(--space-48) var(--space-64); }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art { grid-row: 1; justify-self: start; }
  .page-hero h1 { max-width: none; }
}

/* Section intro and standalone text link on migrated pages. */
.ds-v2 .intro { margin-top: var(--space-24); max-width: 60ch; color: var(--text-2); font-size: var(--type-20); line-height: 1.5; }
/* Standalone text link: bold ink, inline SVG arrow, underline on hover. */
.ds-v2 .text-link { display: inline-flex; align-items: center; gap: var(--space-8); color: var(--ink); font-size: var(--type-15); line-height: 1.5; font-weight: 700; text-decoration: none; }
.ds-v2 .text-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: .2em; }
.ds-v2 .text-link svg { flex: none; width: calc(16px * var(--ui-scale)); height: calc(16px * var(--ui-scale)); }

/* ---------- Section (full-width rule, even band) and section heading ---------- */
.band { padding-block: var(--space-96); border-top: 1px solid var(--line); scroll-margin-top: var(--space-96); }
@media (max-width: 760px) { .band { padding-block: var(--space-64); } }

/* ---------- Ruled grid (facts row, problem index, KPIs, network, founder facts, sector links) ----------
   Open list: --line rules top and bottom, --line-soft dividers, cells --space-24, bold label plus one --text-2 line. */
.ruled-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.ruled-grid > * { min-width: 0; padding: var(--space-24); font-size: var(--type-15); line-height: 1.5; }
.ruled-grid > * + * { border-left: 1px solid var(--line-soft); }
.ruled-grid strong { display: block; color: var(--ink); font-weight: 700; }
.ruled-grid p, .ruled-grid span { display: block; margin: var(--space-8) 0 0; color: var(--text-2); }
@media (max-width: 899px) {
  .ruled-grid { grid-template-columns: minmax(0, 1fr); }
  .ruled-grid > * { padding: var(--space-16); }
  .ruled-grid > * + * { border-left: 0; border-top: 1px solid var(--line-soft); }
}

/* ---------- Frame (product frames: artefacts, mocks, route; design-system.md → Frame) ----------
   White, 1px --line, --radius-16, --shadow-1; header row, --line-soft rows, status band at the foot. */
.frame, .sv-mock, .sv-showcase, .artifact, .how-route, .chi-siamo .cs-sheet { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--white); box-shadow: var(--shadow-1); }
.frame-head, .sv-mock > header, .sv-stage-toolbar, .artifact-header, .chi-siamo .cs-sheet > h3 { padding: var(--space-16) var(--space-24); border-bottom: 1px solid var(--line-soft); }
/* Status band: paper = done or visible, paper-2 = waiting on a person, blue tint = needs approval. */
.frame-status, .sv-status, .artifact-status, .chi-siamo .cs-status { --status-bg: var(--paper); --status-ink: var(--ink); display: flex; align-items: center; gap: var(--space-8); margin: 0; padding: var(--space-16) var(--space-24); border-top: 1px solid var(--line-soft); background: var(--status-bg); color: var(--muted); font-size: var(--type-13); line-height: 1.4; font-weight: 600; }
.frame-status-wait, .sv-status-wait, .artifact-status.status-wait { --status-bg: var(--paper-2); }
.frame-status-review, .sv-status-review, .artifact-status.status-review { --status-bg: var(--blue-soft); --status-ink: var(--blue-dark); }
:is(.frame-status, .sv-status, .artifact-status, .chi-siamo .cs-status) > svg { flex: none; box-sizing: content-box; width: calc(14px * var(--ui-scale)); height: calc(14px * var(--ui-scale)); padding: calc(var(--space-8) / 2); border: 1px solid var(--line-soft); border-radius: 50%; background: var(--white); color: var(--status-ink); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:is(.frame-status, .sv-status, .artifact-status, .chi-siamo .cs-status) > span { min-width: 0; }
:is(.frame-status, .sv-status, .artifact-status, .chi-siamo .cs-status) strong { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
  .frame-head, .sv-mock > header, .sv-stage-toolbar, .artifact-header, .chi-siamo .cs-sheet > h3, .frame-status, .sv-status, .artifact-status, .chi-siamo .cs-status { padding-inline: var(--space-16); }
}

/* ---------- Ask (design-system.md → Mid-page ask, Closing) ----------
   Mid-page: one bold line, one --text-2 line, one .vf-cta, no frame. Closing on every page but the home: one white
   ask frame (h2 --type-32, one line of copy, one .vf-cta on the right). The ink band closes the home only. */
.ask-inline { display: grid; justify-items: start; gap: var(--space-16); max-width: 60ch; }
.ask-inline h2, .ask-inline .ask-title { margin: 0; color: var(--ink); font-size: var(--type-32); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.ask-inline p { margin: 0; color: var(--text-2); font-size: var(--type-17); line-height: 1.5; }
.ask-inline .vf-cta { margin-top: var(--space-8); }
/* Soft-blue ask band; layout follows the approved Distribuzione concept.
   Heading sizes come from the shared ds-v2 hierarchy. */
.ask-band { padding-block: var(--space-96); background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
.ask-band-content { display: grid; justify-items: start; gap: var(--space-24); max-width: 62ch; }
.ask-band p { margin: 0; color: var(--text-2); font-size: var(--type-20); line-height: 1.5; max-width: 52ch; }
.ask-band .vf-cta { margin-top: var(--space-8); }
@media (max-width: 760px) {
  .ask-band { padding-block: var(--space-64); }
  .ask-band p { font-size: var(--type-17); }
}
.ask { padding-bottom: var(--space-96); }
.ask-frame { display: flex; align-items: center; justify-content: space-between; gap: var(--space-32); padding: var(--space-32); border: 1px solid var(--line-soft); border-radius: var(--radius-16); background: var(--white); box-shadow: var(--shadow-2); }
.ask-frame > div { min-width: 0; max-width: 60ch; }
.ask-frame h2 { margin: 0; color: var(--ink); font-size: var(--type-32); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.ask-frame h2 strong { font-weight: 700; color: inherit; }
.ask-frame h2 .thin { font-weight: 400; }
.ask-frame p { margin-top: var(--space-16); color: var(--text-2); font-size: var(--type-17); line-height: 1.5; }
.ask-frame .vf-cta { flex: 0 0 auto; margin: 0; }
@media (max-width: 899px) {
  .ask-frame { flex-direction: column; align-items: flex-start; padding: var(--space-24); }
}
@media (max-width: 760px) {
  .ask { padding-bottom: var(--space-64); }
  .ask-frame { padding: var(--space-24) var(--space-16); }
  .ask-frame .vf-cta { width: 100%; }
}

/* ---------- Mature surfaces (Michael, 27 Nov: Lavora con noi is the reference; careers.css) ----------
   More space between sections, white cards with a soft edge and depth, pill labels, one dark band for key facts.
   New work uses these; older page components adopt them as they are touched. Demos and reels keep their own frames. */
/* Card: white, 1px --line-soft, --radius-16, --shadow-2. Linked cards lift 2px to --shadow-3. */
.surface { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-16); box-shadow: var(--shadow-2); }
.surface-pad { padding: var(--space-24); }
a.surface, .surface-link { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.surface:hover, .surface-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
a.surface:focus-visible, .surface-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { a.surface, .surface-link { transition: none; } a.surface:hover, .surface-link:hover { transform: none; } }
/* Feature frame: the one principal graphic of a section. Opt-in on top of .frame or .surface. */
.frame-feature { border-color: var(--line-soft); box-shadow: var(--shadow-3); }
/* Open section rhythm: air between groups instead of a rule above every chapter. */
.section-open { padding-block: var(--space-128) 0; }
.section-open > .container > h2:first-child, .section-open .section-head { margin-bottom: var(--space-48); }
@media (max-width: 899px) { .section-open { padding-block: var(--space-96) 0; } .section-open > .container > h2:first-child, .section-open .section-head { margin-bottom: var(--space-32); } }
/* Secondary heading tier for indexes, proofs and FAQs: --type-44 desktop, --type-32 phone. */
.ds-v2 .h2-module, .ds-v2 h2.h2-module { font-size: var(--type-44); line-height: 1.1; }
@media (max-width: 899px) { .ds-v2 .h2-module, .ds-v2 h2.h2-module { font-size: var(--type-32); } }
/* Pill label: quiet metadata. Tint by --tint / --tint-ink (defaults blue). */
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-16); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--tint, var(--blue)) 13%, var(--white)); color: var(--tint-ink, var(--blue-dark)); font-size: var(--type-13); line-height: 1.4; font-weight: 700; }
.pill-line { background: var(--white); border: 1px solid var(--line-soft); color: var(--ink); }
/* Dark facts band: the decision facts in one ink block (careers .job-terms). */
.facts-band { margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); background: var(--ink); border-radius: var(--radius-16); box-shadow: var(--shadow-3); overflow: hidden; list-style: none; padding: 0; }
.facts-band > * { padding: var(--space-32) var(--space-24); color: var(--white); }
.facts-band > * + * { border-left: 1px solid color-mix(in srgb, var(--white) 14%, transparent); }
.facts-band :is(dt, .fb-label) { color: color-mix(in srgb, var(--white) 70%, transparent); font-size: var(--type-13); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.facts-band :is(dd, .fb-value) { display: block; margin: var(--space-8) 0 0; color: var(--white); font-size: var(--type-32); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.facts-band :is(small, .fb-note) { display: block; margin-top: var(--space-8); color: color-mix(in srgb, var(--white) 78%, transparent); font-size: var(--type-13); line-height: 1.4; font-weight: 400; letter-spacing: 0; }
@media (max-width: 899px) { .facts-band { grid-template-columns: minmax(0, 1fr); } .facts-band > * + * { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent); } }

/* Ask card on the blue band (Michael, 27 Nov): the band gives the «stacco», the white .ask-frame card on it carries
   the shadow and the CTA on the right (desktop); stacked on phones. Sector closes and mid asks, Come lavoriamo, Chi siamo. */
section.sector-close, section.ask-band.has-card { padding-block: var(--space-96); background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
section.sector-mid { padding-block: var(--space-64); background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
/* The card already marks the break: no chapter rule straight under it. */
.sector-mid + section { border-top-color: transparent; }
.ask-frame.sector-ask { gap: var(--space-48); }
.ask-frame.sector-ask > .sector-ask-copy { max-width: 62ch; }
.ds-v2 .ask-frame.sector-ask h2 { font-size: var(--type-44); line-height: 1.1; letter-spacing: -.03em; }
.ask-frame.sector-ask .sector-ask-copy p { color: var(--text-2); font-size: var(--type-17); line-height: 1.5; }
.ask-frame.sector-ask > .vf-cta { flex: 0 0 auto; width: auto; margin: 0; }
@media (min-width: 900px) { .ask-frame.sector-ask { padding: var(--space-48) var(--space-64); } }
@media (max-width: 899px) {
  section.sector-close, section.ask-band.has-card { padding-block: var(--space-64); }
  section.sector-mid { padding-block: var(--space-48); }
  .ask-frame.sector-ask { gap: var(--space-32); }
}
@media (max-width: 760px) { .ask-frame.sector-ask > .vf-cta { width: 100%; } }

/* ---------- Card (whole-card link): white surface, 1px --line, --radius-16, hover blue border + --blue-soft ----------
   Sector cards (17 Nov, Michael: "cells sized to the content they hold"): compact, the drawing beside the title in a
   calc(72px) box, --space-16 padding, rows sized to content; the "Un altro settore?" cell is the same card without art. */
.sectors { gap: var(--space-16); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.vf-home .sector-card { box-shadow: var(--shadow-1); }
.sector-card { grid-column: auto; min-height: 0; display: grid; grid-template-columns: calc(72px * var(--ui-scale)) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: var(--space-16); align-items: start; padding: var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--white); color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.sector-card > :not(.sector-art) { grid-column: 2; min-width: 0; }
.sector-card[href]:hover { color: inherit; border-color: var(--blue); background: var(--blue-soft); }
.sector-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sector-art { grid-column: 1; grid-row: 1 / -1; align-self: start; display: flex; align-items: center; height: calc(52px * var(--ui-scale)); margin: 0; }
.sector-art img { width: 100%; height: 100%; object-fit: contain; }
.sector-card h3 { font-size: var(--type-20); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
/* The whole card is the link: a small arrow beside the title carries it (no repeated "Leggi"), moving on hover. */
.sector-card h3 { display: flex; align-items: center; gap: var(--space-8); }
.sector-arrow { flex: none; width: calc(16px * var(--ui-scale)); height: calc(16px * var(--ui-scale)); color: var(--blue-dark); transition: transform 160ms ease; }
.sector-card[href]:hover .sector-arrow, .sector-card:focus-visible .sector-arrow { transform: translateX(var(--space-8)); }
@media (prefers-reduced-motion: reduce) { .sector-arrow { transition: none; } }
.sector-card p { margin-top: var(--space-8); color: var(--text-2); font-size: var(--type-15); line-height: 1.5; }
.sector-card .text-link { margin-top: var(--space-8); align-self: end; justify-self: start; min-height: 0; font-size: var(--type-15); }
.sector-invite { appearance: none; grid-template-columns: minmax(0, 1fr); }
.sector-invite > :not(.sector-art) { grid-column: 1; }
.sector-invite:hover { border-color: var(--blue); background: var(--blue-soft); }
.sector-invite:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vf-home .vf-sectors { padding-block: var(--space-64); }
.vf-home .vf-sectors .section-heading { margin-bottom: var(--space-32); }
.vf-home .grid.sectors > .sector-card { grid-column: auto; }
.vf-home .sector-card .text-link { min-height: 0; }
@media (max-width: 1023px) { .vf-home .grid.sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); } }
@media (max-width: 599px) { .vf-home .grid.sectors { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home ---------- */
.hero-grid { min-height: 0; align-items: start; padding-block: var(--space-96) var(--space-128); }
.hero-copy { grid-column: 1/7; }
.hero-tagline { margin-top: var(--space-24); font-size: var(--type-24); line-height: 1.3; letter-spacing: -.01em; font-weight: 400; }
.hero-visual { grid-column: 7/13; position: relative; isolation: isolate; }
.hero-reel { width: 100%; min-width: 0; border-radius: var(--radius-16); }
/* Home hero (17 Nov, Michael: the copy sat too close to the reel). Copy and reel keep their six columns each, and the
   hero grid opens its centre gutter to --space-64, so a two-line h1 and an 11-word subtitle never run into the reel. */
@media (min-width: 900px) { .vf-home .hero-grid { column-gap: var(--space-64); } }
/* Slot fallbacks are scoped so a worker can replace the inner markup safely. */
.hero-poster { min-height: 448px; padding: var(--space-24); display: flex; flex-direction: column; }
.hero-poster h2 { font-size: var(--type-20); line-height: 1.2; letter-spacing: -.02em; }
.heading-copy { grid-column: 1/8; }
.intro { font-size: 20px; line-height: 1.45; color: var(--muted); margin-top: var(--space-24); }
/* English home: the "how it works" example (how.css drives the app). */
.example-grid { margin-bottom: var(--space-24); }
.example-card { grid-column: span 4; border: 1px solid var(--line); border-radius: var(--radius-16); padding: var(--space-24); }
.example-card.is-selected { border-color: var(--blue); background: var(--blue-soft); }
.example-card h3 { font-size: var(--type-20); line-height: 1.3; }
.example-card p { margin-top: var(--space-8); font-size: var(--type-13); color: var(--text-2); }
.how-summary { margin-inline: calc(-1 * var(--space-24)); padding: var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-16); align-items: start; }
.how-input { grid-column: 1/4; }
.how-transform { grid-column: 4/8; }
.how-output { grid-column: 8/13; border-radius: var(--radius-16); padding: var(--space-24); }
.how-summary h3 { font-size: var(--type-17); line-height: 1.35; }
.how-summary p { margin-top: var(--space-16); }
.input-message { border-radius: var(--radius-16); padding: var(--space-16); background: var(--line-soft); font-weight: 600; }
.input-art { height: calc(160px * var(--ui-scale)); width: auto; margin: var(--space-24) auto 0; }
.summary-steps, .alternatives { list-style: none; margin: var(--space-24) 0 0; padding: 0; }
.summary-steps li, .alternatives li { border-top: 1px solid var(--line-soft); padding-block: var(--space-16); font-size: var(--type-15); }
.key-figure { color: var(--blue); font-size: var(--type-44); line-height: 1.1; font-weight: 700; letter-spacing: -.04em; }
.alternatives { margin-top: var(--space-16); font-size: var(--type-13); }
.output-draft { font-size: var(--type-13); padding: var(--space-16); background: var(--line-soft); border-radius: var(--radius-16); }
/* Founder band */
.who { padding-block: var(--space-128); background: var(--line-soft); }
.vf-home .who { background: var(--paper); border-block: 1px solid var(--line); }
.who-grid { align-items: center; }
.who-portrait { grid-column: 1/5; height: calc(480px * var(--ui-scale)); overflow: hidden; border-radius: var(--radius-16); }
.who-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.who-copy { grid-column: 6/12; }
.who-copy p { font-size: var(--type-20); line-height: 1.5; margin-block: var(--space-32); color: var(--text-2); }
/* Closing ink band: the home only (and the English sector pages that have not migrated). */
.contact { background: var(--ink); color: var(--paper); padding-block: var(--space-128); scroll-margin-top: var(--space-24); }
.contact a { color: #709BFF; }
.contact a:hover { color: var(--paper); }
.contact :focus-visible { outline-color: #709BFF; }
.contact > .grid { align-items: center; }
.contact h2 { grid-column: 1/7; margin: 0; font-size: clamp(56px, 6.8vw, 88px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; text-wrap: initial; }
.contact .contact-copy { grid-column: 8/13; }
.contact .contact-intro { font-size: clamp(20px, 1.7vw, 22px); line-height: 1.5; color: rgba(250,247,242,.85); }
.contact .contact-email { display: inline-block; margin-top: var(--space-32); color: #8FB0FF; font-size: clamp(28px, 2.5vw, 32px); line-height: 1.3; font-weight: 700; letter-spacing: -.025em; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.contact .contact-email:hover { color: var(--paper); text-decoration-thickness: 4px; }
.contact .contact-email:focus-visible { outline-color: #8FB0FF; }
.contact .vf-cta:focus-visible { outline-color: var(--paper); }
.vf-home .contact h2 { font-size: var(--type-56); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; }
.vf-home .contact .contact-intro { font-size: var(--type-20); }
@media (max-width: 1100px) { .contact h2 { font-size: 112px; } }
@media (max-width: 899px) {
  .contact > .grid { row-gap: var(--space-48); }
  .contact h2, .contact .contact-copy { grid-column: 1/-1; }
  .contact h2 { font-size: clamp(48px, 8vw, 72px); overflow-wrap: normal; }
  .contact .contact-copy { max-width: 560px; }
  .contact h2 { font-size: clamp(52px,11vw,96px); overflow-wrap: anywhere; }
}
/* Home layout */
.vf-home .hero-copy { padding-top: var(--space-48); }
.vf-home .hero-copy h1 { font-size: var(--type-80); line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.vf-home .hero-copy h1 strong { font-weight: 700; color: var(--ink); }
.vf-home .hero-copy h1 .thin { font-weight: 400; }
.vf-home .hero-copy h1 .accent { color: var(--blue); }
.vf-home .hero-reel { background: var(--white); border: 1px solid var(--line); }
.vf-home .heading-art { display: none; }
.vf-home .section-heading, .vf-home .who-copy h2, .vf-home .contact h2 { text-align: left; }
.vf-home .section-heading { margin-bottom: var(--space-48); }
.vf-home .section-heading .heading-copy { grid-column: 1 / -1; max-width: none; }
.vf-home .section-heading .intro { max-width: 60ch; margin-top: var(--space-24); font-size: var(--type-20); line-height: 1.5; color: var(--text-2); }
.vf-home .intro, .vf-home .vf-capability-lead, .vf-home .vf-capabilities-close, .vf-home .vf-cta-mid-copy p { color: var(--text-2); }
.vf-home .text-link { color: var(--ink); min-height: 48px; display: inline-flex; align-items: center; }
.vf-home .vf-capabilities-close strong { color: var(--ink); }
.vf-home .section:not(.hero) { position: relative; margin-top: 0; padding-block: var(--space-96); border-top: 1px solid var(--line); }
.vf-home .who, .vf-home .contact { padding-block: var(--space-160); }
.vf-home .proof-line { margin-top: var(--space-24); color: var(--muted); font-size: var(--type-15); line-height: 1.5; font-weight: 600; max-width: none; white-space: nowrap; }
/* Facts row: the ruled grid, three columns. */
.vf-home .vf-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-block: 1px solid var(--line); }
.vf-home .vf-facts > div { min-width: 0; padding: var(--space-24); font-size: var(--type-15); line-height: 1.5; }
.vf-home .vf-facts > div + div { border-left: 1px solid var(--line-soft); }
.vf-home .vf-facts strong { color: var(--ink); font-weight: 700; }
.vf-home .vf-facts p { margin: var(--space-8) 0 0; color: var(--text-2); }
.vf-home .vf-capabilities .vf-cta-mid-copy { margin-top: var(--space-48); }
.vf-home .massimo-card { display: flex; align-items: flex-start; gap: var(--space-16); margin: var(--space-32) 0 0; padding: var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--white); }
.vf-home .massimo-card picture { flex: 0 0 calc(48px * var(--ui-scale)); width: calc(48px * var(--ui-scale)); height: calc(48px * var(--ui-scale)); overflow: hidden; border-radius: 50%; }
.vf-home .massimo-card img { display: block; width: calc(48px * var(--ui-scale)); height: calc(48px * var(--ui-scale)); max-width: 100%; border-radius: 50%; object-fit: cover; }
.vf-home .massimo-card figcaption { min-width: 0; display: grid; gap: var(--space-8); color: var(--muted); font-size: var(--type-13); line-height: 1.4; }
.vf-home .massimo-card figcaption > strong { color: var(--ink); font-size: var(--type-15); }
.vf-home .massimo-card blockquote { margin: 0; color: var(--text-2); font-size: var(--type-15); line-height: 1.5; }
.vf-home .massimo-card small { font: inherit; }
.vf-home .who-copy .inline-link { color: var(--ink); font-weight: inherit; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.vf-home .who-copy .inline-link:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 1023px) {
  .vf-home { font-size: var(--type-15); }
  .vf-home .container { width: calc(100% - var(--space-32)); }
  .vf-home .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-16); row-gap: var(--space-24); }
  .vf-home .grid > * { grid-column: 1 / -1; }
  .vf-home .site-header { height: 72px; padding-block: var(--space-8); }
  .vf-home .hero-grid { min-height: 0; padding-block: var(--space-16) 0; row-gap: var(--space-64); }
  .vf-home .hero-copy h1 { max-width: none; }
  .vf-home .contact > .grid { row-gap: 40px; }
  .vf-home .hero-tagline { font-size: var(--type-17); line-height: 1.4; margin-top: var(--space-24); max-width: 400px; }
  .vf-home .vf-hero-ask { margin-top: 40px; }
  .vf-home .vf-hero-ask p { margin-bottom: var(--space-24); }
  .vf-home .hero-copy { max-width: none; }
  .vf-home .hero-visual { width: 100%; min-width: 0; }
  .vf-home .heading-copy { max-width: 640px; }
  .vf-home .intro { margin-top: var(--space-16); font-size: var(--type-17); line-height: 1.45; }
  .vf-home #come-funziona-app { width: 100%; min-width: 0; }
  .vf-home .who-portrait { width: min(100%, 240px); height: 320px; justify-self: center; }
  .vf-home .who-copy p { font-size: var(--type-17); margin-block: var(--space-24) var(--space-16); }
  .vf-home .contact .contact-intro { font-size: var(--type-20); }
  .vf-home .contact .contact-email { margin-top: var(--space-24); min-height: 44px; max-width: 100%; font-size: var(--type-24); overflow-wrap: anywhere; }
}
@media (max-width: 899px) {
  .grid { grid-template-columns: minmax(0,1fr); row-gap: var(--space-24); }
  .grid > * { grid-column: 1/-1; }
  .site-header { height: auto; padding-block: var(--space-8); }
  .nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-16); padding: var(--space-16); border-radius: var(--radius-16); }
  .brand { padding: 0; }
  .nav-actions { padding: 0; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
  .hero-grid { min-height: auto; padding-block: var(--space-96); row-gap: var(--space-64); }
  .hero-copy { max-width: 588px; }
  .hero-visual { width: min(100%,588px); justify-self: center; }
  .who-portrait { width: min(100%,384px); }
  .who-grid { row-gap: var(--space-48); }
  .vf-home .section { margin-top: 0; padding-block: var(--space-96); }
  .vf-home .hero-grid { padding-block: var(--space-96) var(--space-64); row-gap: var(--space-48); }
  .vf-home .hero-copy { padding-top: var(--space-48); }
  .vf-home .who, .vf-home .contact { padding-block: var(--space-96); }
  .vf-home .proof-line { white-space: normal; max-width: 60ch; }
  .vf-home .vf-facts { grid-template-columns: minmax(0,1fr); }
  .vf-home .vf-facts > div { padding: var(--space-16); }
  .vf-home .vf-facts > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .vf-home .contact h2 { font-size: var(--type-44); line-height: 1.05; overflow-wrap: normal; }
}
@media (max-width: 760px) {
  .vf-home .hero-copy { padding-top: 0; }
  .vf-home .who-grid { row-gap: 40px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - var(--space-32)); }
  .brand img { max-width: 96px; }
}

/* ---------- Legacy English pages (not on ds-v2): literal sizes kept until they migrate ---------- */
@media (max-width: 1100px) { h1 { font-size: 68px; } }
@media (max-width: 899px) { h1 { font-size: 72px; max-width: 486px; } h2 { font-size: 44px; } }
@media (max-width: 480px) { h1 { font-size: 64px; } h2 { font-size: 40px; } }

/* ---------- ds-v2 base (every migrated page). :where() keeps it at element specificity, so components win. ---------- */
:where(.ds-v2) h1 { max-width: none; font-size: var(--type-56); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; }
:where(.ds-v2) h1 strong, :where(.ds-v2) h2 strong { color: inherit; font-weight: 700; }
:where(.ds-v2) h1 .thin, :where(.ds-v2) h2 .thin { font-weight: 400; }
/* Section heading: one size on every page (17 Nov, Michael): --type-56, --type-44 below 900px. Bold phrase, thin phrase. */
:where(.ds-v2) h2 { font-size: var(--type-56); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; }
:where(.ds-v2) h3 { font-weight: 700; }
@media (max-width: 899px) { :where(.ds-v2) h2 { font-size: var(--type-44); line-height: 1.08; } }

/* Wave 1 (17 Nov): balanced headings, no one-word last lines in prose. */
h1, h2, h3, h4, .contact-intro, .hero-tagline, .vf-capability-lead { text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }

/* Inline links inside running text: understated, same colour as the paragraph; standalone text links stay bold. */
p a:not([class]), li a:not([class]), .inline-link { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: .2em; }
p a:not([class]):hover, li a:not([class]):hover, .inline-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Desktop scale: literal sizes that tokens do not reach. */
@media (min-width: 1024px) {
  .site-header { height: calc(88px * var(--ui-scale)); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass, .nav.glass { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) { :root { --muted: var(--ink); --line: var(--ink); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
