/* tobisite.com — design tokens & layout. No build step, no third-party requests. */

/* Source Serif 4 (SIL OFL), self-hosted variable subsets from Google Fonts.
   The two axes (opsz 8..60, wght 400..700) live in the file; font-optical-sizing
   defaults to auto, so display sizes get the display cut for free.
   Cache-busting is baked into the filename — /assets/* is immutable, so a new
   font revision must arrive under a new name, not a new ?v=. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/ss4-latin-4c4d14ec.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/ss4-cyrillic-ad4fd1f2.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #F7F7F3;
  --paper-2: #F1F0EA;
  --surface: #FFFFFF;
  --ink: #14181F;
  --muted: #5C6470;
  --line: #E3E2D8;
  --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: "Source Serif 4", Georgia, "Times New Roman", 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;
    --paper-2: #12161C;
    --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;
  --paper-2: #12161C;
  --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;
  --paper-2: #F1F0EA;
  --surface: #FFFFFF;
  --ink: #14181F;
  --muted: #5C6470;
  --line: #E3E2D8;
  --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; }
/* clip, not hidden: `hidden` on the root propagates to the viewport and turns
   it into a scroll container (sticky header casualties); `clip` never does.
   Needed because .full-bleed spans 100vw, which on classic scrollbars is a
   dozen pixels wider than the content box. */
html { scroll-behavior: smooth; overflow-x: clip; }
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 ──
   Serif display carries h1/h2, the serif ledes and the stat figures; everything
   else (h3, body, UI) stays on the system sans. Two voices, no third. */
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--font-display); font-optical-sizing: auto; }
h1 { font-size: clamp(2.9rem, 7vw, 5.5rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 580; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.024em; font-weight: 560; }
h3 { font-family: var(--font); 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; }
/* editorial pull-out: the one line that should be read even if nothing else is */
.lede-serif {
  font-family: var(--font-display); font-optical-sizing: auto;
  font-size: clamp(20px, 2.3vw, 27px); line-height: 1.32; font-weight: 500;
  letter-spacing: -0.015em; color: var(--ink); max-width: 22em;
}
p { margin: 0 0 1em; max-width: 42em; }
.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  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; }
/* night mode wants a whisper of aurora, not a light show */
:root[data-theme="dark"] .hero::before { opacity: .5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero::before { opacity: .5; } }
@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: 11em; }
.hero .lede-serif { margin: 26px 0 0; }
.hero .lede { margin: 18px 0 32px; }
.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); }
  .card.pitch { border-color: var(--accent); }
  .browser-frame .chrome i { background: var(--line); }
  .numeral b { color: var(--line); }
}
.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, section.slab { padding: clamp(38px, 5.5vw, 68px) 0; }
section.band { content-visibility: auto; contain-intrinsic-size: auto 600px; }
/* .slab is a band without containment: content-visibility brings paint
   containment along, which would crop anything that leaves its box on purpose
   (.overlap, .full-bleed). Same rhythm, no scissors. */
section.tint { background: var(--paper-2); }
.band-head { margin-bottom: clamp(20px, 3.2vw, 34px); }
.band-head .lede { margin-top: 12px; }

/* ── Composition primitives ──
   Four ways to place media on a page, so no two bands read the same:
   two columns (.split), a card mosaic (.bento), an edge-to-edge break
   (.full-bleed) and a frame that hangs into the next section (.overlap). ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
/* markup is always text-then-media; .rev flips the media to the left */
.split.rev > figure { order: -1; }
.split .visual { margin: 0; }
.split > div > :last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split > figure { order: -1; }
}
/* splits stacked as a sequence (process steps) need air between them, not the
   card-grid gap */
.split-stack { display: grid; gap: clamp(44px, 7vw, 88px); }
.split + .bento { margin-top: clamp(30px, 5vw, 56px); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > *, .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: span 1; }
  /* нечётный набор карточек: акцентная CTA-карточка добирает ряд целиком,
     иначе на 2-колоночной сетке она виснет одна рядом с пустой ячейкой */
  .bento > .card.pitch, .bento > .span-6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  /* one explicit column: a leftover `span 2` would open an implicit second
     column and push the grid past the viewport */
  .bento > .card.pitch, .bento > .span-6 { grid-column: span 1; }
}
/* the one card that asks for a click */
.card.pitch { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: none; }
.card.pitch .btn { margin-top: 18px; }

.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
/* a fixed band height, so the crop is a decision and not whatever the source
   aspect happens to be — and so nothing shifts while the image loads */
.plx.full-bleed { border-radius: 0; box-shadow: none; height: min(58vh, 520px); }
.plx.full-bleed img { width: 100%; height: 100%; object-fit: cover; }

/* the negative margin eats its host section's bottom padding and then hangs
   96px past the edge — the section's background break runs behind the media */
.overlap { position: relative; z-index: 1; margin-bottom: calc(-96px - clamp(38px, 5.5vw, 68px)); }
/* qualified by element on purpose — the section.band/section.slab padding
   shorthand above carries the same weight and would otherwise win */
section.after-overlap { padding-top: calc(96px + clamp(38px, 5.5vw, 68px)); }
@media (max-width: 900px) {
  .overlap { margin-bottom: 0; }
  section.after-overlap { padding-top: clamp(38px, 5.5vw, 68px); }
}

/* a browser chrome drawn in CSS — no screenshot furniture to ship */
.browser-frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.browser-frame .chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.browser-frame .chrome i {
  width: 9px; height: 9px; border-radius: 999px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--ink) 20%, transparent);
}
.browser-frame .chrome i + i { margin-left: -6px; }
.browser-frame .addr {
  flex: 1; text-align: center; border-radius: 999px; padding: 4px 10px;
  background: var(--paper); font: 500 11.5px var(--mono); color: var(--muted);
}
/* work page: the frame is the card, so the entry wears no card chrome —
   just the preview with its label block set underneath */
.work-item { margin: 0; }
.work-item .browser-frame { margin-bottom: 20px; }
.work-item .k {
  display: block; margin-bottom: 10px;
  font: 650 13px var(--mono); letter-spacing: 0.08em; color: var(--accent-ink);
}
.work-item h3 { margin-bottom: 8px; }
.work-item p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* the step number set as display type — what fills a split column that has
   no media of its own */
.numeral { margin: 0; display: grid; place-items: center; min-height: clamp(110px, 18vw, 230px); }
.numeral b {
  font: 600 clamp(4.5rem, 13vw, 10rem)/1 var(--font-display);
  font-optical-sizing: auto; letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--accent) 17%, transparent);
}

/* height:auto is load-bearing — the width/height attributes on pic()'s <img>
   act as a used height, so a bare max-width would stretch the shot */
.browser-frame img { width: 100%; height: auto; border-radius: 0; box-shadow: none; }

/* honest facts, set like a masthead */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-band > div { padding: clamp(22px, 3vw, 30px) clamp(14px, 2vw, 24px); border-left: 1px solid var(--line); }
.stat-band > div:first-child { border-left: 0; padding-left: 0; }
.stat-band b {
  display: block; font-family: var(--font-display); font-optical-sizing: auto;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-band span {
  display: block; margin-top: 10px;
  font: 550 12px/1.45 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 860px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat-band > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .stat-band { grid-template-columns: 1fr; }
  .stat-band > div { border-left: 0; padding-left: 0; }
  .stat-band > div + div { border-top: 1px solid var(--line); }
}

figure { margin: 0; }
figcaption {
  margin-top: 14px; max-width: 46em;
  font: 500 12px/1.55 var(--mono); letter-spacing: 0.02em; color: var(--muted);
}

.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; }
/* the same thread, sized to live in one column of a .split */
.steps.compact .step { grid-template-columns: 44px 1fr; gap: 16px; padding: 12px 0; }
.steps.compact .n { width: 38px; height: 38px; font-size: 13px; letter-spacing: 0.03em; }
.steps.compact::before { left: 18px; top: 22px; bottom: 22px; }
.steps.compact h3 { font-size: 17px; }
.steps.compact p { font-size: 15px; }
@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; }
.hero .wrap > *:nth-child(6) { animation-delay: .5s; }

/* 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, html.js .bento > .rv.in { animation-name: pop; animation-duration: .7s; }
html.js .steps > .rv.in { animation-name: fromL; }
html.js .stat-band > .rv.in { animation-name: pop; animation-duration: .7s; }
html.js .visual.rv.in { animation-name: pop; animation-duration: .9s; }
/* in a two-column split the media arrives from its own side */
html.js .split > figure.rv.in { animation-name: fromR; }
html.js .split.rev > figure.rv.in { animation-name: fromL; }
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 .bento > .rv.in:nth-child(2), html.js .stat-band > .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 .bento > .rv.in:nth-child(3), html.js .stat-band > .rv.in:nth-child(3) { animation-delay: .2s; }
html.js .cards > .rv.in:nth-child(4), html.js .steps > .rv.in:nth-child(4), html.js .bento > .rv.in:nth-child(4), html.js .stat-band > .rv.in:nth-child(4) { animation-delay: .3s; }
html.js .cards > .rv.in:nth-child(5), html.js .steps > .rv.in:nth-child(5), html.js .bento > .rv.in:nth-child(5) { animation-delay: .4s; }
html.js .cards > .rv.in:nth-child(6), html.js .steps > .rv.in:nth-child(6), html.js .bento > .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); } }

/* ── Visual band, work shots, video loops ── */
/* longhand on purpose: a margin shorthand here would silently reset the
   negative margin-bottom that .overlap needs */
.visual { margin-top: clamp(20px, 3.5vw, 36px); }
/* 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; }
/* ── 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; }
