/* tobisite.com — design tokens & layout. No build step, no external fonts. */

:root {
  --paper: #F7F7F3;
  --surface: #FFFFFF;
  --ink: #14181F;
  --muted: #5C6470;
  --line: #E2E3DC;
  --accent: #2443C4;
  --accent-ink: #1B33A0;
  --accent-soft: rgba(36, 67, 196, 0.07);
  --grid-line: rgba(36, 67, 196, 0.055);
  --ok: #1E7A5A;
  --shadow: 0 1px 2px rgba(16, 22, 34, 0.05), 0 8px 28px rgba(16, 22, 34, 0.06);
  --shadow-lift: 0 2px 4px rgba(16, 22, 34, 0.05), 0 20px 46px rgba(16, 22, 34, 0.13);
  --r: 12px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;
  /* plain-rgba glass fallbacks: color-mix() values with var() inside fail at
     computed-value time (resolve to unset, NOT to an earlier declaration), so
     pre-2023 engines need these behind @supports gates */
  --glass: rgba(247, 247, 243, 0.5);
  --glass-strong: rgba(247, 247, 243, 0.92);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1116;
    --surface: #151A21;
    --ink: #E8EAED;
    --muted: #98A0AB;
    --line: #232933;
    --accent: #8DA2FF;
    --accent-ink: #AFBEFF;
    --accent-soft: rgba(141, 162, 255, 0.09);
    --grid-line: rgba(141, 162, 255, 0.06);
    --ok: #4CC39A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 46px rgba(0, 0, 0, 0.45);
    --glass: rgba(14, 17, 22, 0.5);
    --glass-strong: rgba(14, 17, 22, 0.92);
  }
}
:root[data-theme="dark"] {
  --paper: #0E1116;
  --surface: #151A21;
  --ink: #E8EAED;
  --muted: #98A0AB;
  --line: #232933;
  --accent: #8DA2FF;
  --accent-ink: #AFBEFF;
  --accent-soft: rgba(141, 162, 255, 0.09);
  --grid-line: rgba(141, 162, 255, 0.06);
  --ok: #4CC39A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 46px rgba(0, 0, 0, 0.45);
  --glass: rgba(14, 17, 22, 0.5);
  --glass-strong: rgba(14, 17, 22, 0.92);
}
:root[data-theme="light"] {
  --paper: #F7F7F3;
  --surface: #FFFFFF;
  --ink: #14181F;
  --muted: #5C6470;
  --line: #E2E3DC;
  --accent: #2443C4;
  --accent-ink: #1B33A0;
  --accent-soft: rgba(36, 67, 196, 0.07);
  --grid-line: rgba(36, 67, 196, 0.055);
  --ok: #1E7A5A;
  --shadow: 0 1px 2px rgba(16, 22, 34, 0.05), 0 8px 28px rgba(16, 22, 34, 0.06);
  --shadow-lift: 0 2px 4px rgba(16, 22, 34, 0.05), 0 20px 46px rgba(16, 22, 34, 0.13);
  --glass: rgba(247, 247, 243, 0.5);
  --glass-strong: rgba(247, 247, 243, 0.92);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--paper); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ── Type scale ── */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.022em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 62px); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 680; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; }
p { margin: 0 0 1em; max-width: 42em; }
.eyebrow {
  font: 600 12.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }

/* ── Header ── */
/* Near-opaque veil instead of backdrop-filter: blur on a sticky layer is
   recomputed every scrolled frame (the single most expensive pixel on the
   page). A 88%-opaque paper tint reads as the same light glass at ~zero cost.
   The mobile dropdown keeps real blur — it's a static open state. */
.site-head { position: sticky; top: 0; z-index: 40; }
.site-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--glass-strong);
}
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .site-head::before { background: color-mix(in srgb, var(--paper) 88%, transparent); }
}
.site-head .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.logo-mark { height: 26px; width: auto; flex: 0 0 auto; }
.logo-word { height: 15px; width: auto; flex: 0 0 auto; }
.site-foot .logo-mark { height: 32px; }
.site-foot .logo-word { height: 18px; }
.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;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 7px 11px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav .cta-mini {
  color: var(--paper); background: var(--accent); font-weight: 650;
  margin-left: 6px;
}
.nav .cta-mini:hover { color: var(--paper); background: var(--accent-ink); }
.lang { font: 600 13px var(--mono); color: var(--muted); text-decoration: none; padding: 7px 10px; border: none; border-radius: 999px; margin-left: 8px; }
.lang:hover { background: var(--accent-soft); color: var(--ink); }
.theme-btn { border: none; background: none; color: var(--muted); border-radius: 999px; padding: 6px 11px; cursor: pointer; font-size: 14px; }
.theme-btn:hover { background: var(--accent-soft); color: var(--ink); }
.menu-btn { display: none; border: none; background: none; color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 15px; }
.menu-btn:hover { background: var(--accent-soft); }

@media (max-width: 820px) {
  /* Collapse the menu behind the burger only when JS works: without it the
     button would open nothing and the navigation would vanish entirely */
  html.js .menu-btn { display: block; }
  html.js .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 8px 20px 16px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
    backdrop-filter: blur(18px) saturate(1.45);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.35);
  }
  @supports (background: color-mix(in srgb, red 50%, blue)) {
    html.js .nav { background: color-mix(in srgb, var(--paper) 88%, transparent); }
  }
  html.js .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  /* no-JS fallback: navigation as a plain column in the header's flow.
     The header also stops being sticky — a multi-row bar would otherwise
     cover half the small screen with no way to collapse it. */
  html:not(.js) .site-head { position: static; }
  html:not(.js) .site-head .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .nav { flex-direction: column; align-items: stretch; width: 100%; }
}

/* ── Hero ── */
.hero {
  padding: clamp(54px, 8.5vw, 100px) 0 clamp(44px, 7vw, 84px);
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}
/* aurora: two soft pools of light, slow compositor-only drift (transform).
   The layer is kept close to the hero's own box (a huge overscan multiplied
   by scale() costs ~2 screens of rasterized texture), and site.js pauses the
   animation with .still once the hero leaves the viewport. */
.hero::before {
  content: ""; position: absolute; inset: -10% -5%;
  background:
    radial-gradient(36% 44% at 26% 38%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%),
    radial-gradient(30% 42% at 76% 58%, color-mix(in srgb, #7A5CFF 22%, transparent), transparent 70%);
  animation: aura 22s ease-in-out infinite alternate;
  pointer-events: none;
}
html.js .hero.still::before { animation-play-state: paused; }
@keyframes aura {
  from { transform: translate3d(-3%, -2%, 0) scale(1) rotate(-1.5deg); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.1) rotate(1.5deg); }
}
/* gentle blend of the aurora into the page: bottom 12% only */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 72%, color-mix(in srgb, var(--paper) 70%, transparent) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 13em; }
.hero .lede { margin: 20px 0 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ── Buttons v3: pills, brand glow, arrow micro-interaction ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 650; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; letter-spacing: -0.01em;
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #7A5CFF));
  color: #fff; border: none; cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(14, 17, 22, 0.18),
    0 10px 28px -10px color-mix(in srgb, var(--accent) 55%, transparent);
}
:root[data-theme="dark"] .btn-primary, .btn-primary.on-dark { color: #0E1116; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0E1116; } }
.btn-primary::after {
  /* the slash syntax hides the arrow from accessible names; older engines
     drop that declaration and keep the first one */
  content: "→"; content: "→" / ""; display: inline-block;
  transition: transform .35s cubic-bezier(.16, .72, .26, 1);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-ghost {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 16%, transparent);
}
.btn-ghost:hover {
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
}
/* engines without color-mix() would drop these surfaces entirely — give them
   plain values (a var() inside color-mix fails at computed-value time, so a
   simple double declaration would NOT fall back; only @supports works) */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .btn-primary { background: var(--accent); }
  .btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
  .step .n { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
}
.hero-note { margin-top: 22px; font: 500 13.5px var(--mono); color: var(--muted); }
.hero-note b { color: var(--ok); }

/* ── Sections ──
   No divider lines: sections are separated by the rhythm of whitespace and
   the living background, not by rules across the whole screen.
   content-visibility skips style/layout/paint for bands below the fold;
   the intrinsic-size placeholder keeps the scrollbar stable. */
section.band { padding: clamp(38px, 5.5vw, 68px) 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.band-head { margin-bottom: clamp(20px, 3.2vw, 34px); }
.band-head .lede { margin-top: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .k { font: 650 13px var(--mono); color: var(--accent-ink); display: block; margin-bottom: 14px; letter-spacing: 0.08em; }

/* draft-style card: dashed frame like a wireframe */
.card.draft { border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); box-shadow: none; }

/* ── Steps: a vertical timeline thread instead of full-width lines.
   The thread belongs to the number column's composition — it's no divider. ── */
.steps { display: grid; gap: 0; position: relative; }
.steps::before {
  /* left = pill-center (28) minus half the 2px line width */
  content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 2px;
  background: linear-gradient(180deg,
    transparent,
    color-mix(in srgb, var(--accent) 32%, transparent) 12%,
    color-mix(in srgb, var(--accent) 32%, transparent) 88%,
    transparent);
}
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 20px 0; position: relative;
}
.step .n {
  font: 700 24px var(--mono); color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  border-radius: 999px; width: 56px; height: 56px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 30%, transparent);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 560px) {
  .step { grid-template-columns: 46px 1fr; gap: 14px; }
  .step .n { width: 42px; height: 42px; font-size: 18px; }
  .steps::before { left: 20px; }
}

/* ── CTA band ── */
.cta-band {
  /* keep `auto` on the inline axis: the element also carries .wrap, and a
     bare `0` here would kill .wrap's centering (same specificity, later rule) */
  margin: clamp(18px, 3.5vw, 40px) auto;
}
/* a dark scene over the generated aurora texture — equally good in both themes */
.cta-band .inner {
  background:
    linear-gradient(180deg, rgba(14, 17, 22, 0.42), rgba(14, 17, 22, 0.62)),
    url("/assets/img/cta-tex.jpg") center / cover no-repeat,
    #0E1116;
  color: #F2F3F7; border-radius: 22px;
  padding: clamp(32px, 5vw, 56px); position: relative; overflow: hidden;
}
.cta-band h2 { max-width: 17em; margin-bottom: 12px; }
.cta-band p { opacity: 0.82; margin-bottom: 24px; }
.cta-band .btn-primary {
  background: linear-gradient(135deg, #4864E8, #6B5CFF);
  color: #fff;
}
/* The band is a fixed dark scene in BOTH themes, so its accents are pinned:
   light-theme --accent-ink (navy) would vanish on it, and the dark-theme
   .btn-primary ink override (higher specificity) would turn the button text
   near-black. :root prefix matches that specificity and wins by source order. */
.cta-band .eyebrow { color: #AFBEFF; }
.cta-band .eyebrow::before { background: #8DA2FF; }
:root .cta-band .btn-primary { color: #fff; }
.cta-band :focus-visible { outline-color: #F2F3F7; }

/* ── Prose pages (privacy, terms) ── */
.prose { padding: clamp(50px, 7vw, 90px) 0; }
.prose h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 14px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink); max-width: 46em; }
.prose .updated { font: 500 13px var(--mono); color: var(--muted); margin-bottom: 34px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font: 600 13px var(--mono); letter-spacing: 0.06em; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; }
.field input, .field textarea {
  width: 100%; font: 16px var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field :is(input, textarea):focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); overflow: hidden; }
.contact-aside .big-mail { font: 650 clamp(17px, 2.4vw, 21px) var(--mono); word-break: break-all; }
.contact-aside .aside-pic {
  width: calc(100% + 56px); max-width: none; height: auto;
  margin: -28px -28px 22px;
}

/* ── Footer: a hairline divider on top of the soft gradient underlay ── */
.site-foot {
  padding: 46px 0 48px; margin-top: clamp(26px, 4.5vw, 54px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--accent-soft));
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: flex-start; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-grid a:hover { color: var(--ink); }
.foot-note { margin-top: 26px; font: 500 12.5px var(--mono); color: var(--muted); }

/* ── Misc ── */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; }
.badge-row span { font: 550 13.5px var(--mono); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.badge-row span::before { content: "✓"; color: var(--ok); font-weight: 700; }
.tablewrap { overflow-x: auto; }
.center-cta { text-align: left; margin-top: 36px; }
.notfound { padding: 120px 0; }
.notfound h1 { font-size: clamp(40px, 8vw, 90px); }

/* ── Motion ──
   One system, four voices: rise (up), fromL/fromR (sideways), pop (scale).
   A single timing language across all of them. */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fromL {
  from { opacity: 0; transform: translateX(-34px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fromR {
  from { opacity: 0; transform: translateX(34px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
/* hero entrance: bottom-up cascade; fill backwards — without JS the content
   is simply visible */
.hero .wrap > * { animation: rise .8s cubic-bezier(.16, .72, .26, 1) backwards; }
.hero .wrap > *:nth-child(2) { animation-delay: .1s; }
.hero .wrap > *:nth-child(3) { animation-delay: .2s; }
.hero .wrap > *:nth-child(4) { animation-delay: .3s; }
.hero .wrap > *:nth-child(5) { animation-delay: .4s; }

/* Scroll reveal: hidden only while JS works (boot.js sets the .js class).
   Animation, not transition: transition longhands on .rv.in would permanently
   override the cards' hover transitions (higher specificity, .in never leaves).
   The rvsafe shorthand is a dead-man's switch: if site.js dies after boot.js
   ran, everything still fades in at 3s instead of staying invisible forever. */
@keyframes rvsafe { to { opacity: 1; } }
html.js .rv { opacity: 0; animation: rvsafe .6s ease 3s forwards; }
html.js .rv.in {
  opacity: 1;
  animation-name: rise;
  animation-duration: .8s;
  animation-timing-function: cubic-bezier(.16, .72, .26, 1);
  animation-fill-mode: backwards;
  /* the rvsafe 3s delay must not leak into real reveals */
  animation-delay: 0s;
}
/* entrance character per block type: cards sprout, steps ride the thread,
   visuals pop into place, the sidebar arrives from the right */
html.js .cards > .rv.in { animation-name: pop; animation-duration: .7s; }
html.js .steps > .rv.in { animation-name: fromL; }
html.js .stats > .rv.in { animation-name: pop; animation-duration: .7s; }
html.js .visual.rv.in { animation-name: pop; animation-duration: .9s; }
html.js .contact-aside.rv.in { animation-name: fromR; }
html.js .badge-row.rv.in { animation-name: fromL; animation-duration: .9s; }
/* stagger only inside grids — single blocks need no delay */
html.js .cards > .rv.in:nth-child(2), html.js .steps > .rv.in:nth-child(2), html.js .stats > .rv.in:nth-child(2) { animation-delay: .1s; }
html.js .cards > .rv.in:nth-child(3), html.js .steps > .rv.in:nth-child(3), html.js .stats > .rv.in:nth-child(3) { animation-delay: .2s; }
html.js .cards > .rv.in:nth-child(4), html.js .steps > .rv.in:nth-child(4) { animation-delay: .3s; }
html.js .cards > .rv.in:nth-child(5), html.js .steps > .rv.in:nth-child(5) { animation-delay: .4s; }
html.js .cards > .rv.in:nth-child(6), html.js .steps > .rv.in:nth-child(6) { animation-delay: .5s; }

/* hover lift: the lifted shadow is pre-painted on ::after and only its
   opacity animates — box-shadow itself never animates (full repaint per
   frame on a card-sized area otherwise) */
.card {
  position: relative;
  transition: transform .45s cubic-bezier(.16, .72, .26, 1),
              border-color .45s;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transition: opacity .45s cubic-bezier(.16, .72, .26, 1);
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.card:hover::after { opacity: 1; }
.btn { transition: transform .35s cubic-bezier(.16, .72, .26, 1), box-shadow .35s, filter .25s, color .2s; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 4px rgba(14, 17, 22, 0.18),
    0 16px 40px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.site-head { transition: box-shadow .3s; }
.site-head.scrolled { box-shadow: 0 6px 24px rgba(16, 22, 34, 0.09); }
:root[data-theme="dark"] .site-head.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-head.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); } }

/* ── Stats (the "team around the clock" band) ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: clamp(20px, 3.5vw, 36px) 0 4px; }
/* a short accent tick instead of a full-width line */
.stat { padding-top: 16px; position: relative; }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #7A5CFF));
}
.stat b {
  display: block;
  font: 700 clamp(38px, 5.5vw, 58px)/1.05 var(--font-display);
  letter-spacing: -0.03em; color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.stat span { font: 550 12.5px var(--mono); color: var(--muted); letter-spacing: 0.07em; text-transform: uppercase; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 14px; } }

/* ── Visual band, work shots, video loops ── */
.visual { margin: clamp(20px, 3.5vw, 36px) 0 0; }
/* pic() wraps every responsive image in <picture>; make the wrapper
   transparent to layout so figure/card geometry stays unchanged */
picture { display: contents; }
.visual img, .visual video {
  width: 100%; height: auto; border-radius: 18px;
  box-shadow: var(--shadow), 0 30px 70px -30px color-mix(in srgb, var(--accent) 30%, transparent);
  display: block;
}
/* parallax: media slightly larger than its frame, drifting slowly inside it */
.plx {
  overflow: hidden; border-radius: 18px;
  box-shadow: var(--shadow), 0 30px 70px -30px color-mix(in srgb, var(--accent) 30%, transparent);
}
.plx img, .plx video {
  scale: 1.12;
  translate: 0 var(--plx, 0px);
  will-change: translate;
  border-radius: 0; box-shadow: none;
}
/* without JS there is no drift to compensate the overscan — show media 1:1 */
html:not(.js) .plx img, html:not(.js) .plx video { scale: none; translate: none; }
/* pause/play toggle for looping videos (WCAG 2.2.2), injected by site.js */
.visual { position: relative; }
.vid-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 40px; height: 40px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(14, 17, 22, 0.62); color: #F2F3F7; font-size: 14px;
  display: grid; place-items: center;
}
.vid-toggle:hover { background: rgba(14, 17, 22, 0.82); }
.vid-toggle:focus-visible { outline-color: #F2F3F7; }
.card .shot {
  width: calc(100% + 52px); max-width: none; height: auto;
  margin: -26px -26px 20px;
  border-radius: 11px 11px 0 0;
}

/* ── Living background: a fixed layer that breathes and shifts with scroll.
   transform/opacity only — painted on the compositor, scroll stays smooth. ── */
.sky { position: fixed; inset: -12% 0; z-index: -1; pointer-events: none; }
.sky i { position: absolute; inset: 0; display: block; }
.sky .a {
  background:
    radial-gradient(42% 34% at 14% 22%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(36% 30% at 86% 12%, color-mix(in srgb, #7A5CFF 9%, transparent), transparent 72%);
  translate: 0 calc(var(--sp, 0) * -140px);
}
.sky .b {
  background:
    radial-gradient(40% 34% at 82% 78%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(34% 30% at 22% 88%, color-mix(in srgb, #7A5CFF 10%, transparent), transparent 72%);
  opacity: var(--sp, 0);
  translate: 0 calc((1 - var(--sp, 0)) * 160px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* *::before/::after are required: a bare * does not match pseudo-elements,
     and the .hero::before aurora would keep drifting */
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .rv { opacity: 1; transform: none; }
  /* no parallax drift here either — no reason to keep the 12% overscan */
  .plx img, .plx video { scale: none; translate: none; }
}

/* ── Print: reveal everything, drop the decorative layers ── */
@media print {
  html.js .rv { opacity: 1 !important; animation: none !important; }
  .sky, .vid-toggle, .skip { display: none !important; }
  .site-head { position: static; }
}

/* ── Skip link (visible only on keyboard focus) ── */
.skip {
  position: absolute; left: 16px; top: -52px; z-index: 60;
  background: var(--accent); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 650;
  transition: top .2s;
}
.skip:focus { top: 0; color: #fff; }

/* ── No-JS contact fallback: the form needs JS to send, so without it we hide
   the form and point at plain email instead of leaking fields into the URL ── */
.nojs-note { display: none; }
html:not(.js) #contact-form { display: none; }
html:not(.js) .nojs-note { display: block; }
