/* Hospara design system — generated from src/ds/tokens.json (direction 01 «Чертёж» / draft; dark mode, the default, from 03 «Вечер»). Do not edit. */
@font-face { font-family: "Jost"; src: url("/assets/fonts/Jost-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bad Script"; src: url("/assets/fonts/BadScript-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
:root {
  --paper-000: #f5f6f6;
  --paper-100: #e7e9e5;
  --paper-200: #d3d4ce;
  --paper-300: #bebeb7;
  --parchment-100: #fcf6e9;
  --parchment-200: #f4eada;
  --parchment-300: #e0d7c5;
  --parchment-400: #b4a58d;
  --graphite-300: #a6a59c;
  --graphite-400: #80786c;
  --graphite-500: #615c51;
  --graphite-700: #464136;
  --graphite-900: #1e1813;
  --frame-700: #353a42;
  --frame-800: #25282f;
  --frame-900: #16181c;
  --frame-950: #0f0f12;
  --glow-200: #f0c384;
  --glow-300: #e0b577;
  --glow-500: #cb9a57;
  --glow-700: #af7f46;
  --timber-400: #82654a;
  --timber-600: #6c513a;
  --timber-800: #543d2d;
  --timber-900: #2a1e14;
  --brick-400: #a57159;
  --brick-600: #8c4e37;
  --brick-800: #5d3220;
  --shutter-400: #6a7e7a;
  --shutter-600: #4a5955;
  --shutter-800: #343e3e;
  --foliage-400: #7e865a;
  --foliage-600: #5d6342;
  --foliage-800: #3e422a;
  --glass-300: #98a1a6;
  --bloom-300: #d9beac;
  --bloom-400: #c69d81;
  --bg: var(--paper-100);
  --bg-sunken: var(--paper-200);
  --surface: var(--paper-000);
  --text: var(--graphite-900);
  --text-muted: var(--graphite-700);
  --text-subtle: var(--graphite-500);
  --line: var(--graphite-300);
  --line-strong: var(--graphite-400);
  --action: var(--graphite-900);
  --action-hover: var(--frame-700);
  --on-action: var(--paper-000);
  --accent: var(--glow-500);
  --accent-hover: var(--glow-700);
  --on-accent: var(--graphite-900);
  --accent-text: var(--timber-600);
  --focus: var(--timber-600);
  --media-frame: var(--frame-900);
  --success: var(--shutter-600);
  --success-bg: #dfe6e3;
  --danger: var(--brick-600);
  --danger-bg: #f0dfd7;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: Jost, "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Bad Script", "Segoe Script", cursive;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-frame: 28px;
  --radius-full: 999px;
  --shadow-sheet: 0 1px 2px rgba(30,24,19,0.06), 0 18px 40px -18px rgba(30,24,19,0.28);
  --shadow-glow: 0 0 0 1px rgba(203,154,87,0.35), 0 0 40px 2px rgba(224,181,119,0.3);
  --stroke-hair: 1px;
  --stroke-line: 1.5px;
  --stroke-frame: 6px;
  --container: 1200px;
  --measure: 680px;
  --gutter: 24px;
  --sheet-margin: 48px;
  color-scheme: light;
  --ink: var(--graphite-500); --ink-faint: var(--graphite-400); --ink-soft: var(--graphite-300);
  --sketch-blend: multiply; --sketch-filter: none;
  --selection-bg: var(--glow-200); --selection-text: var(--graphite-900);
}
:root:not([data-mode="light"]) {
  --bg: var(--frame-900);
  --bg-sunken: var(--frame-950);
  --surface: var(--frame-800);
  --text: var(--paper-000);
  --text-muted: var(--paper-300);
  --text-subtle: var(--graphite-300);
  --line: var(--frame-700);
  --action: var(--glow-500);
  --action-hover: var(--glow-300);
  --on-action: var(--graphite-900);
  --accent: var(--glow-300);
  --accent-hover: var(--glow-200);
  --accent-text: var(--glow-300);
  --focus: var(--glow-200);
  --media-frame: var(--frame-700);
  --success: var(--glass-300);
  --success-bg: #232b2c;
  --danger: var(--bloom-400);
  --danger-bg: #33241d;
  color-scheme: dark;
  --ink: var(--paper-300); --ink-faint: var(--graphite-300); --ink-soft: var(--graphite-500);
  --sketch-blend: screen; --sketch-filter: invert(1) brightness(.82);
  --selection-bg: var(--glow-500); --selection-text: var(--graphite-900);
}

/* Hospara design system components (src/ds/bundle.css, draft direction). */
/* Hospara components. Every color, space, radius and stroke is a token from tokens.css; this file declares none of its own. */

/* ── 1. Direction switches ─────────────────────────────────────────────
   The three directions are themes. Color comes from the tokens; what else
   differs between them (headline voice, corner language, control shape)
   is switched here, so the same component reads in each direction. */
:root, [data-theme="draft"] {
  --hs-display-font: var(--font-sans);
  --hs-display-weight: 300;
  --hs-display-tracking: -0.022em;
  --hs-display-case: none;
  --hs-h1: 76px; --hs-h1-lh: 1;
  --hs-h2: 52px; --hs-h2-lh: 1.06;
  --hs-h3: 34px; --hs-h3-lh: 1.15; --hs-h3-weight: 400; --hs-h3-tracking: -0.012em;
  --hs-h4-font: var(--font-sans); --hs-h4: 22px; --hs-h4-lh: 1.3; --hs-h4-weight: 500; --hs-h4-tracking: -0.005em;
  --hs-em-style: normal; --hs-em-color: inherit; --hs-em-display: inline-block; --hs-em-bracket: block;
  --hs-stat-font: var(--font-sans); --hs-stat-weight: 300; --hs-stat-size: 64px; --hs-stat-tracking: -0.03em;
  --hs-button-size: 13px; --hs-button-tracking: 0.14em; --hs-button-case: uppercase;
  --hs-control-radius: var(--radius-none);
  --hs-field-radius: var(--radius-none);
  --hs-tag-radius: var(--radius-sm);
  --hs-card-radius: var(--radius-none);
  --hs-card-border: var(--line);
  --hs-card-marks: block;
  --hs-media-radius: var(--radius-none);
  --hs-article-ratio: 3 / 2;
  --hs-media-filter: none;
  --hs-logo-glow: var(--glow-500);
  --hs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hs-dur-ui: 180ms;
  --hs-dur-reveal: 900ms;
}

/* ── 2. Base ─────────────────────────────────────────────────────────── */
body, .hs-scope {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { margin: 0; }
[class^="hs-"], [class*=" hs-"], [class^="hs-"]::before, [class*=" hs-"]::before, [class^="hs-"]::after, [class*=" hs-"]::after { box-sizing: border-box; }
.hs-stage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); padding: var(--space-8); }
.hs-stage--col { flex-direction: column; align-items: stretch; }
.hs-stage--top { align-items: flex-start; }

/* ── 3. Type ─────────────────────────────────────────────────────────── */
.hs-h1, .hs-h2, .hs-h3, .hs-h4 { margin: 0; color: var(--text); text-wrap: balance; font-variant-numeric: lining-nums; }
.hs-h1, .hs-h2, .hs-h3 { font-family: var(--hs-display-font); text-transform: var(--hs-display-case); }
.hs-h1 { font-size: clamp(calc(var(--hs-h1) * 0.56), 6.2vw, var(--hs-h1)); line-height: var(--hs-h1-lh); font-weight: var(--hs-display-weight); letter-spacing: var(--hs-display-tracking); }
.hs-h2 { font-size: clamp(calc(var(--hs-h2) * 0.62), 4.4vw, var(--hs-h2)); line-height: var(--hs-h2-lh); font-weight: var(--hs-display-weight); letter-spacing: var(--hs-display-tracking); }
.hs-h3 { font-size: clamp(calc(var(--hs-h3) * 0.76), 3vw, var(--hs-h3)); line-height: var(--hs-h3-lh); font-weight: var(--hs-h3-weight); letter-spacing: var(--hs-h3-tracking); }
.hs-h4 { font-family: var(--hs-h4-font); font-size: var(--hs-h4); line-height: var(--hs-h4-lh); font-weight: var(--hs-h4-weight); letter-spacing: var(--hs-h4-tracking); }
.hs-h1 em, .hs-h2 em, .hs-h3 em { position: relative; display: var(--hs-em-display); font-style: var(--hs-em-style); color: var(--hs-em-color); }
.hs-h1 em::after, .hs-h2 em::after, .hs-h3 em::after {
  content: ""; display: var(--hs-em-bracket); position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.14em;
  border: solid var(--line-strong); border-width: 0 var(--stroke-hair) var(--stroke-hair);
}
.hs-eyebrow { display: flex; align-items: center; gap: var(--space-3); margin: 0; font: 500 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-subtle); }
.hs-eyebrow__index { color: var(--accent-text); letter-spacing: 0.06em; font-variant-numeric: tabular-nums lining-nums; }
.hs-eyebrow__rule { width: var(--space-12); height: var(--stroke-hair); background: var(--line-strong); flex: none; }
.hs-lead { margin: 0; max-width: 34em; font: 300 20px/31px var(--font-sans); color: var(--text-muted); text-wrap: pretty; }
.hs-text { margin: 0; font: 400 16px/26px var(--font-sans); color: var(--text-muted); }
.hs-note { font: 400 20px/28px var(--font-hand); color: var(--text-muted); }

/* ── 4. Icon, Logo ───────────────────────────────────────────────────── */
.hs-icon { display: inline-block; flex: none; vertical-align: middle; }
.hs-logo { display: inline-block; flex: none; line-height: 0; color: var(--text); }
.hs-logo svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ── 5. Button ───────────────────────────────────────────────────────── */
.hs-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 48px; padding: 0 var(--space-6); border: var(--stroke-hair) solid transparent; border-radius: var(--hs-control-radius);
  background: transparent; color: var(--text); font: 500 var(--hs-button-size)/16px var(--font-sans);
  letter-spacing: var(--hs-button-tracking); text-transform: var(--hs-button-case); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--hs-dur-ui) var(--hs-ease), color var(--hs-dur-ui) var(--hs-ease), border-color var(--hs-dur-ui) var(--hs-ease);
}
.hs-btn--sm { min-height: 40px; padding: 0 var(--space-4); }
.hs-btn--lg { min-height: 56px; padding: 0 var(--space-8); }
.hs-btn--primary { background: var(--action); color: var(--on-action); }
.hs-btn--primary:hover { background: var(--action-hover); }
.hs-btn--accent { background: var(--accent); color: var(--on-accent); }
.hs-btn--accent:hover { background: var(--accent-hover); }
.hs-btn--outline { border-color: var(--line-strong); }
.hs-btn--outline:hover { border-color: var(--text); }
.hs-btn--link { min-height: 0; padding: 0 0 var(--space-1); border-width: 0 0 var(--stroke-hair); border-color: var(--line-strong); border-radius: 0; }
.hs-btn--link:hover { border-color: var(--text); }
.hs-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hs-btn:disabled, .hs-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.hs-btn__arrow { transition: transform var(--hs-dur-ui) var(--hs-ease); }
.hs-btn:hover .hs-btn__arrow { transform: translateX(3px); }

/* ── 6. Tag ──────────────────────────────────────────────────────────── */
.hs-tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: 3px var(--space-2); border: var(--stroke-hair) solid var(--line-strong); border-radius: var(--hs-tag-radius); font: 500 11px/16px var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.hs-tag--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hs-tag--success { background: var(--success-bg); border-color: var(--success-bg); color: var(--success); }
.hs-tag--danger { background: var(--danger-bg); border-color: var(--danger-bg); color: var(--danger); }

/* ── 7. Field, Checkbox ──────────────────────────────────────────────── */
.hs-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.hs-field__label { font: 500 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.hs-field__wrap { position: relative; display: block; }
.hs-field__control {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 11px var(--space-4); border: var(--stroke-hair) solid var(--line-strong);
  border-radius: var(--hs-field-radius); background: var(--surface); color: var(--text); font: 400 16px/24px var(--font-sans);
  transition: border-color var(--hs-dur-ui) var(--hs-ease);
}
textarea.hs-field__control { min-height: 112px; resize: vertical; }
select.hs-field__control { appearance: none; padding-right: var(--space-12); cursor: pointer; }
.hs-field__chevron { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.hs-field__control::placeholder { color: var(--text-subtle); opacity: 1; }
.hs-field__control:hover { border-color: var(--text-muted); }
.hs-field__control:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--text); }
.hs-field__hint { font: 400 14px/22px var(--font-sans); color: var(--text-subtle); }
.hs-field--error .hs-field__control { border-color: var(--danger); }
.hs-field__error { display: flex; align-items: center; gap: var(--space-2); font: 400 14px/22px var(--font-sans); color: var(--danger); }
.hs-check { display: flex; align-items: flex-start; gap: var(--space-3); font: 400 14px/22px var(--font-sans); color: var(--text-muted); cursor: pointer; }
.hs-check input { appearance: none; display: grid; place-content: center; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: var(--stroke-hair) solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.hs-check input:checked { background: var(--action); border-color: var(--action); }
.hs-check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--on-action); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.hs-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── 8. Annotation: Callout, Dimension, AnnotatedFigure ──────────────── */
.hs-callout { display: inline-flex; align-items: center; max-width: 100%; color: var(--text); }
.hs-callout--left { flex-direction: row-reverse; text-align: right; }
.hs-callout__dot { flex: none; width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--accent); box-shadow: 0 0 0 var(--stroke-hair) var(--text); }
.hs-callout__line { flex: none; width: var(--hs-callout-len, 72px); height: var(--stroke-hair); background: var(--text); }
.hs-callout__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-inline: var(--space-3); }
.hs-callout__label { font: 500 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.hs-callout__note { font: 400 18px/24px var(--font-hand); color: var(--text-muted); white-space: nowrap; }
.hs-callout--placed { position: absolute; z-index: 2; left: var(--hs-x); top: var(--hs-y); transform: translate(-4.5px, -50%); }
.hs-callout--placed.hs-callout--left { left: auto; right: calc(100% - var(--hs-x)); transform: translate(4.5px, -50%); }

.hs-dim { position: relative; display: flex; align-items: center; gap: var(--space-3); min-width: var(--space-24); height: 17px; border-inline: var(--stroke-hair) solid var(--line-strong); }
.hs-dim::before, .hs-dim::after { content: ""; position: absolute; top: 50%; width: 15px; height: var(--stroke-hair); background: var(--text); transform: translate(-50%, -50%) rotate(-45deg); }
.hs-dim::before { left: 0; }
.hs-dim::after { left: 100%; }
.hs-dim__line { flex: 1; min-width: var(--space-3); height: var(--stroke-hair); background: var(--line-strong); }
.hs-dim__label { font: 500 13px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; color: var(--text-muted); }
.hs-dim--vertical { flex-direction: column; width: 17px; min-width: 0; height: auto; min-height: var(--space-24); border-inline: 0; border-block: var(--stroke-hair) solid var(--line-strong); }
.hs-dim--vertical::before { left: 50%; top: 0; }
.hs-dim--vertical::after { left: 50%; top: 100%; }
.hs-dim--vertical .hs-dim__line { width: var(--stroke-hair); min-width: 0; height: auto; min-height: var(--space-3); }
.hs-dim--vertical .hs-dim__label { writing-mode: vertical-rl; transform: rotate(180deg); }

.hs-figure { position: relative; display: block; margin: 0; container-type: inline-size; }
.hs-figure__media { position: relative; overflow: hidden; aspect-ratio: var(--hs-figure-ratio, 4 / 5); background: var(--bg-sunken); }
.hs-figure__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hs-figure-pos, 50% 50%); transform: scale(var(--hs-figure-zoom, 1)); transform-origin: var(--hs-figure-pos, 50% 50%); }
.hs-figure--frame .hs-figure__media { border: var(--stroke-frame) solid var(--media-frame); }
.hs-figure--arch .hs-figure__media { border-radius: var(--radius-full) var(--radius-full) 0 0; }
.hs-figure--circle .hs-figure__media { aspect-ratio: 1; border-radius: var(--radius-full); }
.hs-figure--circle::before { content: ""; position: absolute; inset: calc(var(--space-3) * -1); border: var(--stroke-hair) dashed var(--line-strong); border-radius: var(--radius-full); pointer-events: none; }
.hs-figure--circle:has(.hs-figure__caption)::before { bottom: auto; aspect-ratio: 1; }
.hs-figure--glow .hs-figure__media { box-shadow: var(--shadow-glow); }
.hs-figure--fade .hs-figure__media { background: none; -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 100%); mask-image: radial-gradient(closest-side, #000 64%, transparent 100%); }
.hs-figure--fade .hs-figure__media img { mix-blend-mode: multiply; }
.hs-figure__caption { margin-top: var(--space-3); font: 400 12px/18px var(--font-sans); letter-spacing: 0.02em; color: var(--text-subtle); }
.hs-figure--circle .hs-figure__caption { margin-top: var(--space-6); text-align: center; }

/* ── 9. Content: Stat, ServiceCard, ArticleCard, Quote, Steps ────────── */
.hs-stat { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.hs-stat__value { display: flex; align-items: baseline; gap: 0.16em; font-family: var(--hs-stat-font); font-weight: var(--hs-stat-weight); font-size: clamp(40px, 5vw, var(--hs-stat-size)); line-height: 1; letter-spacing: var(--hs-stat-tracking); font-variant-numeric: lining-nums tabular-nums; color: var(--text); }
.hs-stat__unit { font: 400 0.3em/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hs-stat__label { max-width: 22em; font: 400 14px/22px var(--font-sans); color: var(--text-muted); }
.hs-stat__note { font: 400 18px/24px var(--font-hand); color: var(--accent-text); }

.hs-card { position: relative; display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-8); border: var(--stroke-hair) solid var(--hs-card-border); border-radius: var(--hs-card-radius); background: var(--surface); color: var(--text); }
.hs-card::before, .hs-card::after {
  content: ""; display: var(--hs-card-marks); position: absolute; width: 13px; height: 13px; pointer-events: none;
  background: linear-gradient(var(--text), var(--text)) center / 100% var(--stroke-hair) no-repeat, linear-gradient(var(--text), var(--text)) center / var(--stroke-hair) 100% no-repeat;
}
.hs-card::before { left: -7px; top: -7px; }
.hs-card::after { right: -7px; bottom: -7px; }
.hs-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); }
.hs-card__index { font: 500 13px/16px var(--font-sans); letter-spacing: 0.06em; font-variant-numeric: tabular-nums lining-nums; color: var(--accent-text); }
.hs-card__text { margin: 0; font: 400 16px/26px var(--font-sans); color: var(--text-muted); }
.hs-card__link { margin-top: auto; padding-top: var(--space-4); }

.hs-article { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; color: var(--text); text-decoration: none; }
.hs-article__media { overflow: hidden; aspect-ratio: var(--hs-article-ratio); border-radius: var(--hs-media-radius) var(--hs-media-radius) 0 0; background: var(--bg-sunken); }
.hs-article__media img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--hs-media-filter); transition: transform var(--hs-dur-reveal) var(--hs-ease); }
.hs-article:hover .hs-article__media img { transform: scale(1.03); }
.hs-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font: 400 14px/22px var(--font-sans); color: var(--text-subtle); }
.hs-article__excerpt { margin: 0; font: 400 16px/26px var(--font-sans); color: var(--text-muted); }
.hs-article:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.hs-article:hover .hs-h4 { text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 4px; }

.hs-quote { display: flex; flex-direction: column; gap: var(--space-6); max-width: 44em; margin: 0; }
.hs-quote__text { margin: 0; font: italic 400 clamp(22px, 2.6vw, 30px)/1.3 var(--font-display); font-variant-numeric: lining-nums; color: var(--text); text-wrap: balance; }
.hs-quote__by { display: flex; align-items: center; gap: var(--space-3); font: 400 14px/22px var(--font-sans); color: var(--text-muted); }
.hs-quote__by::before { content: ""; flex: none; width: var(--space-12); height: var(--stroke-hair); background: var(--line-strong); }
.hs-quote__name { font-weight: 500; color: var(--text); }

.hs-steps { position: relative; display: grid; grid-template-columns: repeat(var(--hs-steps-n, 4), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hs-steps::before { content: ""; position: absolute; right: 0; top: -8px; width: var(--stroke-hair); height: 17px; background: var(--line-strong); }
.hs-steps::after { content: ""; position: absolute; right: 0; top: 0; width: 15px; height: var(--stroke-hair); background: var(--text); transform: translate(50%, -50%) rotate(-45deg); }
.hs-step { position: relative; padding: var(--space-8) var(--space-6) 0 0; border-top: var(--stroke-hair) solid var(--line-strong); }
.hs-step::before { content: ""; position: absolute; left: 0; top: -9px; width: var(--stroke-hair); height: 17px; background: var(--line-strong); }
.hs-step::after { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: var(--stroke-hair); background: var(--text); transform: translate(-50%, -50%) rotate(-45deg); }
.hs-step__num { font: 500 13px/16px var(--font-sans); letter-spacing: 0.06em; font-variant-numeric: tabular-nums lining-nums; color: var(--accent-text); }
.hs-step__title { margin: var(--space-3) 0 var(--space-2); }
.hs-step__text { margin: 0; font: 400 15px/24px var(--font-sans); color: var(--text-muted); }

/* ── 10. Layout: SectionHeading, Section, Hero, Header, Footer ───────── */
.hs-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 46em; }
.hs-section-head--center { align-items: center; margin-inline: auto; text-align: center; }
.hs-section-head--center .hs-lead { margin-inline: auto; }

.hs-section { padding: var(--space-24) var(--sheet-margin); background: var(--bg); color: var(--text); }
.hs-section--sunken { background: var(--bg-sunken); }
.hs-section--tight { padding-block: var(--space-16); }
.hs-section__inner { display: grid; gap: var(--space-12); max-width: var(--container); margin-inline: auto; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--gutter); }
.hs-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: var(--space-12) var(--gutter); }

.hs-hero { position: relative; overflow: hidden; padding: var(--space-24) var(--sheet-margin); background: var(--bg); color: var(--text); }
.hs-hero--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.4;
  background-image: linear-gradient(var(--line) var(--stroke-hair), transparent var(--stroke-hair)), linear-gradient(90deg, var(--line) var(--stroke-hair), transparent var(--stroke-hair));
  background-size: var(--space-24) var(--space-24); background-position: var(--sheet-margin) 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 100%); mask-image: linear-gradient(to right, transparent, #000 30%, #000 100%);
}
.hs-hero__inner { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: var(--space-12) var(--gutter); max-width: var(--container); margin-inline: auto; }
.hs-hero__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); min-width: 0; }
.hs-hero__media { grid-column: 7 / span 4; position: relative; min-width: 0; }
.hs-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-2); }
.hs-hero--center .hs-hero__copy { grid-column: 2 / span 10; align-items: center; text-align: center; }
.hs-hero--center .hs-hero__media { grid-column: 5 / span 4; }
.hs-hero--center .hs-hero__actions { justify-content: center; }
.hs-hero--detail .hs-hero__copy { grid-column: 1 / span 6; }
.hs-hero--detail .hs-hero__media { grid-column: 7 / span 6; }

.hs-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) var(--sheet-margin); border-bottom: var(--stroke-hair) solid var(--line); background: var(--bg); color: var(--text); }
.hs-header__nav { display: flex; gap: var(--space-8); margin: 0; padding: 0; list-style: none; }
.hs-header__link { display: block; padding-block: var(--space-2); border-bottom: var(--stroke-hair) solid transparent; font: 400 15px/24px var(--font-sans); color: var(--text-muted); text-decoration: none; transition: color var(--hs-dur-ui) var(--hs-ease), border-color var(--hs-dur-ui) var(--hs-ease); }
.hs-header__link:hover { color: var(--text); border-color: var(--line-strong); }
.hs-header__link[aria-current="page"] { color: var(--text); border-color: var(--text); }
.hs-header__link:focus-visible, .hs-footer__link:focus-visible, .hs-lang button:focus-visible, .hs-header__menu:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.hs-header__tools { display: flex; align-items: center; gap: var(--space-6); }
.hs-header__menu { display: none; appearance: none; padding: var(--space-2); border: 0; background: none; color: var(--text); cursor: pointer; }
.hs-lang { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 12px/16px var(--font-sans); letter-spacing: 0.14em; color: var(--text-subtle); }
.hs-lang button { appearance: none; min-height: 40px; padding: 0 var(--space-1); border: 0; border-bottom: var(--stroke-hair) solid transparent; background: none; color: var(--text-subtle); font: inherit; letter-spacing: inherit; cursor: pointer; }
.hs-lang button[aria-pressed="true"] { color: var(--text); border-color: var(--text); }

.hs-footer { display: grid; gap: var(--space-12); padding: var(--space-16) var(--sheet-margin) var(--space-8); border-top: var(--stroke-hair) solid var(--line-strong); background: var(--bg-sunken); color: var(--text); }
.hs-footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--gutter); width: 100%; max-width: var(--container); margin-inline: auto; }
.hs-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.hs-footer__tagline { max-width: 22em; margin: 0; font: 400 15px/24px var(--font-sans); color: var(--text-muted); }
.hs-footer__title { margin: 0 0 var(--space-4); font: 500 12px/16px var(--font-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
.hs-footer__list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.hs-footer__link { font: 400 15px/24px var(--font-sans); color: var(--text); text-decoration: none; }
.hs-footer__link:hover { text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 4px; }
.hs-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; max-width: var(--container); margin-inline: auto; padding-top: var(--space-6); border-top: var(--stroke-hair) solid var(--line); font: 400 14px/22px var(--font-sans); color: var(--text-muted); }

/* ── 11. LeadForm, Prose ─────────────────────────────────────────────── */
.hs-form { display: grid; gap: var(--space-6); min-width: 0; padding: var(--space-8); border: var(--stroke-hair) solid var(--hs-card-border); border-radius: var(--hs-card-radius); background: var(--surface); color: var(--text); }
.hs-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.hs-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.hs-form__done { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--hs-tag-radius); background: var(--success-bg); color: var(--success); font: 400 16px/26px var(--font-sans); }

.hs-prose { max-width: var(--measure); font: 400 18px/29px var(--font-sans); color: var(--text); }
.hs-prose > * { margin-block: 0; }
.hs-prose > * + * { margin-top: 1.15em; }
.hs-prose > h2 { margin-top: 2em; font-family: var(--hs-display-font); font-size: var(--hs-h3); line-height: var(--hs-h3-lh); font-weight: var(--hs-h3-weight); letter-spacing: var(--hs-h3-tracking); text-transform: var(--hs-display-case); text-wrap: balance; }
.hs-prose > h3 { margin-top: 1.8em; font-family: var(--hs-h4-font); font-size: var(--hs-h4); line-height: var(--hs-h4-lh); font-weight: var(--hs-h4-weight); letter-spacing: var(--hs-h4-tracking); }
.hs-prose > .hs-prose__lead { font: 300 22px/34px var(--font-sans); color: var(--text-muted); }
.hs-prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 3px; }
.hs-prose a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hs-prose ul, .hs-prose ol { padding-left: 1.4em; }
.hs-prose ul { list-style: "—  "; }
.hs-prose li + li { margin-top: 0.4em; }
.hs-prose li::marker { color: var(--accent-text); font-variant-numeric: tabular-nums lining-nums; }
.hs-prose blockquote { margin: 2em 0; padding: var(--space-6) 0; border-block: var(--stroke-hair) solid var(--line-strong); font: italic 400 28px/1.3 var(--font-display); font-variant-numeric: lining-nums; text-wrap: balance; }
.hs-prose figure { margin: 2em 0; }
.hs-prose figure img { display: block; width: 100%; height: auto; }
.hs-prose figcaption { margin-top: var(--space-3); font: 400 12px/18px var(--font-sans); letter-spacing: 0.02em; color: var(--text-subtle); }
.hs-prose hr { height: 0; margin: 2.4em 0; border: 0; border-top: var(--stroke-hair) solid var(--line); }

/* ── 12. Narrow screens, reduced motion ──────────────────────────────── */
@media (max-width: 900px) {
  .hs-hero__copy, .hs-hero__media, .hs-hero--center .hs-hero__copy, .hs-hero--center .hs-hero__media, .hs-hero--detail .hs-hero__copy, .hs-hero--detail .hs-hero__media { grid-column: 1 / -1; }
  .hs-header__nav { display: none; }
  .hs-header__menu { display: inline-flex; }
  .hs-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-steps { grid-template-columns: 1fr; }
  .hs-step { padding-bottom: var(--space-8); }
  /* callouts leave the image and become a legend under it; a circle detail drops them */
  .hs-callout--placed, .hs-callout--placed.hs-callout--left { position: static; transform: none; display: flex; flex-direction: row; margin-top: var(--space-3); text-align: left; }
  .hs-callout--placed .hs-callout__line { width: var(--space-6); }
  .hs-figure--circle .hs-callout--placed { display: none; }
}
@media (max-width: 640px) {
  .hs-section, .hs-hero { padding: var(--space-16) var(--space-4); }
  .hs-header, .hs-footer { padding-inline: var(--space-4); }
  .hs-header__tools { gap: var(--space-3); }
  .hs-header__tools .hs-btn { display: none; }
  .hs-form { padding: var(--space-6) var(--space-4); }
  .hs-form__row, .hs-footer__top { grid-template-columns: 1fr; }
  .hs-callout__label, .hs-callout__note { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-btn, .hs-btn__arrow, .hs-article__media img, .hs-header__link, .hs-field__control { transition: none; }
  .hs-article:hover .hs-article__media img, .hs-btn:hover .hs-btn__arrow { transform: none; }
}

/* Hospara site layer — direction 01 «Чертёж».
   The design system (tokens + components, bundled before this file) defines the language:
   paper, ink, graphite hairlines, amber light, Jost Light headings, Bad Script margin notes,
   callouts and dimension lines. This file maps the site's page components onto it and uses
   only design-system tokens. */

/* ---------- Base ---------- */
html { background: var(--bg); scroll-padding-top: 96px; scrollbar-color: var(--ink-soft) var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overflow-x: clip; caret-color: var(--accent-text); font-feature-settings: "kern" 1; }
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--selection-bg); color: var(--selection-text); }
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; font-variant-numeric: lining-nums; }
h1 { font: var(--hs-display-weight) clamp(calc(var(--hs-h1) * .56), 6.2vw, var(--hs-h1))/var(--hs-h1-lh) var(--hs-display-font); letter-spacing: var(--hs-display-tracking); }
h2 { font: var(--hs-display-weight) clamp(calc(var(--hs-h2) * .62), 4.4vw, var(--hs-h2))/var(--hs-h2-lh) var(--hs-display-font); letter-spacing: var(--hs-display-tracking); }
h3 { font: var(--hs-h4-weight) var(--hs-h4)/var(--hs-h4-lh) var(--hs-h4-font); letter-spacing: var(--hs-h4-tracking); }
h4 { font: 500 17px/24px var(--font-sans); }
h1 em, h2 em { position: relative; display: var(--hs-em-display); font-style: normal; }
h1 em::after, h2 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .14em; border: solid var(--line-strong); border-width: 0 var(--stroke-hair) var(--stroke-hair); }
time, .num { font-variant-numeric: tabular-nums lining-nums; }
abbr[title] { text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; cursor: help; }
strong { font-weight: 500; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--sheet-margin)); margin-inline: auto; padding-inline: var(--sheet-margin); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-3) var(--space-4); background: var(--action); color: var(--on-action); font: 500 13px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.skip:focus { top: var(--space-3); }
.muted { color: var(--text-subtle); }
.small { font-size: 14px; line-height: 22px; }
.mt-sm { margin-top: var(--space-4); }
.mt-md { margin-top: var(--space-6); }
.mt-lg { margin-top: var(--space-8); }
.mt-xl { margin-top: var(--space-12); }
.hs-note { display: inline-block; color: var(--accent-text); }

/* ---------- Buttons and links ---------- */
.hs-btn .hs-icon:last-child:not(:first-child) { transition: transform var(--hs-dur-ui) var(--hs-ease); }
.hs-btn:hover .hs-icon:last-child:not(:first-child) { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--accent-text); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 4px; text-decoration-color: var(--line-strong);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .hs-icon { width: 16px; height: 16px; transition: transform var(--hs-dur-ui) var(--hs-ease); }
.link-arrow:hover .hs-icon { transform: translateX(3px); }

/* ---------- Status tags ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--space-2);
  border: var(--stroke-hair) solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  font: 500 11px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--success); }
.status-early::before { background: var(--accent); box-shadow: 0 0 0 var(--stroke-hair) var(--text); }
.status-pilot::before { background: transparent; box-shadow: inset 0 0 0 var(--stroke-hair) var(--text-muted); }
.status-dev::before { background: var(--ink-soft); }
.status.software-plan::before { background: transparent; box-shadow: inset 0 0 0 var(--stroke-hair) var(--ink-faint); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); }
.site-header__logo { display: inline-flex; padding-block: var(--space-1); color: var(--text); }
.site-header .hs-header__nav { gap: var(--space-6); }
.hs-lang a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-1); border-bottom: var(--stroke-hair) solid transparent; color: var(--text-subtle); text-decoration: none; }
.hs-lang a:hover { color: var(--text); }
.hs-lang a[aria-current="true"] { color: var(--text); border-color: var(--text); }
.hs-lang a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-2); cursor: pointer; font: 500 13px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .i-close, .nav-mobile .t-close { display: none; }
.nav-mobile[open] .i-open, .nav-mobile[open] .t-open { display: none; }
.nav-mobile[open] .i-close, .nav-mobile[open] .t-close { display: inline; }
.menu-panel { position: absolute; inset: 100% 0 auto 0; padding: var(--space-2) var(--space-4) var(--space-6); background: var(--surface); border-bottom: var(--stroke-hair) solid var(--line-strong); box-shadow: var(--shadow-sheet); max-height: calc(100svh - 72px); overflow-y: auto; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: var(--stroke-hair) solid var(--line); font: 300 26px/1.2 var(--font-sans); letter-spacing: -.012em; text-decoration: none; }
.menu-panel li a[aria-current="page"] { color: var(--accent-text); }
.menu-actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.menu-actions .hs-btn, .hs-header__tools .menu-actions .hs-btn { display: inline-flex; width: 100%; }   /* the header's small-screen rule hides header buttons; not these */
.menu-actions .hs-lang { justify-content: center; }
@media (max-width: 900px) {
  .site-header nav[aria-label] > .hs-header__nav { display: none; }
  .nav-mobile { display: block; }
  .hs-header__tools > .hs-lang { display: none; }
}

/* ---------- Footer ---------- */
.site-footer .hs-footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); }
.site-footer .hs-footer__bottom a { color: inherit; }
@media (max-width: 1100px) { .site-footer .hs-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer .hs-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .site-footer .hs-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .hs-footer__link { display: inline-block; padding-block: 8px; } }

/* ---------- Hero (design-system Hero, split + grid) ---------- */
.hs-hero { padding-block: var(--space-16) var(--space-24); }
.hs-hero .hs-hero__copy { gap: var(--space-6); }
.hs-hero .hs-lead { max-width: 32em; }
.hs-hero--text .hs-hero__copy { grid-column: 1 / span 9; }
.hs-hero .hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font: 400 14px/22px var(--font-sans); color: var(--text-subtle); }
.hs-hero .breadcrumbs { margin-bottom: calc(var(--space-2) * -1); }
.hs-hero__media .dr { margin-bottom: var(--space-6); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); margin: 0; padding: 0; list-style: none; font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--space-3); }
.breadcrumbs li + li::before { content: ""; width: var(--space-6); height: var(--stroke-hair); background: var(--line-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.reading-meta { padding-top: var(--space-4); border-top: var(--stroke-hair) solid var(--line); font: 400 14px/22px var(--font-sans); color: var(--text-subtle); max-width: 44em; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-24); background: var(--bg); }
.section--stone, .section--green { background: var(--bg-sunken); }
.section--tight { padding-block: var(--space-16); }
.section:not(.section--stone):not(.section--green) + .section:not(.section--stone):not(.section--green),
.section--stone + .section--stone { padding-top: 0; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 46em; margin-bottom: var(--space-12); }
.section-head > p:not(.hs-eyebrow) { max-width: 34em; font: 300 20px/31px var(--font-sans); color: var(--text-muted); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--space-6) var(--space-12); max-width: none; }
.section-head--split > .hs-eyebrow { grid-column: 1 / -1; }
.section-head--split > p:not(.hs-eyebrow) { padding-top: var(--space-4); border-top: var(--stroke-hair) solid var(--line-strong); font: 400 16px/26px var(--font-sans); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12) var(--space-16); align-items: start; }
.split--center { align-items: center; }
.split .sticky { position: sticky; top: 112px; }
.split-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.split-intro > p:not(.hs-eyebrow) { color: var(--text-muted); max-width: 30em; }

/* ---------- Facts strip: a dimension chain ---------- */
.facts-strip { background: var(--bg); padding-bottom: var(--space-4); }
.facts-strip ul { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts-strip ul::after { content: ""; position: absolute; right: 0; top: 0; width: 15px; height: var(--stroke-hair); background: var(--text); transform: translate(50%, -50%) rotate(-45deg); }
.facts-strip li { position: relative; padding: var(--space-4) var(--space-6) 0 0; border-top: var(--stroke-hair) solid var(--line-strong); font: 500 13px/18px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.facts-strip li::before { content: ""; position: absolute; left: 0; top: -9px; width: var(--stroke-hair); height: 17px; background: var(--line-strong); }
.facts-strip li::after { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: var(--stroke-hair); background: var(--text); transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Cards: ruled grid, contact options, doors ---------- */
.ruled-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: var(--gutter); margin: 0; padding: 0; list-style: none; }
.ruled-grid > li, .ruled-grid > div, .contact-options > section, .door, .note {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0;
  padding: var(--space-8); border: var(--stroke-hair) solid var(--line); background: var(--surface);
}
.ruled-grid > li::before, .ruled-grid > li::after, .contact-options > section::before, .contact-options > section::after,
.door::before, .door::after, .note::before, .note::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  background: linear-gradient(var(--text), var(--text)) center / 100% var(--stroke-hair) no-repeat, linear-gradient(var(--text), var(--text)) center / var(--stroke-hair) 100% no-repeat;
}
.ruled-grid > li::before, .contact-options > section::before, .door::before, .note::before { left: -7px; top: -7px; }
.ruled-grid > li::after, .contact-options > section::after, .door::after, .note::after { right: -7px; bottom: -7px; }
.ruled-grid p, .contact-options p { color: var(--text-muted); }
.ruled-grid p + p { margin-top: var(--space-1); }
.note { gap: var(--space-2); color: var(--text-muted); }
.note strong:first-child { color: var(--text); }

/* Ruled list: heading left, text right */
.ruled-list { margin: 0; padding: 0; list-style: none; border-bottom: var(--stroke-hair) solid var(--line); }
.ruled-list > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2) var(--space-12); padding-block: var(--space-6); border-top: var(--stroke-hair) solid var(--line); }
.ruled-list p { color: var(--text-muted); }
.ruled-list p + p, .ruled-list p + ul { margin-top: var(--space-2); }

/* Tick list */
.ticks { margin: 0; padding: 0; list-style: none; border-top: var(--stroke-hair) solid var(--line); }
.ticks li { position: relative; padding: var(--space-4) 0 var(--space-4) 32px; border-bottom: var(--stroke-hair) solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(var(--space-4) + 4px); width: 18px; height: 18px; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Steps: the design-system dimension chain */
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps::before { content: ""; position: absolute; right: 0; top: -8px; width: var(--stroke-hair); height: 17px; background: var(--line-strong); }
.steps::after { content: ""; position: absolute; right: 0; top: 0; width: 15px; height: var(--stroke-hair); background: var(--text); transform: translate(50%, -50%) rotate(-45deg); }
.steps > li { counter-increment: step; position: relative; padding: var(--space-8) var(--space-6) 0 0; border-top: var(--stroke-hair) solid var(--line-strong); }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--space-3); font: 500 13px/16px var(--font-sans); letter-spacing: .06em; font-variant-numeric: tabular-nums lining-nums; color: var(--accent-text); }
.steps > li::after { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: var(--stroke-hair); background: var(--text); transform: translate(-50%, -50%) rotate(-45deg); }
.steps > li > h3 { margin-bottom: var(--space-2); }
.steps p { font: 400 15px/24px var(--font-sans); color: var(--text-muted); }

/* Glance: definition rows */
.glance { margin: 0; border-top: var(--stroke-hair) solid var(--line-strong); }
.glance > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-2) var(--space-12); padding-block: var(--space-4); border-bottom: var(--stroke-hair) solid var(--line); }
.glance dt { padding-top: 4px; font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.glance dd { margin: 0; color: var(--text); }

/* Data tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.data-table caption { text-align: left; padding-bottom: var(--space-3); color: var(--text-subtle); font-size: 14px; }
.data-table thead th { padding: 0 var(--space-4) var(--space-3) 0; border-bottom: var(--stroke-hair) solid var(--line-strong); font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); text-align: left; vertical-align: bottom; }
.data-table tbody th, .data-table tbody td { padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: var(--stroke-hair) solid var(--line); text-align: left; vertical-align: top; }
.data-table tbody th { font-weight: 500; }
.data-table td:last-child, .data-table th:last-child { padding-right: 0; }
.data-table .n { text-align: right; white-space: nowrap; }
.data-table .big { display: block; font: 300 34px/1.1 var(--font-sans); letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.data-table a { color: var(--accent-text); }
.reading-label { display: block; margin-top: var(--space-2); font: 500 14px/20px var(--font-sans); color: var(--text-muted); max-width: 18em; }
.reading-figures tbody th { width: 27%; }
.reading-figures tbody td:last-child { width: 27%; }
.reading-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
@media (max-width: 760px) {
  .data-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table--stack tr { display: block; padding-block: var(--space-4); border-bottom: var(--stroke-hair) solid var(--line); }
  .data-table--stack tbody th, .data-table--stack tbody td { display: block; width: auto !important; padding: 0; border: 0; text-align: left; }
  .data-table--stack tbody td { margin-top: var(--space-2); }
  .data-table--stack td[data-label]::before { content: attr(data-label); display: block; font: 500 11px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 2px; }
}

/* ---------- Figures: design-system Stat with a dimension line on top ---------- */
.figures, .proof { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--space-12) var(--gutter); margin: 0; }
.figure { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.figure dd { margin: 0; }
/* the figure's name sits on a dimension line: end bars, slanted ticks, line either side of the words */
.figure dt, .proof .p-label {
  order: -2; display: flex; align-items: center; gap: var(--space-3); height: 17px;
  padding-inline: 2px; border-inline: var(--stroke-hair) solid var(--line-strong);
  background:
    linear-gradient(135deg, transparent 46%, var(--text) 46% 54%, transparent 54%) left center / 13px 13px no-repeat,
    linear-gradient(135deg, transparent 46%, var(--text) 46% 54%, transparent 54%) right center / 13px 13px no-repeat;
  font: 500 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}
.figure dt::before, .figure dt::after, .proof .p-label::before, .proof .p-label::after { content: ""; flex: 1; min-width: var(--space-3); height: var(--stroke-hair); background: var(--line-strong); }
.figure dt abbr, .proof .p-label abbr { text-decoration: none; }
.fig-num, .proof .p-num { order: -1; margin: 0; font: 300 clamp(44px, 5vw, 64px)/1 var(--font-sans); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; color: var(--text); }
.fig-market, .proof .p-market { display: flex; align-items: baseline; gap: var(--space-3); font: 400 14px/22px var(--font-sans); color: var(--text-muted); }
.fig-market-label { font: 500 11px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.fig-market-num { font: 300 24px/1 var(--font-sans); color: var(--text); font-variant-numeric: tabular-nums; }
.proof > div { display: flex; flex-direction: column; gap: var(--space-4); }
.proof .p-num { display: block; }
.proof .p-note { color: var(--text-muted); font-size: 14px; line-height: 22px; align-self: end; }
.results-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6) var(--space-12); align-items: end; margin-top: var(--space-12); padding-top: var(--space-6); border-top: var(--stroke-hair) solid var(--line); }
.caveat { color: var(--text); }
.glossary-line { margin-top: var(--space-2); font-size: 14px; line-height: 22px; color: var(--text-muted); }
.glossary-line abbr { text-decoration: none; font-weight: 500; color: var(--text); }
.software-note { max-width: 820px; }

/* ---------- Q&A, FAQ ---------- */
.qa { margin: 0; padding: 0; list-style: none; border-bottom: var(--stroke-hair) solid var(--line); }
.qa > li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2) var(--space-12); padding-block: var(--space-4); border-top: var(--stroke-hair) solid var(--line); align-items: baseline; }
.qa .q { color: var(--text-muted); }
.qa .a { font: 300 24px/1.25 var(--font-sans); letter-spacing: -.012em; color: var(--text); }
.faq { border-top: var(--stroke-hair) solid var(--line-strong); }
.faq-group-title { margin-bottom: var(--space-4); font: 300 34px/1.15 var(--font-sans); letter-spacing: -.012em; }
.faq + .faq-group-title { margin-top: var(--space-16); }
.faq details { border-bottom: var(--stroke-hair) solid var(--line); }
.faq summary { position: relative; display: block; min-height: 64px; padding: var(--space-4) var(--space-12) var(--space-4) 0; cursor: pointer; list-style: none; font: 400 20px/28px var(--font-sans); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: calc(var(--space-4) + 4px); width: 20px; height: 20px; background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--hs-dur-ui) var(--hs-ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { padding: 0 var(--space-12) var(--space-6) 0; color: var(--text-muted); max-width: 46em; }
.faq .answer p + p { margin-top: var(--space-2); }
.faq .answer a { color: var(--accent-text); }

/* ---------- Link rows ---------- */
.link-rows { margin: 0; padding: 0; list-style: none; border-top: var(--stroke-hair) solid var(--line-strong); }
.link-rows > li { border-bottom: var(--stroke-hair) solid var(--line); }
.link-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 24px; gap: var(--space-2) var(--space-12); align-items: baseline; padding-block: var(--space-6); text-decoration: none; color: var(--text); }
.link-row h3, .link-row h4 { font: 400 22px/1.3 var(--font-sans); letter-spacing: -.005em; }
.link-row .meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.link-row p { color: var(--text-muted); }
.link-row > .hs-icon { align-self: center; color: var(--text); transition: transform var(--hs-dur-ui) var(--hs-ease); }
.link-row:hover h3, .link-row:hover h4 { text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 4px; }
.link-row:hover > .hs-icon { transform: translateX(3px); }
.link-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.link-group-title { margin: var(--space-16) 0 var(--space-4); font: 300 34px/1.15 var(--font-sans); letter-spacing: -.012em; }
.link-group-title:first-child { margin-top: 0; }

/* ---------- Tiles: article cards with a drawing ---------- */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--space-12) var(--gutter); margin: 0; padding: 0; list-style: none; }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.tile .dr { margin-bottom: var(--space-2); }
.tile a { text-decoration: none; color: var(--text); }
.tile a::after { content: ""; position: absolute; inset: 0; }
.tile h3 { font: 400 22px/1.3 var(--font-sans); }
.tile p { color: var(--text-muted); font-size: 15px; line-height: 24px; }
.tile .count { font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 4px; }
.tile:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 6px; }
.tile a:focus-visible { outline: none; }

/* ---------- Long-form reading ---------- */
.article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--space-12) var(--space-16); align-items: start; }
.article--solo { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); }
.toc { position: sticky; top: 112px; }
.toc h2 { margin-bottom: var(--space-3); font: 500 12px/16px var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text-subtle); }
.toc ol { margin: 0; padding: 0; list-style: none; border-top: var(--stroke-hair) solid var(--line-strong); }
.toc li a { display: block; padding-block: 10px; border-bottom: var(--stroke-hair) solid var(--line); color: var(--text-muted); text-decoration: none; font-size: 15px; line-height: 22px; }
.toc li a:hover { color: var(--text); }
.toc .reading-az { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.toc .reading-az li a { display: grid; place-items: center; min-height: 44px; padding: 0; font: 300 20px/1 var(--font-sans); color: var(--text); }
.toc .reading-az li:not(:nth-child(5n)) a { border-right: var(--stroke-hair) solid var(--line); }
.toc .reading-az li a:hover { background: var(--surface); }
.prose { max-width: var(--measure); font: 400 18px/29px var(--font-sans); color: var(--text); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font: 400 34px/1.15 var(--font-sans); letter-spacing: -.012em; scroll-margin-top: 112px; }
.prose h3 { margin-top: 1.8em; font: 500 22px/1.3 var(--font-sans); }
.prose h4 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: "—  "; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent-text); font-variant-numeric: tabular-nums lining-nums; }
.prose blockquote { margin: 2em 0; padding: var(--space-6) 0; border-block: var(--stroke-hair) solid var(--line-strong); font: italic 400 28px/1.3 var(--font-display); text-wrap: balance; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: var(--stroke-hair) solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { border-bottom-color: var(--line-strong); font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.prose hr { height: 0; margin: 2.4em 0; border: 0; border-top: var(--stroke-hair) solid var(--line); }
.prose .note { margin-top: 1.6em; font-size: 16px; line-height: 26px; }
.prose dl > div { padding-block: var(--space-4); border-bottom: var(--stroke-hair) solid var(--line); }
.prose dl > div:first-child { border-top: var(--stroke-hair) solid var(--line-strong); }
.prose dt { font: 400 22px/1.3 var(--font-sans); color: var(--text); scroll-margin-top: 112px; }
.prose dd { margin: var(--space-2) 0 0; color: var(--text-muted); }
.reading-letter { margin-top: var(--space-12); font: 300 52px/1 var(--font-sans) !important; color: var(--accent-text); }
.reading-anchor { scroll-margin-top: 112px; }

/* ---------- Contact ---------- */
.contact-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.contact-options h2 { font: 400 22px/1.3 var(--font-sans); }
.contact-options .include { margin: var(--space-2) 0 var(--space-4); padding: 0; list-style: none; border-top: var(--stroke-hair) solid var(--line); }
.contact-options .include li { padding-block: var(--space-2); border-bottom: var(--stroke-hair) solid var(--line); font-size: 15px; color: var(--text-muted); }
.contact-options .hs-btn { margin-top: auto; align-self: flex-start; }
.email-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-6); font: 300 clamp(30px, 4vw, 52px)/1.1 var(--font-sans); letter-spacing: -.02em; }
.email-line a { text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 8px; text-decoration-color: var(--line-strong); }
.copy-btn[data-copied] { background: var(--action); color: var(--on-action); border-color: var(--action); }

/* ---------- Closing sheet: copy + a drawing ---------- */
.closing-sheet { background: var(--bg); padding-block: var(--space-24); border-top: var(--stroke-hair) solid var(--line); }
.closing-sheet__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-12) var(--space-16); align-items: center; }
.closing-sheet__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.closing-sheet__copy > p:not(.hs-eyebrow) { max-width: 30em; font: 300 20px/31px var(--font-sans); color: var(--text-muted); }
.closing-sheet--plain .closing-sheet__grid { grid-template-columns: minmax(0, 1fr); max-width: 52em; }
.closing-sheet__form { align-self: start; }

/* ---------- Home: doors, zones, team ---------- */
.doors { padding-block: var(--space-24); }
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.door { gap: var(--space-4); }
.door h3 { font: 400 26px/1.25 var(--font-sans); letter-spacing: -.01em; }
.door-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-3); border-block: var(--stroke-hair) solid var(--line); }
.door-product { font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.door-body { color: var(--text-muted); }
.terms { margin: 0; padding: 0; list-style: none; }
.terms li { position: relative; padding: var(--space-2) 0 var(--space-2) 24px; border-bottom: var(--stroke-hair) solid var(--line); font-size: 15px; line-height: 22px; }
.terms li::before { content: ""; position: absolute; left: 2px; top: calc(var(--space-2) + 7px); width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--accent); box-shadow: 0 0 0 var(--stroke-hair) var(--text); }
.door-cta { margin-top: auto; align-self: flex-start; }
.door-note { font-size: 14px; line-height: 22px; color: var(--text-subtle); }
.door-note .link-arrow { font-size: 14px; }
.results { background: var(--bg-sunken); padding-block: var(--space-24); }
.results-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) var(--space-12); align-items: end; margin-bottom: var(--space-16); }
.results-head > .hs-eyebrow { grid-column: 1 / -1; }
.results-context { padding-top: var(--space-4); border-top: var(--stroke-hair) solid var(--line-strong); color: var(--text-muted); font-size: 15px; line-height: 24px; }
.results-context time { color: var(--text); font-weight: 500; }
.principles { padding-block: var(--space-24); }
.principles-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12) var(--space-16); align-items: center; }
.rules { margin: var(--space-8) 0 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 var(--space-4); padding-block: var(--space-6); border-top: var(--stroke-hair) solid var(--line); }
.rules li:last-child { border-bottom: var(--stroke-hair) solid var(--line); }
.rules li::before { content: counter(rule, decimal-leading-zero); grid-row: span 2; padding-top: 5px; font: 500 13px/16px var(--font-sans); letter-spacing: .06em; color: var(--accent-text); }
.rules h3 { margin-bottom: var(--space-1); }
.rules p { color: var(--text-muted); max-width: 46ch; }
.zones-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.zones-table thead th { padding: 0 0 var(--space-3); border-bottom: var(--stroke-hair) solid var(--line-strong); font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); text-align: left; }
.zones-table thead th:last-child { text-align: right; }
.zones-table tbody tr { position: relative; }
.zones-table tbody th, .zones-table tbody td { padding-block: var(--space-4); border-bottom: var(--stroke-hair) solid var(--line); vertical-align: baseline; }
.zones-table tbody th { text-align: left; font: 300 24px/1.25 var(--font-sans); letter-spacing: -.01em; padding-right: var(--space-4); }
.zones-table tbody th a { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); }
.zones-table tbody th a::after { content: ""; position: absolute; inset: 0; }
.zones-table tbody th a .hs-icon { color: var(--accent-text); }
.zones-table tbody tr:hover th a { text-decoration: underline; text-decoration-thickness: var(--stroke-hair); text-underline-offset: 5px; }
.zones-table tbody tr:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.zones-table tbody th a:focus-visible { outline: none; }
.zones-table td { text-align: right; font: 300 24px/1.25 var(--font-sans); white-space: nowrap; }
.zone-note { display: block; margin-top: 2px; font: 400 14px/20px var(--font-sans); color: var(--text-subtle); letter-spacing: 0; }
.zones-table tfoot th, .zones-table tfoot td { padding-top: var(--space-4); vertical-align: baseline; }
.zones-table tfoot th { text-align: left; font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.zones-table tfoot td { text-align: right; font: 300 52px/1 var(--font-sans); letter-spacing: -.03em; color: var(--text); }
.team-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6) var(--space-16); align-items: end; margin-bottom: var(--space-12); }
.team-head > .hs-eyebrow { grid-column: 1 / -1; }
.team-head p:not(.hs-eyebrow) { color: var(--text-muted); max-width: 36em; font: 300 20px/31px var(--font-sans); }
.people { margin: 0; padding: 0; list-style: none; border-bottom: var(--stroke-hair) solid var(--line); }
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-4) var(--space-16); align-items: center; padding-block: var(--space-6); border-top: var(--stroke-hair) solid var(--line); }
.plate { display: flex; align-items: center; gap: var(--space-4); }
.plate-initials { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border: var(--stroke-hair) solid var(--line-strong); border-radius: var(--radius-none); font: 300 22px/1 var(--font-sans); letter-spacing: .08em; color: var(--text); background: var(--surface); }
.person h3 { font: 400 22px/1.3 var(--font-sans); }
.role { margin-top: 2px; font: 500 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-subtle); }
.person p.bio { color: var(--text-muted); max-width: 36em; }
.team-link { margin-top: var(--space-8); }

/* ---------- Lead form ---------- */
.leadform__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.leadform { position: relative; }
.leadform__status { padding: var(--space-4); background: var(--success-bg); color: var(--success); }
.leadform__status[data-state="error"] { background: var(--danger-bg); color: var(--danger); }
.leadform__status a { color: inherit; }
.leadform .hs-field__error { margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hs-hero--text .hs-hero__copy { grid-column: 1 / -1; }
  .section-head--split, .split, .ruled-list > li, .qa > li, .article, .contact-options, .closing-sheet__grid,
  .results-head, .principles-grid, .team-head, .person { grid-template-columns: minmax(0, 1fr); }
  .split .sticky, .toc { position: static; }
  .ruled-grid { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
  .door-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps > li { padding-bottom: var(--space-8); }
  .figures, .proof { grid-template-columns: minmax(0, 1fr); }
  .results-foot { grid-template-columns: minmax(0, 1fr); }
  .glance > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .link-row { grid-template-columns: minmax(0, 1fr) 24px; }
  .link-row > p { grid-column: 1 / 2; }
  .facts-strip ul { grid-template-columns: minmax(0, 1fr); }
  .facts-strip li { padding-bottom: var(--space-4); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: var(--space-4); }
  .section, .doors, .results, .principles, .closing-sheet { padding-block: var(--space-16); }
  .hs-hero { padding-block: var(--space-12) var(--space-16); }
  .ruled-grid, .tiles { grid-template-columns: minmax(0, 1fr); }
  .actions .hs-btn, .hs-hero__actions .hs-btn--primary { width: 100%; }
  .faq .answer { padding-right: 0; }
  .zones-table tbody th, .zones-table td { font-size: 20px; }
}

/* Door cards: icon and index, as the design-system ServiceCard */
.door-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); }
.card-index { font: 500 13px/16px var(--font-sans); letter-spacing: .06em; font-variant-numeric: tabular-nums lining-nums; color: var(--accent-text); }
.nav-mobile:not([open]) .menu-panel { display: none; }
@media (max-width: 640px) {
  .hs-btn { white-space: normal; text-align: center; padding-block: var(--space-3); line-height: 18px; }
  .door-cta, .contact-options .hs-btn { width: 100%; }
}

/* Form result after a no-JS submit (/contact#sent or #not-sent) */
.form-note { display: none; padding: var(--space-4); font-size: 15px; line-height: 24px; }
.form-note:target { display: block; }
.form-note--ok { background: var(--success-bg); color: var(--success); }
.form-note--err { background: var(--danger-bg); color: var(--danger); }
.form-note a { color: inherit; }
@media (max-width: 640px) {
  .figure dt, .proof .p-label { height: auto; min-height: 17px; white-space: normal; text-align: center; line-height: 16px; }
}

/* Phones: headline and action first; the drawing follows straight after and starts inside the first screen */
@media (max-width: 900px) {
  .hs-hero__media .dr { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .hs-hero { padding-top: var(--space-8); }
  .hs-hero .hs-hero__copy { gap: var(--space-4); }
}

/* Russian headlines run about a third longer: a smaller display size keeps the hero to four lines
   and the next section in view (design system: «следующая секция видна без прокрутки») */
html[lang="ru"] h1 { font-size: clamp(calc(var(--hs-h1) * .5), 4.9vw, calc(var(--hs-h1) * .82)); }


/* closed FAQ answers take no layout room (Chrome lays out closed <details> content) */
.faq details:not([open]) > :not(summary) { display: none; }

.figure dt .dt-text, .proof .p-label .dt-text { flex: none; max-width: 100%; }
@media (max-width: 640px) { .figure dt .dt-text, .proof .p-label .dt-text { flex: 0 1 auto; } }

/* ---------- Light / dark toggle (header and mobile menu) ---------- */
.mode-toggle { appearance: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--text-subtle); cursor: pointer; }
.mode-toggle:hover { color: var(--text); }
.mode-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mode-toggle .i-sun { display: none; }
.mode-toggle[aria-pressed="true"] .i-sun { display: block; }
.mode-toggle[aria-pressed="true"] .i-moon { display: none; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
@media (max-width: 900px) { .hs-header__tools > .mode-toggle { display: none; } }

/* ---------- Chinese: Jost sets the Latin and the figures; Chinese falls back to the system's Hei fonts,
   the hand notes to a Kai (brush) face, and uppercase tracking is relaxed for Chinese labels ---------- */
html[lang^="zh"] {
  --font-sans: Jost, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-hand: "Bad Script", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", cursive;
}
html[lang^="zh"] body { line-break: strict; }
html[lang^="zh"] .hs-eyebrow, html[lang^="zh"] .hs-btn, html[lang^="zh"] .hs-callout__label, html[lang^="zh"] .hs-dim__label,
html[lang^="zh"] .figure dt, html[lang^="zh"] .breadcrumbs ol { letter-spacing: .06em; }
/* Chinese headlines break at punctuation and at the spaces around Latin words, not inside a word (巴厘|岛);
   a run too long for the line still breaks, anywhere */
@media (min-width: 641px) { html[lang^="zh"] :is(h1, h2, h3, .hs-h1, .hs-h2, .hs-h3) { word-break: keep-all; overflow-wrap: anywhere; } }
/* on phones the lines are too short for whole phrases: ordinary Chinese breaking, which never starts a line with 。，*/
/* Chinese glyphs fill the whole em: more leading for headlines, and a smaller H1 on phones so a line holds a phrase */
html[lang^="zh"] { --hs-h1-lh: 1.2; --hs-h2-lh: 1.24; --hs-h3-lh: 1.3; }
@media (max-width: 640px) { html[lang^="zh"] h1 { font-size: clamp(28px, 8vw, 40px); } }

/* Drawing figure: the photograph develops out of its own pencil drawing, as in the reference films.
   Order (design system, «Движение»): construction lines and callouts, the pencil drawing drawing itself
   (hero only, on a canvas), then the photograph develops, then a slow camera push-in.
   Without JS, or with reduced motion, the figure shows its final state at once. */

@property --dr-dev {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}

.dr { position: relative; display: block; margin: 0; container-type: inline-size; --dr-dev: 100%; }
.dr__media { position: relative; aspect-ratio: var(--dr-ratio, 4 / 3); overflow: hidden; }
.dr__media img, .dr__media canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--dr-pos, 50% 50%);
  transform-origin: var(--dr-pos, 50% 50%);
}
/* the drawing sits on the paper and fades out towards the edges of the sheet (a feathered rectangle, not an oval) */
.dr__sketch, .dr__canvas, .dr__vsk {
  mix-blend-mode: var(--sketch-blend); filter: var(--sketch-filter);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.dr__canvas { pointer-events: none; }
/* the photograph: a feathered sheet that grows from the centre and leaves the drawing at the edges */
.dr__photo {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 27%, #000 73%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 27%, #000 73%, transparent), linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-size: calc(var(--dr-dev) * .96) calc(var(--dr-dev) * .96); mask-size: calc(var(--dr-dev) * .96) calc(var(--dr-dev) * .96);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* films (tools/media.py): the pencil film over the paper, the film over the photograph. The stills stay for the
   canvas and for screen readers; the films show their first frames as posters until they play. */
.dr__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--dr-pos, 50% 50%); }
.dr--film img.dr__sketch, .dr--film img.dr__photo { opacity: 0 !important; }
/* plain: a photograph without the drawing */
.dr--plain .dr__sketch { display: none; }
.dr--plain .dr__photo { -webkit-mask-image: none; mask-image: none; }

.dr__dim { margin-top: var(--space-3); }
.dr .hs-callout--placed { z-index: 3; }

/* construction lines: the photo's own long straight lines, extended past the object (tools/construct.py) */
.dr__construct {
  position: absolute; z-index: 1; pointer-events: none; overflow: visible;
  left: calc(var(--mx) * -1cqw); top: calc(var(--my) * -1cqw);
  width: calc(100cqw + var(--mx) * 2cqw); height: calc(100cqw * var(--dr-hw, .75) + var(--my) * 2cqw);
}
.dr__construct line { stroke: var(--ink); stroke-width: .9px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .85; }

/* Tiles: the photograph develops further when the card is hovered or focused */
.tile .dr__photo { transition: --dr-dev 900ms var(--hs-ease); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* lines first: construction lines, callout leaders and the dimension draw; the words are readable from the first frame */
  .js [data-dr] .hs-callout__line { transform: scaleX(0); transform-origin: left center; }
  .js [data-dr] .hs-callout--left .hs-callout__line { transform-origin: right center; }
  .js [data-dr].is-lined .hs-callout__line { transform: none; transition: transform 700ms var(--hs-ease); }
  .js [data-dr].is-lined .hs-callout:nth-of-type(2) .hs-callout__line { transition-delay: 120ms; }
  .js [data-dr].is-lined .hs-callout:nth-of-type(3) .hs-callout__line { transition-delay: 240ms; }
  .js [data-dr].is-lined .hs-callout:nth-of-type(4) .hs-callout__line { transition-delay: 360ms; }
  .js [data-dr] .dr__dim .hs-dim__line { transform: scaleX(0); }
  .js [data-dr].is-lined .dr__dim .hs-dim__line { transform: none; transition: transform 700ms var(--hs-ease) 150ms; }
  .js [data-dr] .dr__construct line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js [data-dr].is-lined .dr__construct line { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms cubic-bezier(.65, 0, .35, 1) calc(var(--i, 0) * 90ms); }

  /* then the photograph develops out of the drawing */
  .js [data-dr] { --dr-dev: 34%; }
  .js [data-dr] .dr__photo { opacity: 0; }
  .js [data-dr].is-drawn { --dr-dev: 100%; transition: --dr-dev 1700ms var(--hs-ease) 300ms; }
  .js [data-dr].is-drawn .dr__photo { opacity: 1; transition: opacity 1100ms var(--hs-ease) 300ms; }
  .js [data-dr-hero].is-drawn, .js [data-dr-hero].is-drawn .dr__photo { transition-delay: 0ms; }
  /* hero: while the pencil drawing draws itself on the canvas, the finished drawing waits underneath */
  .js [data-dr].is-sketching .dr__sketch, .js [data-dr].is-sketching .dr__vsk { visibility: hidden; }
  /* a film's construction lines were found on its first frame: they give way once the camera moves */
  .js .dr--film.is-playing .dr__construct { opacity: .2; transition: opacity 2.4s var(--hs-ease); }

  /* the camera moves in slowly, like the reference films (no faster than 8 s a cycle) */
  .hs-hero__media .dr.is-settled .dr__media img { animation: dr-push 14s ease-in-out infinite alternate; }
  /* the construction lines move with the photograph: same scale, same origin */
  .hs-hero__media .dr.is-settled .dr__construct {
    transform-origin: calc((var(--mx) + var(--px, .5) * 100) * 1cqw) calc((var(--my) + var(--py, .5) * 100 * var(--dr-hw, .75)) * 1cqw);
    animation: dr-push 14s ease-in-out infinite alternate;
  }

  /* tiles: drawing first, photograph on hover */
  .js .tile [data-dr].is-drawn { --dr-dev: 46%; }
  .js .tile:hover [data-dr].is-drawn, .js .tile:focus-within [data-dr].is-drawn { --dr-dev: 100%; transition-delay: 0ms; }
}
@keyframes dr-push { from { transform: scale(1); } to { transform: scale(1.1); } }

@media (max-width: 900px) {
  /* callouts leave the image and become a legend under it (design system rule) */
  .dr .hs-callout--placed, .dr .hs-callout--placed.hs-callout--left { position: static; transform: none; display: flex; flex-direction: row; margin-top: var(--space-3); text-align: left; }
  .dr .hs-callout--placed .hs-callout__line { width: var(--space-6); }
  .js [data-dr] .hs-callout--left .hs-callout__line { transform-origin: left center; }
}

/* Variant «scroll» (python3 tools/build.py --variant scroll -> public-scroll/).
   Larger pictures with the draughtsman's marks around them (tools/build.py, ornaments()), and every drawing
   follows the scroll: site.js sets --dr-l (lines), --dr-s (pencil drawing), --dr-d (photograph develops)
   and --dr-z (the figure's way through the screen), each 0 → 1. */

main { overflow-x: clip; }

/* ---------- larger pictures ---------- */
@media (min-width: 901px) {
  /* air between the menu and the first screen, so the picture stays in view while it develops */
  .hs-hero { padding-top: calc(var(--space-16) + 72px); }
  /* hero: copy on 5 columns, the drawing on the other 6 (about 1.5 × the main build's figure) */
  .hs-hero--grid:not(.hs-hero--text) .hs-hero__copy { grid-column: 1 / span 5; }
  .hs-hero--grid:not(.hs-hero--text) .hs-hero__media { grid-column: 6 / span 6; }
  .hs-hero__media .dr { width: 86%; }
  .hs-hero--grid:not(.hs-hero--text) h1 { font-size: clamp(calc(var(--hs-h1) * .5), 4.5vw, calc(var(--hs-h1) * .84)); }
  html[lang="ru"] .hs-hero--grid:not(.hs-hero--text) h1 { font-size: clamp(calc(var(--hs-h1) * .46), 3.9vw, calc(var(--hs-h1) * .72)); }
  /* the notes beside the hero wrap onto a second line instead of running off the sheet */
  .hs-hero__media .dr .hs-callout__body { flex: none; width: 140px; }
  .hs-hero__media .dr .hs-callout__note { white-space: normal; line-height: 21px; }
  /* sections: the drawing takes the wide column */
  .split:has(> .dr:first-child), .principles-grid { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); }
  .closing-sheet__grid:has(> .dr) { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); }
  .tiles { grid-template-columns: repeat(max(calc(var(--cols, 4) - 1), 2), minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .hs-hero__media .dr { width: 91.5%; } .hs-hero__media .dr .hs-callout__body { width: 150px; } }
@media (min-width: 1280px) { .hs-hero__media .dr { width: 95%; } }
@media (min-width: 1440px) { .hs-hero__media .dr { width: 100%; } .hs-hero__media .dr .hs-callout__body { width: 182px; } }
@media (max-width: 900px) {
  .hs-hero__media .dr { max-width: none; }
  /* a figure that stops being sticky stays the containing block of its marks (else they escape the page's clip) */
  .split .dr.sticky { position: relative; }
}
.dr__canvas[hidden] { display: none; }

/* films: base layers in 30-drawing.css; here they follow the scroll (site.js scrubs them) */

/* ---------- softer edges: the drawing melts into the paper over a wide, eased margin ---------- */
.dr__sketch, .dr__canvas, .dr__vsk {
  -webkit-mask-image:
    linear-gradient(to right, transparent, rgba(0,0,0,.08) 3%, rgba(0,0,0,.3) 7%, rgba(0,0,0,.62) 11.5%, rgba(0,0,0,.88) 15%, #000 18%, #000 82%, rgba(0,0,0,.88) 85%, rgba(0,0,0,.62) 88.5%, rgba(0,0,0,.3) 93%, rgba(0,0,0,.08) 97%, transparent),
    linear-gradient(to bottom, transparent, rgba(0,0,0,.08) 2.5%, rgba(0,0,0,.3) 6%, rgba(0,0,0,.62) 9.5%, rgba(0,0,0,.88) 12.5%, #000 15%, #000 85%, rgba(0,0,0,.88) 87.5%, rgba(0,0,0,.62) 90.5%, rgba(0,0,0,.3) 94%, rgba(0,0,0,.08) 97.5%, transparent);
          mask-image:
    linear-gradient(to right, transparent, rgba(0,0,0,.08) 3%, rgba(0,0,0,.3) 7%, rgba(0,0,0,.62) 11.5%, rgba(0,0,0,.88) 15%, #000 18%, #000 82%, rgba(0,0,0,.88) 85%, rgba(0,0,0,.62) 88.5%, rgba(0,0,0,.3) 93%, rgba(0,0,0,.08) 97%, transparent),
    linear-gradient(to bottom, transparent, rgba(0,0,0,.08) 2.5%, rgba(0,0,0,.3) 6%, rgba(0,0,0,.62) 9.5%, rgba(0,0,0,.88) 12.5%, #000 15%, #000 85%, rgba(0,0,0,.88) 87.5%, rgba(0,0,0,.62) 90.5%, rgba(0,0,0,.3) 94%, rgba(0,0,0,.08) 97.5%, transparent);
}
.dr__photo {
  -webkit-mask-image:
    linear-gradient(to right, transparent, rgba(0,0,0,.15) 7%, rgba(0,0,0,.5) 13%, rgba(0,0,0,.85) 18%, #000 22%, #000 78%, rgba(0,0,0,.85) 82%, rgba(0,0,0,.5) 87%, rgba(0,0,0,.15) 93%, transparent),
    linear-gradient(to bottom, transparent, rgba(0,0,0,.15) 6%, rgba(0,0,0,.5) 11%, rgba(0,0,0,.85) 15%, #000 19%, #000 81%, rgba(0,0,0,.85) 85%, rgba(0,0,0,.5) 89%, rgba(0,0,0,.15) 94%, transparent);
          mask-image:
    linear-gradient(to right, transparent, rgba(0,0,0,.15) 7%, rgba(0,0,0,.5) 13%, rgba(0,0,0,.85) 18%, #000 22%, #000 78%, rgba(0,0,0,.85) 82%, rgba(0,0,0,.5) 87%, rgba(0,0,0,.15) 93%, transparent),
    linear-gradient(to bottom, transparent, rgba(0,0,0,.15) 6%, rgba(0,0,0,.5) 11%, rgba(0,0,0,.85) 15%, #000 19%, #000 81%, rgba(0,0,0,.85) 85%, rgba(0,0,0,.5) 89%, rgba(0,0,0,.15) 94%, transparent);
}

/* ---------- the draughtsman's marks: on the paper, under the picture (first in the figure) ---------- */
.dr__orn {
  position: absolute; pointer-events: none; overflow: hidden;
  left: calc(var(--ml) * -1cqw); top: calc(var(--mt) * -1cqw);
  width: calc((100 + var(--ml) + var(--mr)) * 1cqw); height: calc((100 * var(--dr-hw, .75) + var(--mt) + var(--mb)) * 1cqw);
}
.dr__orn line, .dr__orn path, .dr__orn circle { fill: none; stroke: var(--ink); stroke-width: .13; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.dr__orn .o-faint { stroke: var(--ink-faint); opacity: .75; }
.dr__orn .o-dash { stroke-dasharray: .55 .75; }
.dr__orn .o-dot { fill: var(--ink); stroke: none; }
.dr__orn .o-bubble { stroke: var(--ink-faint); }
.dr__orn .o-letter { fill: var(--ink); stroke: none; font: 500 2.1px var(--font-sans); text-anchor: middle; dominant-baseline: central; letter-spacing: 0; }
.tile .dr__orn { display: none; }
/* the round detail inset: the drawing first, the photograph as it develops */
.dr__inset {
  position: absolute; z-index: 2; pointer-events: none; border-radius: 50%; overflow: hidden;
  left: calc((var(--icx) - var(--ir)) * 1cqw); top: calc((var(--icy) - var(--ir)) * 1cqw);
  width: calc(var(--ir) * 2cqw); aspect-ratio: 1; background: var(--bg);
  box-shadow: 0 0 0 1px var(--ink);
}
.dr__inset-s, .dr__inset-p {
  position: absolute; inset: 0; background-repeat: no-repeat;
  background-size: calc(var(--ibs) * 1cqw) auto; background-position: calc(var(--ibx) * 1cqw) calc(var(--iby) * 1cqw);
}
.dr__inset-s { background-image: var(--isk); mix-blend-mode: var(--sketch-blend); filter: var(--sketch-filter); }
.dr__inset-p { background-image: var(--isrc); }
@media (max-width: 900px) { .dr__inset { display: none; } }
@media (max-width: 640px) {
  .dr__orn { opacity: .75; }
  .dr__orn .o-letter, .dr__orn .o-bubble { display: none; }
}

/* ---------- drawings follow the scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the photograph develops to about 86%: the pencil drawing stays at the edges */
  .js [data-dr].is-scroll { --dr-dev: calc(34% + 52% * var(--dr-d, 0)); transition: none; }
  .js [data-dr].is-scroll .dr__photo { opacity: var(--dr-d, 0); transition: none; }
  .js [data-dr].is-scroll .dr__sketch, .js [data-dr].is-scroll .dr__vsk { opacity: var(--dr-s, 0); }
  .js [data-dr].is-sketching .dr__vsk { visibility: hidden; }
  /* construction lines were found on the first frame: they give way as the camera moves */
  .js .dr--film.is-scroll .dr__construct { opacity: calc(1 - var(--dr-t, 0) * .85); }
  .js [data-dr].is-scroll .hs-callout__line,
  .js [data-dr].is-scroll .dr__dim .hs-dim__line { transform: scaleX(var(--dr-l, 0)); transition: none; }
  .js [data-dr].is-scroll .dr__construct line { stroke-dashoffset: calc(1 - var(--dr-l, 0)); transition: none; }
  /* the marks draw one after another while the pencil drawing appears */
  .js [data-dr].is-scroll .dr__orn [pathLength] { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--dr-s, 0) * 1.7 - var(--i, 0) * .7, 1)); }
  .js [data-dr].is-scroll .dr__orn .o-fade { opacity: clamp(0, var(--dr-s, 0) * 2.2 - var(--i, 0) * 1.2, .9); }
  /* the inset appears with the lines, as a drawing, and develops with the photograph */
  .js [data-dr].is-scroll .dr__inset { opacity: clamp(0, var(--dr-l, 0) * 1.4 - .3, 1); }
  .js [data-dr].is-scroll .dr__inset-p { opacity: var(--dr-d, 0); }

  /* a slight turn in perspective as the figure travels up the screen, with a slow push-in;
     the marks stay flat on the paper, so the picture reads as a layer in front of the sheet */
  .js [data-dr].is-scroll .dr__media img,
  .js [data-dr].is-scroll .dr__media video,
  .js [data-dr].is-scroll .dr__media canvas {
    transform-origin: 50% 50%;
    transform: perspective(1400px) rotateY(calc((.5 - var(--dr-z, .5)) * 11deg)) rotateX(calc((var(--dr-z, .5) - .5) * 3deg))
      translate(calc((var(--px, .5) - .5) * 100%), calc((var(--py, .5) - .5) * 100%))
      scale(calc(1 + .07 * var(--dr-z, 0)))
      translate(calc((var(--px, .5) - .5) * -100%), calc((var(--py, .5) - .5) * -100%));
    animation: none;
  }
  /* the construction lines belong to the building: the same turn about the same point, the same push-in */
  .js [data-dr].is-scroll .dr__construct {
    transform-origin: calc((var(--mx) + 50) * 1cqw) calc((var(--my) + 50 * var(--dr-hw, .75)) * 1cqw);
    transform: perspective(1400px) rotateY(calc((.5 - var(--dr-z, .5)) * 11deg)) rotateX(calc((var(--dr-z, .5) - .5) * 3deg))
      translate(calc((var(--px, .5) - .5) * 100cqw), calc((var(--py, .5) - .5) * 100cqw * var(--dr-hw, .75)))
      scale(calc(1 + .07 * var(--dr-z, 0)))
      translate(calc((var(--px, .5) - .5) * -100cqw), calc((var(--py, .5) - .5) * -100cqw * var(--dr-hw, .75)));
    animation: none;
  }
  /* the marks drift the other way, a little: paper and picture are two planes */
  .js [data-dr].is-scroll .dr__orn { transform: translateY(calc((var(--dr-z, .5) - .5) * -1.6cqw)); }

  /* tiles: drawing first, a glimpse of the photograph, the whole photograph on hover; no turn */
  .js .tile [data-dr].is-scroll { --dr-dev: calc(34% + 12% * var(--dr-d, 0)); transition: --dr-dev 900ms var(--hs-ease); }
  .js .tile:hover [data-dr].is-scroll, .js .tile:focus-within [data-dr].is-scroll { --dr-dev: 100%; }
  .js .tile [data-dr].is-scroll .dr__media img, .js .tile [data-dr].is-scroll .dr__media canvas { transform: none; }
}
