/* Studio Ceccarelli — "farmacia di turno" at night, in the studio palette.
   Brand: navy #1E2B69, red #C32F26, silver grey #AAAAAC.
   Machine = silver (chrome of the wordmark). Human = studio red. */
:root {
  /* channels, so scrims and tints can use rgb(var(--x-rgb) / a) */
  --ground-rgb: 9 14 46;           /* deep night navy, derived from #1E2B69 */
  --ground-2-rgb: 18 27 74;
  --machine-rgb: 170 170 172;      /* #AAAAAC */
  --machine-soft-rgb: 222 222 226;
  --human-rgb: 195 47 38;          /* #C32F26 */

  --ground: rgb(var(--ground-rgb));
  --ground-2: rgb(var(--ground-2-rgb));
  --ground-3: #1e2b69;             /* brand navy */
  --ink: #eef0f6;
  --ink-2: #c6cad8;
  --ink-3: #aaaaac;                /* brand grey */
  --machine: rgb(var(--machine-rgb));
  --machine-soft: rgb(var(--machine-soft-rgb));
  --machine-deep: #7d7d82;
  --human: rgb(var(--human-rgb));
  --human-soft: #f6c3bd;           /* light tint of the red, for text */
  --line: rgb(var(--machine-rgb) / 0.18);
  --line-strong: rgb(var(--machine-rgb) / 0.36);
  --warm-line: rgb(var(--human-rgb) / 0.75);
  --danger: #ffc857;               /* amber, so errors never read as the brand red */

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-roman: "Marcellus SC", "Optima", "Trajan Pro", Georgia, serif;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --s1: 0.5rem; --s2: 0.75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2.25rem; --s6: 3.5rem; --s7: 5.5rem;
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #3a4478 var(--ground); scrollbar-width: thin; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--human);
}
::selection { background: var(--machine); color: var(--ground); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #2c3768; border-radius: 10px; border: 2px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: #4a558c; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgb(var(--machine-soft-rgb) / 0.45); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--machine); }
:focus-visible { outline: 2px solid var(--human-soft); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: fixed; left: var(--gutter); top: -60px; z-index: 100; background: var(--machine); color: var(--ground); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- WebGL layer ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-3d #scene { display: none; }
.no-3d body, body.no-3d {
  background:
    radial-gradient(60% 50% at 78% 40%, rgb(var(--machine-rgb) / 0.14), transparent 70%),
    radial-gradient(40% 35% at 62% 62%, rgb(var(--human-rgb) / 0.12), transparent 70%),
    var(--ground);
  background-attachment: fixed;
}
.cut { position: fixed; inset: 0; background: #03051a; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .18s ease-in; }
.cut.on { opacity: 1; }

/* ---------- navigation ---------- */
.nav.scrolled { background: rgb(var(--ground-rgb) / 0.94); }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s4);
  padding: 1rem var(--gutter);
  background: linear-gradient(to bottom, rgb(var(--ground-rgb) / 0.92), rgb(var(--ground-rgb) / 0.55) 60%, transparent);
}
.brand {
  /* the incumbent chrome wordmark, rebuilt as live text: flared small caps, tall S and C, polished silver */
  font: 400 1.32rem/1 var(--f-roman); letter-spacing: 0.06em; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #e6e6e9 34%, #8f8f94 50%, #d6d6da 62%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgb(var(--machine-soft-rgb) / 0.08));
}
.brand:focus-visible { color: var(--ink); background: none; }
/* image logo: 2020_Logo_Studio HQ.png as-is (white plate), resized; the live-text .brand above stays for the footer */
.brand--logo { display: block; background: none; filter: none; flex: none; }
.brand--logo img { display: block; width: min(361px, 62vw); height: auto; }
.brand small { display: block; font: 500 0.62rem/1.2 var(--f-mono); letter-spacing: 0.14em; color: var(--ink-3); margin-top: 0.35rem; }
.nav-links { display: flex; gap: var(--s4); margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 0.94rem; padding: 0.4rem 0; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--machine); }
.nav-clients { display: flex; gap: var(--s2); }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px;
  padding: 0.5rem 0.95rem; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font-size: 0.9rem; font-weight: 500; border: 1px solid var(--line-strong); color: var(--ink);
  background: rgb(var(--ground-rgb) / 0.4); transition: background .25s var(--ease-out), border-color .25s;
}
.pill:hover { background: rgb(var(--machine-soft-rgb) / 0.1); border-color: var(--machine-soft); }
.pill--warm { border-color: var(--warm-line); color: var(--human-soft); }
.pill--warm:hover { background: rgb(var(--human-rgb) / 0.12); border-color: var(--human); }
.pill svg { width: 14px; height: 14px; flex: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.95rem; min-height: 40px; cursor: pointer; font-size: 0.9rem; }
.menu-sheet { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-clients { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: .5rem; }
  .menu-sheet {
    position: fixed; inset: 0; z-index: 49; background: rgb(var(--ground-rgb) / 0.97);
    padding: 6rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: var(--s2);
    transform: translateY(-102%); transition: transform .5s var(--ease-out); visibility: hidden;
  }
  .menu-sheet.open { transform: none; visibility: visible; }
  .menu-sheet a.big { font: 700 2.1rem/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -0.02em; text-decoration: none; padding: .4rem 0; border-bottom: 1px solid var(--line); }
  .menu-sheet .pill { justify-content: center; min-height: 52px; font-size: 1rem; margin-top: var(--s2); }
}

/* ---------- HUD (director's slate) ---------- */
.hud {
  position: fixed; left: var(--gutter); bottom: 1.1rem; z-index: 40;
  font: 500 0.69rem/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 0.9rem; pointer-events: none;
}
.hud { transition: opacity .4s; }
.hud.hide { opacity: 0; }
.hud .ticks { display: flex; gap: 4px; }
.hud .ticks i { width: 18px; height: 2px; background: rgb(var(--machine-soft-rgb) / 0.22); border-radius: 2px; overflow: hidden; position: relative; }
.hud .ticks i b { position: absolute; inset: 0; background: var(--machine); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hud .scene-name { color: var(--ink-2); min-width: 12ch; }
.hud .coords { font-variant-numeric: tabular-nums; }
.no-3d .hud .coords { display: none; }
@media (max-width: 760px) { .hud { display: none; } }

.float-cta {
  position: fixed; right: var(--gutter); bottom: 0.9rem; z-index: 45;
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .7rem 1.15rem .7rem 1rem;
  border-radius: 999px; background: var(--machine); color: var(--ground); font-weight: 600; text-decoration: none; font-size: .95rem;
  box-shadow: 0 10px 30px -8px rgb(var(--machine-rgb) / 0.45), 0 2px 6px rgba(0,0,0,.4);
  transform: translateY(160%); transition: transform .6s var(--ease-out), background .2s;
}
.float-cta.show { transform: none; }
.float-cta:hover { background: var(--machine-soft); }
.float-cta svg { width: 18px; height: 18px; }
@media (max-width: 700px) { .float-cta { bottom: 2.4rem; right: 1rem; } }

/* ---------- scenes ---------- */
main { position: relative; z-index: 2; }
.scene { position: relative; min-height: 160vh; }
.scene--hero { min-height: 140vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; padding: 6rem var(--gutter) 4.5rem;
}
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.left .stage::before { background: linear-gradient(90deg, rgb(var(--ground-rgb) / .92) 0%, rgb(var(--ground-rgb) / .78) 40%, rgb(var(--ground-rgb) / .35) 58%, rgb(var(--ground-rgb) / 0) 74%); }
.right .stage { justify-content: flex-end; }
.right .stage::before { background: linear-gradient(270deg, rgb(var(--ground-rgb) / .93) 0%, rgb(var(--ground-rgb) / .82) 40%, rgb(var(--ground-rgb) / .4) 60%, rgb(var(--ground-rgb) / 0) 78%); }
.center .stage { position: relative; height: 125vh; justify-content: center; align-items: flex-start; text-align: center; padding-top: 12vh; }
.center.scene { min-height: auto; overflow-x: clip; }
.center .stage::before { background: linear-gradient(180deg, rgb(var(--ground-rgb) / .82) 0%, rgb(var(--ground-rgb) / .4) 38%, rgb(var(--ground-rgb) / 0) 60%); }
.copy { max-width: 38rem; }
.copy--wide { max-width: 46rem; }

h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 760; letter-spacing: -0.032em; line-height: 0.98; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.5vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.1vw, 4.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.08; }
.ai { color: var(--machine); }
.warm { color: var(--human); }
.lede { font-size: clamp(1.15rem, 1.45vw, 1.4rem); color: var(--ink-2); max-width: 38rem; margin: var(--s4) 0 0; text-wrap: pretty; }
.copy p { text-wrap: pretty; }
.body { color: var(--ink-2); margin: var(--s3) 0 0; max-width: 38rem; font-size: clamp(1.12rem, 1.3vw, 1.28rem); }
/* key figures: two big numbers + tags (the full sentence stays in .sr-only for screen readers and search) */
.facts { margin: var(--s5) 0 0; max-width: 38rem; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s4) var(--s5); }
.stat { position: relative; padding-top: var(--s3); border-top: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 2.75rem; background: var(--human); box-shadow: 0 0 12px rgb(var(--human-rgb) / .7); }
.num { margin: 0; font: 760 clamp(2.8rem, 4.4vw, 4rem)/0.95 var(--f-display); font-stretch: 112%; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num .pre { font-size: .42em; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-3); margin-right: .18em; }
.num .suf { font-size: .48em; font-weight: 700; letter-spacing: -0.01em; color: var(--human-soft); margin-left: .12em; }
.lbl { margin: var(--s2) 0 0; font-size: 1rem; line-height: 1.35; color: var(--ink-2); max-width: 17rem; text-wrap: pretty; }
.tags { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: .55rem .85rem; }
.tags .warm-tag { color: var(--human-soft); border-color: var(--warm-line); background: rgb(var(--human-rgb) / .12); }
/* three-step flow: data → AI → consultant (machine grey turning into the human red) */
.flow { margin: var(--s4) 0 0; max-width: 38rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); position: relative; }
.steps::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--machine-soft) 50%, var(--warm-line)); }
.steps li { position: relative; padding-top: 1.35rem; display: grid; gap: .4rem; align-content: start; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ground); border: 1px solid var(--line-strong); box-sizing: border-box; }
.steps li.ai-step::before { background: var(--machine-soft); border-color: var(--machine-soft); box-shadow: 0 0 10px rgb(var(--machine-soft-rgb) / .7); }
.steps li.warm-step::before { background: var(--human); border-color: var(--human); box-shadow: 0 0 12px rgb(var(--human-rgb) / .85); }
.steps .k { font: 500 .7rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.steps .ai-step .k { color: var(--machine-soft); }
.steps .warm-step .k { color: var(--human-soft); }
.steps strong { font: 650 clamp(1rem, 1.15vw, 1.12rem)/1.3 var(--f-display); font-stretch: 104%; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.steps .warm-step strong { color: var(--human-soft); }
.tags .warm-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--human); box-shadow: 0 0 6px rgb(var(--human-rgb) / .8); margin-right: .45rem; vertical-align: 1px; }
.caption { font: 500 0.7rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: var(--s4); }
.caption .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 .35rem 0 0; vertical-align: 1px; }
.dot--m { background: var(--machine); box-shadow: 0 1px 6px rgb(var(--machine-rgb) / .6); }
.dot--h { background: var(--human); box-shadow: 0 1px 6px rgb(var(--human-rgb) / .6); }
.text-link { display: inline-flex; gap: .45rem; align-items: center; margin-top: var(--s4); color: var(--human-soft); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--warm-line); padding-bottom: 2px; }
.text-link:hover { border-color: var(--human); }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }

/* hero */
/* "safe" keeps the copy below the fixed nav when it is taller than the viewport */
.scene--hero .stage { align-items: safe center; padding-top: 7.5rem; }
/* scale the headline with viewport height too, so short desktop windows don't push it under the nav */
.scene--hero h1 { font-size: clamp(2.55rem, min(5.5vw, 7.4svh), 5.6rem); }
/* what we do, as three icons + who it is for (the full sentence stays in .sr-only) */
.offer { margin: var(--s4) 0 0; max-width: 38rem; }
.offer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.offer-list li { display: flex; align-items: center; gap: .65rem; font: 650 clamp(1.05rem, 1.3vw, 1.2rem)/1.2 var(--f-display); font-stretch: 104%; letter-spacing: -0.01em; color: var(--ink); }
.offer-list .ic { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--machine-soft); border: 1px solid var(--line-strong); background: rgb(var(--machine-rgb) / .08); }
.offer-list .ic svg { width: 20px; height: 20px; }
.offer-note { display: flex; align-items: flex-start; gap: .55rem; margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 1.02rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.offer-note svg { width: 18px; height: 18px; flex: none; margin-top: .12rem; color: var(--human); filter: drop-shadow(0 0 6px rgb(var(--human-rgb) / .7)); }
.offer-note b { color: var(--human-soft); font-weight: 650; }
/* short desktop windows: keep the hero (and the "Chi sei?" chips) inside the first screen */
@media (max-height: 820px) {
  .offer { margin-top: var(--s3); }
  .offer-note { margin-top: var(--s2); padding-top: var(--s2); }
  .offer-note .desk-only { display: none; }
}
.starter { margin: var(--s5) 0 0; border: 0; padding: 0; }
.starter legend { font-weight: 600; font-size: 1rem; margin-bottom: var(--s2); padding: 0; color: var(--ink); }
.starter .opts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; cursor: pointer; text-align: left;
  padding: .75rem 1.1rem; border-radius: 12px; border: 1px solid var(--warm-line);
  background: rgba(40, 8, 12, 0.35); color: var(--human-soft); font-size: .98rem; font-weight: 500;
  transition: background .25s var(--ease-out), border-color .25s, transform .25s var(--ease-out);
}
.chip:hover { background: rgb(var(--human-rgb) / 0.14); border-color: var(--human); transform: translateY(-1px); }
.chip:active { transform: translateY(0); }
.chip svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.already { margin: var(--s4) 0 0; font-size: .92rem; color: var(--ink-3); }
.already a { color: var(--ink-2); }

/* services index (rows, not cards) */
.index { min-height: auto; padding: 22vh var(--gutter) 12vh; }
.index::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--ground-rgb) / 0) 0%, rgb(var(--ground-rgb) / .86) 18%, rgb(var(--ground-rgb) / .86) 82%, rgb(var(--ground-rgb) / .82) 100%); /* ends where the quote scrim starts, so no seam */ z-index: -1; }
.index-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s5); align-items: end; max-width: 78rem; margin: 0 auto var(--s6); }
.index-head .body { margin: 0; }
.rows { max-width: 78rem; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.row { border-bottom: 1px solid var(--line); }
.row summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 2.25rem; gap: var(--s4); align-items: center;
  padding: 1.35rem 0; transition: color .25s;
}
.row summary::-webkit-details-marker { display: none; }
.row h3 { font-size: clamp(1.45rem, 3vw, 2.6rem); font-weight: 720; transition: transform .45s var(--ease-out), color .25s; }
.row summary:hover h3 { transform: translateX(8px); color: var(--human-soft); }
.row .tag { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--machine-soft); white-space: nowrap; }
.row .plus { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .45s var(--ease-out), background .25s; }
.row .plus svg { width: 14px; height: 14px; }
.row[open] .plus { transform: rotate(45deg); background: rgb(var(--machine-soft-rgb) / .1); }
.row[open] h3 { color: var(--human-soft); }
.row .detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4) var(--s5); padding: 0 0 1.75rem; align-items: end; }
.row .detail p { margin: 0; color: var(--ink-2); max-width: 44rem; font-size: 1.05rem; }
.ask {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; white-space: nowrap; cursor: pointer;
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--warm-line); background: transparent; color: var(--human-soft); font-weight: 500; font-size: .92rem;
  transition: background .25s, border-color .25s;
}
.ask:hover { background: rgb(var(--human-rgb) / .12); border-color: var(--human); }
.ask svg { width: 15px; height: 15px; }
@media (max-width: 760px) {
  .index-head { grid-template-columns: 1fr; }
  .row summary { grid-template-columns: 1fr 2.25rem; }
  .row .tag { grid-column: 1; grid-row: 2; margin-top: -.6rem; }
  .row .plus { grid-row: 1 / span 2; grid-column: 2; }
  .row .detail { grid-template-columns: 1fr; }
}

/* vision */
.quote { font-family: var(--f-display); font-stretch: 100%; font-weight: 600; font-size: clamp(2rem, 4.6vw, 4.4rem); letter-spacing: -0.03em; line-height: 1.02; margin: 0 auto; max-width: 18ch; text-wrap: balance; }
.quote .k { color: var(--human); }
.quote .d { color: var(--machine); }
.vision-cols { display: grid; gap: var(--s7); max-width: 64rem; margin: 0 auto; padding: 0 var(--gutter) 22vh; position: relative; text-align: left; }
.vision-cols::before { content: ""; position: absolute; inset: -14vh -50vw 0; background: linear-gradient(180deg, rgb(var(--ground-rgb) / 0), rgb(var(--ground-rgb) / .92) 26%); z-index: -1; }
.soon { color: var(--ink-3); }
.mob-only { display: none; }
/* past → future: one line from the red key to the silver door (same idiom as .steps) */
.eras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); position: relative; }
.eras::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 1px; background: linear-gradient(90deg, var(--warm-line), var(--line-strong) 50%, var(--machine-soft)); }
.era { position: relative; padding-top: var(--s5); }
.era::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; }
.era--past::before { background: var(--human); box-shadow: 0 0 12px rgb(var(--human-rgb) / .85); }
.era--future::before { background: var(--machine-soft); box-shadow: 0 0 10px rgb(var(--machine-soft-rgb) / .7); }
.era-kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 var(--s3); font-size: 1rem; line-height: 1.3; color: var(--ink-2); }
.era-kicker svg { width: 22px; height: 22px; flex: none; }
.era-kicker b { font-weight: 650; }
.era--past .era-kicker svg, .era--past .era-kicker b { color: var(--human-soft); }
.era--future .era-kicker svg, .era--future .era-kicker b { color: var(--machine-soft); }
.era h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.02; margin: 0 0 var(--s3); }
.era h3 [data-count] { font-variant-numeric: tabular-nums; }
.era p:not(.era-kicker) { color: var(--ink-2); margin: 0 0 var(--s4); max-width: 27rem; font-size: 1.1rem; text-wrap: pretty; }
.tags--ai li { color: var(--machine-soft); }
/* AI: one promise + three plain benefits */
.vocation { border-top: 1px solid var(--line); padding-top: var(--s5); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s5) var(--s6); align-items: start; }
.vocation h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.vocation-lede { font-size: clamp(1.15rem, 1.45vw, 1.35rem); line-height: 1.45; color: var(--ink); margin: var(--s3) 0 var(--s4); text-wrap: pretty; }
.pioneer { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .95rem; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: .5rem .95rem; }
.pioneer .dot { width: 7px; height: 7px; border-radius: 50%; }
.gains { list-style: none; margin: 0; padding: 0; }
.gains li { display: grid; grid-template-columns: 2.9rem minmax(0, 1fr); gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.gains li:first-child { padding-top: 0; }
.gains li:last-child { border-bottom: 0; padding-bottom: 0; }
.gains .ic { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; color: var(--machine-soft); border: 1px solid var(--line-strong); background: rgb(var(--machine-rgb) / .08); }
.gains .gain--h .ic { color: var(--human-soft); border-color: var(--warm-line); background: rgb(var(--human-rgb) / .12); }
.gains .ic svg { width: 21px; height: 21px; }
.gains strong { font: 650 clamp(1.05rem, 1.3vw, 1.2rem)/1.3 var(--f-display); font-stretch: 104%; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
@media (max-width: 760px) {
  .vision-cols { gap: var(--s6); }
  .eras { grid-template-columns: 1fr; gap: var(--s5); }
  .eras::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, var(--warm-line), var(--line-strong) 50%, var(--machine-soft)); }
  .era { padding: 0 0 0 var(--s5); }
  .era::before { top: .3rem; }
  .vocation { grid-template-columns: 1fr; }
}

/* contact */
.contact { min-height: 100vh; padding: 16vh var(--gutter) 10vh; }
.contact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--ground-rgb) / .92) 0%, rgb(var(--ground-rgb) / .8) 50%, rgb(var(--ground-rgb) / .45) 78%, rgb(var(--ground-rgb) / .2) 100%); z-index: -1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s6); max-width: 78rem; margin: 0 auto; align-items: start; }
.contact-intro .lede { margin-top: var(--s3); }
.contact-side { display: grid; gap: var(--s4); padding-top: var(--s2); }
.contact-side .block { border-top: 1px solid var(--line); padding-top: var(--s3); }
.contact-side .label { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .4rem; }
.contact-side a.big { font: 700 clamp(1.2rem, 1.7vw, 1.5rem)/1.15 var(--f-display); font-stretch: 108%; letter-spacing: -0.015em; text-decoration: none; display: inline-block; }
.contact-side a.big:hover { color: var(--machine-soft); }
.contact-side address { font-style: normal; color: var(--ink-2); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s5); } .contact::before { background: rgb(var(--ground-rgb) / .86); } }

.wizard { margin-top: var(--s5); background: rgb(var(--ground-2-rgb) / 0.72); border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(1.25rem, 2.6vw, 2rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.progress { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.progress .bars { display: flex; gap: 6px; flex: 1; }
.progress .bars i { height: 3px; flex: 1; border-radius: 3px; background: rgb(var(--machine-soft-rgb) / .16); transition: background .4s var(--ease-out); }
.progress .bars i.on { background: var(--machine); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .wizard .step:not(.current) { display: none; }
.step legend { font: 720 clamp(1.4rem, 2.2vw, 1.85rem)/1.1 var(--f-display); font-stretch: 110%; letter-spacing: -0.02em; padding: 0; margin-bottom: var(--s4); }
.step .hint { color: var(--ink-3); font-size: .94rem; margin: calc(var(--s3) * -1) 0 var(--s4); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tiles--3 { grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile span {
  display: flex; align-items: center; gap: .65rem; min-height: 56px; padding: .8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-strong); color: var(--ink); font-weight: 500; transition: background .2s, border-color .2s, color .2s;
}
.tile span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; transition: background .2s, border-color .2s, box-shadow .2s; }
.tile input[type="checkbox"] + span::before { border-radius: 4px; }
.tile:hover span { border-color: var(--machine-soft); background: rgb(var(--machine-soft-rgb) / .06); }
.tile input:checked + span { border-color: var(--human); background: rgb(var(--human-rgb) / .12); color: var(--human-soft); }
.tile input:checked + span::before { background: var(--human); border-color: var(--human); box-shadow: inset 0 0 0 3px #3a0c09; }
.tile input:focus-visible + span { outline: 2px solid var(--human-soft); outline-offset: 2px; }
@media (max-width: 560px) { .tiles, .tiles--3 { grid-template-columns: 1fr; } }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgb(var(--ground-rgb) / .7); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: .8rem .9rem; min-height: 50px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8f94a8; }
.field input:hover, .field textarea:hover { border-color: var(--machine-soft); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--human); background: rgb(var(--ground-rgb) / .9); box-shadow: 0 0 0 3px rgb(var(--human-rgb) / .18); }
.field[data-invalid] input { border-color: var(--danger); }
.field .err, .consent .err { color: var(--danger); font-size: .85rem; min-height: 0; display: block; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); grid-column: 1 / -1; margin-top: var(--s1); }
.consent input { width: 20px; height: 20px; accent-color: var(--human); margin: .15rem 0 0; flex: none; }
.consent[data-invalid] { color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

.actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.4rem; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s var(--ease-out), opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--machine); color: var(--ground); box-shadow: 0 12px 28px -12px rgb(var(--machine-rgb) / .55); }
.btn--primary:hover { background: var(--machine-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--machine-soft); color: var(--ink); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; transform: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(var(--ground-rgb) / .35); border-top-color: var(--ground); animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { margin-top: var(--s3); font-size: .95rem; color: var(--ink-2); }
.status.error { color: var(--danger); }
.done { display: none; text-align: left; padding: var(--s3) 0; }
.wizard.sent .done { display: block; }
.wizard.sent form, .wizard.sent .progress { display: none; }
.done h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: var(--s2) 0 var(--s3); }
.done p { color: var(--ink-2); margin: 0 0 var(--s3); }
.done .mark { width: 54px; height: 54px; }
.done .mark circle { stroke: var(--machine); stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-out) forwards; }
.done .mark path { stroke: var(--human); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .55s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* footer */
.foot { position: relative; z-index: 2; background: var(--ground); border-top: 1px solid var(--line); padding: var(--s6) var(--gutter) 4.5rem; }
.foot-grid { max-width: 78rem; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s5); color: var(--ink-3); font-size: .92rem; }
.foot .brand { font-size: 1.15rem; color: var(--ink); }
.foot p { margin: .7rem 0 0; }
.foot a { color: var(--ink-2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- mobile scenes ---------- */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .scene { min-height: 150vh; }
  .stage { align-items: flex-end; padding: 5.5rem 1rem 4.6rem; }
  .right .stage { justify-content: flex-start; }
  .left .stage::before, .right .stage::before { background: linear-gradient(0deg, rgb(var(--ground-rgb) / .94) 0%, rgb(var(--ground-rgb) / .78) 42%, rgb(var(--ground-rgb) / 0) 72%); }
  .scene--hero .stage { align-items: flex-end; height: auto; min-height: 100svh; padding-top: 6.5rem; }
  .scene--hero h1 { font-size: clamp(2.2rem, 9.6vw, 2.6rem); }
  .desk-only { display: none; }
  .mob-only { display: block; margin-top: var(--s3); }
  .scene--hero .stage::before { background: linear-gradient(0deg, rgb(var(--ground-rgb) / .95) 0%, rgb(var(--ground-rgb) / .84) 55%, rgb(var(--ground-rgb) / .45) 78%, rgb(var(--ground-rgb) / .1) 100%); }
  .starter .opts { gap: .45rem; }
  .float-cta { transform: translateY(220%); }
  .center .stage { align-items: flex-start; padding-top: 6.5rem; }
  .copy { max-width: none; }
  .lede, .body { font-size: 1.08rem; }
  .offer { margin-top: var(--s3); }
  .offer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .offer-list li { flex-direction: column; align-items: flex-start; gap: .45rem; font-size: .95rem; }
  .offer-list .ic { width: 2.3rem; height: 2.3rem; }
  .offer-note { font-size: .95rem; margin-top: var(--s2); padding-top: var(--s2); }
  .facts { margin-top: var(--s4); gap: var(--s3) var(--s4); }
  .num { font-size: 2.5rem; }
  .lbl { font-size: .92rem; }
  .steps { gap: var(--s2); }
  .steps strong { font-size: .95rem; }
  .steps .k { font-size: .62rem; letter-spacing: .04em; }
  .starter { margin-top: var(--s4); }
  .chip { min-height: 46px; padding: .55rem .9rem; font-size: .94rem; flex: 1 1 100%; }
  .contact { padding-top: 12vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- subpages ---------- */
.page { position: relative; z-index: 2; min-height: 100svh; display: grid; align-items: center; padding: 8rem var(--gutter) 6rem; }
.page::before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, rgb(var(--ground-rgb) / .94) 0%, rgb(var(--ground-rgb) / .8) 45%, rgb(var(--ground-rgb) / .2) 85%); z-index: -1; pointer-events: none; }
.page-inner { max-width: 78rem; width: 100%; margin: 0 auto; }
.page h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); max-width: 14ch; }
.people { list-style: none; padding: 0; margin: var(--s5) 0 0; max-width: 52rem; border-top: 1px solid var(--line-strong); }
.person { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: var(--s4); align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.person .mono { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; font: 600 1rem/1 var(--f-roman); letter-spacing: .04em; color: var(--human-soft); border: 1px solid var(--warm-line); background: rgb(var(--human-rgb) / .08); }
.person h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
.person p { margin: .2rem 0 0; color: var(--ink-3); font-size: .92rem; }
@media (max-width: 620px) { .person { grid-template-columns: 2.75rem 1fr; } .person .mono { width: 2.75rem; height: 2.75rem; } .person .btn { grid-column: 1 / -1; width: 100%; } .page::before { background: rgb(var(--ground-rgb) / .84); } }
.notice { margin-top: var(--s5); color: var(--ink-3); font-size: .95rem; max-width: 40rem; }
.notice a { color: var(--ink-2); }
