/* =============================================================
   DEVPOOL — stylesheet
   One idea: warm editorial paper. One accent. One grid.
   Written from scratch · 2026-04-24
   ============================================================= */


/* ─────────────────────────────────────────────────────────────
   01 · TOKENS
   ───────────────────────────────────────────────────────────── */

:root {
  /* Paper & ink — r20 (2026-04-26): claude.ai-inspired warm cream
   * for a calmer, more editorial feel across the whole ecosystem. */
  --paper:       #F7F4EE;
  --paper-deep:  #EFEAE0;     /* slightly darker wash for alt bands */
  --ink:         #1A1916;
  --ink-80:      rgba(26, 25, 22, 0.82);
  --ink-60:      rgba(26, 25, 22, 0.62);
  --ink-45:      rgba(26, 25, 22, 0.45);
  --ink-25:      rgba(26, 25, 22, 0.24);
  --ink-12:      rgba(26, 25, 22, 0.12);
  --ink-06:      rgba(26, 25, 22, 0.06);

  /* One accent, used sparingly. r20 — refined to Anthropic-style terracotta
   * (#CC785C) for cross-site consistency with app.devpool.online. */
  --mark:        #CC785C;   /* terracotta — main accent */
  --mark-soft:   #F2D9CD;   /* tinted wash for hovers */
  --mark-deep:   #B5614A;   /* darker mark for deep hovers */
  --mark-rgb:    204, 120, 92; /* for rgba() helpers */

  /* Avatar tones (restrained, editorial) */
  --tone-a:      #E8D9C6;
  --tone-b:      #D8DDD0;
  --tone-c:      #E6CFC4;

  /* Shadows — minimal, only where earned */
  --shadow-1:    0 1px 2px rgba(17, 16, 16, 0.05);
  --shadow-2:    0 8px 32px -12px rgba(17, 16, 16, 0.18);

  /* Type */
  --font-serif:  "Instrument Serif", "PP Editorial Old", Georgia, serif;
  --font-sans:   "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono:   "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Measures */
  --container:   1440px;
  --gutter:      clamp(24px, 5vw, 72px);
  --section-y:   clamp(88px, 12vh, 160px);
  --gap:         clamp(32px, 4vw, 64px);
  --header-h:    72px;

  /* Motion */
  --ease-out:    cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    240ms;
  --dur-med:     500ms;
  --dur-slow:    900ms;
}


/* ─────────────────────────────────────────────────────────────
   02 · RESET & BASE
   ───────────────────────────────────────────────────────────── */

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Block pinch-zoom + double-tap zoom on touch devices. */
  touch-action: manipulation;
  -ms-content-zooming: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--ink);
  color: var(--paper);
}


/* ─────────────────────────────────────────────────────────────
   03 · TYPOGRAPHY
   ───────────────────────────────────────────────────────────── */

em, .italic {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Typographic refinements — tabular figures for measured numbers,
   proportional oldstyle for display headings. */
.foot-base,
[data-clock-utc],
.stat-l,
.sec-kicker,
.svc-n,
.val-n,
.price-kicker,
.svc-extra-k,
.foot-label,
.mnav-n {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.hero-title,
.sec-title,
.studio-title,
.cta-title,
.stat-n,
.step-n,
.foot-wordmark,
.svc-price em {
  font-variant-numeric: proportional-nums;
  font-feature-settings: "pnum" 1, "kern" 1, "liga" 1;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}


/* ─────────────────────────────────────────────────────────────
   04 · LAYOUT PRIMITIVES
   ───────────────────────────────────────────────────────────── */

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

.skip-link {
  position: absolute;
  inset: 8px auto auto 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(-200%);
  transition: transform 0.2s;
  z-index: 1000;
}
.skip-link:focus { transform: translateY(0); }


/* Scroll progress — top-of-page thin signature line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: var(--mark);
  transform-origin: left center;
  will-change: width;
}

/* Paper grain — subtle warmth, reinforces editorial metaphor */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.038;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.067  0 0 0 0 0.063  0 0 0 0 0.063  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) {
  .grain { opacity: 0.025; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mark);
  box-shadow: 0 0 0 0 var(--mark);
  animation: pulse 2.2s var(--ease-inout) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(204, 120, 92, 0.4); }
  60%  { box-shadow: 0 0 0 10px rgba(204, 120, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 120, 92, 0); }
}


/* Section header */
.sec-head {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: var(--gutter);
  align-items: baseline;
  margin-bottom: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(32px, 4vh, 48px);
  border-bottom: 1px solid var(--ink-12);
}
.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}
/* Editorial mark — a short orange rule signals "section begins here",
 * like a magazine folio. Stays accent-colored even when the kicker
 * ink-60 is used, so the color hit is a subtle rhythm keeper. */
.sec-kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--mark);
  flex-shrink: 0;
}
.sec-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}
.sec-title em {
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.mark {
  color: var(--mark);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  white-space: nowrap;
}


/* ─────────────────────────────────────────────────────────────
   05 · BUTTONS
   ───────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:hover {
  --btn-bg: var(--mark);
  --btn-bd: var(--mark);
}
.btn:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}
.btn svg { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink-25);
}
.btn-ghost:hover {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}

.btn-small {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 18px 28px;
  font-size: 16px;
}


/* ─────────────────────────────────────────────────────────────
   06 · REVEAL ANIMATIONS
   ───────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal.is-in.delay-1 { transition-delay: 100ms; }
.reveal.is-in.delay-2 { transition-delay: 200ms; }
.reveal.is-in.delay-3 { transition-delay: 300ms; }


/* ─────────────────────────────────────────────────────────────
   07 · HEADER
   ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--ink-12);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* Inline-SVG wordmark — switched from text+em (r18) to SVG (r19) so the
 * heavy weight, exact kerning and circular dot render identically across
 * platforms regardless of available system fonts. The text glyphs are
 * still rendered by the browser, but `font-weight: 900` + the heaviest
 * available system fallback gives the punchy logo silhouette.
 * `.brand-svg-dot` fill is themed via CSS so the dot tracks --mark. */
.brand-svg {
  display: block;
  height: 28px;
  width: auto;
  overflow: visible;
}
.brand-svg-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", "Helvetica Neue", "Arial Black", "Inter", Arial, sans-serif;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -2.4px;
  fill: var(--ink);
  text-rendering: geometricPrecision;
}
.brand-svg-dot { fill: var(--mark); }

/* Hero variant — same brand-svg markup as the header, but scaled to the
 * hero-title cap height. Inline-aligned with the rest of the line. */
.hero-title .brand-svg.hero-brand-inline {
  display: inline-block;
  height: 0.88em;
  width: auto;
  vertical-align: -0.03em;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-80);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* External nav item — same hover line, plus an outbound arrow that
 * lifts and tints to --mark on hover. Signals "leaving the site"
 * without breaking the type rhythm of the in-page nav links. */
.nav-ext { display: inline-flex; align-items: center; gap: 4px; }
.nav-ext-arrow {
  display: inline-block;
  font-size: 0.92em;
  color: var(--mark);
  transform: translate(0, 0);
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-ext:hover .nav-ext-arrow { transform: translate(2px, -2px); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mark);
  animation: pulse 2.2s var(--ease-inout) infinite;
}


/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ink-25);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink);
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}
.nav-toggle-line {
  display: block;
  width: 15px;
  height: 1.4px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform var(--dur-fast) var(--ease-inout),
    opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(5.4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.1);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-5.4px) rotate(-45deg);
}


/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--paper);
  padding: clamp(32px, 8vh, 64px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 360ms var(--ease-out),
    transform 500ms var(--ease-inout),
    visibility 0s linear 360ms;
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 280ms var(--ease-out),
    transform 420ms var(--ease-inout),
    visibility 0s linear 0s;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-12);
}
.mobile-nav nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: clamp(16px, 2.8vh, 26px) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 9vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-12);
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-med) var(--ease-out);
}
.mobile-nav nav a::after {
  content: "→";
  margin-left: auto;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 22px;
  color: var(--ink-45);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.mobile-nav nav a:hover,
.mobile-nav nav a:active {
  color: var(--mark);
  padding-left: 8px;
}
.mobile-nav nav a:hover::after {
  color: var(--mark);
  transform: translateX(6px);
}
/* External items in the mobile drawer (Trading / Новости / dev.ai /
 * Поддержка / Студия) — distinguish from in-page anchors with an
 * orange ↗ instead of the in-page →. */
.mobile-nav nav a.mnav-ext::after { content: "↗"; color: var(--mark); }
.mobile-nav nav a.mnav-ext:hover::after { transform: translate(4px, -4px); }
.mobile-nav .mnav-n {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-45);
  flex-shrink: 0;
  padding-top: 14px;
}

.mobile-nav-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-12);
}
.mobile-nav-foot > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-80);
}
.mobile-nav-foot a {
  color: var(--ink);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-nav-foot a:hover { color: var(--mark); }
.mobile-nav-foot .mnav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 2px;
}

body.nav-open { overflow: hidden; }


/* ─────────────────────────────────────────────────────────────
   08 · HERO
   ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(48px, 7vh, 88px);
  padding-bottom: clamp(44px, 6vh, 88px);
  min-height: clamp(600px, 72vh, 800px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero used to be a two-column grid (copy + side meta dl). The side
 * panel is gone — hero-copy now fills the container. Keep .hero-grid
 * as a plain flow block so the existing markup selectors still match. */
.hero-grid { display: block; }

.hero-copy { min-width: 0; max-width: 1120px; }

.hero-title {
  margin: 0 0 clamp(32px, 4.5vh, 56px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(42px, 6.8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title .line {
  display: block;
  overflow: visible;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}
.hero-title.is-in .line { opacity: 1; transform: none; }
.hero-title.is-in .line:nth-child(1) { transition-delay: 40ms; }
.hero-title.is-in .line:nth-child(2) { transition-delay: 180ms; }
.hero-title.is-in .line:nth-child(3) { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .hero-title .line { opacity: 1; transform: none; transition: none; }
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-title .mark {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mark);
}
/* Hand-drawn brushstroke under the accented word — a signature detail.
 * The SVG uses preserveAspectRatio="none" so it stretches to the word width,
 * and stroke-linecap="round" preserves the tapered brush feel at any size.
 * Draws in once, in sync with the hero reveal (700ms delay → 1.1s draw). */
.hero-title .mark::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: -0.02em;
  height: 0.14em;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M4 7 C 60 3, 150 10, 240 5 Q 270 3, 296 8' stroke='%23CC785C' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  transform: scaleX(0);
  transform-origin: 0% 50%;
  transition: transform 1100ms cubic-bezier(0.65, 0, 0.35, 1) 700ms;
  pointer-events: none;
}
.hero-title.is-in .mark::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .hero-title .mark::after { transform: scaleX(1); transition: none; }
}

.hero-lede {
  max-width: 60ch;
  margin: 0 0 clamp(32px, 4vh, 48px);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-80);
}
.hero-lede strong {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--mark);
  padding-bottom: 1px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-rule {
  margin-top: clamp(56px, 7vh, 96px);
  height: 1px;
  background: var(--ink-12);
}


/* ─────────────────────────────────────────────────────────────
   09 · PROOF
   ───────────────────────────────────────────────────────────── */

.proof {
  padding: clamp(48px, 7vh, 80px) 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
  /* Rule is rendered via ::before so it can draw in with the reveal. */
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink-12);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1100ms var(--ease-inout) 120ms;
}
.stat.is-in::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .stat::before { transform: scaleX(1); transition: none; }
}
.stat-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-n em { color: var(--mark); font-style: italic; }
.stat-l {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}


/* ─────────────────────────────────────────────────────────────
   10 · SERVICES
   ───────────────────────────────────────────────────────────── */

.services {
  padding: var(--section-y) 0;
}

.svc-list {
  border-top: 1px solid var(--ink-12);
}
.svc-row {
  position: relative;
  border-bottom: 1px solid var(--ink-12);
  isolation: isolate;
}
.svc-link {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(240px, 1fr) minmax(0, 1.3fr) 240px 32px;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 4vh, 42px) 0;
  color: var(--ink);
  transition: color 420ms var(--ease-out);
}
/* Extended hover fill — bleeds slightly beyond the text so the
   hover feels generous without shifting the grid columns. */
.svc-link::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  right: -24px;
  background: var(--mark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--ease-inout);
  z-index: -1;
}
.svc-row:hover .svc-link,
.svc-row:focus-within .svc-link {
  color: var(--paper);
}
.svc-row:hover .svc-link::before,
.svc-row:focus-within .svc-link::before {
  transform: scaleX(1);
}
.svc-row:hover .svc-arrow,
.svc-row:focus-within .svc-arrow {
  transform: translateX(8px);
}

.svc-n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-60);
  transition: color var(--dur-med) var(--ease-out);
}
.svc-row:hover .svc-n { color: var(--paper); }

.svc-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.svc-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mark);
  transition: color var(--dur-med) var(--ease-out);
}
.svc-row:hover .svc-title em { color: var(--paper); }

.svc-desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-60);
  transition: color var(--dur-med) var(--ease-out);
}
.svc-row:hover .svc-desc { color: rgba(243, 239, 231, 0.82); }

.svc-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.svc-price {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  transition: color var(--dur-med) var(--ease-out);
}
.svc-price em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
}
.svc-row:hover .svc-price { color: var(--paper); }
.svc-time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-60);
  transition: color var(--dur-med) var(--ease-out);
}
.svc-row:hover .svc-time { color: rgba(243, 239, 231, 0.8); }

.svc-arrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink-45);
  justify-self: end;
  transition:
    color var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}
.svc-row:hover .svc-arrow { color: var(--paper); }


/* ─────────────────────────────────────────────────────────────
   11 · PROCESS
   ───────────────────────────────────────────────────────────── */

.process {
  padding: var(--section-y) 0;
  background: var(--paper-deep);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-25);
}
.step-n {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 5vw, 88px);
  line-height: 0.9;
  color: var(--mark);
  letter-spacing: -0.03em;
}
.step-t {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.step-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-60);
}


/* ─────────────────────────────────────────────────────────────
   12 · PRICING  (numbering tightened — WORK + REVIEWS sections
   were removed for the «direct contact» rewrite; the site no
   longer advertises cases or filtered testimonials, so their
   styling has been dropped from this file entirely.)
   ───────────────────────────────────────────────────────────── */

.pricing {
  padding: var(--section-y) 0;
  background: var(--paper-deep);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.price-card {
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}
.price-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mark);
}
.price-body {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pricing-note {
  margin: 48px auto 0;
  max-width: 56ch;
  text-align: center;
  font-size: 14px;
  color: var(--ink-60);
}


/* ─────────────────────────────────────────────────────────────
   14 · FAQ
   ───────────────────────────────────────────────────────────── */

.faq {
  padding: var(--section-y) 0;
}
.faq-wrap { max-width: 980px; }

.faq-list {
  border-top: 1px solid var(--ink-12);
}
.faq-item {
  border-bottom: 1px solid var(--ink-12);
}
.faq-item details { padding: 0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--mark); }

.faq-q {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.faq-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--dur-med) var(--ease-inout);
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
}
.faq-plus::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform var(--dur-med) var(--ease-inout);
}
.faq-item details[open] .faq-plus::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-a {
  padding: 0 0 28px;
  max-width: 64ch;
  animation: faq-in 500ms var(--ease-out) both;
}
.faq-a p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-60);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


/* ─────────────────────────────────────────────────────────────
   15 · CTA
   ───────────────────────────────────────────────────────────── */

.cta {
  padding: var(--section-y) 0;
  text-align: center;
}
.cta-wrap {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-title {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cta-title em {
  position: relative;
  font-style: italic;
}
/* The period is the brand nod — same orange mark as the header "dev.".
 * Italic serif inherited from parent; we only swap color and nudge the
 * kerning so the dot lives a touch closer to "у". */
.cta-title .cta-dot {
  color: var(--mark);
  display: inline-block;
  margin-left: -0.03em;
  transform: translateY(-0.02em);
}
.cta-lede {
  margin: 28px 0 40px;
  max-width: 52ch;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-60);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}


/* ─────────────────────────────────────────────────────────────
   16 · FOOTER
   ───────────────────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 40px;
  margin-top: 0;
}
.foot-wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
/* Footer wordmark — switched from giant "devpool." text (r18) to inline
 * SVG of the same `dev.` logomark used in the header (r19). Same heavy
 * black + bright orange dot identity, just rendered very large.
 * Cream letters on the dark footer, dot keeps --mark. */
.foot-wordmark {
  display: block;
  position: relative;
  user-select: none;
  cursor: pointer;
  width: max-content;
  max-width: 100%;
}
.foot-mark-svg {
  display: block;
  height: clamp(96px, 18vw, 240px);
  width: auto;
  overflow: visible;
}
.foot-mark-svg-text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", "Helvetica Neue", "Arial Black", "Inter", Arial, sans-serif;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -2.4px;
  fill: var(--paper);
  text-rendering: geometricPrecision;
}
.foot-mark-svg-dot {
  fill: var(--mark);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 460ms var(--ease-inout);
}
/* Editorial underline — draws in from the left on hover. */
.foot-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 8%;
  bottom: 0;
  height: 3px;
  background: var(--mark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 720ms var(--ease-inout);
}
.foot-wordmark:hover::after { transform: scaleX(1); }
.foot-wordmark:hover .foot-mark-svg-dot { transform: scale(1.18); }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  padding-top: 40px;
  border-top: 1px solid rgba(243, 239, 231, 0.14);
}
.foot-col { display: flex; flex-direction: column; gap: 16px; }
.foot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.5);
}
.foot-col ul { display: flex; flex-direction: column; gap: 8px; }
.foot-col li { font-size: 15px; color: rgba(243, 239, 231, 0.8); }
.foot-col a { position: relative; transition: color var(--dur-fast) var(--ease-out); }
.foot-col a:hover { color: var(--mark); }

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 239, 231, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.4);
}


/* ─────────────────────────────────────────────────────────────
   09a · MARQUEE STRIP
   ───────────────────────────────────────────────────────────── */

.marquee {
  overflow: hidden;
  padding: clamp(20px, 3vh, 32px) 0;
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  background: var(--paper-deep);
  position: relative;
  user-select: none;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper-deep), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper-deep), transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 40px);
  white-space: nowrap;
  width: max-content;
  animation: marquee 48s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  flex-shrink: 0;
}
.marquee-item em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mark);
  letter-spacing: -0.015em;
}
.marquee-dot {
  flex-shrink: 0;
  font-size: clamp(14px, 1.6vw, 20px);
  color: var(--mark);
  line-height: 1;
  transform: translateY(-2px);
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; transform: none; }
}


/* ─────────────────────────────────────────────────────────────
   16a · STUDIO / MANIFESTO
   ───────────────────────────────────────────────────────────── */

.studio {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.studio-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.studio-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.studio-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mark);
  letter-spacing: -0.015em;
}

.studio-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 62ch;
  margin-bottom: clamp(48px, 7vh, 96px);
}
/* Collapsible bio: clamped to ~5 main lines with a soft fade; the toggle
   button reveals the rest. The clamp uses max-height (not line-clamp,
   because content spans multiple <p>s). */
.bio-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  max-height: calc(1.55em * 5 + 0.3em);
  overflow: hidden;
  transition: max-height 720ms var(--ease-inout);
}
.bio-content p {
  margin: 0;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--ink-80);
}
.bio-content strong {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--mark);
  padding-bottom: 1px;
}
/* Fade mask tells the eye "there is more". Fades out when expanded. */
.bio-content::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5.2em;
  background: linear-gradient(to bottom,
    rgba(245, 241, 233, 0) 0%,
    rgba(245, 241, 233, 0.92) 72%,
    var(--paper) 100%);
  pointer-events: none;
  transition: opacity 360ms var(--ease-out);
}
.studio-body.is-expanded .bio-content {
  max-height: 4000px;
}
.studio-body.is-expanded .bio-content::after { opacity: 0; }

.bio-toggle {
  align-self: flex-start;
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 18px;
  background: transparent;
  border: 1px solid var(--ink-25);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.bio-toggle:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.bio-toggle:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}
.bio-toggle-icon {
  display: inline-flex;
  transition: transform 460ms var(--ease-inout);
}
.studio-body.is-expanded .bio-toggle-icon { transform: rotate(180deg); }

.values {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-12);
}
.values li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.val-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mark);
}
.val-t {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.val-p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-60);
}


/* ─────────────────────────────────────────────────────────────
   10a · SERVICES EXTRAS
   ───────────────────────────────────────────────────────────── */

.svc-extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px dashed var(--ink-12);
}
.svc-extra {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-extra-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mark);
}
.svc-extra p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-80);
}


/* ─────────────────────────────────────────────────────────────
   16b · CUSTOM CURSOR (dot + label)
   A fine-pointer-only enhancement. The default cursor is hidden
   via body.has-cursor; the dot follows the real pointer with a
   short lerp, the label appears on [data-label] targets.
   ───────────────────────────────────────────────────────────── */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  pointer-events: none;
  display: none;
  width: 0;
  height: 0;
  mix-blend-mode: difference;
  transition: opacity var(--dur-fast) var(--ease-out);
}
body.has-cursor .cursor { display: block; }
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor summary,
body.has-cursor [data-magnetic],
body.has-cursor [data-label],
body.has-cursor .nav-toggle { cursor: none; }

.cursor.is-hidden { opacity: 0; }

.cursor-dot {
  position: absolute;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;     /* white + mix-blend-mode: difference on parent
                              gives near-black on light bg, near-white on dark bg */
  transform: translate(-50%, -50%);
  transition:
    width var(--dur-med) var(--ease-out),
    height var(--dur-med) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.cursor.is-active .cursor-dot {
  width: 84px;
  height: 84px;
  background: #ffffff;
}

.cursor-label {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%) scale(0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000000;          /* inside difference: renders as the inverse */
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.cursor.is-active .cursor-label {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* ─────────────────────────────────────────────────────────────
   08a · HERO SPOTLIGHT
   A radial gradient follows the pointer and lifts the title
   mask slightly toward the accent. The CSS vars are set in JS.
   ───────────────────────────────────────────────────────────── */

.hero-title[data-spotlight] {
  --mx: 50%;
  --my: 50%;
  --active: 0;
  position: relative;
  background-image:
    radial-gradient(
      circle at var(--mx) var(--my),
      var(--mark) 0,
      var(--mark) 80px,
      var(--ink) 320px
    );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position var(--dur-fast) var(--ease-out);
}
.hero-title[data-spotlight] em {
  -webkit-text-fill-color: transparent;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-title[data-spotlight] .mark {
  -webkit-text-fill-color: var(--mark);
  background: none;
  color: var(--mark);
}
@media (hover: none), (pointer: coarse) {
  .hero-title[data-spotlight] {
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title[data-spotlight] {
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
  }
}


/* ─────────────────────────────────────────────────────────────
   10b · SERVICES PREVIEW (SVG on hover)
   ───────────────────────────────────────────────────────────── */

.svc-link {
  grid-template-columns: 64px minmax(240px, 1fr) minmax(0, 1.3fr) 180px 240px 32px;
}
.svc-preview {
  display: block;
  width: 180px;
  height: 72px;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 500ms var(--ease-out),
    transform 600ms var(--ease-out),
    color var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.svc-preview svg { width: 100%; height: 100%; }
.svc-row:hover .svc-preview,
.svc-row:focus-within .svc-preview {
  opacity: 1;
  transform: translateX(0);
  color: var(--paper);
  transition-delay: 120ms;
}


/* ─────────────────────────────────────────────────────────────
   11b · PROCESS TIMELINE
   Two-column layout: left rail with dot that tracks scroll;
   right column with four steps. Step .is-active lights up.
   ───────────────────────────────────────────────────────────── */

/* Process — full-bleed, big, long. Each of the four steps fills almost a
   viewport in height. Numbers are display-size italic serif. Titles are
   editorial display. Rail and dot retained and still driven by JS. */
.process-lede {
  max-width: 72ch;
  margin: 0 0 clamp(48px, 7vh, 84px);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.55;
  color: var(--ink-80);
  letter-spacing: -0.005em;
}
.process-lede em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}

.process-stage {
  position: relative;
  display: grid;
  grid-template-columns: clamp(40px, 5vw, 88px) 1fr;
  gap: clamp(28px, 3.5vw, 64px);
  padding-block: clamp(8px, 1vh, 16px);
}

.process-rail {
  position: relative;
  width: 2px;
  justify-self: center;
  align-self: stretch;
}
.process-rail-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(15, 15, 14, 0.08) 0%,
    var(--ink-25) 8%,
    var(--ink-25) 92%,
    rgba(15, 15, 14, 0.08) 100%);
}
.process-rail-dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mark);
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
  box-shadow:
    0 0 0 7px rgba(204, 120, 92, 0.12),
    0 0 0 16px rgba(204, 120, 92, 0.05);
}
.process-rail-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--paper-deep);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each pstep owns a near-full-viewport of space. Large typography,
   generous rhythm, explicit grid for number + copy columns. */
.pstep {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 22%) 1fr;
  column-gap: clamp(32px, 4.5vw, 80px);
  row-gap: clamp(20px, 2.5vh, 32px);
  align-content: center;
  min-height: clamp(420px, 56vh, 680px);
  padding-block: clamp(48px, 7vh, 96px);
  border-top: 1px solid var(--ink-12);
  opacity: 0.55;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.pstep:first-child {
  border-top: none;
  padding-top: clamp(32px, 5vh, 64px);
}
.pstep.is-active { opacity: 1; }

/* Flatten the head wrapper so number, title, duration become direct
   grid children of .pstep. */
.pstep-head { display: contents; }

.pstep-n {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: start;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(140px, 16vw, 260px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--ink-25);
  transition: color var(--dur-slow) var(--ease-out);
}
.pstep.is-active .pstep-n { color: var(--mark); }

.pstep-t {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 20ch;
}
.pstep-t em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--mark);
}

.pstep-dur {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  white-space: nowrap;
  padding: 8px 14px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  background: var(--paper);
}

.pstep-p {
  grid-column: 2;
  grid-row: 2;
  margin: clamp(16px, 2vh, 28px) 0 0;
  max-width: 62ch;
  font-size: clamp(19px, 1.55vw, 26px);
  line-height: 1.5;
  color: var(--ink-80);
  letter-spacing: -0.008em;
}
.pstep-p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}
.pstep-list {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vh, 18px);
  max-width: 70ch;
  margin-top: clamp(12px, 1.8vh, 24px);
  padding-top: clamp(20px, 2.4vh, 32px);
  border-top: 1px solid var(--ink-12);
}
.pstep-list li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  color: var(--ink-60);
}
.pstep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 16px;
  height: 1px;
  background: var(--mark);
}

/* Mobile: stack, bigger-but-bounded numbers, no sticky columns. */
@media (max-width: 780px) {
  .process-stage {
    grid-template-columns: 2px 1fr;
    gap: clamp(16px, 4vw, 28px);
  }
  .pstep {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 18px;
    min-height: auto;
    padding-block: clamp(52px, 9vh, 96px);
  }
  .pstep-n {
    grid-column: 1;
    grid-row: auto;
    font-size: clamp(88px, 26vw, 160px);
    line-height: 0.85;
  }
  .pstep-t {
    grid-column: 1;
    grid-row: auto;
    font-size: clamp(32px, 8.2vw, 52px);
    max-width: none;
  }
  .pstep-dur {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  .pstep-p {
    grid-column: 1;
    grid-row: auto;
    font-size: clamp(17px, 4.4vw, 20px);
  }
  .pstep-list {
    grid-column: 1;
    grid-row: auto;
  }
}


/* ─────────────────────────────────────────────────────────────
   11c · STAMPS — native horizontal scroll
   No pin, no scroll hijack. .stamps-wrap is a normal overflow-x
   container with scroll-snap; on desktop it's also drag-to-scroll.
   Vertical page scroll is never intercepted.
   ───────────────────────────────────────────────────────────── */

.stamps {
  background: var(--ink);
  color: var(--paper);
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  position: relative;
}
/* Base (mobile + reduced-motion fallback): native horizontal scroll,
   no pin, no scroll hijack. Desktop override below activates pin-scroll. */
.stamps-outer {
  position: relative;
  padding-block: clamp(64px, 9vh, 104px) clamp(40px, 6vh, 64px);
}
.stamps-pin {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(32px, 5vh, 48px);
}

.stamps-head {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: var(--gutter);
  align-items: baseline;
  padding-bottom: clamp(32px, 4vh, 48px);
  border-bottom: 1px solid rgba(243, 239, 231, 0.14);
}
.stamps-head .sec-kicker { color: rgba(243, 239, 231, 0.5); }
.stamps-head .sec-title {
  color: var(--paper);
  max-width: 22ch;
}
.stamps-head .sec-title em { color: var(--mark); }
.stamps-lede {
  grid-column: 2;
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: rgba(243, 239, 231, 0.72);
}

.stamps-wrap {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-block: clamp(24px, 4vh, 40px);
}
.stamps-wrap::-webkit-scrollbar { display: none; }
.stamps-wrap.is-dragging { cursor: grabbing; }
.stamps-track {
  display: flex;
  gap: clamp(20px, 2.2vw, 32px);
  padding-inline: 4px;
  width: max-content;
}
.stamp { scroll-snap-align: start; }
/* Right-edge spacer so the last card can fully scroll-snap into view */
.stamps-track::after {
  content: "";
  flex: 0 0 clamp(24px, 4vw, 56px);
}

/* Minimal card: one outer frame, logo + title + paragraph — nothing else.
   No dividers, no badges, no decorative lines. */
.stamp {
  flex: 0 0 auto;
  width: clamp(300px, 30vw, 380px);
  min-height: clamp(360px, 48vh, 440px);
  padding: 36px 32px 32px;
  background: transparent;
  border: 1px solid rgba(243, 239, 231, 0.24);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  transition:
    transform 520ms var(--ease-inout),
    border-color 420ms var(--ease-out),
    background 420ms var(--ease-out);
}

.stamp:hover {
  border-color: var(--mark);
  transform: translateY(-4px);
  background: rgba(204, 120, 92, 0.06);
}
.stamp:hover .stamp-t { color: var(--mark); }
.stamp:hover .stamp-logo { color: var(--mark); opacity: 1; }

.stamp-logo {
  width: 56px;
  height: 56px;
  color: var(--paper);
  opacity: 0.9;
  transition:
    color var(--dur-med) var(--ease-out),
    opacity var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}
.stamp-logo svg { width: 100%; height: 100%; display: block; }
.stamp:hover .stamp-logo { transform: scale(1.06); opacity: 1; }

.stamp-t {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  transition: color var(--dur-med) var(--ease-out);
}
.stamp-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(243, 239, 231, 0.78);
}

.stamps-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(243, 239, 231, 0.14);
}
.stamps-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 231, 0.5);
}
.stamps-hint-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--mark);
}
.stamps-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--paper);
}

/* Track edge padding so first/last cards can align to viewport edge */
.stamps-track { padding-inline: var(--gutter); }

/* ─────────────────────────────────────────────────────────────
   11c-desktop · STAMPS PIN-SCROLL (desktop only)
   Vertical wheel drives horizontal translation of the track.
   The outer's height is set by JS to exactly match the overflow
   distance, so entry/exit are precise — no dead zones, no extra
   vertical scroll wasted. Page scroll resumes naturally once the
   track reaches its end.
   ───────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .stamps-outer.is-pinned {
    padding-block: 0;
    /* height inline-styled by JS to pinZone + 100vh */
  }
  .stamps-outer.is-pinned .stamps-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    grid-template-rows: auto 1fr auto;
    gap: clamp(20px, 3vh, 36px);
    padding-block: clamp(56px, 7vh, 88px) clamp(24px, 3vh, 40px);
    box-sizing: border-box;
  }
  .stamps-outer.is-pinned .stamps-head {
    padding-bottom: clamp(20px, 3vh, 32px);
  }
  .stamps-outer.is-pinned .stamps-wrap {
    overflow: hidden;
    cursor: auto;
    scroll-snap-type: none;
    padding-block: 0;
    align-self: center;
  }
  .stamps-outer.is-pinned .stamps-wrap::-webkit-scrollbar { display: none; }
  .stamps-outer.is-pinned .stamps-track {
    will-change: transform;
    padding-inline: var(--gutter);
  }
  .stamps-outer.is-pinned .stamps-track::after { flex-basis: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .stamps-outer.is-pinned { padding-block: clamp(64px, 9vh, 104px) clamp(40px, 6vh, 64px) !important; height: auto !important; }
  .stamps-outer.is-pinned .stamps-pin { position: static; height: auto; grid-template-rows: auto auto auto; padding-block: 0; }
  .stamps-outer.is-pinned .stamps-wrap { overflow-x: auto; scroll-snap-type: x mandatory; cursor: grab; padding-block: clamp(24px, 4vh, 40px); }
  .stamps-outer.is-pinned .stamps-track { transform: none !important; }
}


/* ─────────────────────────────────────────────────────────────
   13b · PRICING — dark 3D hover
   Parent gets perspective so the tilt reads as depth, not a flat
   transform. Card inverts to ink + accent border.
   ───────────────────────────────────────────────────────────── */

.pricing-grid { perspective: 1400px; }
.price-card {
  transform-style: preserve-3d;
  transition:
    background var(--dur-med) var(--ease-out),
    color var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    transform 620ms var(--ease-inout),
    box-shadow var(--dur-med) var(--ease-out);
}
.price-card:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--mark);
  transform: translateY(-8px) rotateY(-4deg) rotateX(2deg);
  box-shadow: 0 40px 60px -30px rgba(17, 16, 16, 0.45);
}
.price-card:hover .price-kicker { color: var(--mark); }
.price-card:hover .price-body { color: var(--paper); }
.price-card .price-body {
  transition: color var(--dur-med) var(--ease-out);
}
.price-card .price-kicker {
  transition: color var(--dur-med) var(--ease-out);
}


/* ─────────────────────────────────────────────────────────────
   05b · CTA BUTTON GLOW + ICON WOBBLE
   ───────────────────────────────────────────────────────────── */

.btn-primary {
  position: relative;
}
.btn-primary:hover {
  box-shadow:
    0 24px 48px -16px rgba(204, 120, 92, 0.55),
    0 0 0 1px rgba(204, 120, 92, 0.2);
  transform: translateY(-2px);
}
.btn-primary:hover svg {
  animation: btn-wobble 720ms var(--ease-inout);
}
@keyframes btn-wobble {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(5px) rotate(-6deg); }
  55%  { transform: translateX(2px) rotate(3deg); }
  80%  { transform: translateX(4px) rotate(-2deg); }
  100% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover svg { animation: none; }
}


/* ─────────────────────────────────────────────────────────────
   17 · RESPONSIVE
   ───────────────────────────────────────────────────────────── */

/* Anti-overflow safety across the board */
.hero-title,
.sec-title,
.studio-title,
.cta-title,
.svc-title,
.step-t,
.faq-q,
.price-body,
.foot-wordmark {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 1180px) {
  /* .hero-grid is now a plain block; no per-breakpoint grid override needed. */
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .studio-head { position: static; }
  .values { grid-column: 1; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1280px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .proof-grid { grid-template-columns: repeat(2, 1fr); }

  .svc-link {
    grid-template-columns: 48px 1fr 200px 24px;
    grid-template-rows: auto auto;
    gap: 12px 24px;
  }
  .svc-desc { grid-column: 2 / span 2; }
  .svc-preview { display: none; }
  .svc-arrow { grid-row: 1 / span 2; align-self: center; }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -20px rgba(17, 16, 16, 0.3);
  }

  .foot-grid { grid-template-columns: repeat(2, 1fr); }

  .svc-extras { grid-template-columns: 1fr; gap: 28px; }

  /* Process on tablet */
  .process-stage { grid-template-columns: 64px 1fr; gap: 32px; }

  /* Stamps header */
  .stamps-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stamps-lede { grid-column: 1; }
}

@media (max-width: 760px) {
  .marquee { padding: 18px 0; }
  .marquee-item { font-size: clamp(22px, 7vw, 36px); }
  .marquee-track { animation-duration: 36s; gap: 28px; }

  .mobile-nav-foot { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  /* Process compact rail */
  .process-stage { grid-template-columns: 40px 1fr; gap: 20px; }
  .process-rail-dot { width: 14px; height: 14px; }

  /* Hero spotlight is a touch-device no-op already, but ensure */
  .hero-title[data-spotlight] {
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
  }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .header-row { gap: 12px; }
  .header-meta .status { display: none; }
  .btn-small { padding: 9px 13px; font-size: 12px; }
  .brand-svg { height: 24px; }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero { padding-top: 40px; padding-bottom: 40px; min-height: auto; }
  .hero-title { font-size: clamp(38px, 12vw, 62px); line-height: 1.0; letter-spacing: -0.03em; }
  .hero-lede { font-size: 16px; }

  .proof-grid { grid-template-columns: 1fr; gap: 0; }
  /* On mobile .stat stacks — the ::before rule still draws correctly,
   * so no border-top override needed anymore. */
  .stat { padding: 18px 0; }
  .stat-n { font-size: clamp(42px, 16vw, 64px); }

  .studio-title { font-size: clamp(24px, 7.5vw, 34px); }
  .studio-body p { font-size: 15px; }
  .values { grid-template-columns: 1fr; gap: 18px; }

  .svc-link {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px 14px;
    padding: 22px 0;
  }
  .svc-row:hover .svc-link { padding-left: 10px; padding-right: 10px; }
  .svc-title { font-size: clamp(22px, 6.8vw, 30px); }
  .svc-desc { grid-column: 1 / -1; font-size: 14px; }
  .svc-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .svc-price { font-size: 16px; }
  .svc-price em { font-size: 18px; }
  .svc-time { font-size: 11px; }
  .svc-arrow { display: none; }

  .svc-extras { margin-top: 40px; padding-top: 28px; }

  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step-n { font-size: clamp(52px, 16vw, 76px); }

  /* Process steps: compact, tighter header */
  .pstep-head {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 14px;
  }
  .pstep-dur {
    grid-column: 2;
    justify-self: start;
    font-size: 10px;
    padding: 5px 8px;
  }
  .pstep-t { font-size: clamp(22px, 6.5vw, 28px); }

  /* Stamps */
  .stamp { width: 82vw; min-height: 320px; }

  .price-card { padding: 28px 22px; }
  .price-body { font-size: 18px; }

  .faq-q { font-size: 16px; line-height: 1.35; }
  .faq-a p { font-size: 15px; }

  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-base { flex-direction: column; gap: 8px; }
  .foot-wordmark { font-size: clamp(56px, 22vw, 92px); letter-spacing: -0.02em; }

  .cta-title {
    font-size: clamp(52px, 18vw, 84px);
    line-height: 0.95;
  }
  .cta-lede { font-size: 15px; }
  .cta-actions .btn { flex: 1 1 140px; justify-content: center; }

  .marquee { padding: 14px 0; }
  .marquee-item { font-size: clamp(20px, 6.4vw, 30px); }
  .marquee-dot { font-size: 11px; }
  .marquee-track { animation-duration: 28s; gap: 22px; }

  .mobile-nav { padding-top: 24px; }
  .mobile-nav nav a { font-size: clamp(34px, 10vw, 48px); gap: 16px; }
  .mobile-nav nav a::after { font-size: 18px; }
}


/* ─────────────────────────────────────────────────────────────
   17.5 · MOBILE TYPOGRAPHY GUARDS
   No hyphens, no mid-word breaks, clean wrapping everywhere.
   User requirement: "весь текст был виден без всяких тире и переносов".
   ───────────────────────────────────────────────────────────── */

html { hyphens: none; -webkit-hyphens: none; }
h1, h2, h3, h4, h5, h6,
p, li, dd, dt, span, a, blockquote, summary, strong, em {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}
/* Never allow the big display copy to hyphenate or break mid-word. */
.hero-title,
.sec-title,
.studio-title,
.cta-title,
.pstep-t,
.svc-title,
.stamp-t {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.58; }

  .hero-title { text-wrap: balance; }
  .sec-title { text-wrap: balance; }
  .hero-lede { font-size: 17px; line-height: 1.55; }
  .studio-body p { font-size: 16px; line-height: 1.6; }
  .process-lede { font-size: 17px; line-height: 1.55; }
  .stamps-lede { font-size: 17px; line-height: 1.55; }
  .pstep-p { font-size: 16px; line-height: 1.6; }
  .pstep-list { font-size: 15px; line-height: 1.5; }

  .val-p { font-size: 15px; line-height: 1.5; }
  .svc-desc { font-size: 15px; line-height: 1.5; }

  /* Stamps — give the description room to breathe. */
  .stamp-p { font-size: 15px; line-height: 1.55; }
  .stamp-t { font-size: clamp(24px, 6vw, 30px); }

  /* FAQ mobile sizes. */
  .faq-q { font-size: 16px; line-height: 1.4; }
  .faq-a p { font-size: 15px; line-height: 1.6; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-title { font-size: clamp(36px, 11vw, 56px); line-height: 1.02; letter-spacing: -0.025em; }
  .sec-title { font-size: clamp(26px, 8vw, 38px); line-height: 1.08; }
  .studio-title { font-size: clamp(22px, 7vw, 30px); line-height: 1.15; }
  .cta-title { font-size: clamp(44px, 16vw, 68px); }

  /* Every text block gets natural wrapping — nothing overflows. */
  .hero, .studio, .services, .process,
  .pricing, .faq, .cta {
    overflow: hidden;
  }
}


/* ─────────────────────────────────────────────────────────────
   18 · A11Y & FINE TUNING
   ───────────────────────────────────────────────────────────── */

/* 19 · mobile density pass
   Keeps the existing editorial style and animation system, but removes the
   oversized mobile vertical rhythm that made key content feel too far apart. */
.process,
.pricing,
.stamps {
  margin-inline: 0;
  padding-inline: 0;
}

@media (max-width: 760px) {
  :root { --section-y: clamp(56px, 8vh, 92px); }

  .hero {
    padding-top: 30px;
    padding-bottom: 32px;
  }
  .hero-rule { margin-top: 48px; }

  .proof { padding: 28px 0 26px; }
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .stat {
    min-height: 118px;
    gap: 8px;
    padding: 16px 0 14px;
  }
  .stat-n {
    font-size: clamp(34px, 12vw, 48px);
    letter-spacing: -0.02em;
  }
  .stat-l {
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .studio {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .studio-grid { gap: 30px; }
  .studio-body {
    gap: 14px;
    margin-bottom: 30px;
  }
  .bio-content {
    gap: 14px;
    max-height: calc(1.55em * 6 + 0.3em);
  }
  .bio-toggle { margin-top: 10px; }
  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    padding-top: 24px;
  }
  .values li { gap: 6px; }
  .val-t { font-size: 15px; }
  .val-p {
    font-size: 13px;
    line-height: 1.45;
  }

  .process { padding: 52px 0; }
  .process,
  .pricing,
  .stamps {
    margin-inline: 0;
    padding-inline: 0;
  }
  .process-lede { margin-bottom: 32px; }
  .process-stage { gap: 14px; }
  .pstep {
    row-gap: 10px;
    padding-block: 34px;
  }
  .pstep:first-child { padding-top: 24px; }
  .pstep-n { font-size: clamp(58px, 19vw, 88px); }
  .pstep-t {
    font-size: clamp(26px, 7.2vw, 40px);
    line-height: 1.04;
  }
  .pstep-p { margin-top: 4px; }
  .pstep-list {
    gap: 8px;
    margin-top: 8px;
    padding-top: 14px;
  }
}

@media (max-width: 360px) {
  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .values { grid-template-columns: 1fr; }
}

/* 20 · dev-token dark inversion
   Black becomes the dominant surface; white is reserved for typography and
   the supplied devtokenlogo asset. */
:root {
  color-scheme: dark;
  --paper:       #000;
  --paper-deep:  #060606;
  --ink:         #F8F7F2;
  --ink-80:      rgba(248, 247, 242, 0.84);
  --ink-60:      rgba(248, 247, 242, 0.64);
  --ink-45:      rgba(248, 247, 242, 0.46);
  --ink-25:      rgba(248, 247, 242, 0.26);
  --ink-12:      rgba(248, 247, 242, 0.14);
  --ink-06:      rgba(248, 247, 242, 0.07);
  --mark:        #F0B982;
  --mark-soft:   rgba(240, 185, 130, 0.16);
  --mark-deep:   #D4935D;
  --mark-rgb:    240, 185, 130;
}

html,
body {
  background: var(--paper);
}

.site-header {
  background: rgba(0, 0, 0, 0.84);
  border-bottom-color: rgba(248, 247, 242, 0.08);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.94);
  border-bottom-color: rgba(248, 247, 242, 0.14);
}

.brand-logo-img {
  display: block;
  object-fit: cover;
  object-position: center;
  background: #000;
  filter: saturate(1.04) contrast(1.04);
}
.brand-logo-header {
  width: 86px;
  height: 32px;
  border-radius: 5px;
}
.hero-brand-logo {
  display: inline-block;
  width: 2.38em;
  height: 0.78em;
  max-width: 100%;
  border-radius: 0.05em;
  vertical-align: -0.09em;
}
.foot-logo-img {
  width: min(560px, 88vw);
  height: clamp(112px, 18vw, 220px);
  border-radius: 14px;
}

.hero,
.proof,
.studio,
.faq,
.cta {
  background: var(--paper);
}
.marquee,
.process,
.pricing {
  background: var(--paper-deep);
}
.footer {
  background: #000;
  color: var(--ink);
  border-top: 1px solid rgba(248, 247, 242, 0.14);
}

.btn-primary,
.btn-small {
  --btn-bg: #0A0A0A;
  --btn-fg: var(--ink);
  --btn-bd: rgba(248, 247, 242, 0.24);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(248, 247, 242, 0.28);
}
.btn:hover,
.btn:focus-visible {
  --btn-bg: #111;
  --btn-fg: var(--ink);
  --btn-bd: var(--mark);
}

.nav-toggle {
  background: transparent;
  border-color: rgba(248, 247, 242, 0.28);
}
.nav-toggle:hover {
  background: #111;
  color: var(--ink);
  border-color: var(--mark);
}
.mobile-nav {
  background: rgba(0, 0, 0, 0.98);
}

.price-card,
.pstep-dur,
.faq-item details,
.stamp {
  background-color: #070707;
}
.price-card:hover {
  background: #101010;
  color: var(--ink);
  border-color: var(--mark);
}
.price-card:hover .price-body {
  color: var(--ink);
}
.process-rail-dot::after {
  background: var(--paper-deep);
}
.hero-title .mark::after {
  opacity: 0.9;
}

.studio-body .bio-content {
  max-height: none;
  overflow: visible;
}

.studio-body .bio-content::after {
  display: none;
}

.studio-body .bio-toggle {
  display: none;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot,
  .eyebrow .dot,
  .cta-title em::after { animation: none; }
}

/* r38 premium dark composition pass */
body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #000 !important;
  background-size: 88px 88px, 88px 88px, auto !important;
}

@media (min-width: 1021px) {
  .hero {
    min-height: calc(100svh - 76px) !important;
    padding-top: clamp(76px, 8vh, 110px) !important;
    padding-bottom: clamp(64px, 7vh, 96px) !important;
    overflow: hidden !important;
  }

  .hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px) !important;
    gap: clamp(44px, 6vw, 104px) !important;
    align-items: center !important;
  }

  .hero-grid::after {
    content: "" !important;
    display: block !important;
    min-height: clamp(420px, 50vh, 560px) !important;
    border: 1px solid rgba(232, 220, 196, 0.38) !important;
    border-radius: 8px !important;
    background:
      linear-gradient(180deg, rgba(232, 220, 196, 0.16), transparent 30%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px 54px),
      repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.095) 0 1px, transparent 1px 54px),
      linear-gradient(135deg, #050505 0%, #050505 47%, #e8dcc4 47.2%, #e8dcc4 53%, #ffffff 53.2%, #ffffff 100%) !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.055) !important;
  }

  .hero-copy {
    max-width: 850px !important;
  }

  .hero-title {
    max-width: 12ch !important;
    font-size: clamp(58px, 6.2vw, 96px) !important;
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
  }

  .hero-lede {
    max-width: 660px !important;
    margin-top: 28px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    text-shadow: none !important;
  }

  .hero-actions {
    margin-top: 34px !important;
  }

  .hero-rule {
    opacity: 0.5 !important;
  }

  .proof {
    margin-top: 0 !important;
    border-top: 1px solid rgba(232, 220, 196, 0.2) !important;
    background: #000 !important;
  }

  .proof-grid {
    gap: 16px !important;
  }

  .stat {
    min-height: 148px !important;
    padding: 22px !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)) !important;
  }
}

.btn,
.price-card,
.faq-item details,
.stamp,
.stat,
.pstep {
  border-radius: 8px !important;
}

.hero-brand-logo,
.brand-logo-img {
  filter: none !important;
  mix-blend-mode: screen !important;
}

.hero-title,
.hero-title .line,
.hero-title em,
.hero-title .mark {
  color: #ffffff !important;
  text-shadow: none !important;
}

.btn-primary {
  background: #e8dcc4 !important;
  color: #000 !important;
  border-color: #e8dcc4 !important;
}

.btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
}

.btn-secondary:hover {
  border-color: #e8dcc4 !important;
  color: #e8dcc4 !important;
}

@media (max-width: 1020px) {
  body {
    background-size: 54px 54px, 54px 54px, auto !important;
  }

  .hero {
    padding-top: 44px !important;
    padding-bottom: 48px !important;
  }

  .hero-grid {
    display: block !important;
  }

  .hero-grid::after {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(42px, 12.5vw, 64px) !important;
    line-height: 1.04 !important;
    letter-spacing: 0 !important;
  }

  .hero-lede {
    margin-top: 18px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    text-shadow: none !important;
  }

  .proof {
    padding-top: 30px !important;
  }

  .stat {
    min-height: 132px !important;
  }
}

