/* =========================================================================
   orvelo.xyz — "Capsule" (2026-09-20)
   Cream paper, four capsules (beige, teal, amber, ink), dotted rules, mono
   labels. LIGHT ONLY, never a dark theme: ink and teal are SHAPES (capsules,
   buttons, cards), never a page or section background.
   Type: Bricolage Grotesque (variable weight, animated), Instrument Serif
   italic for the accented word, Geist for reading, Geist Mono for labels.
   Cyrillic: neither display face has it, so 'Orvelo Display Cyr' (Sofia Sans
   Semi Condensed) and 'Orvelo Serif Cyr' (Playfair italic) sit behind them
   in the stack and are fetched only when Cyrillic appears (unicode-range).
   ========================================================================= */

@property --s { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  color-scheme: only light;
  --cream: #f3ede1; --paper: #faf6ee; --sand: #e9e1d0; --beige: #d9cfbc;
  --teal: #2f4f4a; --amber: #e0983a; --amber-d: #c48634; --amber-t: #8f5710;
  --ink: #191510; --ink-2: #4b4439; --ink-3: #6c6356; --hair: rgba(25, 21, 16, 0.14); --bad: #a5321d;

  --disp: 'Bricolage Grotesque', 'Orvelo Display Cyr', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Orvelo Serif Cyr', 'Times New Roman', serif;
  --body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1440px;
  --gut: clamp(16px, 4.4vw, 72px);
  --sec: clamp(72px, 10vw, 152px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);

  /* legacy tokens: the brief tool and the legal pages still speak the old names */
  --accent: var(--amber-t); --line: rgba(25, 21, 16, 0.2); --ink-2-legacy: var(--paper);
  --sans: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0; min-width: 300px; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
body::before { /* paper grain */
  content: ''; position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .06 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--amber); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sec-tight { padding-block: calc(var(--sec) * 0.55); }
.sec-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 48px); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 1001; background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.ico, .uic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ type */
.h-xl, .h-lg, .h-md {
  font-family: var(--disp); font-stretch: 88%; font-weight: var(--w, 600);
  letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; overflow-wrap: break-word;
}
.h-xl { font-size: clamp(2.5rem, 6.4vw, 6.6rem); }
.h-lg { font-size: clamp(2.1rem, 4.7vw, 4.7rem); }
.h-md { font-size: clamp(1.5rem, 2.5vw, 2.3rem); line-height: 1.04; }
.h-case { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; }
.h-xl em, .h-lg em, .h-md em {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  letter-spacing: -0.015em; font-size: 1.06em; color: var(--teal); padding-right: 0.06em;
}
:lang(ru) .h-xl { font-size: clamp(2.2rem, 5.3vw, 5.5rem); }
:lang(ru) .h-lg { font-size: clamp(1.95rem, 4.1vw, 4.1rem); }
/* Sofia Sans draws lighter than Bricolage at the same weight */
:lang(ru) :is(.h-xl, .h-lg, .h-md) { letter-spacing: -0.02em; line-height: 1.02; font-weight: calc(var(--w, 600) + 110); }
:lang(ru) :is(.h-xl, .h-lg, .h-md) em { font-size: 0.94em; letter-spacing: -0.02em; }
:lang(sr) .h-xl { font-size: clamp(2.4rem, 6vw, 6.2rem); }
/* Cyrillic falls back to Sofia Sans, which reads lighter: lift the mid weights (hover rules still win) */
:lang(ru) :is(.sheet nav a, .svc-h, .wk-h, .wc-d, .ix-d, .qa-q, .post-h, .step-h, .cap-v, .cap-w, .next-d, .gz-d, .stat-a, .rg h2, .rg h3, .model h2, .model h3, .ind h2, .ind h3, .btn, .fchip, .chip) { font-weight: 680; }
/* SplitText line masks must not clip italic overhangs or descenders */
[data-h1] > div, [data-h] > div { padding-bottom: 0.14em; margin-bottom: -0.14em; padding-right: 0.08em; }

.lead { font-size: clamp(1.04rem, 1.25vw, 1.25rem); color: var(--ink-2); max-width: 48ch; }
.lead-s { font-size: 1.06rem; color: var(--ink-2); max-width: 54ch; }
.lead-wide { max-width: 70ch; margin-bottom: clamp(24px, 3vw, 44px); }
.eyebrow { display: block; margin-bottom: 24px; line-height: 1.7; }
.pulse { display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--amber); vertical-align: middle; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.5); opacity: 1; } }
.note { margin-top: 22px; max-width: 86ch; text-transform: none; letter-spacing: 0.01em; font-size: 0.78rem; line-height: 1.6; }

/* ------------------------------------------------------------ rule */
.rule { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(32px, 4.6vw, 68px); }
.rule .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rule b { font-weight: 500; color: var(--amber-t); margin-right: 1em; }
.rule > i { flex: 1 1 40px; min-width: 24px; height: 2px; background: radial-gradient(circle, rgba(25, 21, 16, 0.42) 1px, transparent 1.3px) 0 0 / 9px 2px repeat-x; }
.rule-r { text-align: right; flex: 0 1 auto; }
.rule-ink .mono, .rule-ink b { color: var(--ink); }
.rule-ink > i { background-image: radial-gradient(circle, rgba(25, 21, 16, 0.7) 1px, transparent 1.3px); }
.split-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 72px); align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }

/* ------------------------------------------------------------ ring */
.ring { overflow: visible; }
.ring circle { fill: none; stroke: currentColor; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 85 15; transform: rotate(-63deg); transform-origin: 50% 50%; }
@keyframes spin { to { rotate: 360deg; } }

/* ------------------------------------------------------------ buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 28px; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--disp); font-stretch: 92%; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15;
  text-decoration: none; text-align: center; overflow: hidden; isolation: isolate; cursor: pointer;
  background: var(--amber); color: var(--ink);
  transition: color 0.45s var(--out), border-color 0.45s var(--out), font-weight 0.45s var(--out);
}
.btn::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 100%; width: 130%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); transform: translate(-50%, 0) scale(0.2); transition: transform 0.6s var(--out); }
@media (hover: hover) {
  .btn:hover::before { transform: translate(-50%, -62%) scale(1.15); }
  .btn:hover { font-weight: 720; color: var(--cream); }
  .btn-line:hover, .btn.ghost:hover, .btn-ink:hover { color: var(--ink); }
}
.btn:focus-visible::before { transform: translate(-50%, -62%) scale(1.15); }
.btn:focus-visible { color: var(--cream); }
.btn-line:focus-visible, .btn.ghost:focus-visible, .btn-ink:focus-visible { color: var(--ink); }
.btn-line, .btn.ghost { background: transparent; border-color: var(--ink); border-style: dashed; color: var(--ink); }
.btn-line::before, .btn.ghost::before { background: var(--beige); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink::before { background: var(--amber); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 0.94rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn .arr { font-family: var(--body); }
.arw { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--out); }
@media (hover: hover) { .btn:hover .arw, a:hover > .arw { transform: translateX(4px); } a:hover > .arw-out, .btn:hover .arw-out { transform: translate(3px, -3px); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* the two tail blocks of a service page (related services / industries). The class was on the
   markup with NO rule behind it, so the blocks stacked with zero gap and the second rule's
   label collided with the pills above it. Two equal columns, the site's own grid idiom; the
   row gap is what separates them once they stack. */
.rel-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 96px); align-items: start; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ------------------------------------------------------------ curtain (first view of a session only) */
.curtain { display: none; position: fixed; inset: 0; z-index: 1000; pointer-events: none; animation: curtain-fail 0.01s 6s forwards; }
.intro .curtain { display: flex; }
.curtain i { flex: 1; height: 118%; margin-right: -1px; border-radius: 0 0 999px 999px; will-change: transform; }
.curtain i:nth-child(1) { background: var(--sand); }
.curtain i:nth-child(2) { background: var(--amber); }
.curtain i:nth-child(3) { background: var(--beige); }
.curtain i:nth-child(4) { background: var(--teal); }
.curtain i:nth-child(5) { background: var(--amber); }
@keyframes curtain-fail { to { visibility: hidden; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ------------------------------------------------------------ header */
.hdr { position: fixed; z-index: 800; top: 14px; left: 0; right: 0; padding-inline: var(--gut); transition: transform 0.7s var(--out); }
.hdr.is-hid { transform: translateY(-170%); }
.hdr-bar { display: flex; align-items: center; gap: 12px; max-width: 1280px; margin-inline: auto; padding: 7px 7px 7px 22px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(250, 246, 238, 0.86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--disp); font-stretch: 86%; font-weight: 700; font-size: 1.42rem; letter-spacing: -0.045em; line-height: 1; }
.logo-ring { width: 24px; height: 24px; color: var(--amber-d); transition: transform 0.9s var(--out); }
.logo:hover .logo-ring { transform: rotate(360deg); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-a { display: flex; align-items: center; gap: 5px; padding: 10px 13px; overflow: hidden; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.nav-a span { position: relative; display: block; transition: transform 0.55s var(--out); }
/* an invisible copy in the HOVER face reserves its width, so the italic label (wider than the
   upright word, especially in Cyrillic) is never clipped */
.nav-a span::before { content: attr(data-t); display: block; height: 0; overflow: hidden; visibility: hidden; font-family: var(--serif); font-style: italic; font-size: 1.12em; white-space: nowrap; }
.nav-a span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; padding-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.12em; color: var(--teal); white-space: nowrap; }
@media (hover: hover) { .nav-a:hover span { transform: translateY(calc(-100% - 10px)); } }
.nav-a[aria-current] { background: var(--beige); }
.chev { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--out); }
.drop { position: relative; }
.drop-m { position: absolute; top: calc(100% + 16px); left: 50%; width: min(580px, 92vw); padding: 12px; border-radius: 30px; border: 1px solid var(--hair); background: var(--paper); box-shadow: 0 30px 70px -30px rgba(25, 21, 16, 0.35); opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(0.98); transform-origin: 50% 0; transition: opacity 0.3s, transform 0.45s var(--out), visibility 0s 0.3s; }
.drop-m::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.drop.is-open .drop-m, .drop:focus-within .drop-m { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity 0.3s, transform 0.45s var(--out); }
@media (hover: hover) { .drop:hover .drop-m { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity 0.3s, transform 0.45s var(--out); } .drop:hover .chev { transform: rotate(180deg); } }
.drop-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.drop-i { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; text-decoration: none; font-weight: 500; font-size: 0.97rem; line-height: 1.25; transition: background 0.3s; }
.drop-i .mono { font-size: 0.62rem; }
.drop-i .ico { color: var(--amber-t); }
.drop-i:hover, .drop-i:focus-visible { background: var(--beige); }
.drop-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 18px; border-radius: 18px; background: var(--ink); color: var(--cream); text-decoration: none; font-family: var(--disp); font-weight: 600; }
.hdr-end { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.lang { position: relative; }
.lang-b { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1.5px dashed var(--ink); border-radius: 999px; background: transparent; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; }
.lang-m { position: absolute; right: 0; top: calc(100% + 16px); min-width: 190px; padding: 8px; border-radius: 22px; border: 1px solid var(--hair); background: var(--paper); box-shadow: 0 30px 70px -30px rgba(25, 21, 16, 0.35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--out), visibility 0s 0.3s; }
.lang.is-open .lang-m { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s, transform 0.4s var(--out); }
.lang.is-open .chev { transform: rotate(180deg); }
.lang-m a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.lang-m a b { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-3); }
.lang-m a:hover { background: var(--beige); }
.lang-m a.on { background: var(--ink); color: var(--cream); }
.lang-m a.on b { color: var(--beige); }
.hdr-cta { white-space: nowrap; }
.burger { display: none; position: relative; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); }
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform 0.5s var(--out), top 0.5s var(--out); }
.burger i:nth-child(1) { top: 18px; }
.burger i:nth-child(2) { top: 26px; }
.burger[aria-expanded='true'] i:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded='true'] i:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 790; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding: 96px var(--gut) max(28px, env(safe-area-inset-bottom)); background: var(--sand); overflow-y: auto; clip-path: circle(0% at calc(100% - 46px) 44px); visibility: hidden; transition: clip-path 0.8s var(--ease), visibility 0s 0.8s; }
.sheet.is-open { clip-path: circle(150% at calc(100% - 46px) 44px); visibility: visible; transition: clip-path 0.8s var(--ease); }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 2px dotted var(--hair); text-decoration: none; font-family: var(--disp); font-stretch: 86%; font-weight: 600; font-size: clamp(1.7rem, 8.4vw, 3rem); letter-spacing: -0.04em; line-height: 1.12; }
.sheet-langs { display: flex; gap: 8px; }
.sheet-langs a { display: grid; place-items: center; min-width: 56px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px dashed var(--ink); text-decoration: none; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; }
.sheet-langs a.on { background: var(--ink); color: var(--cream); border-style: solid; }

/* ------------------------------------------------------------ hero + capsules */
.hero { padding-top: clamp(112px, 13vh, 164px); }
.hero-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 4.5vw, 80px); align-items: center; min-height: calc(100svh - 250px); padding-bottom: clamp(36px, 5vw, 72px); }
.hero .h-xl { font-size: clamp(2.3rem, 5.1vw, 5.3rem); }
:lang(ru) .hero .h-xl, :lang(sr) .hero .h-xl { font-size: clamp(2.1rem, 4.5vw, 4.7rem); }
.nw { white-space: nowrap; }
.hero .lead { margin-top: 28px; }
.fine { margin-top: 20px; text-transform: none; letter-spacing: 0.02em; font-size: 0.76rem; }
.hero .rule { margin-bottom: 0; }

/* A capsule is a real layout, not a stack of absolute offsets: number on top,
   an art zone that SHRINKS to whatever is left, the text block at the bottom.
   The art can therefore never sit on the text, at any size or in any language. */
.caps { display: flex; gap: 12px; height: clamp(460px, 66vh, 660px); container-type: inline-size; overflow: hidden; }
.cap { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 999px; overflow: hidden; transition: flex-grow 0.9s var(--ease), border-radius 0.9s var(--ease); }
.cap.is-on { flex-grow: 4.4; border-radius: 44px; }
.cap-beige, .cap-cream { background: var(--beige); color: var(--ink); }
.cap-cream { background: var(--cream); }
.cap-teal { background: var(--teal); color: var(--cream); }
.cap-amber { background: var(--amber); color: var(--ink); }
.cap-ink { background: var(--ink); color: var(--cream); }
.cap-hit { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; border-radius: inherit; background: none; }
.cap-hit:focus-visible { outline-offset: -5px; outline-color: var(--amber); }
.cap-n { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); color: inherit; opacity: 0.7; transition: left 0.9s var(--ease), transform 0.9s var(--ease); }
.cap.is-on .cap-n { left: 38px; transform: none; }
.cap-v { position: absolute; left: 50%; bottom: 36px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-family: var(--disp); font-stretch: 84%; font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.95rem); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; transition: opacity 0.35s; }
.cap.is-on .cap-v { opacity: 0; }
.cap-art { position: relative; flex: 1 1 0; min-height: 0; margin: 72px 12% 230px; container-type: size; transition: margin 0.9s var(--ease); }
.cap-art > * { position: absolute; inset: 0; margin: auto; }
.cap.is-on .cap-art { margin: 72px 12% 8px; }
.cap-ring { width: 100%; height: 100%; max-width: 300px; max-height: 300px; color: var(--cream); animation: spin 70s linear infinite; }
.cap-glyph { display: grid; place-items: center; }
.cap-glyph { font-family: var(--serif); font-style: italic; font-size: min(96cqh, 78cqw); line-height: 0.9; opacity: 0; transform: translateY(20px) rotate(8deg); transition: opacity 0.3s, transform 0.3s; }
.cap.is-on .cap-glyph { opacity: 0.24; transform: none; transition: opacity 0.8s 0.35s var(--out), transform 1s 0.35s var(--out); }
.cap-tx { display: none; position: relative; z-index: 2; pointer-events: none; flex: none; width: calc((100cqw - 36px) * 4.4 / 7.4); padding: 0 clamp(22px, 7cqw, 38px) 28px; }
.cap.is-on .cap-tx { display: block; animation: cap-tx 0.8s 0.3s var(--out) both; }
@keyframes cap-tx { from { opacity: 0; transform: translateY(16px); } }
.cap-p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; max-width: 38ch; font-size: clamp(0.84rem, 3cqw, 0.98rem); line-height: 1.5; opacity: 0.92; }
.cap-w { display: block; margin-top: 16px; font-family: var(--disp); font-stretch: 84%; font-weight: 720; font-size: min(clamp(2.4rem, 4.2vw, 4.2rem), 9.4cqw); letter-spacing: -0.035em; line-height: 1; overflow-wrap: anywhere; }
/* the longest capsule word is Russian ("Разработка", 10 letters): it must stay on one line */
:lang(ru) .cap-w { font-size: min(clamp(2rem, 3.4vw, 3.4rem), 6.6cqw); }
:lang(sr) .cap-w { font-size: min(clamp(2.2rem, 3.9vw, 3.9rem), 8.6cqw); }
.cap-go { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 0; color: inherit; text-decoration: none; border-bottom: 1.5px dotted currentColor; }

/* inner-page hero */
.phero { padding-top: clamp(118px, 14vh, 176px); padding-bottom: clamp(28px, 4vw, 56px); }
.phero-g { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 4.5vw, 80px); align-items: end; }
.phero-case .phero-g, .phero-post .phero-g { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.phero .lead { margin-top: 26px; max-width: 60ch; }
.phero-meta { margin-top: 22px; color: var(--amber-t); }
.crumb { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 26px; }
.crumb a { text-decoration: none; color: var(--ink-3); border-bottom: 1px dotted currentColor; }
.crumb span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pcaps { display: flex; align-items: flex-end; gap: 10px; height: clamp(240px, 38vh, 400px); overflow: hidden; }
.pcap { position: relative; flex: 1 1 0; height: var(--h, 80%); border-radius: 999px; container-type: inline-size; }
.pcap-ring { position: absolute; inset: 10% 20% auto; width: 60%; height: min(60cqw, 70%); color: var(--cream); animation: spin 40s linear infinite; }
.phero-nf .h-xl { font-size: clamp(5rem, 17vw, 14rem); }

/* ------------------------------------------------------------ proof */
.proof { padding-block: clamp(48px, 7vw, 110px) 0; overflow-x: clip; }
.proof-in { padding-top: 0; padding-bottom: var(--sec); }
.proof-in .mqs { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.stat { padding-top: 22px; border-top: 1.5px solid var(--ink); min-width: 0; }
.num { display: flex; align-items: flex-end; font-family: var(--disp); font-stretch: 78%; font-weight: 720; font-size: clamp(3.4rem, 9.2vw, 9.2rem); letter-spacing: -0.05em; line-height: 1; }
.roll { display: inline-block; height: 1.04em; overflow: hidden; }
.roll-col { display: flex; flex-direction: column; will-change: transform; }
.roll-col b { display: block; height: 1.04em; line-height: 1.04; font-weight: inherit; }
.roll-s { color: var(--amber-d); line-height: 1.04; }
.stat-a { margin-top: 14px; font-family: var(--disp); font-stretch: 90%; font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
.stat-b { margin-top: 6px; }
.mqs { margin-top: clamp(48px, 7vw, 110px); display: grid; gap: 12px; transform: rotate(-1.4deg); margin-inline: -2vw; }
.mq { overflow: hidden; }
.mq-in { display: flex; width: max-content; will-change: transform; }
html:not(.js) .mq-in { animation: mq 70s linear infinite; }
html:not(.js) .mq[data-mq='r'] .mq-in { animation-direction: reverse; }
@keyframes mq { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--disp); font-stretch: 90%; font-weight: 550; font-size: 0.94rem; letter-spacing: -0.01em; line-height: 1.2; text-decoration: none; }
.mq .chip { min-height: clamp(48px, 5.4vw, 76px); padding: 0 clamp(20px, 2.6vw, 40px); margin-right: 12px; font-size: clamp(1.05rem, 1.9vw, 1.8rem); white-space: nowrap; }
.chip-line { border-color: var(--ink); border-style: dashed; }
.chip-beige { background: var(--beige); }
.chip-teal { background: var(--teal); color: var(--cream); }
.chip-amber { background: var(--amber); }
.chip-ink { background: var(--ink); color: var(--cream); }

/* ------------------------------------------------------------ measured gauges */
/* three cards across only where a card is wide enough for four labelled gauges */
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1320px) { .gauges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .gauges { grid-template-columns: minmax(0, 1fr); } }
.gz { padding: clamp(20px, 2.2vw, 32px); border-radius: 34px; background: var(--paper); border: 1.5px dashed rgba(25, 21, 16, 0.5); min-width: 0; }
.gz:nth-child(3n + 2) { background: var(--sand); border-style: solid; border-color: transparent; }
.gz-d { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font-family: var(--disp); font-stretch: 86%; font-weight: 640; font-size: clamp(1.25rem, 1.8vw, 1.7rem); letter-spacing: -0.035em; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; }
.gz-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.g { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; text-align: center; min-width: 0; }
.g svg { width: 100%; max-width: 104px; overflow: visible; }
.g circle { fill: none; stroke-width: 9; stroke-linecap: round; transform: rotate(-63deg); transform-origin: 50% 50%; }
.g-bg { stroke: rgba(25, 21, 16, 0.1); stroke-dasharray: 85 15; }
.g-fg { stroke: var(--amber-d); stroke-dasharray: calc(var(--s) * 0.85) 100; transition: --s 1.8s var(--out); }
.g-top .g-fg { stroke: var(--teal); }
.g strong { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; max-width: 104px; margin-inline: auto; display: grid; place-items: center; font-family: var(--disp); font-stretch: 82%; font-weight: 700; font-size: clamp(1.15rem, 1.7vw, 1.7rem); letter-spacing: -0.04em; }
.g .mono { margin-top: 8px; min-height: 2.6em; max-width: 100%; font-size: 0.54rem; letter-spacing: 0.02em; line-height: 1.3; hyphens: none; }

/* ------------------------------------------------------------ services */
.svc-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.svc-side { position: sticky; top: 120px; }
.svc-side .lead-s { margin-top: 26px; }
.orbit { position: relative; width: 150px; height: 150px; margin-top: 52px; color: var(--beige); }
.orbit-ring { width: 100%; height: 100%; }
.orbit-dot { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: var(--amber); transform: translateY(-57px); }
.svc { border-top: 2px dotted var(--hair); }
.svc:last-child { border-bottom: 2px dotted var(--hair); }
.svc-a { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; column-gap: 12px; padding: 30px 28px 30px 40px; text-decoration: none; isolation: isolate; }
.svc-a::before { content: ''; position: absolute; z-index: -1; inset: 5px 0; border-radius: 999px; background: var(--beige); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease); }
.svc:nth-child(3n + 2) .svc-a::before { background: var(--amber); }
.svc:nth-child(3n) .svc-a::before { background: var(--teal); }
.svc-n { grid-row: 1 / span 3; padding-top: 0.7em; transition: color 0.4s; }
.svc-h { grid-column: 2; font-family: var(--disp); font-stretch: 88%; font-weight: 560; font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.06; transition: font-weight 0.6s var(--out), transform 0.6s var(--out), color 0.4s; }
.svc-p { grid-column: 2; margin-top: 10px; max-width: 58ch; color: var(--ink-2); transition: color 0.4s; }
.tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags i { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hair); font-family: var(--mono); font-style: normal; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); transition: color 0.4s, border-color 0.4s; }
.svc-go { grid-column: 3; grid-row: 1 / span 3; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--ink); transition: background 0.5s var(--out), transform 0.6s var(--out), border-color 0.4s, color 0.4s; }
@media (hover: hover) {
  .svc-a:hover::before { transform: scaleX(1); }
  .svc-a:hover .svc-h { font-weight: 780; transform: translateX(10px); }
  .svc-a:hover .svc-n { color: var(--ink); }
  .svc-a:hover .tags i { border-color: rgba(25, 21, 16, 0.4); }
  .svc-a:hover .svc-go { background: var(--ink); color: var(--cream); border-style: solid; transform: rotate(-45deg); }
  .svc:nth-child(3n) .svc-a:hover :is(.svc-h, .svc-p, .svc-n, .tags i) { color: var(--cream); }
  .svc:nth-child(3n) .svc-a:hover .tags i { border-color: rgba(243, 237, 225, 0.4); }
  .svc:nth-child(3n) .svc-a:hover .svc-go { background: var(--cream); color: var(--ink); border-color: var(--cream); }
}

/* ------------------------------------------------------------ results track */
.work { padding-block: var(--sec); background: linear-gradient(var(--cream), var(--sand) 18%, var(--sand) 82%, var(--cream)); }
.track-pin { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track-pin::-webkit-scrollbar { display: none; }
.track-pin.is-drag { cursor: grab; }
.track-pin.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.track-pin.is-dragging a { pointer-events: none; }
.track-pin.is-pin { overflow: hidden; scroll-snap-type: none; display: flex; align-items: center; height: 100vh; }
.track { display: flex; gap: clamp(16px, 2.4vw, 40px); width: max-content; padding-inline: var(--gut); will-change: transform; }
.wk { width: min(46vw, 660px, calc((100vh - 400px) * 20 / 13)); min-width: 320px; scroll-snap-align: center; }
.wk-a { display: block; text-decoration: none; }
.wk-frame { display: block; padding: clamp(8px, 1.1vw, 16px); border-radius: 36px; overflow: hidden; transition: border-radius 0.8s var(--ease), transform 0.8s var(--out); }
/* The photo zooms INSIDE its own clipping box, never by growing its own box: at every
   desktop width the frame's mat is about 2.4% of the card, so a scale(1.05) on the image
   itself made the picture wider than the frame's inner box and the mat vanished on the
   left and right while surviving top and bottom. On the dashed (sand) tone that reads as
   a border collapsed onto the photograph. Measured 21.09.2026. */
.wk-pic { display: block; overflow: hidden; border-radius: 24px; transition: border-radius 0.8s var(--ease); }
.wk-frame img { width: 100%; aspect-ratio: 20 / 13; object-fit: cover; object-position: top; background: var(--beige); transition: transform 1.1s var(--out); }
@media (hover: hover) {
  .wk-a:hover .wk-frame { border-radius: 72px; transform: rotate(-1.2deg) scale(0.985); }
  .wk-a:hover .wk-pic { border-radius: 58px; }
  .wk-a:hover .wk-frame img { transform: scale(1.05); }
  .wk-a:hover .wk-h { font-weight: 800; }
}
.wk-beige { background: var(--beige); }
.wk-teal { background: var(--teal); }
.wk-amber { background: var(--amber); }
.wk-sand { background: var(--paper); border: 1.5px dashed var(--ink); }
.wk-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.wk-h { margin-top: 12px; font-family: var(--disp); font-stretch: 86%; font-weight: 620; font-size: clamp(1.5rem, 2.6vw, 2.4rem); letter-spacing: -0.04em; line-height: 1.04; overflow-wrap: anywhere; transition: font-weight 0.6s var(--out); }
.wk-p { margin-top: 10px; color: var(--ink-2); font-size: 0.97rem; }
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.wk-chips i { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(25, 21, 16, 0.3); font-family: var(--mono); font-style: normal; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wk-chips i.is-first { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.wk-end { display: flex; min-width: 280px; width: 320px; }
.wk-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; aspect-ratio: 1; margin-block: auto; padding: 24px; border-radius: 50%; background: var(--ink); color: var(--cream); text-decoration: none; text-align: center; transition: transform 0.8s var(--out); }
@media (hover: hover) { .wk-more:hover { transform: scale(1.04) rotate(-4deg); } }
.wk-more .mono { color: var(--beige); }
.more-ring { width: 52px; color: var(--amber); animation: spin 14s linear infinite; }

/* ------------------------------------------------------------ one result in depth */
.spot-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.spot-n { font-family: var(--disp); font-stretch: 78%; font-weight: 760; font-size: clamp(5rem, 15vw, 15rem); letter-spacing: -0.06em; line-height: 0.84; color: var(--teal); }
.spot-nl { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2.3rem); line-height: 1.1; }
.spot-l .h-md { margin-top: clamp(28px, 4vw, 56px); max-width: 24em; }
.spot-l .lead-s { margin-top: 16px; }
.spot-l .btn { margin-top: 28px; }
.spot-r { padding: clamp(22px, 2.6vw, 40px); border-radius: 40px; background: var(--paper); border: 1.5px dashed rgba(25, 21, 16, 0.5); }
.spot-cap { text-transform: none; letter-spacing: 0.01em; font-size: 0.8rem; line-height: 1.5; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 4vw, 48px); height: clamp(240px, 30vw, 380px); margin-top: 24px; }
.bar { flex: 1 1 0; min-width: 0; max-width: 190px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; text-align: center; }
.bar-f { display: flex; justify-content: center; height: calc(var(--v) * 1.5%); min-height: 64px; padding-top: 18px; border-radius: 999px; }
.bar-f b { font-family: var(--disp); font-stretch: 80%; font-weight: 740; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; }

/* ------------------------------------------------------------ fleet index + preview */
.ixs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 72px); border-top: 1.5px solid var(--ink); }
.ix { border-bottom: 2px dotted var(--hair); transition: opacity 0.4s; min-width: 0; }
.ix-a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 16px 4px; text-decoration: none; }
.ix-d { font-family: var(--disp); font-stretch: 88%; font-weight: 520; font-size: clamp(1.08rem, 1.5vw, 1.45rem); letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform 0.55s var(--out), font-weight 0.55s var(--out), color 0.4s; }
.ix-c { text-align: right; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix .arw { opacity: 0.35; transition: opacity 0.4s, transform 0.5s var(--out); }
@media (hover: hover) {
  .ixs:hover .ix:not(:hover) { opacity: 0.32; }
  .ix:hover .ix-d { transform: translateX(10px); font-weight: 760; color: var(--teal); }
  .ix:hover .arw { opacity: 1; }
}
.peek { position: fixed; z-index: 700; left: 0; top: 0; width: clamp(260px, 25vw, 400px); padding: 8px; border-radius: 26px; background: var(--amber); pointer-events: none; opacity: 0; visibility: hidden; box-shadow: 0 30px 60px -24px rgba(25, 21, 16, 0.4); will-change: transform; }
.peek-bar { display: flex; align-items: center; gap: 5px; padding: 4px 8px 9px; }
.peek-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(25, 21, 16, 0.4); }
.peek-bar b { margin-left: 8px; font-family: var(--mono); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek img { width: 100%; aspect-ratio: 20 / 13; object-fit: cover; object-position: top; border-radius: 18px; background: var(--beige); }

/* ------------------------------------------------------------ work grid + filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 8px 20px; border-radius: 999px; border: 1.5px dashed var(--ink); background: transparent; font-family: var(--disp); font-stretch: 90%; font-weight: 560; font-size: 0.98rem; transition: background 0.4s var(--out), color 0.4s, border-color 0.4s; }
.fchip sup { font-family: var(--mono); font-size: 0.62rem; opacity: 0.7; }
.fchip.is-on { background: var(--ink); border-color: var(--ink); border-style: solid; color: var(--cream); }
@media (hover: hover) { .fchip:not(.is-on):hover { background: var(--beige); } }
.wcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px) clamp(14px, 1.8vw, 28px); }
.wc { min-width: 0; }
.wc.is-out { display: none; }
.wc-a { display: block; text-decoration: none; }
.wc-frame { display: block; padding: 9px; border-radius: 28px; overflow: hidden; transition: border-radius 0.7s var(--ease), transform 0.7s var(--out); }
.wc-pic { display: block; overflow: hidden; border-radius: 19px; transition: border-radius 0.7s var(--ease); }
.wc-frame img, .wc-ph { display: block; width: 100%; aspect-ratio: 20 / 13; object-fit: cover; object-position: top; background: var(--beige); transition: transform 1s var(--out); }
.wc-ph { display: grid; place-items: center; color: var(--ink-3); }
.wc-ph svg { width: 30%; }
@media (hover: hover) {
  .wc-a:hover .wc-frame { border-radius: 52px; transform: rotate(-1deg) scale(0.985); }
  .wc-a:hover .wc-pic { border-radius: 42px; }
  .wc-a:hover .wc-frame img { transform: scale(1.05); }
  .wc-a:hover .wc-d { font-weight: 780; }
}
.wc-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.wc-d { font-family: var(--disp); font-stretch: 86%; font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.035em; line-height: 1.1; overflow-wrap: anywhere; min-width: 0; transition: font-weight 0.5s var(--out); }
.wc-c { display: block; margin-top: 6px; }
.wc-c b { margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 500; white-space: nowrap; }
.apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 72px); padding: clamp(24px, 3vw, 44px); border-radius: 40px; background: var(--beige); }
.apps .mono { color: var(--ink); }
.apps .h-md { margin-top: 8px; }
.apps small { font-family: var(--body); font-weight: 400; font-size: 0.5em; letter-spacing: 0; color: var(--ink-2); }
.apps-b { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ case study */
.case-shot { padding-bottom: clamp(20px, 3vw, 40px); }
.cs-frame { display: block; padding: clamp(8px, 1vw, 14px); border-radius: clamp(24px, 3vw, 44px); background: var(--beige); text-decoration: none; overflow: hidden; }
.cs-bar { display: flex; align-items: center; gap: 6px; padding: 6px 12px 12px; }
.cs-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(25, 21, 16, 0.3); }
.cs-bar b { margin-left: 10px; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-img { display: block; overflow: hidden; border-radius: clamp(16px, 2.2vw, 32px); }
.cs-frame img { width: 100%; }
.case-g { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.case-side { position: sticky; top: 120px; }
.case-p { font-size: clamp(1.06rem, 1.3vw, 1.22rem); color: var(--ink-2); max-width: 64ch; }
.case-p + .case-p { margin-top: 1.2em; }
.case-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: 36px; padding: clamp(22px, 2.6vw, 36px); border-radius: 36px; background: var(--teal); color: var(--cream); }
.case-metric strong { font-family: var(--disp); font-stretch: 78%; font-weight: 760; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -0.05em; line-height: 0.9; }
.case-metric span { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.15; }
.incl li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 18px 0; border-top: 2px dotted var(--hair); font-weight: 500; }
.incl li:last-child { border-bottom: 2px dotted var(--hair); }
.incl-n { color: var(--amber-t); }
.incl-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 72px); }
.incl-2 li:nth-last-child(2):nth-child(odd) { border-bottom: 2px dotted var(--hair); }
.next { padding-bottom: calc(var(--sec) * 0.5); }
.next-a { position: relative; display: grid; gap: 10px; padding: clamp(28px, 4vw, 64px) clamp(72px, 9vw, 140px) clamp(28px, 4vw, 64px) clamp(24px, 3vw, 48px); border-radius: clamp(32px, 4vw, 56px); background: var(--sand); text-decoration: none; overflow: hidden; isolation: isolate; }
.next-a::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.8s var(--ease); }
.next-d { font-family: var(--disp); font-stretch: 84%; font-weight: 660; font-size: clamp(2rem, 5.4vw, 5.2rem); letter-spacing: -0.045em; line-height: 0.98; overflow-wrap: anywhere; transition: font-weight 0.6s var(--out); }
.next-d-sm { font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.04; }
.next-h { color: var(--ink-2); max-width: 60ch; }
.next .mono { color: var(--ink); }
.next-go { position: absolute; right: clamp(20px, 3vw, 48px); top: 50%; display: grid; place-items: center; width: clamp(44px, 5vw, 72px); aspect-ratio: 1; margin-top: clamp(-36px, -2.5vw, -22px); border-radius: 50%; background: var(--ink); color: var(--cream); transition: transform 0.7s var(--out); }
@media (hover: hover) { .next-a:hover::before { transform: scaleX(1); } .next-a:hover .next-d { font-weight: 800; } .next-a:hover .next-go { transform: rotate(-45deg) scale(1.08); } }

/* ------------------------------------------------------------ long-form blocks + prose */
.blk { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 72px); padding-block: clamp(28px, 3.4vw, 52px); border-top: 2px dotted var(--hair); }
.blk:last-child { border-bottom: 2px dotted var(--hair); }
.blk-h .mono { display: block; margin-bottom: 12px; color: var(--amber-t); }
.prose { font-size: clamp(1.04rem, 1.2vw, 1.16rem); line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-family: var(--disp); font-stretch: 88%; font-weight: 640; font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); }
.prose h3 { margin-top: 1.8em; font-family: var(--disp); font-stretch: 90%; font-weight: 620; font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--amber-t); }
.prose a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 0.95em; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
.post-g { display: grid; grid-template-columns: 120px minmax(0, 76ch); gap: clamp(20px, 4vw, 72px); }
.post-side { position: sticky; top: 130px; align-self: start; display: grid; gap: 12px; justify-items: start; }
.post-ring { width: 64px; color: var(--beige); animation: spin 30s linear infinite; }
.post-body > :first-child { margin-top: 0; }

/* ------------------------------------------------------------ journal rows */
.post { border-top: 2px dotted var(--hair); }
.post:last-child { border-bottom: 2px dotted var(--hair); }
.post-a { position: relative; display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 44px; gap: 8px clamp(16px, 3vw, 48px); align-items: start; padding: 28px clamp(12px, 2vw, 32px); text-decoration: none; isolation: isolate; }
.post-a::before { content: ''; position: absolute; z-index: -1; inset: 5px 0; border-radius: 40px; background: var(--sand); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--ease); }
.post-m { padding-top: 0.6em; color: var(--amber-t); }
.post-h { grid-column: 2; font-family: var(--disp); font-stretch: 88%; font-weight: 580; font-size: clamp(1.3rem, 2.1vw, 1.95rem); letter-spacing: -0.035em; line-height: 1.1; transition: font-weight 0.6s var(--out); }
.post-p { grid-column: 2; color: var(--ink-2); max-width: 72ch; }
.post-go { grid-column: 3; grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--ink); transition: background 0.5s var(--out), transform 0.6s var(--out), color 0.4s; }
@media (hover: hover) { .post-a:hover::before { transform: scaleX(1); } .post-a:hover .post-h { font-weight: 780; } .post-a:hover .post-go { background: var(--ink); color: var(--cream); border-style: solid; transform: rotate(-45deg); } }

/* ------------------------------------------------------------ industries */
.inds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inds > li { min-width: 0; display: flex; }
.ind { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; min-height: clamp(240px, 24vw, 340px); padding: clamp(22px, 2.4vw, 36px); border-radius: 40px; text-decoration: none; overflow: hidden; transition: border-radius 0.7s var(--ease), transform 0.7s var(--out); }
.ind-beige { background: var(--beige); }
.ind-paper { background: var(--paper); border: 1.5px dashed rgba(25, 21, 16, 0.55); }
.ind-amber { background: var(--amber); }
.ind-sand { background: var(--sand); }
.ind-teal { background: var(--teal); color: var(--cream); }
.ind-top { display: flex; align-items: center; justify-content: space-between; }
.ind-top .mono { color: inherit; opacity: 0.7; }
.ind .ico { width: 30px; height: 30px; }
.ind :is(h2, h3) { margin-top: auto; font-family: var(--disp); font-stretch: 86%; font-weight: 640; font-size: clamp(1.5rem, 2.3vw, 2.2rem); letter-spacing: -0.04em; line-height: 1.04; transition: font-weight 0.6s var(--out); }
.ind p { font-size: 0.97rem; opacity: 0.86; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ind-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed currentColor; transition: transform 0.6s var(--out), background 0.5s; }
@media (hover: hover) { .ind:hover { border-radius: 72px; transform: translateY(-6px); } .ind:hover :is(h2, h3) { font-weight: 800; } .ind:hover .ind-go { transform: rotate(-45deg); } }

/* ------------------------------------------------------------ process */
.steps-w { position: relative; margin-top: clamp(44px, 6vw, 96px); }
.steps-line { position: absolute; left: 0; right: 0; top: 47px; height: 2px; background: radial-gradient(circle, rgba(25, 21, 16, 0.42) 1px, transparent 1.3px) 0 0 / 9px 2px repeat-x; }
.steps-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
/* the head of the line. JS puts its left/top on the exact point the fill stops at, so the
   negative margin must be HALF THE BOX to centre it there: border-box is on, so that is
   half of width, never half of width + border. It used to be -15px for a 22+4+4 box that
   border-box never produces, which put the dot 4px up and 4px left of the line's end, and
   the cream ring then covered the last 15px of the line: the dot read as detached. */
.steps-ball { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--amber); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); }
.step { transition: opacity 0.7s var(--out), transform 0.7s var(--out); }
.steps.is-armed .step { opacity: 0.28; transform: translateY(14px); }
.steps.is-armed .step.is-lit { opacity: 1; transform: none; }
.step-n { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 6px solid var(--cream); transition: transform 0.9s var(--out); }
.step.is-lit .step-n { transform: rotate(-8deg) scale(1.06); }
.step-n em { font-family: var(--serif); font-style: italic; font-size: 3.1rem; line-height: 1; }
.step-beige { background: var(--beige); }
.step-amber { background: var(--amber); }
.step-teal { background: var(--teal); color: var(--cream); }
.step-h { margin-top: 26px; font-family: var(--disp); font-stretch: 88%; font-weight: 620; font-size: clamp(1.4rem, 2.2vw, 2.05rem); letter-spacing: -0.035em; line-height: 1.06; }
.step p { margin-top: 12px; color: var(--ink-2); max-width: 42ch; }

/* ------------------------------------------------------------ studio */
.studio { background: linear-gradient(var(--cream), var(--paper) 30%, var(--paper) 70%, var(--cream)); }
.quote { font-family: var(--disp); font-stretch: 90%; font-weight: 540; font-size: clamp(1.75rem, 4.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.07; max-width: 26em; }
:lang(ru) .quote { font-size: clamp(1.6rem, 3.7vw, 3.7rem); letter-spacing: -0.025em; }
.quote mark { color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(var(--amber), var(--amber)) no-repeat 0 86% / var(--mk, 100%) 40%; }
.studio-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 96px); margin-top: clamp(40px, 6vw, 96px); align-items: start; }
.pledge { padding: clamp(24px, 2.6vw, 38px); border-radius: 36px; background: var(--beige); }
.pledge p { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.7rem); line-height: 1.28; }
.pledge .mono { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 6vw, 96px); padding-top: 28px; border-top: 1.5px solid var(--ink); }
.facts strong { display: block; font-family: var(--disp); font-stretch: 80%; font-weight: 720; font-size: clamp(2.2rem, 4.6vw, 4.4rem); letter-spacing: -0.045em; line-height: 1; overflow-wrap: anywhere; }
.facts .mono { display: block; margin-top: 12px; }

/* ------------------------------------------------------------ pricing */
.rg { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 26px 8px; border-top: 2px dotted var(--hair); }
.rg:last-child { border-bottom: 2px dotted var(--hair); }
.rg :is(h2, h3) { font-family: var(--disp); font-stretch: 88%; font-weight: 580; font-size: clamp(1.3rem, 2.1vw, 1.95rem); letter-spacing: -0.035em; line-height: 1.08; transition: font-weight 0.6s var(--out); }
.rg-t p { margin-top: 4px; color: var(--ink-2); font-size: 0.97rem; }
.rg-p { padding: 12px 22px; border-radius: 999px; border: 1.5px dashed var(--ink); font-family: var(--disp); font-stretch: 86%; font-weight: 620; font-size: clamp(1rem, 1.5vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.2; text-align: center; transition: background 0.5s var(--out), border-color 0.5s, transform 0.6s var(--out); }
@media (hover: hover) { .rg:hover :is(h2, h3) { font-weight: 780; } .rg:hover .rg-p { background: var(--amber); border-color: var(--amber); border-style: solid; transform: scale(1.05) rotate(-2deg); } }
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.model { padding: clamp(24px, 3.4vw, 52px); border-radius: 40px; min-width: 0; }
.model-paper { background: var(--paper); border: 1.5px dashed var(--ink); }
.model-beige { background: var(--beige); }
.model .mono { color: var(--ink); }
.model :is(h2, h3) { margin-top: 18px; font-family: var(--disp); font-stretch: 86%; font-weight: 660; font-size: clamp(1.55rem, 2.6vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.04; }
.model > p { margin-top: 14px; color: var(--ink-2); }
.model ul { margin-top: 24px; display: grid; gap: 10px; }
.model li { position: relative; padding-left: 26px; font-weight: 500; }
.model li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-radius: 999px; background: var(--amber); }
.model-beige li::before { background: var(--teal); }
.honest { margin-top: 14px; padding: clamp(22px, 3vw, 40px) clamp(22px, 3.4vw, 52px); border-radius: 40px; background: var(--sand); font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.32; }

/* estimator */
.est-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; }
.est-controls { padding: clamp(22px, 3vw, 44px); border-radius: 40px; background: var(--paper); border: 1.5px dashed var(--ink); min-width: 0; }
.est-l { display: block; margin-bottom: 12px; color: var(--ink-2); }
.est-l b { color: var(--amber-t); font-size: 1.15em; }
.est-row { margin-top: 28px; }
.est-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.est-chip { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 1.5px dashed rgba(25, 21, 16, 0.55); cursor: pointer; user-select: none; font-family: var(--disp); font-stretch: 90%; font-weight: 540; line-height: 1.2; transition: background 0.35s var(--out), color 0.35s, border-color 0.35s; }
.est-chip input { position: absolute; opacity: 0; pointer-events: none; }
.est-chip:has(input:checked) { background: var(--ink); border-color: var(--ink); border-style: solid; color: var(--cream); }
.est-chip:has(input:focus-visible) { outline: 2.5px solid var(--teal); outline-offset: 3px; }
.est-chip-sm { min-width: 46px; justify-content: center; padding-inline: 12px; font-family: var(--mono); font-size: 0.84rem; }
@media (hover: hover) { .est-chip:not(:has(input:checked)):hover { background: var(--beige); } }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: var(--beige); }
input[type='range']::-moz-range-track { height: 10px; border-radius: 999px; background: var(--beige); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--amber); border: 4px solid var(--ink); }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--amber); border: 4px solid var(--ink); }
.est-out { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 3vw, 44px); border-radius: 40px; background: var(--amber); overflow: hidden; min-width: 0; }
.est-out .est-l { color: var(--ink); }
.est-ring { position: absolute; right: -40px; top: -40px; width: 190px; color: rgba(25, 21, 16, 0.12); animation: spin 50s linear infinite; }
.est-n { position: relative; margin: 4px 0 16px; font-family: var(--disp); font-stretch: 78%; font-weight: 740; font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -0.045em; line-height: 1; transition: opacity 0.18s; }
.est-n.est-fade { opacity: 0.25; }
.est-n small { display: block; font-family: var(--body); font-stretch: 100%; font-weight: 500; font-size: 1rem; letter-spacing: 0; line-height: 1.5; }
.est-note { position: relative; margin: 0 0 24px; font-size: 0.84rem; line-height: 1.55; }
.est-out .btn { margin-top: auto; }

/* ------------------------------------------------------------ faq */
.faq-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-side .rule { margin-bottom: 32px; }
.qa { border-top: 2px dotted var(--hair); }
.qa:last-child { border-bottom: 2px dotted var(--hair); }
.qa summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 24px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa-q { font-family: var(--disp); font-stretch: 88%; font-weight: 560; font-size: clamp(1.2rem, 1.85vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.14; transition: font-weight 0.5s var(--out); }
.qa[open] .qa-q { font-weight: 740; }
.qa-x { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--ink); transition: background 0.5s var(--out), transform 0.7s var(--out), border-color 0.5s; }
.qa-x::before, .qa-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px -7px; border-radius: 2px; background: var(--ink); transition: transform 0.6s var(--out); }
.qa-x::after { transform: rotate(90deg); }
.qa[open] .qa-x { background: var(--amber); border-color: var(--amber); border-style: solid; transform: rotate(180deg); }
.qa[open] .qa-x::after { transform: rotate(0deg); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 52px 28px; color: var(--ink-2); max-width: 70ch; }
.qa-a a { color: var(--teal); text-underline-offset: 3px; }

/* ------------------------------------------------------------ contact */
.contact { padding: 0 clamp(8px, 1.4vw, 24px) clamp(8px, 1.4vw, 24px); }
.contact-page { padding-top: 0; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 88px); max-width: 1680px; margin-inline: auto; padding: clamp(22px, 5vw, 84px); border-radius: clamp(28px, 4vw, 60px); background: var(--amber); }
.panel-l { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.panel-l > .rule, .panel-l > .pit { align-self: stretch; }
.panel .rule { margin-bottom: 32px; }
.panel :is(.h-xl, .h-lg) em { color: var(--ink); }
.panel .lead-s { margin-top: 22px; color: var(--ink); }
.contact-pts { display: grid; gap: 12px; margin: 26px 0 30px; font-weight: 500; }
.contact-pts li { position: relative; padding-left: 28px; }
.contact-pts li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 16px; height: 9px; border-radius: 999px; background: var(--ink); }
.pit { position: relative; flex: 1; min-height: 280px; margin-top: 36px; display: flex; flex-wrap: wrap; align-content: flex-end; gap: 8px; padding: 14px; border-radius: 36px; border: 1.5px dashed rgba(25, 21, 16, 0.55); overflow: hidden; touch-action: pan-y; }
.pp { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; border-radius: 999px; font-family: var(--disp); font-stretch: 88%; font-weight: 640; font-size: 1.04rem; letter-spacing: -0.02em; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.pit.is-live { display: block; padding: 0; cursor: grab; }
.pit.is-live:active { cursor: grabbing; }
.pit.is-live .pp { position: absolute; left: 0; top: 0; will-change: transform; }
.pp-cream { background: var(--cream); }
.pp-beige { background: var(--beige); }
.pp-ink { background: var(--ink); color: var(--cream); }
.pp-teal { background: var(--teal); color: var(--cream); }
.pp-ring { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--ink); color: var(--cream); }
.pp-ring-t { background: var(--teal); }
.pp-ring svg { width: 100%; height: 100%; }

.form { align-self: start; display: grid; gap: 20px; padding: clamp(20px, 3vw, 44px); border-radius: clamp(24px, 3vw, 40px); background: var(--paper); min-width: 0; scroll-margin-top: 110px; }
.fld-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.fld small { font-size: 1em; color: var(--ink-3); margin-left: 0.6em; text-transform: none; letter-spacing: 0.02em; }
.fld input, .fld textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1.5px solid rgba(25, 21, 16, 0.28); border-radius: 0; background: transparent; font: inherit; font-size: 1.08rem; color: var(--ink); resize: vertical; transition: border-color 0.3s; }
.fld textarea { min-height: 120px; }
.fld input:focus, .fld textarea:focus { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); }
.fld ::placeholder { color: rgba(25, 21, 16, 0.45); }
.fld.is-bad input, .fld.is-bad textarea { border-bottom-color: var(--bad); box-shadow: 0 1.5px 0 var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.chk { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.chk input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--ink); border-radius: 7px; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background 0.3s; }
.chk input::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.35s var(--out); }
.chk input:checked { background: var(--amber); }
.chk input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.chk.is-bad input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(165, 50, 29, 0.18); }
.chk a { color: var(--teal); }
.cf-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }
.form-alert { padding: 14px 18px; border-radius: 18px; background: rgba(165, 50, 29, 0.1); color: var(--bad); font-weight: 500; font-size: 0.95rem; }
.form-note { font-size: 0.84rem; color: var(--ink-3); }

/* ------------------------------------------------------------ cta band + footer */
.ctab { padding-bottom: calc(var(--sec) * 0.6); }
.ctab-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 5vw, 80px); border-radius: clamp(32px, 4vw, 60px); background: var(--beige); overflow: hidden; }
.ctab-ring { position: absolute; right: -6%; top: -34%; width: clamp(220px, 34vw, 520px); color: rgba(25, 21, 16, 0.07); animation: spin 80s linear infinite; pointer-events: none; }
.ctab-tx { position: relative; }
.ctab-tx .lead-s { margin-top: 18px; }
.ctab-box .btn { position: relative; }

.fbrief { padding-bottom: clamp(8px, 1.4vw, 24px); }
.fbrief-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3.4vw, 56px); padding: clamp(22px, 3.4vw, 52px); border-radius: clamp(28px, 4vw, 56px); border: 1.5px dashed var(--ink); background: var(--paper); text-decoration: none; transition: border-radius 0.8s var(--ease), background 0.5s; }
@media (hover: hover) { .fbrief-box:hover { border-radius: 96px; background: var(--sand); } .fbrief-box:hover .fbrief-art i { height: 100%; } }
.fbrief-art { display: flex; align-items: flex-end; gap: 6px; width: clamp(96px, 11vw, 168px); height: clamp(96px, 11vw, 168px); }
.fbrief-art i { flex: 1 1 0; border-radius: 999px; transition: height 0.7s var(--out); }
.fbrief-art i:nth-child(1) { height: 56%; }
.fbrief-art i:nth-child(2) { height: 100%; }
.fbrief-art i:nth-child(3) { height: 74%; display: grid; place-items: start center; padding-top: 22%; }
.fbrief-art i:nth-child(4) { height: 40%; border: 1.5px dashed var(--ink); }
.fbrief-art .ring { width: 62%; color: var(--cream); }
.fbrief-tx { display: grid; gap: 10px; min-width: 0; }
.fbrief-tx .mono { color: var(--amber-t); }
.fbrief-h { display: block; font-size: clamp(1.7rem, 3.2vw, 3.2rem); }
.fbrief-p { color: var(--ink-2); max-width: 64ch; font-size: 0.99rem; }

.ftr { padding-top: clamp(48px, 7vw, 110px); overflow: hidden; }
.ftr-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: clamp(36px, 5vw, 72px); margin-bottom: clamp(36px, 5vw, 72px); border-bottom: 1.5px solid var(--ink); }
.ftr-cta .h-lg { max-width: 14em; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); align-items: start; }
.ftr-tag { margin-top: 18px; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.25; max-width: 22ch; }
.ftr-contact { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-bottom: 4px; border-bottom: 1.5px dotted var(--ink); text-decoration: none; font-family: var(--disp); font-weight: 600; }
.ftr-col { display: grid; gap: 9px; align-content: start; min-width: 0; }
.ftr-col h3 { margin-bottom: 8px; color: var(--ink-3); font-weight: 400; }
.ftr-col a::first-letter { text-transform: uppercase; }
.ftr-col a, .ftr-partners a { justify-self: start; text-decoration: none; font-weight: 500; font-size: 0.97rem; line-height: 1.3; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px; transition: background-size 0.5s var(--out); }
@media (hover: hover) { .ftr-col a:hover, .ftr-partners a:hover { background-size: 100% 1.5px; } }
.ftr-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: clamp(32px, 4vw, 56px); padding-top: 22px; border-top: 2px dotted var(--hair); }
.word { display: flex; justify-content: center; margin-top: clamp(16px, 3vw, 40px); padding-bottom: 0.06em; font-family: 'Bricolage Grotesque', sans-serif; font-stretch: 100%; font-size: 35vw; letter-spacing: -0.055em; line-height: 0.8; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.word span { display: inline-block; font-weight: var(--w, 300); will-change: font-weight; }
.word span:nth-child(1), .word span:nth-child(6) { color: var(--teal); }
.word span:nth-child(4) { color: var(--amber-d); }
.ftr-btm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; padding: 22px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1.5px solid var(--ink); }
.ftr-langs { display: flex; gap: 14px; }
.ftr-langs a { text-decoration: none; color: var(--ink-3); }
.ftr-langs a.on { color: var(--ink); border-bottom: 1.5px solid var(--amber-d); }

/* ------------------------------------------------------------ floating layer */
.floaters { position: fixed; z-index: 750; right: clamp(12px, 2vw, 28px); bottom: calc(clamp(12px, 2vw, 28px) + var(--lift, 0px) + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; transition: bottom 0.5s var(--out); }
.floaters > * { pointer-events: auto; }
.pg-brief .floaters { display: none; }
.totop { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: scale(0.6); transition: opacity 0.5s, transform 0.6s var(--out), visibility 0s 0.5s; box-shadow: 0 10px 30px -12px rgba(25, 21, 16, 0.35); }
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s, transform 0.6s var(--out); }
.totop svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop circle { fill: none; stroke-width: 7; }
.tt-bg { stroke: var(--beige); }
.tt-fg { stroke: var(--amber-d); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); }
.totop span { position: relative; font-family: var(--disp); font-weight: 700; font-size: 1.05rem; }
.fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 22px; border-radius: 999px; background: var(--ink); color: var(--cream); text-decoration: none; font-family: var(--disp); font-stretch: 92%; font-weight: 600; font-size: 0.98rem; line-height: 1.15; box-shadow: 0 14px 36px -14px rgba(25, 21, 16, 0.55); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.5s, transform 0.6s var(--out), visibility 0s 0.5s, background 0.4s, color 0.4s; }
.fab.in { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s, transform 0.6s var(--out), background 0.4s, color 0.4s; }
@media (hover: hover) { .fab:hover { background: var(--amber); color: var(--ink); } }

.consent { position: fixed; z-index: 780; left: clamp(12px, 2vw, 28px); bottom: calc(clamp(12px, 2vw, 28px) + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 24px)); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px 16px; padding: 22px; border-radius: 30px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 30px 70px -28px rgba(25, 21, 16, 0.45); opacity: 0; transform: translateY(24px); transition: opacity 0.4s, transform 0.6s var(--out); }
.consent.in { opacity: 1; transform: none; }
.consent-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); }
.consent-ic .ring { width: 22px; }
.consent-tx { font-size: 0.94rem; line-height: 1.5; color: var(--ink-2); }
.consent-tx a { color: var(--teal); }
.consent-btns { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ck { min-height: 48px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--ink); font-family: var(--disp); font-weight: 600; font-size: 0.98rem; transition: background 0.35s, color 0.35s; }
.ck-no { background: transparent; }
.ck-yes { background: var(--ink); color: var(--cream); }
@media (hover: hover) { .ck-no:hover { background: var(--beige); } .ck-yes:hover { background: var(--teal); border-color: var(--teal); } }

.rbar { position: fixed; z-index: 770; left: 50%; bottom: calc(clamp(12px, 2vw, 28px) + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; width: max-content; max-width: calc(100vw - 24px); padding: 10px 12px 10px 22px; border-radius: 32px; background: var(--paper); border: 1px solid var(--hair); box-shadow: 0 24px 60px -26px rgba(25, 21, 16, 0.45); font-size: 0.94rem; opacity: 0; visibility: hidden; transform: translate(-50%, 24px); transition: opacity 0.4s, transform 0.6s var(--out), visibility 0s 0.4s; }
.rbar.in { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.4s, transform 0.6s var(--out); }
.rbar-yes { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); text-decoration: none; font-family: var(--disp); font-weight: 600; }
.rbar-no { min-height: 40px; padding: 6px 12px; border: 0; background: none; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

.cur { position: fixed; z-index: 950; left: 0; top: 0; pointer-events: none; display: none; }
.cur.is-live { display: block; }
.cur span { display: grid; place-items: center; width: 12px; height: 12px; margin: -6px; border-radius: 999px; background: var(--amber); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: transparent; overflow: hidden; transition: width 0.5s var(--out), height 0.5s var(--out), margin 0.5s var(--out), color 0.3s, background 0.4s; }
.cur.is-big span { width: 88px; height: 88px; margin: -44px; color: var(--ink); }
.cur.is-link span { width: 34px; height: 34px; margin: -17px; background: rgba(224, 152, 58, 0.45); }

/* ------------------------------------------------------------ legal + thank-you (standalone pages) */
.legal { max-width: 860px; margin-inline: auto; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(60px, 8vw, 120px); }
.legal .logo { margin-bottom: clamp(36px, 5vw, 64px); }
.legal h1 { font-family: var(--disp); font-stretch: 88%; font-weight: 640; font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.04em; line-height: 1; }
.legal .upd { margin: 14px 0 36px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.legal h2 { margin: 2em 0 0.5em; font-family: var(--disp); font-stretch: 90%; font-weight: 620; font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.03em; line-height: 1.12; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 1.3em; list-style: revert; }
.legal a { color: var(--teal); text-underline-offset: 3px; }
.legal .back { margin-top: 40px; }
.tycard { min-height: 100svh; display: grid; place-items: center; padding: 24px var(--gut); }
.tycard-in { display: grid; justify-items: center; gap: 22px; max-width: 620px; padding: clamp(32px, 6vw, 72px); border-radius: clamp(32px, 5vw, 56px); background: var(--paper); border: 1.5px dashed var(--ink); text-align: center; }
.tycard-caps { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.tycard-caps i { width: 30px; border-radius: 999px; }
.tycard-caps i:nth-child(1) { height: 56%; } .tycard-caps i:nth-child(2) { height: 100%; } .tycard-caps i:nth-child(3) { height: 74%; }
.tycard-caps i:nth-child(4) { width: 96px; height: 88%; border-radius: 24px; display: grid; place-items: center; }
.tycard-caps .ring { width: 56px; color: var(--cream); }

/* Nothing above the fold is ever pre-hidden: the headline is the LCP element, and hiding it
   until a deferred script boots cost 4 seconds of measured LCP. The entrance plays only on
   the first view of a session, where the curtain already covers the page. */

/* ------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .hdr-bar { gap: 6px; padding-left: 18px; }
  .nav-a { padding: 10px 9px; font-size: 0.9rem; }
  .hdr-cta { display: none; }
}
@media (max-width: 1080px) {
  .nav, .lang { display: none; }
  .hdr-cta { display: inline-flex; }
  .burger { display: block; }
  .hdr-end { margin-left: auto; }
  .hero-g, .phero-g, .svc-g, .faq-g, .rel-g, .split-top, .studio-g, .panel, .spot-g, .case-g, .est-grid, .ctab-box { grid-template-columns: minmax(0, 1fr); }
  .hero-g { min-height: 0; align-items: start; }
  .split-top, .ctab-box { align-items: start; }
  .svc-side, .faq-side, .case-side { position: static; }
  .orbit { display: none; }
  .caps { height: clamp(380px, 54vh, 520px); }
  .pcaps { height: 150px; justify-content: flex-start; }
  .pcap { flex: 0 0 58px; }
  .pcap.cap-ink { flex-basis: 132px; border-radius: 36px; }
  .pcap-ring { inset: 0; margin: auto; width: 60%; height: 60%; }
  .inds, .wcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
  .fbrief-box { grid-template-columns: auto minmax(0, 1fr); }
  .fbrief-btn { grid-column: 1 / -1; }
  .blk { grid-template-columns: minmax(0, 1fr); }
  .post-g { grid-template-columns: minmax(0, 76ch); }
  .post-side { display: none; }
}
@media (min-width: 1081px) { .sheet { display: none !important; } }

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hdr { top: 10px; }
  .hdr-cta { display: none; }
  .hero { padding-top: 96px; }
  .phero { padding-top: 104px; }
  .cta-row .btn { flex: 1 1 100%; }
  .rule-r { display: none; }
  /* phones: the four capsules become stacked bars. A 40px vertical sliver
     cannot hold readable copy; a full-width bar that opens can. */
  .caps { flex-direction: column; height: auto; gap: 8px; overflow: visible; container-type: normal; }
  .cap, .cap.is-on { display: block; flex: none; border-radius: 30px; max-height: 60px; transition: max-height 0.8s var(--ease); }
  .cap.is-on { max-height: 460px; }
  .cap-hit { height: 60px; bottom: auto; }
  .cap.is-on .cap-hit { height: 100%; }
  .cap-n, .cap.is-on .cap-n { top: 23px; left: 22px; transform: none; }
  .cap-v, .cap.is-on .cap-v { left: 56px; bottom: auto; top: 15px; writing-mode: horizontal-tb; transform: none; opacity: 1; font-size: 1.55rem; font-weight: 680; }
  .cap-art, .cap.is-on .cap-art { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; margin: 0; }
  .cap-glyph, .cap.is-on .cap-glyph { opacity: 0.5; transform: none; font-size: 40px; line-height: 1; }
  .cap-tx, .cap.is-on .cap-tx { display: block; width: auto; padding: 66px 22px 22px; animation: none; opacity: 0; transition: opacity 0.4s; }
  .cap.is-on .cap-tx { opacity: 1; transition: opacity 0.6s 0.25s; }
  .cap-w { display: none; }
  .cap-p { display: block; -webkit-line-clamp: unset; overflow: visible; max-width: none; font-size: 0.97rem; }
  .pcaps { height: 104px; gap: 7px; }
  .pcap { flex-basis: 40px; }
  .pcap.cap-ink { flex-basis: 96px; border-radius: 28px; }
  .stats, .facts, .inds, .wcs, .models, .ixs, .incl-2, .steps, .fld-2 { grid-template-columns: minmax(0, 1fr); }
  .num { font-size: clamp(4rem, 21vw, 6.2rem); }
  .mqs { margin-inline: -6vw; }
  .svc-a { grid-template-columns: 34px minmax(0, 1fr); padding: 22px 12px; }
  .svc-a::before { border-radius: 26px; }
  .svc-go { display: none; }
  .wk { width: 84vw; min-width: 0; }
  .wk-end { width: 72vw; min-width: 0; }
  .ix-a { grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 4px 10px; padding: 14px 2px; }
  .ix-c { grid-column: 2; grid-row: 2; text-align: left; max-width: none; }
  .ix .arw { grid-column: 3; grid-row: 1 / span 2; opacity: 0.6; }
  .steps { gap: 36px; }
  .steps-line { display: none; }
  .steps.is-armed .step { opacity: 1; transform: none; }
  .step-n { width: 76px; height: 76px; border-width: 0; }
  .step-n em { font-size: 2.5rem; }
  .rg { grid-template-columns: 30px minmax(0, 1fr); padding: 22px 2px; }
  .rg-p { grid-column: 2; justify-self: start; }
  .qa summary { grid-template-columns: 28px minmax(0, 1fr) 40px; padding: 20px 0; }
  .qa-x { width: 40px; height: 40px; }
  .qa-a p { padding: 0 0 24px 36px; }
  .post-a { grid-template-columns: minmax(0, 1fr); padding: 22px 4px; }
  .post-h, .post-p { grid-column: 1; }
  .post-m { padding-top: 0; }
  .post-go { display: none; }
  .post-a::before { border-radius: 24px; }
  .pit { min-height: 240px; }
  .pp { height: 44px; padding: 0 18px; font-size: 0.96rem; }
  .pp-ring { width: 54px; height: 54px; padding: 12px; }
  .fbrief-box { grid-template-columns: minmax(0, 1fr); }
  .fbrief-art { width: 120px; height: 84px; }
  .ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-cta .btn, .ctab-box .btn, .sec-more .btn, .apps-b .btn { width: 100%; }
  .next-a { padding-right: clamp(24px, 3vw, 48px); padding-bottom: 96px; }
  .next-go { top: auto; bottom: 24px; right: auto; left: 24px; margin: 0; }
  .fab { min-height: 48px; padding: 6px 18px; font-size: 0.92rem; }
  .totop { width: 46px; height: 46px; }
  .consent { left: 12px; right: 12px; width: auto; padding: 18px; border-radius: 26px; }
  .bars { height: 260px; }
  .gz-row { gap: 6px; }
  .g .mono { font-size: 0.5rem; letter-spacing: 0; }
  /* 38 rows is a desktop list: a phone gets the first twelve and the button to the full page */
  .fleet .ix:nth-child(n + 13) { display: none; }
  .est-chip { min-height: 44px; padding: 8px 15px; }
}
@media (max-width: 380px) {
  .ftr-top { grid-template-columns: minmax(0, 1fr); }
  .gz-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .g .mono { font-size: 0.6rem; }
  .cap-v, .cap.is-on .cap-v { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
