/* =========================================================
   021.studio — AI development studio
   Dark-first design system: "From noise to model"
   ========================================================= */

:root {
  --ink: #0B0C0E;
  --graphite: #16181D;
  --graphite-2: #1C1F25;
  --line: #2A2E36;
  --bone: #ECEAE4;
  --muted: rgba(236, 234, 228, .5);   /* labels, meta (vooi: white 50%) */
  --text-2: rgba(236, 234, 228, .7);  /* body copy (vooi: white 70%) */
  --signal: #C8FF3D;
  --infra: #5B8CFF;
  --loss: #FF5A36;

  /* Typography after vooi.io: Manrope for headings, Inter (Display optical size) for text, Roboto Mono for labels */
  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --radius: 14px;
  --nav-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, .display, .h2, .h3, .logo { font-family: var(--font-display); font-weight: 600; letter-spacing: normal; }
h1 em, h2 em, .display em, .h2 em { font-style: normal; color: var(--muted); } /* two-tone headings */
strong, b { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--muted); }
.signal { color: var(--signal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Type scale ---------- */
.display {
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1.1;
}
.h2 {
  font-size: clamp(34px, 4.45vw, 64px);
  line-height: 1.1;
}
.h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.8; color: var(--text-2); max-width: 60ch; }
.body-muted { color: var(--muted); }

/* ---------- Section frame ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); max-width: 980px; }
.section-label { display: inline-flex; align-items: center; gap: .6em; color: var(--muted); }
.section-label::before { content: "["; }
.section-label::after { content: "]"; }
.section-head .lead { color: var(--muted); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--bone); border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: border-color .3s, color .3s;
}
.text-link:hover { color: var(--signal); border-color: var(--signal); }
.text-link .arr { transition: transform .3s var(--ease-out); }
.text-link:hover .arr { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .4s var(--ease-out);
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: #d8ff70; }
.btn-ghost { border: 1px solid var(--line); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, transform .45s var(--ease-out);
}
.nav.is-scrolled { background: rgba(11, 12, 14, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: normal; display: inline-flex; align-items: baseline; }
.logo span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--bone); position: relative; transition: transform .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--bone); transition: transform .3s, top .3s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease-out), visibility .25s;
  }
  .nav-links a:not(.btn) { font-size: 20px; color: var(--bone); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 20px; }
  .nav.is-open { background: var(--ink); border-color: var(--line); }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--gutter);
}
.preloader-count { font-family: var(--font-mono); font-weight: 500; font-size: clamp(64px, 14vw, 180px); letter-spacing: normal; line-height: .85; font-variant-numeric: tabular-nums; }
.preloader-count em { font-style: normal; color: var(--signal); }
.preloader-meta { color: var(--muted); }
html:not(.js) .preloader, .no-preloader .preloader { display: none; }

/* ---------- Field canvas (hero) ---------- */
.field {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 48px);
}
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 22% 78%, rgba(11,12,14,.88), rgba(11,12,14,0) 70%); }
.hero-inner { position: relative; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-eyebrow { color: var(--muted); margin-bottom: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-eyebrow .live { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); }
.hero-eyebrow .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(200,255,61,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,255,61,.5); } 70% { box-shadow: 0 0 0 10px rgba(200,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,61,0); } }
.hero-title { max-width: 13ch; }
.js:not(.intro-done) .hero-title { visibility: hidden; } /* revealed by the intro animation; 3s inline fallback */
.hero-title .kw { color: var(--signal); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.hero-sub { color: var(--muted); max-width: 58ch; font-size: clamp(17px, 1.35vw, 19px); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px) { .hero-bottom { grid-template-columns: 1fr; } }

.proof-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  background: rgba(11,12,14,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.proof-track { display: inline-flex; animation: marquee 38s linear infinite; }
.proof-track span { padding: 18px 28px; display: inline-flex; align-items: center; gap: 28px; color: var(--bone); }
.proof-track span::after { content: "·"; color: var(--muted); }
.proof-track b { color: var(--signal); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }
.proof-strip:hover .proof-track { animation-play-state: paused; }

/* ---------- Positioning ---------- */
.positioning { min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.positioning .h2 { max-width: 16ch; margin: 18px 0 40px; }
.positioning .h2 em { font-style: normal; color: var(--muted); }
.reveal-words { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.35; letter-spacing: normal; max-width: 34ch; }
.reveal-words strong { font-weight: 500; color: var(--signal); }

/* ---------- Cards: edge light + tilt ---------- */
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative;
  background: var(--graphite);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), border-color .3s;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(200,255,61,.75), rgba(200,255,61,0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(200,255,61,.06), transparent 40%);
  opacity: 0; transition: opacity .35s; pointer-events: none; z-index: -1;
}
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; min-height: 340px; }
.pillar-num { color: var(--muted); display: flex; justify-content: space-between; }
.pillar-num i { font-style: normal; color: var(--signal); }
.pillar .h3 { font-size: clamp(26px, 2.4vw, 34px); }
.pillar p { color: var(--muted); max-width: 52ch; }
.pillar .tags { margin-top: auto; padding-top: 22px; border-top: 1px dashed var(--line); color: var(--bone); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }

/* ---------- Task classes wall ---------- */
.tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.task { min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.task-demo { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 10; border-radius: 9px; background: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.task-demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.task-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.task h3 { font-size: 26px; font-weight: 600; letter-spacing: normal; }
.task p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.tasks-foot { margin-top: 40px; }
@media (max-width: 1100px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tasks { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-intro { max-width: 980px; }
.process-list { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 72px); counter-reset: stage; }
.process-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; min-width: 0; }
.process-item-body { padding: 24px; display: grid; gap: 12px; }
.process-item-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.process-item-top b { color: var(--signal); font-weight: 500; }
.process-item h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: normal; }
.process-item p { color: var(--muted); }
.process-item .get { color: var(--bone); padding-top: 12px; border-top: 1px dashed var(--line); }
.process-item .get span { color: var(--muted); }
.process-item .scene { position: relative; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); background: var(--ink); }
.process-item .scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 720px) {
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.process-outro { margin-top: clamp(40px, 6vw, 72px); max-width: 760px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; }
.process-outro b { color: var(--signal); font-weight: 500; }

/* Pinned show (desktop, motion OK) */
.process-show { display: none; }
.has-show .process-show { display: block; }
.has-show .process-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); margin: 0; }
.show {
  height: 100vh; height: 100svh;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  max-width: var(--maxw); margin: 0 auto;
}
.show-bar { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.show-bar i { display: block; height: 3px; background: var(--line); border-radius: 3px; position: relative; overflow: hidden; }
.show-bar i b { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(0); }
.show-main { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; min-height: 0; }
.show-track { position: relative; min-height: 0; }
.show-track svg { width: 100%; height: 100%; overflow: visible; }
.show-track .node-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: normal; text-transform: uppercase; fill: var(--muted); transition: fill .3s; }
.show-track .node-label.on { fill: var(--bone); }
.show-track .node-label.cur { fill: var(--signal); }
.show-stage { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 32px; min-height: 0; }
.show-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.show-num { font-family: var(--font-mono); font-size: clamp(56px, 7vw, 104px); line-height: .85; letter-spacing: normal; color: var(--signal); font-variant-numeric: tabular-nums; }
.show-num span { color: var(--muted); font-size: .32em; letter-spacing: 0; margin-left: 6px; }
.show-title { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: normal; line-height: 1.05; }
.show-desc { color: var(--muted); font-size: 18px; max-width: 46ch; }
.show-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.show-facts dt { color: var(--muted); }
.show-facts dd { margin: 0; color: var(--bone); font-family: var(--font-sans); font-size: 15px; letter-spacing: 0; text-transform: none; }
.show-canvas { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); overflow: hidden; min-height: 0; }
.show-canvas canvas { position: absolute; left: 0; right: 0; bottom: 0; top: 41px; width: 100%; height: calc(100% - 41px); }
.show-canvas .corner { position: absolute; top: 0; left: 0; right: 0; height: 41px; display: flex; align-items: center; padding: 0 16px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--ink); }
.show-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.show-foot .status b { color: var(--signal); font-weight: 500; }
@media (max-width: 1240px) { .show-main { grid-template-columns: 200px minmax(0, 1fr); } .show-stage { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Models hub ---------- */
.hub { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); position: relative; }
.hub-classes { display: grid; gap: 6px; align-content: start; position: relative; z-index: 2; }
.hub-class {
  text-align: left; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--muted);
  background: var(--ink);
  transition: color .2s, border-color .2s, background .2s;
}
.hub-class .mono { font-size: 11px; }
.hub-class { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; cursor: pointer; }
.hub-class.is-active { color: var(--ink); background: var(--signal); border-color: var(--signal); }
.hub-tags { display: flex; flex-wrap: wrap; gap: 12px 12px; align-content: center; position: relative; z-index: 2; }
.tag {
  font-family: var(--font-mono); font-size: clamp(13px, 1.15vw, 16px); letter-spacing: .01em;
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--bone);
  background: var(--ink);
  transition: color .3s, border-color .3s, opacity .3s, background .3s, transform .4s var(--ease-out);
}
.hub.is-focus .tag { opacity: .28; }
.hub.is-focus .tag.is-hot { opacity: 1; color: var(--signal); border-color: rgba(200,255,61,.6); background: rgba(200,255,61,.06); transform: translateY(-2px); }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.hub-lines path { fill: none; stroke: var(--signal); stroke-opacity: .45; stroke-width: 1; }
.models-foot { margin-top: 48px; }
@media (max-width: 760px) {
  .hub { grid-template-columns: 1fr; }
  .hub-classes { grid-template-columns: repeat(4, 1fr); }
  .hub-class { padding: 10px; font-size: 14px; justify-content: center; }
  .hub-class .mono { display: none; }
  .hub-lines { display: none; }
  .hub-tags { gap: 8px; }
  .tag { font-size: 12px; padding: 7px 12px; }
}

/* ---------- Cases teaser (horizontal) ---------- */
.cases { overflow: hidden; }
.cases-pin { padding: clamp(96px, 12vw, 160px) 0; }
@media (min-width: 1024px) {
  .cases-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 24px) 0 40px; }
  .cases-pin .section-head { margin-bottom: clamp(28px, 4vh, 56px); }
  .cases-pin .case-card { min-height: min(440px, 52vh); }
}
.cases-track { display: flex; gap: 16px; padding: 0 var(--gutter); width: max-content; }
.case-card {
  width: min(520px, 82vw); flex: 0 0 auto;
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  min-height: 460px;
}
.case-metric { font-family: var(--font-mono); font-weight: 500; font-size: clamp(72px, 9vw, 128px); line-height: .9; letter-spacing: normal; color: var(--signal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-metric-label { color: var(--bone); }
.case-client { margin-top: auto; padding-top: 22px; border-top: 1px dashed var(--line); }
.case-client h3 { font-size: 22px; font-weight: 600; letter-spacing: normal; }
.case-client p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.case-card.case-more { justify-content: center; align-items: flex-start; background: transparent; border-style: dashed; }
.case-more .h3 { font-size: clamp(30px, 3vw, 44px); }
@media (max-width: 1023px) {
  .cases-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); width: 100%; padding-bottom: 12px; scrollbar-width: none; }
  .cases-track::-webkit-scrollbar { display: none; }
  .case-card { scroll-snap-align: start; min-height: 400px; }
}

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.why-list { display: grid; }
.why-item { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .mono { color: var(--muted); padding-top: 6px; }
.why-item h3 { font-size: 21px; font-weight: 600; letter-spacing: normal; margin-bottom: 6px; }
.why-item p { color: var(--muted); }
.why-item sup a { color: var(--signal); }
.why-note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 70ch; }
.terminal { position: sticky; top: calc(var(--nav-h) + 32px); border: 1px solid var(--line); border-radius: var(--radius); background: #08090B; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.terminal-bar span { margin-left: 8px; }
.terminal-body { padding: 20px; min-height: 420px; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; color: var(--bone); white-space: pre-wrap; word-break: break-word; }
.terminal-body .c { color: var(--muted); }
.terminal-body .ok { color: var(--signal); }
.terminal-body .warn { color: var(--loss); }
.terminal-body .blue { color: var(--infra); }
.cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--signal); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 960px) { .why { grid-template-columns: 1fr; } .terminal { position: relative; top: 0; } .terminal-body { min-height: 0; font-size: 12px; } }
@media (max-width: 720px) { .terminal-body { white-space: pre; word-break: normal; overflow-x: auto; font-size: 11px; padding: 16px; -webkit-overflow-scrolling: touch; } }

/* ---------- FAQ ---------- */
.faq { max-width: 980px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; text-align: left; font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: normal; transition: color .2s; }
.faq-q:hover { color: var(--signal); }
.faq-icon { flex: 0 0 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: transform .45s var(--ease-out), border-color .2s, background .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); border-color: var(--signal); color: var(--signal); }
.faq-a { overflow: hidden; height: 0; }
html:not(.js) .faq-a { height: auto; }
.faq-a p { padding: 0 0 30px; color: var(--muted); max-width: 72ch; font-size: 17px; }

/* ---------- Final CTA ---------- */
.final { text-align: left; overflow: hidden; }
.final .h2 { font-size: clamp(40px, 6.4vw, 96px); max-width: 15ch; }
.final .lead { color: var(--muted); margin: 32px 0 44px; }
.final-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-xl { height: 68px; padding: 0 36px; font-size: 18px; }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 250; width: 100vw; height: 100vh; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.footer h4 { color: var(--muted); margin-bottom: 16px; font-weight: 400; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--bone); transition: color .2s; font-size: 15px; }
.footer a:hover { color: var(--signal); }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(64px, 10vw, 140px)) 0 clamp(48px, 6vw, 80px); }
.page-hero .display { max-width: 19ch; font-size: clamp(44px, 7.4vw, 104px); }
.page-hero .lead { color: var(--muted); margin-top: 32px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.filter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: normal; text-transform: uppercase;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.filter:hover { color: var(--bone); border-color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.filter sup { font-size: 10px; margin-left: 4px; opacity: .7; }

.case-list { display: grid; gap: 16px; padding-bottom: clamp(96px, 12vw, 160px); }
.case { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0; overflow: clip; }
.case[hidden] { display: none; }
.case-side { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--nav-h) + 16px); align-self: start; }
.case-side .case-metric { font-size: clamp(80px, 9vw, 148px); }
.case-side .case-metric.is-text { font-size: clamp(36px, 4vw, 56px); letter-spacing: normal; line-height: 1; white-space: normal; }
.case-index { color: var(--muted); display: flex; justify-content: space-between; }
.case-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: normal; line-height: 1.08; padding-top: 22px; border-top: 1px dashed var(--line); }
.case-title span { display: block; color: var(--muted); font-weight: 500; font-size: .6em; letter-spacing: -.01em; margin-bottom: 8px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.case-body { padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 28px; border-left: 1px solid var(--line); }
.case-block h4 { color: var(--muted); margin-bottom: 10px; font-weight: 400; }
.case-block p, .case-block li { color: var(--bone); font-size: 16.5px; }
.case-block ul.dash li { padding-left: 18px; position: relative; margin-top: 6px; }
.case-block ul.dash li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--muted); }
.case-block .stack { color: var(--muted); font-family: var(--font-mono); font-size: 13px; line-height: 1.8; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 8px; }
@media (max-width: 560px) { .results { grid-template-columns: repeat(2, minmax(0, 1fr)); } .results li { padding: 12px; font-size: 14px; } .results li b { font-size: 18px; white-space: normal; } }
.results li { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 15px; color: var(--muted); line-height: 1.4; }
.results li b { display: block; color: var(--signal); font-family: var(--font-mono); font-weight: 500; font-size: 22px; letter-spacing: normal; margin-bottom: 6px; white-space: nowrap; }
.results li strong { color: var(--bone); font-weight: 500; }
.case-next { border: 1px dashed var(--line); border-radius: 10px; padding: 18px 20px; }
.case-next h4 { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.case-next h4 em { font-style: normal; color: var(--infra); }
.case-next p { color: var(--muted); }
.empty-state { color: var(--muted); padding: 40px 0; }
.empty-state a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case-side { position: static; border-bottom: 1px solid var(--line); }
  .case-body { border-left: 0; }
}

/* ---------- Reference tables ---------- */
.ref-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ref-table { width: 100%; border-collapse: collapse; min-width: 880px; font-size: 15px; }
.ref-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: normal; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--graphite); position: sticky; top: 0; }
.ref-table td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.ref-table tr:last-child td { border-bottom: 0; }
.ref-table td:first-child { color: var(--bone); font-weight: 600; font-size: 16px; white-space: nowrap; }
.ref-table td.proof { color: var(--signal); font-family: var(--font-mono); font-size: 13px; }
.ref-table td.io { font-family: var(--font-mono); font-size: 12.5px; color: var(--bone); }
.ref-table tr:hover td { background: rgba(255,255,255,.015); }

/* ---------- Reveal helpers ---------- */
/* uses the independent `translate` property so it never fights card tilt transforms */
.js [data-reveal] { transition: opacity .8s var(--ease-out), translate 1s var(--ease-out), transform .5s var(--ease-out), border-color .3s; }
.js [data-reveal]:not(.is-in) { opacity: 0; translate: 0 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .proof-track { animation: none; flex-wrap: wrap; white-space: normal; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(80px, 10vw, 140px); }
.legal-page .container { max-width: 860px; }
.legal-page h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: normal; line-height: 1; }
.legal-page .legal-updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: normal; text-transform: uppercase; color: var(--muted); margin: 20px 0 48px; }
.legal-page h2 { font-size: 24px; font-weight: 600; letter-spacing: normal; margin: 48px 0 14px; }
.legal-page h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-page a { color: var(--signal); border-bottom: 1px solid rgba(200,255,61,.3); }
.legal-page strong { color: var(--bone); font-weight: 500; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; font-size: 15px; border: 1px solid var(--line); }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal-table th { color: var(--bone); font-weight: 500; background: var(--graphite); }

/* ---------- Blog index ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(96px, 12vw, 160px); }
.blog-card { display: flex; flex-direction: column; overflow: clip; }
.blog-card.is-featured { grid-column: span 2; }
.blog-card-image { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .8s var(--ease-out), filter .4s; }
.blog-card:hover .blog-card-image img { transform: scale(1.04); filter: saturate(1); }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card-meta { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.blog-card h2 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; letter-spacing: normal; line-height: 1.15; }
.blog-card.is-featured h2 { font-size: clamp(26px, 2.4vw, 36px); }
.blog-card p { color: var(--muted); font-size: 15.5px; }
.blog-card .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 1023px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } .blog-card.is-featured { grid-column: auto; } }

/* ---------- Blog article ---------- */
.blog-article { padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 8vw, 110px); }
.blog-container { max-width: 820px; }
.blog-back-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: normal; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.blog-back-link:hover { color: var(--signal); }
.blog-article-header h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: normal; line-height: 1.02; margin: 24px 0 22px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 12px; letter-spacing: normal; text-transform: uppercase; color: var(--muted); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.blog-article-content { padding-top: 36px; font-size: 18px; line-height: 1.7; }
.blog-article-content > p, .blog-article-content li { color: #C9C7C1; }
.blog-article-content p { margin-bottom: 20px; }
.blog-article-content h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: normal; line-height: 1.12; margin: 64px 0 20px; color: var(--bone); }
.blog-article-content h3 { font-size: 21px; font-weight: 600; letter-spacing: normal; margin: 36px 0 12px; color: var(--bone); }
.blog-article-content ul, .blog-article-content ol { margin: 0 0 22px; padding-left: 22px; }
.blog-article-content ul { list-style: disc; }
.blog-article-content ol { list-style: decimal; }
.blog-article-content li { margin-bottom: 8px; }
.blog-article-content li::marker { color: var(--muted); }
.blog-article-content strong { color: var(--bone); font-weight: 600; }
.blog-article-content a:not(.btn) { color: var(--signal); border-bottom: 1px solid rgba(200,255,61,.35); }
.blog-article-content blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--signal); color: var(--bone); }
.blog-lead { font-size: 21px; line-height: 1.6; color: var(--bone) !important; }
.blog-illustration { margin: 36px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--graphite); }
.blog-illustration img { width: 100%; height: auto; }
.blog-illustration figcaption { padding: 12px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.blog-illustration-hero { margin-top: 0; }
.blog-tldr { margin: 0 0 36px; padding: 26px 28px; border: 1px solid rgba(200,255,61,.35); border-radius: var(--radius); background: rgba(200,255,61,.04); }
.blog-tldr h3 { margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: normal; text-transform: uppercase; color: var(--signal); font-weight: 500; }
.blog-tldr ul { margin: 0; }
.blog-tldr li { font-size: 16.5px; }
.table-responsive { overflow-x: auto; margin: 28px 0 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.blog-article-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 560px; }
.blog-article-content th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: normal; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 14px 16px; background: var(--graphite); border-bottom: 1px solid var(--line); }
.blog-article-content td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: #C9C7C1; vertical-align: top; }
.blog-article-content tr:last-child td { border-bottom: 0; }
.blog-inline-cta { margin: 40px 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.blog-inline-cta--alt { border-style: dashed; background: transparent; }
.blog-inline-cta-content { flex: 1 1 320px; }
.blog-inline-cta-content p { margin: 0; color: var(--muted) !important; font-size: 16px; }
.blog-inline-cta-content .blog-inline-cta-title { color: var(--bone) !important; font-size: 20px; font-weight: 600; letter-spacing: normal; margin-bottom: 6px; }
.blog-inline-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-faq { margin: 8px 0 32px; }
.blog-faq-item { padding: 22px 0; border-top: 1px solid var(--line); }
.blog-faq-item:last-child { border-bottom: 1px solid var(--line); }
.blog-faq-item h3 { margin: 0 0 10px; font-size: 19px; }
.blog-faq-item p { margin: 0; color: var(--muted); font-size: 16.5px; }
.blog-closing { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 16px; }
@media (max-width: 640px) {
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .legal-table td, .legal-table th { white-space: normal; min-width: 140px; }
}

/* =========================================================
   Typography pass after vooi.io
   ========================================================= */
/* nav: mono, sentence case, dot separators */
.nav-links a:not(.btn) { font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: var(--bone); opacity: .7; transition: opacity .2s, color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--bone); }
@media (min-width: 861px) {
  .nav-links { gap: 12px; }
  .nav-links a:not(.btn) + a:not(.btn)::before { content: "·"; margin-right: 12px; color: var(--muted); }
  .nav-links .btn { margin-left: 20px; }
}
@media (max-width: 860px) {
  .nav-links a:not(.btn) { font-size: 18px; opacity: 1; }
}

/* body copy: white at 70% like vooi; labels/meta stay at 50% */
.hero-sub, .section-head .lead, .pillar p, .task p, .process-item p:not(.process-item-top):not(.get),
.show-desc, .why-item p, .faq-a p, .case-client p, .case-next p, .blog-card p, .footer-brand p,
.legal-page p, .legal-page li, .ref-table td, .final .lead, .page-hero .lead, .blog-faq-item p,
.case-block .stack, .results li, .why-note { color: var(--text-2); }
.blog-inline-cta-content p { color: var(--text-2) !important; }
.blog-article-content > p, .blog-article-content li, .blog-article-content td { color: rgba(236, 234, 228, .78); font-weight: 400; }
.hero-sub { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.8; }
.pillar p, .task p, .why-item p, .faq-a p, .case-client p { font-size: 15px; line-height: 1.7; }

/* large numbers set in the display face, as vooi does for its stats */
.preloader-count, .show-num, .case-metric, .results li b, .terminal-body .big {
  font-family: var(--font-display); font-weight: 600; letter-spacing: normal; font-variant-numeric: tabular-nums;
}
.preloader-count em { color: var(--signal); }
.case-metric { line-height: 1; }
.show-num span { font-family: var(--font-mono); font-weight: 400; }

/* headings inside components */
.faq-q, .case-title, .show-title, .blog-card h2, .case-client h3, .why-item h3, .task h3, .hub-class,
.blog-inline-cta-title, .process-item h3, .legal-page h1, .legal-page h2, .legal-page h3, .blog-article-content h2, .blog-article-content h3 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: normal;
}
.reveal-words { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.reveal-words strong { font-weight: 600; }
.positioning .h2 { max-width: 18ch; }
.final .h2 { font-size: clamp(36px, 5.3vw, 76px); max-width: 17ch; }
.page-hero .display { font-size: clamp(42px, 5.3vw, 76px); }
.blog-article-header h1 { font-size: clamp(34px, 4.45vw, 56px); line-height: 1.1; }

/* lists with a "+" marker */
.case-block ul.dash li::before, .blog-article-content ul li::before {
  content: "+"; position: absolute; left: 0; top: 0; width: auto; height: auto; background: none; color: var(--muted); font-family: var(--font-mono);
}
.case-block ul.dash li { padding-left: 20px; }
.blog-article-content ul { list-style: none; padding-left: 0; }
.blog-article-content ul li { position: relative; padding-left: 22px; }

/* Process timeline: stage names are clickable */
.show-track .node-hit { fill: transparent; cursor: pointer; outline: none; }
.show-track .node-label.hover:not(.cur) { fill: var(--bone); }
.show-track .node-hit:focus-visible { stroke: var(--signal); stroke-width: 1; stroke-dasharray: 3 3; }

/* 404 */
.notfound { min-height: 78vh; display: flex; align-items: center; padding: 140px 0 80px; }
.notfound .display { max-width: 16ch; margin: 18px 0 20px; }
.notfound-sub { color: var(--text-2); max-width: 46ch; margin-bottom: 32px; }
.notfound .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cookie consent ---------- */
.cc {
  position: fixed; left: 24px; bottom: 24px; z-index: 150;
  width: min(420px, calc(100vw - 32px));
  padding: 22px 22px 18px;
  background: rgba(22, 24, 29, .92);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  color: var(--bone);
  opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.cc.is-visible { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .35s ease, transform .35s ease; }
.cc-label { color: var(--signal); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cc-text { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cc-text a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.cc-text a:hover { text-decoration-color: var(--bone); }
.cc-prefs { margin-top: 16px; display: grid; gap: 8px; }
.cc-prefs[hidden] { display: none; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cc-row b { display: block; font-size: 14px; font-weight: 600; }
.cc-row small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 40px; height: 22px; border-radius: 22px; background: var(--line); position: relative; cursor: pointer; transition: background .2s;
}
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bone); transition: transform .2s; }
.cc-switch:checked { background: var(--signal); }
.cc-switch:checked::after { transform: translateX(18px); background: var(--ink); }
.cc-switch:disabled { opacity: .5; cursor: default; }
.cc-row:has(.cc-switch:disabled) { cursor: default; }
.cc-actions { margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.cc-btn {
  flex: 1; height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(236, 234, 228, .06); color: var(--bone);
  font: 600 14px/1 var(--font-sans); cursor: pointer; transition: border-color .2s, background .2s;
}
.cc-btn:hover { border-color: var(--bone); background: rgba(236, 234, 228, .1); }
.cc-link {
  flex: none; padding: 0 6px 0 10px; height: 42px; background: none; border: 0; color: var(--muted);
  font: 500 13px/1 var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.cc-link:hover { color: var(--bone); }
.cc.cc-open-prefs .cc-link { color: var(--bone); }
.link-btn { background: none; border: 0; padding: 0; color: var(--bone); font: inherit; font-size: 15px; cursor: pointer; transition: color .2s; text-align: left; }
.link-btn:hover { color: var(--signal); }
@media (max-width: 560px) {
  .cc { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px 18px 14px; }
}
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } }
.is-booking, .is-booking [data-book] { cursor: progress; }
.legal-page .legal-inline { color: var(--signal); font-size: inherit; border-bottom: 1px solid rgba(200,255,61,.3); }

/* ---------- Floating "book a call" button ---------- */
.fab {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 140;
  display: block; border-radius: 50%;
  opacity: 0; transform: translateY(14px) scale(.85); pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.fab.is-in { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-in.is-away { opacity: 0; transform: translateY(14px) scale(.85); pointer-events: none; }
.fab-dot {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--signal); color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(200, 255, 61, .45), 0 4px 14px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease-out), background .2s;
}
.fab-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--signal); opacity: 0;
  animation: fab-ping 3.2s ease-out 2s infinite;
}
@keyframes fab-ping { 0% { transform: scale(1); opacity: .7; } 40%, 100% { transform: scale(1.6); opacity: 0; } }
.fab-label {
  position: absolute; right: calc(100% + 10px); top: 50%; margin-top: -19px;
  white-space: nowrap; font: 600 14px/1 var(--font-sans); color: var(--bone);
  padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(22, 24, 29, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.fab:hover .fab-dot, .fab:focus-visible .fab-dot { transform: scale(1.06); background: #d8ff70; }
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; transform: none; }
.fab:focus-visible { outline: none; }
.fab:focus-visible .fab-dot { outline: 2px solid var(--bone); outline-offset: 3px; }
@media (max-width: 760px) {
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .fab-dot { width: 52px; height: 52px; }
  .fab-label { display: none; }
}
/* the cookie card spans the bottom on phones: step aside until it's answered */
@media (max-width: 560px) {
  body:has(.cc.is-visible) .fab { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .fab, .fab-dot, .fab-label { transition: none; } .fab-dot::after { animation: none; } }
