/* Axiom Forge self-hosted fonts (brief §2.2 "Loading").
   Source: https://fonts.googleapis.com/css2?family=Onest:wght@400..700&family=IBM+Plex+Mono:wght@400;500&display=swap
   fetched 2026-09-30 with a Chrome 131 desktop User-Agent (Onest v11, IBM Plex Mono v20).
   Subsets kept: latin, latin-ext, cyrillic, cyrillic-ext. Dropped: vietnamese (both), math and symbols (Onest).
   unicode-range values are copied verbatim from that response. */

/* Onest 400 700 cyrillic-ext */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/af/fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Onest 400 700 cyrillic, cut to the Russian alphabet and № (8 KB instead of 36 KB, wght axis kept; pyftsubset
   --unicodes='U+0401,U+0410-044F,U+0451,U+2116' --layout-features='*' --flavor=woff2). Other Cyrillic letters
   fall back to "Onest Fallback". */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/af/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0401, U+0410-044F, U+0451, U+2116;
}
/* Onest 400 700 latin-ext */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/af/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Onest 400 700 latin */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/af/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 400 cyrillic-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/af/fonts/plexmono-400-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* IBM Plex Mono 400 cyrillic */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/af/fonts/plexmono-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Mono 400 latin-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/af/fonts/plexmono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 400 latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/af/fonts/plexmono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono 500 cyrillic-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/af/fonts/plexmono-500-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* IBM Plex Mono 500 cyrillic */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/af/fonts/plexmono-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Mono 500 latin-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/af/fonts/plexmono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono 500 latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/af/fonts/plexmono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* "Onest Fallback": metric-matched Arial for font-display: swap (brief §2.2, target CLS <= 0.02).
   Computed once on 2026-09-30 from the files above (fontTools) with the capsize/next.js method:
     Onest (onest-latin.woff2, wght 400 default): unitsPerEm 1000, hhea ascent 970, descent -305, lineGap 0
       (OS/2 typo 970/-305/0, USE_TYPO_METRICS set, so every platform uses these);
     weighted average advance (capsize latin letter-frequency table): Onest 469.43/1000, Arial 913.25/2048
       (Arial = /System/Library/Fonts/Supplemental/Arial.ttf, same as capsize's published 913).
     size-adjust      = (469.43/1000) / (913.25/2048) = 1.05272 -> 105.27%
     ascent-override  = 970 / (1000 * 1.05272)        -> 92.14%
     descent-override = 305 / (1000 * 1.05272)        -> 28.97%
     line-gap-override = 0 / ...                      -> 0%
   Check (Chromium, 353 EN/RU strings from the brief's §5 copy deck, 18px, width vs real Onest):
     EN wght 400 +0.02%, wght 500 -1.03%; RU wght 400 +1.73%, wght 500 +0.52%.
   The brief specifies one fallback face, so these latin-derived values serve both pages. A second
   "Onest Fallback" rule limited to the cyrillic unicode-range with size-adjust 103% would bring RU 400
   to -0.05%; it is not added here. */
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 105.27%;
  ascent-override: 92.14%;
  descent-override: 28.97%;
  line-gap-override: 0%;
}
/* /ru/ (added 2026-09-30): Cyrillic runs of the fallback get their own size-adjust per weight, measured in
   Chromium as the width ratio of real Onest to local Arial Regular over the 898 distinct Cyrillic words on
   /ru/ (400: 1.0352, 500: 1.0472, 600: 1.0592); ascent/descent keep Onest's 970/305 per 1000 em.
   Chromium groups faces by their exact weight descriptor, so weights 500 and 600 also get a Latin face
   identical to the rule above (same src and metrics): Latin rendering on / does not change. */
@font-face { font-family: "Onest Fallback"; font-weight: 500; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 105.27%; ascent-override: 92.14%; descent-override: 28.97%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; font-weight: 600; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 105.27%; ascent-override: 92.14%; descent-override: 28.97%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; font-weight: 400; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; size-adjust: 103.52%; ascent-override: 93.70%; descent-override: 29.46%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; font-weight: 500; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; size-adjust: 104.72%; ascent-override: 92.63%; descent-override: 29.13%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; font-weight: 600; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; size-adjust: 105.92%; ascent-override: 91.58%; descent-override: 28.80%; line-gap-override: 0%; }
/* Em dash: Arial's is 1em wide, Onest's 0.759 / 0.778 / 0.797em at 400 / 500 / 600 (hmtx of onest-latin.woff2
   instanced per weight). Without this every "&nbsp;— " in the fallback is ~0.28em too wide. */
@font-face { font-family: "Onest Fallback"; font-weight: 400; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); unicode-range: U+2014; size-adjust: 75.90%; ascent-override: 127.80%; descent-override: 40.18%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; font-weight: 500; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); unicode-range: U+2014; size-adjust: 77.80%; ascent-override: 124.68%; descent-override: 39.20%; line-gap-override: 0%; }
@font-face { font-family: "Onest Fallback"; font-weight: 600; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); unicode-range: U+2014; size-adjust: 79.70%; ascent-override: 121.71%; descent-override: 38.27%; line-gap-override: 0%; }

/* "YC Serif Fallback": the mock-ups' client-brand serif (Cormorant Garamond 500, Latin subset, added by
   site.js after the load event and never waited on) is stood in for by metric-matched Georgia until it arrives,
   and without JS. Cormorant: unitsPerEm 1000, ascent 924, descent 287, lineGap 0. Width ratio of Georgia to
   Cormorant 500 over the stage's serif strings (Chromium, 2026-10-01): 1.150 -> size-adjust 86%.
   ascent/descent-override = Cormorant's metric / size-adjust. The mock-ups are English on every page
   (docs/I18N-SPEC.md), so there is no Cyrillic face. */
@font-face { font-family: "YC Serif Fallback"; src: local("Georgia"); size-adjust: 86%; ascent-override: 107.44%; descent-override: 33.37%; line-gap-override: 0%; }

/* ==========================================================================
   Axiom Forge v2 — site.css
   Direction A, "The Signed Drawing". Tokens: brief §2. Light-only by design.
   ========================================================================== */

:root {
  /* paper surfaces */
  --paper:        #F4F4F0;
  --sheet:        #FFFFFF;
  --paper-2:      #E9E9E3;
  /* ink */
  --ink:          #111315;
  --ink-2:        #474D52;
  --ink-3:        #62686D;
  --rule:         #D2D4CF;
  --line-ui:      #7A8085;
  /* forge accent */
  --forge:        #B8360F;
  --forge-deep:   #8F2A0B;
  --forge-hot:    #E4521F;
  --forge-tint:   #F9E6DD;
  /* functional */
  --ok:           #1B6A46;
  --error:        #A3123A;
  /* night (only §06 Work and the footer) */
  --night:        #111315;
  --night-2:      #1B1E21;
  --night-ink:    #EDEDE8;
  --night-muted:  #A2A8AC;
  --night-line:   #34383C;
  --night-line-ui:#7D848A;
  --forge-night:  #F2683A;
  --forge-night-hover: #F6845B;
  --ok-night:     #3FA37A;

  --header-bg: var(--paper); /* R1.5: fully opaque, nothing shows through */

  --font-sans: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-hy: "Noto Sans Armenian", system-ui, sans-serif;

  --fs-display: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);
  --fs-h2:      clamp(1.875rem, 1.35rem + 2.3vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-lead:    clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-label:   0.75rem;
  --fs-data:    0.9375rem;
  --fs-price:   clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-clock:   clamp(2.5rem, 1.6rem + 4vw, 5rem);
  --track-display: -0.035em;
  --track-label: 0.08em;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --section-pad: clamp(4.5rem, 3rem + 6vw, 9rem);

  --cols: 4; --gutter: 16px; --margin: 16px;
  --header-h: 64px;

  --t-fast: 160ms;
  --t-base: 240ms;
  --t-draw: 480ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  color-scheme: light;
}
@media (min-width: 600px)  { :root { --cols: 8;  --gutter: 20px; --margin: 32px; } }
@media (min-width: 900px)  { :root { --cols: 12; --gutter: 24px; --fs-body: 1.125rem; } }
@media (min-width: 1200px) { :root { --margin: 48px; } }
@media (min-width: 1440px) { :root { --margin: 64px; } }
:root:lang(ru) {
  /* 34 → 64px as in brief §2.2, but flat at 34px up to ~412px: with 1.45rem + 3vw the H1 line
     «Условия — письменно.» fills the 390px column to the pixel, so it flips to two lines whenever the
     fallback face is showing (CLS 0.028 at 390/393px). Above ~600px the two curves differ by < 1px. */
  --fs-display: clamp(2.125rem, 1.3rem + 3.2vw, 4rem);
  --track-display: -0.03em;
  --track-label: 0.06em;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: 80px;
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; hyphens: none; }
p, ol, ul, dl, dd, figure, fieldset, pre { margin: 0; }
p, li, dd { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
:lang(hy) { font-family: var(--font-hy); }
/* The few Russian words on the pages in other languages (language names) use the system face, so the
   Onest Cyrillic subset is not fetched there (brief §7.1 EN font budget). The switcher's list and the Menu's
   language list are the exception: they are not rendered until opened, and all names there share one face. */
html:not([lang="ru"]) [lang="ru"]:not(.lang a, .menu__langs a) { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--forge); outline-offset: 2px; }
.night :focus-visible { outline-color: var(--forge-night); }

.vh, .vh-input {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--margin); top: 8px; z-index: 100;
  padding: 12px 16px; background: var(--sheet); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px; font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(1320px + 2 * var(--margin));
  margin-inline: auto;
  padding-inline: var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }

/* anchors land 80px below the top: html scroll-padding-top (which also keeps focused elements clear
   of the sticky header) provides the offset, so sections do not add a second scroll-margin */
/* a second name for a section's place (#brief → the quick form): no box of its own */
.alias { display: block; height: 0; }
.sec { position: relative; }
.sec > .wrap { position: relative; padding-block: var(--section-pad); }
.sec > .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--margin); right: var(--margin);
  height: 1px; background: var(--rule); transform-origin: left center;
}
.sec--alt { background: var(--paper-2); }
.sec--alt > .wrap::before { background: var(--rule); }
.sec--facts > .wrap { padding-block: calc(var(--section-pad) * .62); }

/* section eyebrow and head (R1.5: no label rail; a short plain-word eyebrow sits directly above the H2,
   and every section uses the full container) */
.eyebrow {
  font: 500 0.8125rem/1.4 var(--font-sans);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}
.sec-head { margin-bottom: var(--s-8); }
.sec-head > .lead { margin-top: var(--s-5); }
@media (min-width: 900px) {
  .sec-head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .sec-head--split > .sec-head__t { grid-column: 1 / 8; }
  .sec-head--split > .lead { grid-column: 8 / 13; margin-top: 0; }
}

/* ---------- type ---------- */
h2 {
  font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500;
  max-width: 20ch;
}
.h2-1, .h2-2 { display: block; }
h2 .sl { display: block; }
.h2-2 { color: var(--ink-2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: 1rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }
.leadin { font-size: var(--fs-lead); line-height: 1.45; font-weight: 500; color: var(--ink-2); max-width: 44ch; }
.label, .label-h {
  font: 500 var(--fs-label)/1.4 var(--font-mono);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero";
}
/* outside the hero, labels are set in Onest: Plex Mono stays for prices, timelines, clocks and status tags (R1.3) */
:is(.sec, .site-footer, .dlg) :is(.label, .label-h) { font: 500 0.8125rem/1.4 var(--font-sans); letter-spacing: var(--track-label); }
.num {
  font-family: var(--font-mono); font-weight: 400;
  font-variant-numeric: tabular-nums; font-feature-settings: "zero";
  color: var(--ink-3);
}
.data, .price, .clk__t, .notes__m {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero";
}
.price { font-size: var(--fs-price); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.price__unit { font: 400 1.0625rem/1.2 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.data { font-size: var(--fs-data); line-height: 1.5; color: var(--ink); }

/* ---------- icons ---------- */
.i, .pm {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: square; stroke-linejoin: miter;
}
.i--20 { width: 20px; height: 20px; }
/* inline paths only: a rule on the sprite's own paths reaches <use> copies in Safari (not in Chrome) and drew every
   sprite icon and the stage's arch mark with unscaled, far heavier strokes */
.i path, .pm path { vector-effect: non-scaling-stroke; }
.glyph { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1; color: var(--ink); }
.glyph--live { color: var(--ok); }
.night .glyph { color: var(--night-ink); }
.night .glyph--live { color: var(--ok-night); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 2px;
  font: 500 1rem/1.2 var(--font-sans); letter-spacing: -0.005em;
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn .i { transition: transform var(--t-fast) var(--ease); }
.btn:hover .i--r, .tlink:hover .i--r, .btn:focus-visible .i--r { transform: translateX(3px); }
.btn:hover .i--x, .tlink:hover .i--x, a:hover > .i--x { transform: translate(2px, -2px); }
.tlink:hover .i--d { transform: translateY(3px); }
.btn--primary { background: var(--forge); color: var(--sheet); }
.btn--primary:hover, .btn--primary:active { background: var(--forge-deep); }
.btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--secondary:hover { background: var(--paper-2); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-small); }
.night .btn--primary { background: var(--forge-night); color: var(--ink); }
.night .btn--primary:hover { background: var(--forge-night-hover); }
.night .btn--secondary { border-color: var(--night-line-ui); color: var(--night-ink); }
.night .btn--secondary:hover { background: var(--night-2); }
/* floating primaries (header, sticky bar) stay quiet while another forge button is in view */
.btn--float:not(.is-lit) { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--float:not(.is-lit):hover { background: var(--paper-2); }
.night .btn--yield.is-quiet { background: transparent; border-color: var(--night-line-ui); color: var(--night-ink); }
.night .btn--yield.is-quiet:hover { background: var(--night-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.tlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: currentColor;
  transition: text-decoration-thickness var(--t-fast) var(--ease);
}
.tlink:hover { text-decoration-thickness: 2px; }
.tlink .i { transition: transform var(--t-fast) var(--ease); }
.night .tlink { color: var(--night-ink); }
.tbtn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0;
  background: none; border: 0; color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.tbtn:hover { text-decoration-thickness: 2px; }
.night .tbtn { color: var(--night-ink); }
.qf__privacy a, .noscript a, .panel__foot a { color: var(--forge); text-underline-offset: 3px; }
.night .panel__foot a { color: var(--forge-night); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header__in { height: 100%; display: flex; align-items: center; gap: var(--s-5); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 44px; color: var(--ink); text-decoration: none;
}
.af-mark { height: 18px; width: auto; aspect-ratio: 324 / 187; transform: translateY(-0.04em); }
.brand__word { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.header__end { margin-left: auto; display: flex; align-items: center; gap: var(--s-4); }
/* Language switcher (docs/I18N-SPEC.md): one button with the page's language code; it opens a short list of
   the six languages, each in its own name, the current one checked. A <details> disclosure, so it works without
   JS; site.js closes it on Escape, on a click elsewhere and when focus leaves it. The list hangs under the
   button and takes no room in the header, whatever the language of the nav beside it. */
.lang { flex: none; display: flex; align-items: center; }
.lang__sw { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; padding: 0 8px; margin-inline: -8px; border-radius: 2px;
  list-style: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  font-size: var(--fs-small); font-weight: 500; line-height: 1; letter-spacing: 0.02em; color: var(--ink);
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover .lang__code { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lang__chev { width: 14px; height: 14px; color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
.lang__sw[open] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; z-index: 2; top: calc(100% + 2px); right: -8px;
  min-width: 184px; padding: 6px;
  background: var(--sheet); border: 1px solid var(--ink); border-radius: 2px;
}
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 44px; padding: 0 12px; border-radius: 2px;
  font-size: var(--fs-small); font-weight: 400; line-height: 1.2; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.lang__menu a:hover { background: var(--paper-2); }
.lang__menu a:focus-visible { outline-offset: -2px; }
.lang__menu a[aria-current] { font-weight: 600; }
.lang__menu .i { color: var(--forge); stroke-width: 2; }
/* the same six languages at the end of the Menu disclosure (phones and narrow windows); hidden where the nav is inline */
.menu__langs { display: none; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.menu__langs .label { font: 500 0.8125rem/1.4 var(--font-sans); letter-spacing: var(--track-label); }
.menu__langs ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-4); margin-top: 2px; }
.menu__langs a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-small); color: var(--ink-2); text-decoration: none; }
.menu__langs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.menu__langs a[aria-current] { color: var(--ink); font-weight: 600; }
.nav ul { display: flex; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  text-decoration: none; color: var(--ink); font-size: var(--fs-small); font-weight: 500;
  text-underline-offset: 6px;
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.nav .i { width: 14px; height: 14px; color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; border-radius: 2px; color: var(--ink);
}
.menu-btn .i { width: 20px; height: 20px; }
.menu-btn .i--close, .menu-btn[aria-expanded="true"] .i--menu { display: none; }
.menu-btn[aria-expanded="true"] .i--close { display: block; }
.header__cta { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.header__cta .l-short { display: none; }
@media (min-width: 900px) and (max-width: 1199.98px) {
  .header__cta .l-long { display: none; }
  .header__cta .l-short { display: inline; }
  .header__end { gap: var(--s-3); }
}

@media (min-width: 900px) {
  .menu { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; margin-inline: var(--s-5); }
  .nav ul { gap: clamp(14px, 2.2vw, 32px); }
  .menu__cta, .menu-btn { display: none; }
}
@media (min-width: 900px) and (max-width: 1199.98px) {
  .menu { margin-inline: var(--s-4); }
  .nav ul { gap: clamp(12px, 1.7vw, 20px); }
}
/* 900–1023px: the six links collide with the brand and the language switch, so they move into the Menu
   disclosure (as /ru/ does up to 1199px, see the /ru/ adjustments); the header CTA stays */
@media (min-width: 900px) and (max-width: 1023.98px) {
  html.js .menu-btn { display: inline-flex; }
  .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    display: none; margin: 0;
    background: var(--sheet); border-top: 1px solid var(--rule);
    padding: var(--s-2) var(--margin) var(--s-6);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .menu.is-open { display: block; }
  .nav ul { display: block; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { display: flex; width: 100%; min-height: 56px; font-size: 1.25rem; letter-spacing: -0.01em; }
  .nav .i { width: 16px; height: 16px; }
  .menu__langs { display: block; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 899.98px) {
  .header__cta { display: none; }
  .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    background: var(--sheet); border-top: 1px solid var(--rule);
    padding: var(--s-2) var(--margin) calc(var(--s-6) + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    display: none;
  }
  .menu.is-open { display: block; }
  .nav ul { display: block; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a { display: flex; min-height: 56px; font-size: 1.25rem; letter-spacing: -0.01em; width: 100%; }
  .nav .i { width: 16px; height: 16px; }
  .menu__cta { width: 100%; margin-top: var(--s-5); }
  .menu__langs { display: block; }
  html:not(.js) .menu-btn { display: none; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 374.98px) {
  .brand { gap: 8px; }
  .af-mark { height: 16px; }
  .brand__word { font-size: 16px; }
  .header__end { gap: 4px; }
  .header__in { gap: var(--s-4); } /* slack, so the brand word below never wraps at normal text spacing */
}
/* phones with the user's own text spacing (WCAG 1.4.12): the brand word and long button labels wrap instead of
   pushing the Menu button or a CTA off the screen. At normal spacing everything fits on one line, so nothing moves. */
@media (max-width: 599.98px) {
  .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .site-header .af-mark { flex: none; }
  .site-header .brand__word { white-space: normal; }
  .header__end { flex: none; }
  .btn { white-space: normal; max-width: 100%; }
}

/* ---------- photographs (R4, docs/IMAGES-SPEC.md) ----------
   Every photo (.ph) lies over a drawn placeholder (the SVG dusk, the room, a gradient) that is there from the
   first paint, so a slow or failed photo never leaves a blank or a black slab, and nothing moves when it arrives.
   Without JS a photo simply appears once it has loaded. With JS, site.js ("photographs") holds one that is still
   loading clear (.is-wait) and fades it in when it is decoded (.is-in); one that is already here paints with the
   page. All are decoration: alt="", inside aria-hidden mock-ups or behind text on a scrim.
   The hero's later chapters take theirs as <canvas> (site.js draws the photo into it; <noscript> holds a plain
   <img>): an <img> that first paints when its chapter comes up, seconds after the page, would be measured as
   the page's largest contentful paint. */
.ph { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ph.is-wait, canvas.ph { opacity: 0; }
.ph.is-in { opacity: 1; transition: opacity 700ms var(--ease); }

/* ---------- §01 hero (R1.2, R1.7) ----------
   The copy sits on paper; the stage (.hs) is a dark cinematic scene beside it. Phones and tablets: copy, then
   the stage at full width, then the "in writing" terms. From 1080px: the copy and terms at the container's left
   edge, vertically centred; the stage runs from under the header to the bottom of the hero and bleeds to the right
   edge of the viewport. The copy column is sized from the H1 (12.9 × its size holds the longer line), so the H1
   is always two lines on desktop, and the stage takes the rest. */
.hero {
  --h1: clamp(30px, 9.3vw, 40px);
  position: relative;
  background: var(--paper);
}
.hero__copy, .hero__terms { min-width: 0; }
.hero__eyebrow {
  font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--ink-2); text-wrap: balance;
}
.hero__h1 {
  margin-top: 16px;
  font-size: var(--h1); line-height: 1.05; letter-spacing: var(--track-display); font-weight: 500;
  color: var(--ink); text-wrap: balance;
}
:root:lang(ru) .hero__h1 { line-height: 1.07; }
/* the spans stay inline, so the whole H1 is one text block (the LCP element) */
.hero__h1 .h1-2 { color: var(--ink-2); }
.hero__sub { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.hero__ctas { margin-top: 28px; }
.reassure { margin-top: 14px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.hero__terms .label { color: var(--ink-3); }
.hero__checks { margin-top: 10px; display: grid; gap: 8px; }
.hero__checks li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink); }
.hero__checks .ck {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--ink); border-radius: 50%;
}
.hero__checks .ck .i { width: 12px; height: 12px; stroke-width: 2; }
.hero__terms .tlink { margin-top: 2px; font-size: var(--fs-small); }

.hero__copy { padding: 24px var(--margin) 0; }
.hero__terms { padding: 32px var(--margin) 56px; }
/* the stage fits a tall phone screen, but never squashes below 540px on a short one (landscape phones, Safari
   with its bars): under ~500px the devices outgrow the scene, so a short viewport scrolls past the stage instead */
.hs { margin-top: 36px; width: 100%; aspect-ratio: 2 / 3; max-height: max(92vh, 540px); }
@media (max-width: 399.98px) { .hero__ctas .btn { width: 100%; } }
@media (min-width: 600px) {
  .hero__copy, .hero__terms { max-width: 720px; }
  .hs { aspect-ratio: 1 / 1; max-height: max(86vh, 540px); }
}
/* two lines, split at the dash, once the column holds the longer one */
@media (min-width: 700px) {
  .hero { --h1: min(56px, calc((min(100vw, 720px) - 2 * var(--margin)) / 12.9)); }
  .hero__h1 .h1-1::after { content: "\A"; white-space: pre; }
}
/* 900–1079px (small laptops, iPad landscape): the "in writing" terms stand beside the copy, so the row above the
   full-width stage uses its width. The copy takes 8 of 12 columns and the H1 is sized to it (13.2: room for a
   classic scrollbar, which 100vw includes). */
@media (min-width: 900px) and (max-width: 1079.98px) {
  .hero { --h1: calc((100vw - 2 * var(--margin) - 40px) * 8 / 12 / 13.2); }
  .hero__in { display: grid; grid-template-columns: var(--margin) minmax(0, 8fr) 40px minmax(0, 4fr) var(--margin); }
  .hero__copy { grid-column: 2; grid-row: 1; padding: 24px 0 0; max-width: none; }
  .hero__terms { grid-column: 4; grid-row: 1; align-self: end; padding: 0 0 2px; max-width: none; }
  .hs { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1080px) {
  .hero {
    --h1: clamp(40px, min(3.3vw, 6.4vh), 62px);
    --copy-w: calc(var(--h1) * 12.9);
    --gap: clamp(40px, 4vw, 80px);
    --content: min(1320px, 100% - 2 * var(--margin));
    /* the first screen holds the whole stage, chapter bar included, down to a ~600px-tall window (1280×650,
       1366×680); the devices in it are sized from the scene's height as well as its width */
    --hero-h: clamp(536px, calc(100vh - var(--header-h)), 1080px);
  }
  .hero__in {
    display: grid;
    grid-template-columns: minmax(var(--margin), 1fr) var(--copy-w) var(--gap) minmax(0, calc(var(--content) - var(--copy-w) - var(--gap))) minmax(var(--margin), 1fr);
    grid-template-rows: minmax(24px, 1fr) auto auto minmax(24px, 1fr);
    min-height: var(--hero-h);
  }
  .hero__copy { grid-column: 2; grid-row: 2; padding: 0; max-width: none; }
  .hero__terms { grid-column: 2; grid-row: 3; padding: 30px 0 0; max-width: none; }
  .hs { grid-column: 4 / 6; grid-row: 1 / -1; margin: 0; aspect-ratio: auto; max-height: none; height: 100%; min-height: var(--hero-h); }
  .hero__sub { margin-top: 22px; text-wrap: balance; }
  .hero__ctas { margin-top: 30px; }
}
/* the Russian eyebrow (~562px of mono) stays on one line from 1280px */
@media (min-width: 1280px) {
  :root:lang(ru) .hero { --copy-w: max(calc(var(--h1) * 12.9), 596px); }
}
@media (min-width: 1080px) and (max-height: 820px) {
  .hero__sub { margin-top: 18px; }
  .hero__ctas { margin-top: 24px; }
  .hero__terms { padding-top: 24px; }
  .hero__checks { gap: 6px; }
}
/* a ~600px-tall window (a 720p laptop with browser bars): tighter still, so the copy column fits the first screen */
@media (min-width: 1080px) and (max-height: 680px) {
  .hero__h1 { margin-top: 12px; }
  .hero__sub { margin-top: 14px; }
  .hero__ctas { margin-top: 18px; }
  .reassure { margin-top: 10px; }
  .hero__terms { padding-top: 16px; }
  .hero__checks { margin-top: 8px; gap: 4px; }
}

/* ==========================================================================
   Hero stage (R1.6, R1.7): four chapters, one focal object each, for the visitor's own "Your Company".
   HTML/CSS and inline SVG only; soft shadows are allowed on the stage (R1 exception to BRIEF §2.3).
   The markup state is the poster frame of every chapter (no JS, reduced motion, paused).
   With JS, site.js ("hero stage") sets data-ch (the scene shown) and data-tab (the selected tab) and steps
   each chapter through beat classes (.is-anim, .b0–.b4); chapter changes pass under a short dip (.is-dip),
   so a device never fades see-through over another scene. Motion: transform, opacity and a blur on the
   outgoing phone only.
   ========================================================================== */
.hs {
  --yc-pine: #163A34;
  --yc-brass: #B8925A;
  --yc-brass-lt: #D9BC8C;
  --yc-sand: #EFE6D6;
  --yc-ivory: #FAF7F1;
  --yc-ink: #1C2321;
  --yc-ink-2: #56605C;
  --st-ink: #F2EFE8;
  --st-muted: #B6BAB9;
  --st-line: rgba(242, 239, 232, .26);
  --serif: "YC Serif", "YC Serif Fallback", Georgia, "Times New Roman", serif;
  --ease-cine: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.33, 0, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-in: cubic-bezier(.5, 0, .9, .4);
  position: relative; overflow: hidden; isolation: isolate;
  background: #0B0D0D; color: var(--st-ink);
}
:root:lang(ru) .hs * { hyphens: manual; }
/* the size container is an absolutely positioned child: Chrome resolves cqh to 0 on a grid item */
.hs-frame { position: absolute; inset: 0; container: hs / size; }
.hs-rig {
  --pad: clamp(16px, 3.6cqi, 40px);
  --title-h: 26px;
  --bar-h: 80px;
  --gapv: clamp(12px, 2.6cqh, 32px);
  --top: calc(var(--pad) + var(--title-h) + var(--gapv));
  --bot: calc(var(--pad) + var(--bar-h) + var(--gapv));
  --sh: calc(100cqh - var(--top) - var(--bot));
  --cy: calc(var(--top) + var(--sh) / 2);
  position: absolute; inset: 0;
}
@container hs (max-width: 559.98px) {
  .hs-rig { --title-h: 50px; --bar-h: 72px; } /* 44px tabs over a 44px price link, from 16px below the pad */
}
.hs-scene { position: absolute; inset: 0; forced-color-adjust: none; }
.hs-l { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
.hs-l * { box-sizing: border-box; }
.hs-l svg { display: block; }
.hs-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 46% at 60% 54%, rgba(222, 164, 104, .20), rgba(222, 164, 104, 0) 72%),
    radial-gradient(46% 38% at 12% 6%, rgba(92, 132, 122, .16), rgba(92, 132, 122, 0) 70%),
    linear-gradient(180deg, #111415 0%, #0B0D0D 62%, #090A0A 100%);
}
/* legibility: the caption above and the chapter bar below always sit on dark (WCAG AA for small text) */
.hs-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 9, .72) 0, rgba(6, 8, 9, .5) calc(var(--pad) + var(--title-h)), rgba(6, 8, 9, 0) var(--top)),
    linear-gradient(0deg, rgba(6, 8, 9, .92) 0, rgba(6, 8, 9, .82) calc(var(--pad) + var(--bar-h)), rgba(6, 8, 9, 0) var(--bot));
}
.hs-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 -.02'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* the dip: it closes in 300 ms (easing in), the scene swaps at its darkest (310 ms, site.js), and it opens in
   560 ms (easing out, so the new chapter shows almost at once): about 0.1 s near black, not a blink */
.hs-dip { position: absolute; inset: 0; pointer-events: none; background: #07090A; opacity: 0; transition: opacity 560ms cubic-bezier(.1, .65, .25, 1); }
.hs.is-dip .hs-dip { opacity: .95; transition: opacity 300ms cubic-bezier(.55, 0, .8, .45); }

/* Phones: the stage starts at or under the fold, so its photos are not rendered (and, being lazy, not fetched)
   until site.js ("hero stage") lets them through: on the first scroll, tap or key, or after the page has loaded
   when the website's picture is wholly below the fold. The H1 stays the largest paint. From 600px the stage is
   in the first screen: there the page preloads the first chapter's photo and its <img> is switched to eager.
   Without JS a <noscript> rule in the page undoes this and they load as plain lazy images. */
@media (max-width: 599.98px) {
  html:not(.ph-go) .hs .ph { display: none; }
}

/* ---------- which chapter shows: data-ch with JS, the radios (:has) without it ---------- */
.hs[data-ch="web"] :is(.hs-l-web, .hs-t--web),
.hs[data-ch="app"] :is(.hs-l-app, .hs-t--app),
.hs[data-ch="ai"] :is(.hs-l-ai, .hs-t--ai),
.hs[data-ch="brand"] :is(.hs-l-brand, .hs-t--brand) { visibility: visible; }
html:not(.js) .hs:has(:is(#hs-ch-app, #hs-ch-ai, #hs-ch-brand):checked) :is(.hs-l-web, .hs-t--web) { visibility: hidden; }
html:not(.js) .hs:has(#hs-ch-app:checked) :is(.hs-l-app, .hs-t--app),
html:not(.js) .hs:has(#hs-ch-ai:checked) :is(.hs-l-ai, .hs-t--ai),
html:not(.js) .hs:has(#hs-ch-brand:checked) :is(.hs-l-brand, .hs-t--brand) { visibility: visible; }

/* ---------- chapter 1: the website ---------- */
.hs-web { position: absolute; inset: 0; transform-origin: 50% var(--cy); transition: transform 1100ms var(--ease-cine); }
.hs-web__drift { position: absolute; inset: 0; transform-origin: 50% var(--cy); }
.hs-browser {
  position: absolute; left: 50%; top: var(--cy);
  width: min(88cqi, calc(var(--sh) * .92 * 4 / 3));
  aspect-ratio: 4 / 3;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column;
  border-radius: 12px; background: #1B1D1E;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07),
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 24px 48px -18px rgba(0, 0, 0, .75),
    0 70px 120px -40px rgba(0, 0, 0, .8);
  container: hsb / inline-size;
}
/* a portrait stage: the window grows taller so the site keeps its presence */
@container hs (max-aspect-ratio: 1 / 1) {
  .hs-browser { width: min(88cqi, calc(var(--sh) * .94 * 1.12)); aspect-ratio: 1.12 / 1; }
}
@container hs (max-width: 559.98px) {
  .hs-browser { width: min(88cqi, calc(var(--sh) * .92)); aspect-ratio: 1 / 1; }
}
.hs-browser::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 100%; height: 14%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hs-chrome {
  flex: none; position: relative; height: max(28px, 5.4cqi);
  display: flex; align-items: center; padding: 0 max(12px, 2.2cqi);
  background: linear-gradient(180deg, #2A2C2E, #232526);
  border-radius: 12px 12px 0 0; border-bottom: 1px solid #131415;
}
.hs-chrome__dots { display: flex; gap: max(6px, 1.1cqi); }
.hs-chrome__dots i { width: max(8px, 1.45cqi); height: max(8px, 1.45cqi); border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.hs-chrome__dots i:nth-child(2) { background: #FEBC2E; }
.hs-chrome__dots i:nth-child(3) { background: #28C840; }
.hs-url {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: max(20px, 3.6cqi); width: min(46%, 300px); padding: 0 12px;
  border-radius: 6px; background: #37393B;
  font: 500 max(12px, 1.75cqi)/1.3 var(--font-sans); color: #D8DADB; white-space: nowrap; letter-spacing: .01em;
}
.hs-url svg { width: 11px; height: 11px; flex: none; fill: none; stroke: #A9ADB0; stroke-width: 2; }
.hs-site { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 0 0 12px 12px; background: #0A1A1E; }
.hs-site__img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the photograph of that dusk (R4) lies over the drawn one: the sun stays in frame on the right, and the calm
   dark sky of its upper left is behind the headline */
.hs-site__ph { object-position: 100% 50%; }
.hs-site::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 16, 18, .62) 0%, rgba(6, 16, 18, .26) 46%, rgba(6, 16, 18, 0) 68%);
}
.hs-site__nav {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 3.4cqi 5cqi 0;
}
.hs-logo { display: inline-flex; align-items: center; gap: 1.2cqi; color: var(--yc-ivory); white-space: nowrap; }
.hs-logo svg { width: max(16px, 3.3cqi); height: max(16px, 3.3cqi); fill: none; stroke: var(--yc-brass-lt); stroke-width: 4.2; }
.hs-logo span { font: 500 max(13px, 2.7cqi)/1.25 var(--serif); letter-spacing: .01em; }
.hs-burger { width: max(18px, 3.2cqi); height: max(12px, 2cqi); display: grid; align-content: space-between; }
.hs-burger i { display: block; height: 1.5px; background: rgba(250, 247, 241, .9); }
.hs-site__copy { position: absolute; z-index: 2; left: 5cqi; right: 38%; top: 50%; transform: translateY(-46%); }
.hs-site__h {
  font: 500 max(22px, 6.6cqi)/1.02 var(--serif); letter-spacing: -.012em; color: var(--yc-ivory);
  text-wrap: balance;
  padding-block: .1em; margin-block: -.1em; /* room for the serif's ascenders and descenders */
}
.hs-site__cta { position: relative; display: inline-block; margin-top: max(14px, 3.6cqi); }
.hs-btn {
  position: relative; display: inline-grid; align-items: center; justify-items: center;
  height: max(32px, 5.8cqi); padding: 0 max(14px, 2.8cqi);
  border-radius: 2px; background: var(--yc-sand); color: var(--yc-pine);
  font: 500 max(12px, 1.95cqi)/1.3 var(--font-sans); letter-spacing: .005em; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
  overflow: hidden;
  transition: transform 180ms var(--ease-soft), background-color 200ms var(--ease-soft);
}
.hs-btn__book, .hs-btn__done { grid-area: 1 / 1; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45em; }
.hs-btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; }
.hs-btn__book { opacity: 0; transform: translateY(-120%); }
.hs-ripple {
  position: absolute; z-index: 0; left: 70%; top: 55%; width: 16cqi; height: 16cqi; margin: -8cqi 0 0 -8cqi;
  border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}
.hs-cursor {
  position: absolute; z-index: 3; left: 70%; top: 55%; width: max(18px, 3.2cqi); height: max(18px, 3.2cqi);
  opacity: 0; transform: translate(30cqi, 17cqi);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
}
.hs-cursor svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- chapter 2: the app ---------- */
.hs-app__plate { position: absolute; inset: 0; transform-origin: 30% 66%; transition: transform 1600ms var(--ease-cine); }
.hs-app__plate > div { position: absolute; inset: 0; transform-origin: 30% 66%; }
.hs-app__plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-mirror { transform: scaleX(-1); }
/* behind the phone: the photograph of the same dusk, mirrored like the drawn one (the sun on the left) and
   slightly out of focus, as a lens would leave it. The box overhangs the stage, so the blur has no clear edge;
   the 960px file is enough for a soft backdrop. */
.hs-app__plate .ph { inset: -3%; width: 106%; height: 106%; object-position: 100% 50%; filter: blur(clamp(2px, .45cqi, 5px)); }
.hs-app__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 12, .55) 0%, rgba(5, 10, 12, .06) 24%, rgba(5, 10, 12, 0) 58%, rgba(8, 6, 4, .5) 84%, rgba(8, 6, 4, .78) 100%);
}
.hs-app__phone { position: absolute; inset: 0; transition: transform 1200ms var(--ease-cine), filter 600ms var(--ease-soft); }
.hs-phone {
  position: absolute; left: 60%; top: var(--cy);
  height: min(calc(var(--sh) * .98), 170cqi);
  aspect-ratio: 71.5 / 149.6;
  transform: translate(-50%, -50%);
  container: hsp / inline-size;
}
@container hs (max-width: 559.98px) {
  .hs-phone { left: 50%; }
}
.hs-phone__body {
  position: absolute; inset: 0; border-radius: 17.5cqi; padding: 1.15cqi;
  background: linear-gradient(135deg, #8B8D90 0%, #3C3E41 18%, #1D1F21 46%, #2C2E31 72%, #9A9C9F 100%);
  box-shadow:
    0 0 0 .5px rgba(255, 255, 255, .18),
    -30px 40px 70px -20px rgba(0, 0, 0, .7),
    0 90px 120px -50px rgba(0, 0, 0, .8),
    18px -10px 60px -20px rgba(255, 200, 140, .18);
}
.hs-phone__btn { position: absolute; width: 1cqi; border-radius: 1px; background: linear-gradient(90deg, #6A6C6F, #2C2E30); }
.hs-phone__btn--a { left: -.7cqi; top: 20%; height: 7%; }
.hs-phone__btn--b { left: -.7cqi; top: 30%; height: 11%; }
.hs-phone__btn--c { right: -.7cqi; left: auto; top: 26%; height: 15%; background: linear-gradient(270deg, #6A6C6F, #2C2E30); }
.hs-phone__bezel { position: absolute; inset: 1.15cqi; border-radius: 16.4cqi; background: #050606; padding: 2.5cqi; }
.hs-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 13.9cqi;
  background: var(--yc-ivory); color: var(--yc-ink);
  display: flex; flex-direction: column; padding: 0 6.2cqi;
}
.hs-screen::after { /* glass */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 6;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06) 100%);
}
.hs-status { flex: none; position: relative; height: 13cqi; display: flex; align-items: center; justify-content: space-between; padding: 1.4cqi 1.6cqi 0; }
.hs-status > span:first-child { font: 600 max(12px, 4.4cqi)/1.3 var(--font-sans); letter-spacing: -.01em; }
.hs-status svg { width: 14cqi; height: 4.4cqi; fill: currentColor; }
.hs-island { position: absolute; z-index: 5; left: 50%; top: 3cqi; width: 31cqi; height: 9cqi; margin-left: -15.5cqi; border-radius: 5cqi; background: #050606; }
.hs-apphead { flex: none; display: flex; align-items: center; justify-content: space-between; margin-top: 2cqi; height: 11cqi; }
.hs-apphead .hs-logo { color: var(--yc-ink); gap: 2cqi; }
.hs-apphead .hs-logo svg { width: max(15px, 6.4cqi); height: max(15px, 6.4cqi); stroke: var(--yc-brass); stroke-width: 4.4; }
.hs-apphead .hs-logo span { font: 500 max(13px, 5.8cqi)/1.25 var(--serif); }
@container hsp (max-width: 159.98px) {
  .hs-avatar { display: none; }
  .hs-apphead .hs-logo span { font-size: 12px; }
}
.hs-avatar { width: 8.6cqi; height: 8.6cqi; border-radius: 50%; background: linear-gradient(135deg, #E9DCC3, #CDB48A); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.hs-ph__img { flex: none; position: relative; margin-top: 3cqi; height: 80cqi; border-radius: 5.5cqi; overflow: hidden; background: #2A2019; }
.hs-ph__img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-visit { flex: none; margin-top: 7.5cqi; }
.hs-visit__k { font: 500 max(12px, 3.9cqi)/1.3 var(--font-sans); color: var(--yc-ink-2); }
.hs-visit__day { margin-top: 1.2cqi; font: 500 max(15px, 7.6cqi)/1.24 var(--serif); color: var(--yc-ink); }
.hs-visit__time { margin-top: calc(.6cqi - .12em); margin-bottom: -.12em; padding-block: .12em; font: 500 max(30px, 19cqi)/.98 var(--serif); letter-spacing: -.01em; color: var(--yc-pine); font-variant-numeric: lining-nums; }
/* one pill of fixed width (the wider label): its colour changes and the labels crossfade inside it */
.hs-chip {
  position: relative; display: inline-grid; margin-top: 3.6cqi;
  height: max(22px, 8.2cqi); padding: 0 max(10px, 3.6cqi); border-radius: 99px;
  background: var(--yc-pine);
  font: 500 max(12px, 3.8cqi)/1.3 var(--font-sans); white-space: nowrap;
}
.hs-chip__in { display: grid; overflow: hidden; }
.hs-chip__in > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 1.4cqi; }
.hs-chip__a { opacity: 0; transform: translateY(-100%); color: var(--yc-ink-2); }
.hs-chip__b { color: var(--yc-ivory); }
.hs-chip__b svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2.4; }
.hs-chip__ring { position: absolute; inset: 0; border-radius: 99px; box-shadow: 0 0 0 1.5px var(--yc-brass); opacity: 0; pointer-events: none; }
.hs-tabbar { margin-top: auto; flex: none; display: flex; justify-content: space-around; align-items: center; height: 16cqi; padding-bottom: 5cqi; color: #9DA29F; }
.hs-tabbar svg { width: 6.6cqi; height: 6.6cqi; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hs-tabbar svg.on { color: var(--yc-pine); }
.hs-homebar { position: absolute; left: 50%; bottom: 2.2cqi; width: 36cqi; height: 1.4cqi; margin-left: -18cqi; border-radius: 1cqi; background: rgba(28, 35, 33, .85); }
/* the notification: opaque, it slides down from behind the Dynamic Island and back, inside the screen */
.hs-push {
  position: absolute; z-index: 4; left: 3.2cqi; right: 3.2cqi; top: 12cqi;
  display: flex; align-items: center; gap: 3cqi; padding: 3.2cqi 3.8cqi;
  border-radius: 6.4cqi; background: #F3F1EC;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 26px -6px rgba(0, 0, 0, .34), 0 0 0 .5px rgba(0, 0, 0, .08);
  visibility: hidden; transform: translateY(-42cqi);
}
.hs-push__icon { flex: none; width: 10.5cqi; height: 10.5cqi; border-radius: 2.6cqi; background: var(--yc-pine); display: grid; place-items: center; }
.hs-push__icon svg { width: 70%; height: 70%; fill: none; stroke: var(--yc-brass-lt); stroke-width: 4.6; }
.hs-push__txt { min-width: 0; display: grid; gap: .4cqi; font: 400 max(12px, 3.9cqi)/1.3 var(--font-sans); color: var(--yc-ink); }
.hs-push__txt b { font-weight: 600; }
.hs-push__when { color: var(--yc-ink-2); }
@container hsp (max-width: 219.98px) { .hs-push__txt b { display: none; } } /* small phones: the icon names the sender */

/* ---------- chapter 3: the AI assistant, in the brand's own frame over the dusk horizon ---------- */
.hs-ai__plate { position: absolute; inset: 0; overflow: hidden; transition: transform 1600ms var(--ease-cine); }
.hs-ai__plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the photograph of the dusk, further out of focus. It is sized from the stage's height and hung from its right
   edge, so the horizon runs under the frame (72% down, where the drawn one has it) with the sun low on the right. */
.hs-ai__plate .ph { inset: auto; top: -3.4cqh; left: calc(104cqi - 195cqh); width: 195cqh; height: 130cqh; filter: blur(clamp(5px, 1.15cqi, 12px)); }
.hs-dlg {
  position: absolute; left: var(--pad); right: var(--pad); top: var(--top); bottom: var(--bot);
  display: flex; align-items: center; justify-content: center;
}
.hs-dlg__panel {
  width: min(100%, 600px); max-width: 88cqi;
  border: 1px solid rgba(242, 239, 232, .2); border-radius: 4px;
  background: linear-gradient(180deg, rgba(10, 14, 16, .78), rgba(10, 13, 14, .7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .7);
  text-align: center;
  transition: transform 1000ms var(--ease-cine);
  container: hsd / inline-size;
}
.hs-dlg__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid rgba(242, 239, 232, .14); text-align: left;
}
.hs-dlg__avatar {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yc-pine); box-shadow: inset 0 0 0 1px rgba(217, 188, 140, .45);
}
.hs-dlg__avatar svg { width: 22px; height: 22px; fill: none; stroke: var(--yc-brass-lt); stroke-width: 4.4; }
.hs-dlg__who { min-width: 0; display: grid; }
.hs-dlg__who b { font: 500 17px/1.25 var(--serif); letter-spacing: .01em; color: var(--st-ink); white-space: nowrap; }
.hs-dlg__who span { font: 400 13px/1.35 var(--font-sans); color: var(--st-muted); white-space: nowrap; }
.hs-dlg__ctx {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(217, 188, 140, .5);
  font: 500 13px/1.3 var(--font-sans); color: var(--yc-brass-lt); white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.hs-dlg__ctx svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
@container hsd (max-width: 379.98px) { .hs-dlg__ctx { display: none; } }
.hs-dlg__body { padding: clamp(18px, 4.2cqh, 40px) clamp(16px, 4cqi, 36px) clamp(20px, 4.6cqh, 44px); }
.hs-who {
  display: block; font: 500 12px/1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--st-muted);
}
.hs-q { margin-top: 8px; font: 400 clamp(16px, 3.1cqi, 24px)/1.35 var(--font-sans); color: rgba(242, 239, 232, .9); text-wrap: balance; }
.hs-a-wrap { position: relative; margin-top: clamp(16px, 3.4cqh, 32px); }
.hs-a { font: 500 clamp(24px, 5.4cqi, 46px)/1.12 var(--serif); letter-spacing: -.005em; color: var(--st-ink); text-wrap: balance; font-variant-numeric: lining-nums; }
.hs-a .w { display: inline-block; padding-block: .05em; margin-block: -.05em; }
.hs-typing { position: absolute; left: 50%; top: .5em; display: flex; gap: 7px; transform: translateX(-50%); opacity: 0; font-size: 12px; }
.hs-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--yc-brass-lt); }
.hs-rev {
  display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(12px, 2.6cqh, 24px);
  font: 500 clamp(13px, 1.9cqi, 15px)/1.3 var(--font-sans); color: #DCC49A;
}
.hs-rev svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- chapter 4: the brand, one card in warm light ---------- */
.hs-brand {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #1B140F 0%, #130E0B 58%, #0C0907 100%);
}
.hs-brand__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 48% at 50% 45%, rgba(242, 198, 138, .52), rgba(220, 162, 100, .2) 50%, rgba(214, 156, 96, 0) 78%),
    linear-gradient(112deg, rgba(255, 226, 180, 0) 30%, rgba(255, 226, 180, .06) 44%, rgba(255, 226, 180, 0) 58%);
  transform-origin: 50% 46%;
  transition: opacity 1400ms var(--ease-soft), transform 1800ms var(--ease-cine);
}
.hs-brand__in {
  position: absolute; left: var(--pad); right: var(--pad); top: var(--top); bottom: var(--bot);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hs-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: min(66cqi, calc(var(--sh) * .6 * 1.75), 520px); aspect-ratio: 1.75;
  padding: 6% 8%; border-radius: 3px;
  background: linear-gradient(160deg, #FBF8F2 0%, #F4EEE3 60%, #EDE5D6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 3px rgba(0, 0, 0, .25),
    0 18px 30px -10px rgba(0, 0, 0, .55),
    0 50px 90px -30px rgba(0, 0, 0, .7);
  transition: transform 1100ms var(--ease-cine);
  container: hsc / inline-size;
}
@container hs (max-width: 559.98px) {
  .hs-card { width: min(80cqi, calc(var(--sh) * .6 * 1.75)); }
}
.hs-card__mark { width: 19cqi; height: 19cqi; overflow: visible; fill: none; stroke: url(#hs-foil); stroke-width: 2.2; stroke-linecap: butt; stroke-linejoin: miter; }
.hs-card__ink path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.hs-card__sun { fill: url(#hs-foil); stroke: none; }
/* the blind emboss: the same mark pressed into the card, covered exactly by the foil once it is drawn */
.hs-card__blind { stroke: rgba(150, 112, 62, .2); }
.hs-card__blind path:last-child { fill: rgba(150, 112, 62, .14); stroke: none; }
.hs-card__name {
  margin-top: 5cqi; padding-block: .06em; margin-bottom: -.06em;
  font: 500 max(13px, 5.4cqi)/1.1 var(--serif); letter-spacing: .24em; padding-left: .24em;
  text-transform: uppercase; color: var(--yc-pine); white-space: nowrap;
}
.hs-card__url { margin-top: 2.6cqi; font: 400 max(12px, 2.9cqi)/1.3 var(--font-sans); letter-spacing: .04em; color: var(--yc-ink-2); white-space: nowrap; }
.hs-swatches { display: flex; gap: clamp(8px, 1.8cqi, 14px); margin-top: clamp(22px, 4.6cqh, 40px); }
.hs-swatches i {
  width: clamp(22px, 4.4cqi, 36px); aspect-ratio: 1; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 16px -8px rgba(0, 0, 0, .85);
}
.hs-sw--pine { background: radial-gradient(120% 90% at 30% 20%, #2F5A52 0%, #163A34 55%, #0E2521 100%); }
.hs-sw--clay { background: radial-gradient(120% 90% at 30% 20%, #B07A60 0%, #8E5B45 55%, #6E4332 100%); }
.hs-sw--brass { background: linear-gradient(135deg, #F1DCAA 0%, #C9A064 38%, #9C7440 62%, #E0C390 100%); }
.hs-sw--sand { background: radial-gradient(120% 90% at 30% 20%, #F4E9D5 0%, #E6D6BA 60%, #D3BF9C 100%); }
.hs-sw--ivory { background: radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, #FAF7F1 60%, #ECE6DA 100%); }

/* ---------- caption (top left), the illustration label (top right) ---------- */
.hs-title {
  position: absolute; left: var(--pad); top: var(--pad); z-index: 3;
  width: calc(100cqi - 2 * var(--pad));
  display: grid;
  transition: opacity 500ms var(--ease-soft) 80ms;
}
.hs.is-dip .hs-title { opacity: 0; transition: opacity 300ms var(--ease-soft); }
.hs-t {
  grid-area: 1 / 1; align-self: start; visibility: hidden;
  font: 500 clamp(15px, 2.4cqi, 18px)/1.4 var(--font-sans); letter-spacing: -.005em; color: var(--st-ink); text-wrap: balance;
  padding-right: 128px; /* room for the label; a float here made Safari drop text-wrap: balance */
}
.hs-illus {
  position: absolute; right: var(--pad); top: var(--pad); z-index: 3;
  font: 500 12px/1.5 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--st-muted);
  margin-top: 2px;
}
/* the Mobile app chapter's quiet link to the clickable prototype (R1.8): under the caption, only while that
   chapter shows (site.js holds the chapter while the link has focus). A stage under 480px (a phone) has no
   free row for it: the caption takes two lines there and the phone starts right under it, and #prototype is
   the next thing on the page anyway. */
.hs-try {
  /* 8px under the caption's line (its font is clamp(15px, 2.4cqi, 18px) / 1.4); the text sits 13px inside the 44px target */
  position: absolute; left: var(--pad); top: calc(var(--pad) + clamp(21px, 3.36cqi, 25.2px) - 5px); z-index: 3;
  visibility: hidden; gap: 6px;
  font-size: 14px; line-height: 20px; color: var(--st-ink); text-decoration-color: rgba(242, 239, 232, .55);
  transition: opacity 500ms var(--ease-soft) 80ms, text-decoration-color var(--t-fast) var(--ease);
}
.hs-try .i { width: 14px; height: 14px; }
.hs-try:hover { text-decoration-color: currentColor; }
.hs-try:focus-visible { outline: 2px solid var(--forge-night); outline-offset: 2px; }
.hs[data-ch="app"] .hs-try { visibility: visible; }
html:not(.js) .hs:has(#hs-ch-app:checked) .hs-try { visibility: visible; }
.hs.is-dip .hs-try { opacity: 0; transition: opacity 300ms var(--ease-soft); }
@container hs (max-width: 479.98px) { .hs-try { display: none; } }

/* ---------- chapter bar: tabs (radios, work without JS), each chapter's price, the pause control ---------- */
.hs-bar {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; align-items: flex-start; gap: clamp(12px, 2.4cqi, 24px);
}
.hs-bar__main { flex: 1; min-width: 0; }
.hs-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6cqi, 16px); }
.hs-tab {
  position: relative; display: block; min-width: 0; height: 44px; padding-top: 15px; /* a 44px target (brief §7.2) */
  font: 500 14px/20px var(--font-sans); color: var(--st-muted); cursor: pointer; user-select: none;
  white-space: nowrap; transition: color var(--t-fast) var(--ease);
}
.hs-tab:hover, .hs-tabs input:checked + .hs-tab { color: var(--st-ink); }
/* the selected chapter is not told by colour alone (its fill restarts at zero): its name is set bolder */
.hs-tabs input:checked + .hs-tab { font-weight: 600; }
.hs-tab__track { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; background: var(--st-line); }
.hs-tab__fill { position: absolute; inset: 0; background: var(--st-ink); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.js) .hs-tabs input:checked + .hs-tab .hs-tab__fill { transform: scaleX(1); }
.hs-tab__s { display: none; }
/* the ring sits inside the tab: the price is right under it. html.js:not(.ptr) … :focus also draws it after an
   arrow key, where Safari drops :focus-visible from the newly focused radio (site.js sets .ptr on pointer input) */
.hs-tabs input:focus-visible + .hs-tab, html.js:not(.ptr) .hs-tabs input:focus + .hs-tab { outline: 2px solid var(--forge-night); outline-offset: -2px; }
.hs-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6cqi, 16px); }
.hs-price a {
  display: block; min-width: 0; padding-bottom: 2px;
  font: 400 13px/18px var(--font-mono); letter-spacing: 0; color: var(--st-muted); text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; font-feature-settings: "zero";
  transition: color var(--t-fast) var(--ease);
}
.hs-price__v, .hs-price__t { display: block; }
.hs-price__v { color: var(--st-ink); opacity: .9; }
.hs-price__sep { display: none; }
.hs-price a:hover .hs-price__v { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hs-price a:focus-visible { outline: 2px solid var(--forge-night); outline-offset: 2px; }
/* the selected chapter's price is emphasised */
.hs[data-tab="web"] .hs-price--web a, .hs[data-tab="app"] .hs-price--app a,
.hs[data-tab="ai"] .hs-price--ai a, .hs[data-tab="brand"] .hs-price--brand a { color: var(--st-ink); }
.hs[data-tab="web"] .hs-price--web .hs-price__v, .hs[data-tab="app"] .hs-price--app .hs-price__v,
.hs[data-tab="ai"] .hs-price--ai .hs-price__v, .hs[data-tab="brand"] .hs-price--brand .hs-price__v { font-weight: 500; opacity: 1; }
html:not(.js) .hs:has(:is(#hs-ch-app, #hs-ch-ai, #hs-ch-brand):checked) .hs-price--web a { color: var(--st-muted); }
html:not(.js) .hs:has(:is(#hs-ch-app, #hs-ch-ai, #hs-ch-brand):checked) .hs-price--web .hs-price__v { font-weight: 400; opacity: .9; }
html:not(.js) .hs:has(#hs-ch-app:checked) .hs-price--app a,
html:not(.js) .hs:has(#hs-ch-ai:checked) .hs-price--ai a,
html:not(.js) .hs:has(#hs-ch-brand:checked) .hs-price--brand a { color: var(--st-ink); }
html:not(.js) .hs:has(#hs-ch-app:checked) .hs-price--app .hs-price__v,
html:not(.js) .hs:has(#hs-ch-ai:checked) .hs-price--ai .hs-price__v,
html:not(.js) .hs:has(#hs-ch-brand:checked) .hs-price--brand .hs-price__v { font-weight: 500; opacity: 1; }
.hs-toggle {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: 2px;
  background: transparent; border: 1px solid rgba(242, 239, 232, .4); color: var(--st-ink);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
/* without JS there is nothing to pause: the control keeps its place (no shift when JS arrives) but is not shown */
html:not(.js) .hs-toggle { visibility: hidden; }
.hs-toggle:hover { background: rgba(242, 239, 232, .08); border-color: rgba(242, 239, 232, .66); }
.hs-toggle:focus-visible { outline: 2px solid var(--forge-night); outline-offset: 2px; }
.hs-toggle .i { width: 16px; height: 16px; stroke-width: 1.6; }
.hs-toggle .i--play, .hs-toggle[aria-pressed="true"] .i--pause { display: none; }
.hs-toggle[aria-pressed="true"] .i--play { display: block; }
/* a narrow stage: short tab names, and one price line for the selected chapter */
@container hs (max-width: 559.98px) {
  .hs-tabs { grid-template-columns: repeat(4, minmax(max-content, 1fr)); gap: 16px; }
  .hs-tab { height: 44px; font-size: 13px; }
  .hs-tabs input:checked + .hs-tab { font-weight: 500; } /* max-content columns here: a bolder name would shift its neighbours */
  .hs-tab__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hs-tab__s { display: inline; }
  /* the one price line is a 44px target (brief §7.2): its padding runs down into the stage's bottom pad */
  .hs-bar { bottom: max(0px, var(--pad) - 16px); }
  .hs-prices { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .hs-price a { padding: 4px 0 22px; }
  .hs-price { grid-area: 1 / 1; visibility: hidden; }
  .hs-price__v, .hs-price__t { display: inline; }
  .hs-price__sep { display: inline; }
  .hs[data-tab="web"] .hs-price--web, .hs[data-tab="app"] .hs-price--app,
  .hs[data-tab="ai"] .hs-price--ai, .hs[data-tab="brand"] .hs-price--brand { visibility: visible; }
  html:not(.js) .hs:has(:is(#hs-ch-app, #hs-ch-ai, #hs-ch-brand):checked) .hs-price--web { visibility: hidden; }
  html:not(.js) .hs:has(#hs-ch-app:checked) .hs-price--app,
  html:not(.js) .hs:has(#hs-ch-ai:checked) .hs-price--ai,
  html:not(.js) .hs:has(#hs-ch-brand:checked) .hs-price--brand { visibility: visible; }
}
@supports not selector(:has(*)) {
  html:not(.js) .hs-tabs { visibility: hidden; }
}

/* ==========================================================================
   Motion (JS only). .is-enter: the incoming chapter's first frame, taken under the dip and released on the next
   frame; .is-anim: a chapter that plays its beats (.b0–.b4) from its first state; .is-out: the outgoing chapter
   under the dip. .hs-notr resets a chapter instantly. Transitions sit on the destination state.
   ========================================================================== */
.hs-notr, .hs-notr * { transition: none !important; animation: none !important; }

/* website: it settles in, the camera pushes in slowly, the cursor glides to "Book a visit", presses, booked */
.hs-l-web.is-enter .hs-web { transform: translateY(1.2%) scale(.985); }
.hs-l-web.is-out .hs-web { transform: scale(1.1); transition: transform 700ms var(--ease-in); }
.hs-web__drift { transition: transform 5400ms cubic-bezier(.3, .1, .3, 1); }
.hs-l-web.is-anim.b0 .hs-web__drift { transform: scale(1.03); }
.hs-btn__book, .hs-btn__done { transition: transform 460ms var(--ease-cine), opacity 160ms linear; }
.hs-l-web.is-anim .hs-btn__book { opacity: 1; transform: none; }
.hs-l-web.is-anim .hs-btn__done { opacity: 0; transform: translateY(120%); }
.hs-cursor { transition: opacity 360ms var(--ease-soft), transform 1150ms var(--ease-io); }
.hs-l-web.is-anim.b1 .hs-cursor { opacity: 1; transform: none; }
.hs-l-web.is-anim.b3 .hs-cursor { transform: scale(.88); transition: transform 120ms var(--ease-soft); }
.hs-l-web.is-anim.b4 .hs-cursor { transform: none; transition: transform 300ms var(--ease-cine); }
.hs-l-web.is-anim.b2 .hs-btn { background: #FFFDF8; }
.hs-l-web.is-anim.b3 .hs-btn { transform: scale(.95); transition: transform 110ms var(--ease-soft), background-color 200ms; }
.hs-l-web.is-anim.b4 .hs-btn { transform: none; background: var(--yc-sand); transition: transform 600ms var(--ease-cine), background-color 600ms; }
/* the outgoing label fades before the pill's edge can slice it; the new one follows a beat later */
.hs-l-web.is-anim.b4 .hs-btn__book { opacity: 0; transform: translateY(-60%); transition: transform 380ms var(--ease-cine), opacity 120ms linear; }
.hs-l-web.is-anim.b4 .hs-btn__done { opacity: 1; transform: none; transition: transform 460ms var(--ease-cine) 60ms, opacity 140ms linear 60ms; }
.hs-l-web.is-anim.b4 .hs-ripple { animation: hs-ripple 900ms var(--ease-soft) both; }
@keyframes hs-ripple { from { opacity: .6; transform: scale(.2); } to { opacity: 0; transform: scale(1.4); } }

/* app: the plate settles and drifts, the phone rises in (opaque), the notification lands, the booking confirms,
   the notification retracts; on the way out the phone is pulled out of focus under the dip */
.hs-l-app.is-enter .hs-app__plate { transform: scale(1.08); }
.hs-l-app.is-enter .hs-app__phone { transform: translateY(6%) scale(.97); }
.hs-l-app.is-out .hs-app__phone { transform: scale(.965); filter: blur(10px); transition: transform 700ms var(--ease-in), filter 420ms var(--ease-soft); }
.hs-app__plate > div { transition: transform 6000ms cubic-bezier(.3, .1, .3, 1); }
.hs-l-app.is-anim.b0 .hs-app__plate > div { transform: scale(1.05); }
.hs-push { transition: transform 560ms cubic-bezier(.55, 0, .8, .2), visibility 0s linear 560ms; }
.hs-l-app.is-anim.b1 .hs-push { visibility: visible; transform: none; transition: transform 760ms var(--ease-cine), visibility 0s; }
.hs-l-app.is-anim.b3 .hs-push { visibility: hidden; transform: translateY(-42cqi); transition: transform 560ms cubic-bezier(.55, 0, .8, .2), visibility 0s linear 560ms; }
.hs-l-app.is-anim .hs-chip { background: var(--yc-sand); }
.hs-l-app.is-anim .hs-chip__a { opacity: 1; transform: none; }
.hs-l-app.is-anim .hs-chip__b { opacity: 0; transform: translateY(100%); }
.hs-l-app.is-anim.b2 .hs-chip { background: var(--yc-pine); transition: background-color 360ms var(--ease-soft); }
/* both labels move together; the outgoing one fades only once it is mostly out, so the pill is never blank */
.hs-l-app.is-anim.b2 .hs-chip__a { opacity: 0; transform: translateY(-100%); transition: transform 440ms var(--ease-cine), opacity 180ms linear 240ms; }
.hs-l-app.is-anim.b2 .hs-chip__b { opacity: 1; transform: none; transition: transform 440ms var(--ease-cine), opacity 120ms linear; }
.hs-l-app.is-anim.b2 .hs-chip__ring { animation: hs-ring 1100ms var(--ease-soft) both; }
@keyframes hs-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.3, 1.8); } }

/* AI: the frame settles in over the horizon; the question, typing, the answer word by word, the human check */
.hs-l-ai.is-enter .hs-ai__plate { transform: scale(1.06); }
.hs-l-ai.is-enter .hs-dlg__panel { transform: translateY(18px) scale(.985); }
.hs-l-ai.is-out .hs-dlg__panel { transform: translateY(-10px) scale(.99); transition: transform 700ms var(--ease-in); }
.hs-q-wrap, .hs-a .w, .hs-typing, .hs-rev { transition: opacity 600ms var(--ease-soft), transform 900ms var(--ease-cine); }
.hs-l-ai.is-anim .hs-q-wrap, .hs-l-ai.is-anim .hs-rev { opacity: 0; transform: translateY(10px); }
.hs-l-ai.is-anim .hs-a .w { opacity: 0; transform: translateY(8px); }
.hs-l-ai.is-anim.b1 .hs-q-wrap { opacity: 1; transform: none; }
.hs-l-ai.is-anim.b2 .hs-typing { opacity: 1; transition: opacity 300ms var(--ease-soft); }
.hs-l-ai.is-anim.b2 .hs-typing i { animation: hs-dot 1100ms var(--ease-io) infinite; }
.hs-l-ai.is-anim.b2 .hs-typing i:nth-child(2) { animation-delay: 160ms; }
.hs-l-ai.is-anim.b2 .hs-typing i:nth-child(3) { animation-delay: 320ms; }
.hs-l-ai.is-anim.b3 .hs-typing { opacity: 0; transition: opacity 200ms var(--ease-soft); }
.hs-l-ai.is-anim.b3 .hs-typing i { animation: none; }
.hs-l-ai.is-anim.b3 .hs-a .w { opacity: 1; transform: none; transition: opacity 520ms var(--ease-soft) calc(var(--i) * 75ms), transform 800ms var(--ease-cine) calc(var(--i) * 75ms); }
.hs-l-ai.is-anim.b4 .hs-rev { opacity: 1; transform: none; }
@keyframes hs-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* brand: the light blooms and the card rises in; the mark draws itself in brass foil, the sun fills,
   the name and the address follow, the palette settles */
.hs-l-brand.is-enter .hs-brand__light { opacity: 0; transform: scale(.86); }
.hs-l-brand.is-enter .hs-card { transform: translateY(18px); }
.hs-l-brand.is-out .hs-card { transform: scale(.985); transition: transform 700ms var(--ease-in); }
/* the card arrives printed blind (the mark and the name pressed in, pale); the foil draws from the swap and is
   done in 700 ms, the name and the address take their ink at 450 ms, the palette settles from 850 ms */
.hs-card__ink path { transition: stroke-dashoffset 650ms var(--ease-io); }
.hs-card__sun, .hs-card__name, .hs-card__url, .hs-swatches i { transition: opacity 700ms var(--ease-soft), transform 1000ms var(--ease-cine); }
.hs-l-brand.is-anim .hs-card__ink path { stroke-dashoffset: 1; }
.hs-l-brand.is-anim .hs-card__sun { opacity: 0; }
.hs-l-brand.is-anim.b1 .hs-card__ink path { stroke-dashoffset: 0; }
.hs-l-brand.is-anim.b1 .hs-card__ink path:nth-child(1) { transition-duration: 420ms; transition-delay: 160ms; }
.hs-l-brand.is-anim.b1 .hs-card__ink path:nth-child(3) { transition-duration: 560ms; transition-delay: 120ms; }
.hs-l-brand.is-anim.b1 .hs-card__ink path:nth-child(4) { transition-duration: 280ms; transition-delay: 420ms; }
.hs-l-brand.is-anim.b1 .hs-card__sun { opacity: 1; transition-delay: 500ms; }
.hs-l-brand.is-anim .hs-card__name, .hs-l-brand.is-anim .hs-card__url { opacity: .16; }
.hs-l-brand.is-anim.b2 .hs-card__name { opacity: 1; }
.hs-l-brand.is-anim.b2 .hs-card__url { opacity: 1; transition-delay: 120ms; }
.hs-l-brand.is-anim .hs-swatches i { opacity: 0; transform: translateY(12px); }
.hs-l-brand.is-anim.b3 .hs-swatches i { opacity: 1; transform: none; transition-delay: calc(var(--i) * 80ms); }

/* ---------- cards ----------
   R1.3: no drawing-sheet costume (inner drawing border, registration crosshairs). A card is white on paper
   with one hairline. */
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); }

/* segmented control (quick form) */
.seg legend { margin-bottom: var(--s-2); }
.seg__row { display: flex; border-bottom: 1px solid var(--rule); }
.seg__row label {
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto;
  min-height: 44px; padding: 0 14px; white-space: nowrap;
  font-size: var(--fs-small); font-weight: 500; line-height: 1.2; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; user-select: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.seg__row label:hover { color: var(--ink); background: var(--paper); }
.seg__row input:checked + label { background: var(--forge-tint); border-bottom-color: var(--forge); color: var(--ink); }
.seg__row input:focus-visible + label, html.js:not(.ptr) .seg__row input:focus + label { outline: 2px solid var(--forge); outline-offset: 2px; position: relative; z-index: 1; }

/* timeline (R1.3, R1.5): the plain range, then one bar on the same 0–16-week scale in every row. The bar starts
   at zero, so its length reads as duration: the light part runs to the shortest estimate, the solid part to the
   longest. */
.tl { display: block; }
.tl .data { display: block; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); white-space: nowrap; }
.ruler { position: relative; display: block; width: 100%; max-width: 280px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(17, 19, 21, .05); }
.ruler__bar {
  --bar: var(--ink);
  position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit;
  width: calc(var(--to) / 4 * 100%);
  background: linear-gradient(90deg, rgba(17, 19, 21, .22) 0 calc(var(--from) / var(--to) * 100%), var(--bar) 0);
}

/* ---------- §02 facts ---------- */
.facts { display: grid; grid-template-columns: 1fr; }
.fact { padding: var(--s-5) 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.fact__k { font-size: clamp(1.25rem, 1.12rem + .45vw, 1.5rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.fact__t { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }
.fact .tlink { margin-top: auto; font-size: var(--fs-small); min-height: 36px; padding-top: 4px; }
@media (min-width: 480px) and (max-width: 899.98px) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .fact:nth-child(2n) { border-left: 1px solid var(--rule); padding-left: var(--gutter); }
}
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
  .fact { padding: var(--s-5) var(--s-5) 0; border-top: 0; border-left: 1px solid var(--rule); }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- §03 services ----------
   R1.5: every row runs the full container. From 1200px: the thumbnail (cols 1–4); name, promise, description and
   what you receive (5–9); a calm price column (10–12) with the price, the timeline and one "Discuss this" button.
   "What's included" opens under the whole row, thumbnail column included. */
.svc-list { border-bottom: 1px solid var(--rule); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--gutter);
  padding: var(--s-6) 0; border-top: 1px solid var(--rule);
}
.svc__name { font-size: var(--fs-h3); }
.svc__promise { margin-top: var(--s-3); font-size: var(--fs-lead); line-height: 1.4; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.svc__desc { margin-top: var(--s-3); color: var(--ink-2); max-width: 46ch; }
/* what you receive: part of the description column */
.svc__c dt { font-size: var(--fs-small); font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.svc__c dd { margin-top: 4px; }
.svc__receive { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); max-width: 46ch; }
.svc__caveat { margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); max-width: 46ch; }
/* the price column: "from" and the price, the timeline, one action */
.svc__side { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-6); }
.svc__b { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4) var(--s-7); }
.svc__b > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.svc__b > div:first-child > dt { font-size: 1.0625rem; line-height: 1.2; color: var(--ink-2); text-transform: lowercase; }
.svc__b .price { font-size: clamp(2rem, 1.4rem + 1.4vw, 2.625rem); line-height: 1.05; letter-spacing: -0.035em; }
.svc__b .tl { flex: 1 1 180px; min-width: 180px; max-width: 280px; }
.svc__note { display: block; margin-top: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.svc__side .svc__discuss { flex: none; }
.svc:is(:hover, :focus-within):not(:has(> .svc:is(:hover, :focus-within))) > .svc__side .ruler__bar { --bar: var(--forge-hot); }
/* details: "What's included" */
.incl > summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  list-style: none; cursor: pointer; font-weight: 500; font-size: var(--fs-small);
}
.incl > summary::-webkit-details-marker, .acc > summary::-webkit-details-marker { display: none; }
.incl > summary span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--line-ui); }
.incl > summary:hover span { text-decoration-color: currentColor; }
.pm .pm__v { transform-origin: center; transition: transform var(--t-base) var(--ease); transform-box: fill-box; }
details[open] > summary .pm__v { transform: scaleY(0); }
.steps { margin-top: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--rule); display: grid; gap: var(--s-5) var(--gutter); }
.steps li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 4px; align-content: start; }
.steps .num { font-size: var(--fs-label); line-height: 1.6rem; }
.steps h4 { font-size: 1rem; line-height: 1.6rem; }
.steps p { grid-column: 2; margin-top: 4px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: var(--s-2); border-top: 0; }
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; padding-top: var(--s-4); border-top: 1px solid var(--ink); }
  .steps .num { margin-bottom: 6px; }
  .steps p { grid-column: 1; font-size: 1rem; line-height: 1.55; }
}
/* phones: the description and "You receive" sit inside "What's included" (site.js folds them in below 600px) */
.incl__more { margin-top: var(--s-2); padding-bottom: var(--s-2); }
.incl__more .svc__desc { margin-top: 0; }
.incl__more .svc__c { margin-top: var(--s-4); }
/* the landing page: a sub-row of Websites, on the same grid (shorter thumbnail, no details) */
.svc--sub { margin-top: var(--s-4); padding-bottom: 0; }
.svc--sub:is(:hover, :focus-within) > .svc__side .ruler__bar { --bar: var(--forge-hot); }
@media (min-width: 600px) {
  .svc { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .svc > .thumb { grid-column: 1 / 5; grid-row: 1 / span 2; align-self: start; }
  .svc > .svc__a { grid-column: 5 / 9; grid-row: 1; }
  .svc > .svc__c { grid-column: 5 / 9; grid-row: 2; }
  .svc > .svc__side, .svc > .svc__foot, .svc > .svc--sub { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .svc { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; }
  .svc > .thumb { grid-column: 1 / 6; grid-row: 1 / span 3; }
  .svc > .svc__a { grid-column: 6 / 13; grid-row: 1; }
  .svc > .svc__c { grid-column: 6 / 13; grid-row: 2; }
  .svc > .svc__side { grid-column: 6 / 13; grid-row: 3; align-self: end; }
  .svc > .svc__foot { grid-column: 1 / -1; grid-row: 4; }
  .svc > .svc--sub { grid-row: 5; }
  /* the summary lines up with the text column; the opened steps use the whole row */
  .incl > summary { margin-left: calc((100% + var(--gutter)) * 5 / 12); }
}
@media (min-width: 1200px) {
  .svc { row-gap: var(--s-4); grid-template-rows: auto 1fr auto; }
  .svc > .thumb { grid-column: 1 / 5; grid-row: 1 / span 2; }
  .svc > .svc__a { grid-column: 5 / 10; grid-row: 1; padding-right: var(--s-6); }
  .svc > .svc__c { grid-column: 5 / 10; grid-row: 2; align-self: start; padding-right: var(--s-6); }
  .svc > .svc__side { grid-column: 10 / 13; grid-row: 1 / span 2; align-self: start; display: block; }
  .svc > .svc__foot { grid-row: 3; }
  .svc > .svc--sub { grid-row: 4; }
  .svc__side .svc__b { display: block; }
  .svc__side .svc__b > div + div { margin-top: var(--s-4); }
  .svc__side .svc__b .tl { max-width: none; }
  .svc__side .svc__discuss { margin-top: var(--s-5); }
  .incl > summary { margin-left: calc((100% + var(--gutter)) / 3); }
}
/* after the list: a single-stage note beside the section CTA */
.svc-after { margin-top: var(--s-7); display: grid; gap: var(--s-4); }
.svc-after__single { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 56ch; }
.svc-after__note { max-width: 64ch; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.note-k { font-weight: 600; color: var(--ink); margin-right: 4px; }
.svc-after .cta-row { margin-top: var(--s-3); }
@media (min-width: 900px) {
  .svc-after { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .svc-after__single, .svc-after__note { grid-column: 1 / 9; }
  .svc-after .cta-row { grid-column: 9 / 13; grid-row: 1 / span 2; justify-content: flex-end; margin-top: 0; }
}

/* ---------- §03 service thumbnails (R1.3, R1.6, R1.7) ----------
   A crafted mini mock-up of what the client will own, for "Your Company" in the pine / brass / sand / dusk
   palette of the hero scene: one object per tile, at most four words, set large. Decorative (aria-hidden).
   Parts are placed in % of the tile and sized in cqw, so each tile scales as one object. The plain CSS state
   is the final frame (no JS, reduced motion, print); site.js adds .is-armed (first frame, paused) and
   .is-play (runs it once, 2–3 s). Soft shadows are allowed on mock-ups only (R1 exception to BRIEF §2.3).
   Each tile has its own light within the palette, so the column reads as a sequence, not one dark stripe:
   website dusk, app deep pine, AI night with a warm key light, brand sand, landing brass, support pine. */
.thumb {
  --t-pine: #163A34; --t-brass: #D2B07A; --t-brass-lt: #E2C89A; --t-sand: #EFE6D6; --t-ivory: #FAF7F1;
  --t-ink: #1C2321; --t-ink-2: #56605C; --t-ps: running;
  --t-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 .8cqw 1.6cqw rgba(0, 0, 0, .20), 0 3.6cqw 7cqw -1.6cqw rgba(0, 0, 0, .50);
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 16 / 10; border-radius: 4px;
  container-type: inline-size;
  background: var(--t-stage,
    radial-gradient(75% 70% at 82% -8%, rgba(226, 200, 154, .30), rgba(226, 200, 154, 0) 70%),
    radial-gradient(70% 65% at -8% 108%, rgba(70, 128, 111, .42), rgba(70, 128, 111, 0) 70%),
    linear-gradient(160deg, #1F4A43 0%, #143530 50%, #0B201D 100%));
  color: var(--t-ink); font-family: var(--font-sans); font-size: 4cqw; line-height: 1.2; letter-spacing: -0.005em;
  hyphens: manual; forced-color-adjust: none;
}
.thumb::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.thumb--web { --t-stage: radial-gradient(80% 75% at 88% -12%, rgba(229, 185, 126, .36), rgba(229, 185, 126, 0) 70%), linear-gradient(165deg, #26403E 0%, #142A2B 55%, #0B191B 100%); }
.thumb--app { --t-stage: radial-gradient(52% 62% at 50% 34%, rgba(84, 148, 126, .46), rgba(84, 148, 126, 0) 72%), linear-gradient(180deg, #11342F 0%, #0A221F 60%, #061513 100%); }
.thumb--ai { --t-stage: radial-gradient(70% 85% at 90% 8%, rgba(229, 180, 118, .30), rgba(229, 180, 118, 0) 64%), linear-gradient(160deg, #222528 0%, #16191B 55%, #0E1011 100%); }
.thumb--brand { --t-stage: radial-gradient(75% 70% at 22% 12%, rgba(255, 251, 243, .85), rgba(255, 251, 243, 0) 70%), linear-gradient(160deg, #E6D8BE 0%, #D5C1A0 100%); }
.thumb--landing { --t-stage: radial-gradient(70% 85% at 12% -5%, rgba(255, 236, 200, .42), rgba(255, 236, 200, 0) 65%), linear-gradient(160deg, #C29B64 0%, #9B7244 58%, #7A5631 100%); }
.thumb.is-armed { --t-ps: paused; }
.thumb.is-armed.is-play { --t-ps: running; }
.thumb--landing, .thumb--support { aspect-ratio: 16 / 9; }
@media (min-width: 600px) { .thumb { aspect-ratio: 4 / 3; } .thumb--landing, .thumb--support { aspect-ratio: 16 / 9; } }
/* one brand everywhere: the hero's arch mark (an outline, #hs-arch) and the hero's client serif */
.th-mark { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 4.6; }
.th-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.th-serif { font-family: "YC Serif", "YC Serif Fallback", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.01em; }
/* photographs (R4) over the drawn imagery: the dusk dunes behind the website's headline (the sun kept in frame),
   the desert dinner behind the app's notification, the arched terrace in the landing page's arched frame */
.th-hero > .ph, .th-ph--sun { object-position: 100% 58%; }
.th-screen > .ph { height: 65%; object-position: 50% 100%; } /* the table stays whole in the 16:10 tile of a phone too */
.th-land__img > .ph, .th-ph--arch { object-position: 66% 50%; }
.th-ph--dinner { object-position: 50% 70%; }

/* browser (website, landing page) */
.th-browser {
  position: absolute; left: 8%; right: 8%; top: 11%; bottom: 11%;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.4cqw; background: var(--t-ivory); box-shadow: var(--t-shadow);
}
.th-bar { flex: none; position: relative; display: flex; align-items: center; gap: 1cqw; height: 6cqw; padding: 0 2.2cqw; background: #EEEBE4; border-bottom: 1px solid #DCD7CD; }
.th-bar > i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #D1CCC2; }
.th-url {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 34cqw; height: 3.8cqw;
  border-radius: .9cqw; background: #FFFFFF; color: var(--t-ink-2); font-size: max(12px, 2.6cqw); line-height: 1; white-space: nowrap;
}
@container (max-width: 379.98px) { .th-url { display: none; } }
.th-view { position: relative; flex: 1 1 auto; overflow: hidden; }

/* website: a dusk landscape, the brand and one action; the page scrolls gently once */
.th-page { position: absolute; left: 0; right: 0; top: 0; height: 150%; }
.th-hero { position: relative; height: 66.667%; overflow: hidden; color: var(--t-ivory); }
.th-nav { position: absolute; left: 6%; right: 6%; top: 9%; display: flex; align-items: center; justify-content: space-between; }
.th-nav .th-mark { width: 5cqw; height: 5cqw; color: var(--t-brass-lt); }
.th-burger { display: grid; gap: 1cqw; }
.th-burger i { display: block; width: 4.4cqw; height: max(1px, .34cqw); background: var(--t-ivory); opacity: .8; }
.th-copy { position: absolute; left: 6.5%; top: 31%; display: flex; flex-direction: column; align-items: flex-start; gap: 3.4cqw; }
.th-h { font-size: 7.6cqw; line-height: 1; white-space: nowrap; }
.th-btn {
  display: inline-block; padding: 1.4cqw 2.8cqw; border-radius: .7cqw;
  background: var(--t-brass); color: var(--t-pine); font-size: max(12px, 3.2cqw); font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.th-band { height: 33.333%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqw; padding: 3cqw 4.5% 0; background: var(--t-ivory); } /* the labels keep 4px+ of air at 12px */
.th-tile { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 1.4cqw; min-width: 0; }
.th-tile b { flex: none; font-size: max(12px, 2.6cqw); font-weight: 600; line-height: 1.1; color: var(--t-ink); white-space: nowrap; }
.th-tile__img { position: relative; flex: none; height: 13cqw; overflow: hidden; border-radius: .8cqw; }
@keyframes th-scroll { 0%, 14% { transform: translateY(0); } 50%, 66% { transform: translateY(-19%); } 100% { transform: translateY(0); } }
.thumb--web.is-armed .th-page { animation: th-scroll 2.8s cubic-bezier(0.45, 0, 0.2, 1) both; animation-play-state: var(--t-ps); }

/* mobile app: a larger handset rises from the tile's bottom edge (only the chassis bleeds); the notification
   lands inside the screen, under the island */
.th-phone {
  position: absolute; left: 50%; top: 10cqw; width: 50cqw; height: calc(50cqw * 147.6 / 71.6); transform: translateX(-50%); /* not aspect-ratio: Safari sizes this padded abspos box ~10px taller */
  padding: 1.1cqw; border-radius: 7.6cqw;
  background: linear-gradient(150deg, #4A504D 0%, #151817 30%, #0B0D0C 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--t-shadow);
}
.th-screen { position: relative; height: 100%; overflow: hidden; border-radius: 6.6cqw; background: #2A1D16; }
.th-screen > .th-img { height: 62%; }
.th-island { position: absolute; left: 50%; top: 2.2%; width: 30%; height: 3.2%; transform: translateX(-50%); border-radius: 99px; background: #040505; }
.th-note {
  position: absolute; left: 2.4cqw; right: 2.4cqw; top: 9.4cqw;
  display: flex; align-items: center; gap: 2cqw; padding: 2.2cqw 2.4cqw;
  border-radius: 3.6cqw; background: rgba(250, 247, 241, .95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 1cqw 3cqw rgba(0, 0, 0, .28);
}
.th-note__app { position: relative; flex: none; display: grid; place-items: center; width: 8.4cqw; height: 8.4cqw; border-radius: 2.2cqw; background: var(--t-pine); color: var(--t-brass-lt); }
.th-note__app .th-mark { width: 62%; height: 62%; }
.th-ok { position: absolute; right: -1.3cqw; bottom: -1.3cqw; display: grid; place-items: center; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: var(--t-brass); box-shadow: 0 0 0 .5cqw rgba(250, 247, 241, .96); }
.th-ok svg { width: 74%; height: 74%; fill: none; stroke: var(--t-pine); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.th-note__t { display: grid; gap: .5cqw; min-width: 0; }
.th-note__t b { font-size: max(12px, 3.4cqw); line-height: 1.15; font-weight: 600; color: var(--t-ink); white-space: nowrap; }
.th-note__t span { font-size: max(12px, 3.1cqw); line-height: 1.15; color: var(--t-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes th-drop { 0% { opacity: 0; transform: translateY(-5cqw) scale(.96); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes th-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.thumb--app.is-armed .th-note { animation: th-drop 1.2s var(--t-out) .3s both; animation-play-state: var(--t-ps); }
.thumb--app.is-armed .th-ok { animation: th-pop .5s var(--t-out) 1.3s both; animation-play-state: var(--t-ps); }
/* a narrow tile, where the 12px text floor outgrows 3.4cqw: a wider handset and a tighter notification keep
   its text clear of the card's edge (no text is shrunk below 12px) */
@container (max-width: 351.98px) {
  .th-phone { width: 56cqw; height: calc(56cqw * 147.6 / 71.6); }
  .th-note { left: 1.6cqw; right: 1.6cqw; gap: 1.6cqw; }
  .th-note__app { width: 7.6cqw; height: 7.6cqw; }
}

/* AI assistant: one question, one reply; the reply types in */
.th-chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 3.6cqw; padding: 0 9%; }
.th-q {
  align-self: flex-end; padding: 2.2cqw 3.8cqw; border-radius: 3.8cqw 3.8cqw 1cqw 3.8cqw;
  background: var(--t-sand); color: var(--t-ink); font-size: max(12px, 4.8cqw); white-space: nowrap;
}
.th-a { display: flex; align-items: flex-end; gap: 2.4cqw; }
.th-avatar { flex: none; display: grid; place-items: center; width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--t-brass); color: var(--t-pine); }
.th-avatar .th-mark { width: 56%; height: 56%; }
.th-bubble {
  position: relative; padding: 2.8cqw 4.2cqw; border-radius: 3.8cqw 3.8cqw 3.8cqw 1cqw;
  background: var(--t-ivory); color: var(--t-ink); font-size: max(13px, 6cqw); font-weight: 500; letter-spacing: -0.015em;
  white-space: nowrap; box-shadow: var(--t-shadow);
}
.th-dots { position: absolute; left: 4.2cqw; top: 50%; display: flex; gap: 1.2cqw; transform: translateY(-50%); opacity: 0; }
.th-dots i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--t-ink-2); }
@keyframes th-in { from { opacity: 0; transform: translateY(2cqw); } to { opacity: 1; transform: none; } }
@keyframes th-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes th-typing { 0% { opacity: 0; } 12%, 84% { opacity: 1; } 100% { opacity: 0; } }
@keyframes th-bob { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-.7cqw); opacity: 1; } }
.thumb--ai.is-armed .th-q { animation: th-in .7s var(--t-out) .1s both; animation-play-state: var(--t-ps); }
.thumb--ai.is-armed .th-a { animation: th-in .7s var(--t-out) .55s both; animation-play-state: var(--t-ps); }
.thumb--ai.is-armed .th-dots { animation: th-typing 1.15s linear .6s both; animation-play-state: var(--t-ps); }
.thumb--ai.is-armed .th-dots i { animation: th-bob .5s ease-in-out .6s 2; animation-play-state: var(--t-ps); }
.thumb--ai.is-armed .th-dots i:nth-child(2) { animation-delay: .72s; }
.thumb--ai.is-armed .th-dots i:nth-child(3) { animation-delay: .84s; }
/* a replay keeps the question that is already read; only the answer is typed again */
.thumb--ai.is-replay .th-q { animation: none; }
.thumb--ai.is-armed .th-w { animation: th-fade .35s ease 1.7s both; animation-play-state: var(--t-ps); }
.thumb--ai.is-armed .th-w:nth-of-type(3) { animation-delay: 1.9s; }
.thumb--ai.is-armed .th-w:nth-of-type(4) { animation-delay: 2.1s; }

/* brand: a letterpress card on a sand stage turns over to its face; a three-colour strip runs down its edge */
.th-card { position: absolute; left: 50%; top: 50%; width: 58cqw; aspect-ratio: 1.75; transform: translate(-50%, -50%); perspective: 160cqw; }
.th-card__in { position: absolute; inset: 0; transform-style: preserve-3d; }
.th-card__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw;
  overflow: hidden; border-radius: 1.2cqw; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: var(--t-shadow);
}
.th-card__front {
  background: linear-gradient(150deg, #FCF8F0 0%, #F1E7D5 100%); color: #1F4A40;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(120, 90, 50, .10), 0 .3cqw .8cqw rgba(74, 51, 37, .14), 0 4cqw 7cqw -2cqw rgba(74, 51, 37, .45);
}
.th-card__front .th-mark { width: 9cqw; height: 9cqw; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .85)); }
.th-word { font-size: max(12px, 5cqw); line-height: 1; color: #1F4A40; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .85); }
.th-card__back { background: linear-gradient(150deg, #24503F 0%, #0F2B26 100%); color: var(--t-brass-lt); transform: rotateY(180deg); }
.th-card__back .th-mark { width: 11cqw; height: 11cqw; }
.th-strip { position: absolute; top: 0; right: 0; bottom: 0; width: 2.6cqw; display: grid; grid-template-rows: repeat(3, 1fr); }
.th-strip i { transform-origin: center top; }
.th-strip i:nth-child(1) { background: #163A34; }
.th-strip i:nth-child(2) { background: #D2B07A; }
.th-strip i:nth-child(3) { background: #B9825B; }
@keyframes th-flip { from { transform: rotateY(180deg); } to { transform: rotateY(0deg); } }
@keyframes th-grow-y { from { transform: scaleY(0); } to { transform: none; } }
.thumb--brand.is-armed .th-card__in { animation: th-flip 1.5s var(--t-out) .3s both; animation-play-state: var(--t-ps); }
.thumb--brand.is-armed .th-strip i { animation: th-grow-y .5s var(--t-out) 1.2s both; animation-play-state: var(--t-ps); }
.thumb--brand.is-armed .th-strip i:nth-child(2) { animation-delay: 1.35s; }
.thumb--brand.is-armed .th-strip i:nth-child(3) { animation-delay: 1.5s; }

/* landing page: one offer, one action on a brass stage; a cursor glides in and presses the action */
.th-land { display: flex; background: var(--t-ivory); }
.th-land__copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3cqw; padding: 0 3cqw 0 6cqw; }
.th-land .th-h { font-size: 5.4cqw; line-height: 1.06; color: var(--t-pine); white-space: normal; }
.th-btn--pine { position: relative; background: var(--t-pine); color: var(--t-ivory); }
.th-land__img { position: relative; flex: none; width: 27cqw; margin: 3.6cqw 5cqw 0 0; overflow: hidden; border-radius: 13.5cqw 13.5cqw 0 0; }
.th-cursor { position: absolute; left: 64%; top: 52%; width: 3.6cqw; opacity: 0; pointer-events: none; }
.th-cursor svg { display: block; width: 100%; height: auto; overflow: visible; fill: #FFFFFF; stroke: #1C2321; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 .3cqw .5cqw rgba(0, 0, 0, .35)); }
@keyframes th-cursor {
  0% { opacity: 0; transform: translate(14cqw, 11cqw); }
  14% { opacity: 1; }
  48% { transform: translate(0, 0); }
  56% { transform: translate(0, 0) scale(.86); }
  64% { transform: translate(0, 0) scale(1); }
  84% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(.8cqw, .8cqw); }
}
@keyframes th-press {
  0%, 50% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 58, 52, .5); }
  57% { transform: scale(.94); }
  66% { transform: scale(1); box-shadow: 0 0 0 0 rgba(22, 58, 52, .5); }
  100% { transform: scale(1); box-shadow: 0 0 0 3.2cqw rgba(22, 58, 52, 0); }
}
.thumb--landing.is-armed .th-cursor { animation: th-cursor 2.4s cubic-bezier(0.33, 0, 0.2, 1) .2s both; animation-play-state: var(--t-ps); }
.thumb--landing.is-armed .th-btn { animation: th-press 2.4s ease-out .2s both; animation-play-state: var(--t-ps); }

/* support: one calm statement, a quiet time and a thin brass line; the check ticks in pine */
.th-status {
  position: absolute; left: 50%; top: 50%; width: 76cqw; transform: translate(-50%, -50%);
  display: grid; padding: 4.6cqw 5.4cqw 4.4cqw; border-radius: 2.4cqw; background: var(--t-ivory); box-shadow: var(--t-shadow);
}
.th-status__top { display: flex; align-items: center; gap: 2.8cqw; min-width: 0; }
.th-tick { flex: none; width: 8cqw; height: 8cqw; }
.th-tick svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; }
.th-tick__bg { fill: var(--t-pine); transform-box: fill-box; transform-origin: center; }
.th-tick__spin { stroke: #CFCAC0; stroke-width: 2; stroke-dasharray: .28 .72; transform-box: fill-box; transform-origin: center; opacity: 0; }
.th-tick__ok { stroke: var(--t-brass-lt); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.th-status__t { font-size: max(13px, 4.8cqw); font-weight: 600; line-height: 1.1; color: var(--t-ink); letter-spacing: -0.015em; white-space: nowrap; }
.th-status__sub { margin: 1.2cqw 0 0 10.8cqw; font-size: max(12px, 3.2cqw); line-height: 1.2; color: var(--t-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.th-spark { display: block; width: 100%; height: 7cqw; margin-top: 3.4cqw; overflow: visible; fill: none; stroke: #B08659; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.th-spark path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes th-spin { 0% { opacity: 1; transform: rotate(0deg); } 85% { opacity: 1; transform: rotate(300deg); } 100% { opacity: 0; transform: rotate(360deg); } }
@keyframes th-grow { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes th-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.thumb--support.is-armed .th-tick__spin { animation: th-spin 1.1s linear .1s both; animation-play-state: var(--t-ps); }
.thumb--support.is-armed .th-tick__bg { animation: th-grow .5s var(--t-out) 1.15s both; animation-play-state: var(--t-ps); }
.thumb--support.is-armed .th-tick__ok { animation: th-draw .45s ease-out 1.4s both; animation-play-state: var(--t-ps); }
.thumb--support.is-armed .th-spark path { animation: th-draw 1.6s cubic-bezier(0.45, 0, 0.2, 1) .2s both; animation-play-state: var(--t-ps); }
/* the verdict reads pale while the check spins and takes its ink as the tick lands */
@keyframes th-verdict { from { opacity: .3; } to { opacity: 1; } }
.thumb--support.is-armed :is(.th-status__t, .th-status__sub) { animation: th-verdict .45s ease-out 1.3s both; animation-play-state: var(--t-ps); }

/* ---------- §04 terms ---------- */
.terms__head .leadin { margin-top: var(--s-5); }
.pull { margin-top: var(--s-6); font-size: var(--fs-h3); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); max-width: 26ch; text-wrap: balance; }
.terms-actions { margin-top: var(--s-6); }
/* both actions share the row, so a wrapped pair becomes two equal buttons */
.terms-actions > .btn { flex: 1 1 auto; }
.memo { margin-top: var(--s-7); padding-block: clamp(4px, 1vw, 12px); }
.clause {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: var(--s-4);
  padding: var(--s-5) 0; border-top: 1px solid var(--rule);
}
.clause:first-child { border-top: 0; }
.clause__ck {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: -1px;
  border: 1px solid var(--ink); border-radius: 50%; color: var(--ink);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.clause__ck .i { width: 14px; height: 14px; stroke-width: 2; }
.clause:is(:hover, :focus-within) .clause__ck { background: var(--forge); border-color: var(--forge); color: var(--sheet); }
.clause__t { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.55; max-width: 56ch; }
.clause__t b { font-weight: 600; }
.clause__note { grid-column: 2; margin-top: 6px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-3); }
.terms__faq { margin-top: var(--s-3); }
.terms__faq .tlink { font-size: var(--fs-small); }
.terms-slots { margin-top: var(--s-4); }
/* phones and tablets: the clauses come first, then the closing line and the actions */
@media (max-width: 899.98px) {
  .terms__head { display: contents; }
  .terms__head > * { grid-column: 1 / -1; }
  .grid > .memo, .grid > .terms__faq, .grid > .terms-slots { order: 1; }
  .terms__head > .pull, .terms__head > .terms-actions { order: 2; }
}
@media (min-width: 900px) {
  .grid > .terms__head { grid-column: 1 / 6; grid-row: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .grid > .memo { grid-column: 7 / 13; grid-row: 1; margin-top: 0; }
  .grid > .terms__faq { grid-column: 7 / 13; grid-row: 2; }
  .grid > .terms-slots { grid-column: 7 / 13; grid-row: 3; }
}

/* ---------- §05 process: a clear timeline ---------- */
.stations { position: relative; display: grid; gap: var(--s-7); padding-left: 60px; counter-reset: station; }
.station { position: relative; counter-increment: station; }
.station::before {
  content: counter(station, decimal-leading-zero);
  position: absolute; left: -60px; top: -8px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--paper-2);
  font: 500 13px/1 var(--font-mono); font-variant-numeric: tabular-nums;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.station:not(:last-child)::after {
  content: ""; position: absolute; left: -40px; top: 40px; bottom: calc(-1 * var(--s-7) - 8px); width: 1px; background: var(--ink);
  transform-origin: center top;
}
.station > .label { color: var(--ink-2); }
.station h3 { margin-top: var(--s-2); font-size: var(--fs-h3); max-width: 18ch; }
.station__body { margin-top: var(--s-3); color: var(--ink-2); max-width: 40ch; font-size: 1.0625rem; line-height: 1.6; }
.station__dl { margin-top: var(--s-5); border-top: 1px solid var(--rule); }
.station__dl > div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.station__dl dd { margin-top: 2px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink); }
@media (max-width: 899.98px) { .station > * { max-width: 34rem; } }
.process__foot { margin-top: var(--s-7); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
@media (min-width: 900px) {
  .stations { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 0; padding: 72px 0 0; }
  @supports (grid-template-rows: subgrid) {
    .station { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
    .station__dl { align-self: start; }
  }
  .stations::before { content: ""; position: absolute; left: 20px; right: calc((100% - 3 * var(--gutter)) / 4 - 20px); top: 20px; height: 1px; background: var(--ink); transform-origin: left center; }
  .station::before { left: 0; top: -72px; }
  .station:not(:last-child)::after { display: none; }
}

/* ---------- §06 work (night) ----------
   R1.1 / R1.5: full container width. The eyebrow sits above the H2; Planora leads (text beside its build
   record), then the live tool with an illustration of what it does, then the Journal. */
.night { background: var(--night); color: var(--night-ink); }
#work.night { background: radial-gradient(55% 38% at 12% 0%, rgba(210, 176, 122, .07), rgba(210, 176, 122, 0) 70%), linear-gradient(180deg, #0F1A1B 0%, var(--night) 42%); }
.night .sec > .wrap::before, .sec.night > .wrap::before { background: var(--night-line); }
.night .eyebrow, .night .lead, .night .h2-2 { color: var(--night-muted); }
.night .label, .night .num { color: var(--night-muted); }
.night h2, .night h3 { color: var(--night-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s-5); }
.legend li, .status {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--night-muted);
}
.status { color: var(--night-ink); }
/* tag line: separators sit in the gap before each item and are clipped at line starts */
.tags {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px;
  margin-left: -22px; clip-path: inset(-4px -4px -4px 22px);
  font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--night-muted);
}
.tags > * { position: relative; margin-left: 22px; }
.tags > *::before { content: "·"; position: absolute; left: -14px; color: var(--night-line-ui); }

.work__head { display: grid; row-gap: var(--s-5); margin-bottom: var(--s-8); }
.work__intro .lead { max-width: 44ch; }
.wk { display: grid; row-gap: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--night-line); }
.wk + .wk { margin-top: var(--s-9); }
.wk h3, .journal h3 { margin-top: var(--s-4); font-size: var(--fs-h3); max-width: 26ch; }
.wk--lead h3 { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; max-width: 22ch; }
.work__lede { margin-top: var(--s-3); color: var(--night-muted); font-size: 1.0625rem; line-height: 1.6; max-width: 52ch; }
.wk--lead .work__lede { margin-top: var(--s-4); color: var(--night-ink); font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; }
.disclaimer { margin-top: var(--s-3); font-size: var(--fs-small); line-height: 1.5; color: var(--night-muted); max-width: 52ch; }
.wk--lead .disclaimer { margin-top: var(--s-5); }
.panel__foot { margin-top: var(--s-5); font-size: var(--fs-small); line-height: 1.5; color: var(--night-muted); }
.wk__text .tlink { margin-top: var(--s-4); }
.panel__next { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--night-line); display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-small); line-height: 1.5; color: var(--night-muted); max-width: 52ch; }
.panel__next .glyph { transform: translateY(1px); }

/* Planora build record (G10): commit-style and compact, secondary to the product text; the caveat stays visible */
.rec { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 4px; padding: clamp(20px, 2.2vw, 28px); color: var(--night-ink); align-self: start; }
.rec__title { font-size: var(--fs-small); line-height: 1.4; font-weight: 500; color: var(--night-ink); }
.rec__meta { margin-top: 2px; font-size: var(--fs-small); line-height: 1.5; color: var(--night-muted); }
.rec__meta::first-letter, .rec__stats dt::first-letter { text-transform: uppercase; }
.rec__stats { margin-top: var(--s-4); border-top: 1px solid var(--night-line); }
.rec__stats > div { display: grid; grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr); column-gap: var(--s-4); padding: 9px 0; border-bottom: 1px solid var(--night-line); }
.rec__stats dt { font-size: var(--fs-small); line-height: 1.45; color: var(--night-muted); }
.rec__stats dd { font-size: var(--fs-small); line-height: 1.45; color: var(--night-muted); }
.rec__n { margin-right: .2em; font: 500 var(--fs-small)/1.45 var(--font-mono); color: var(--night-ink); font-variant-numeric: tabular-nums; font-feature-settings: "zero"; }
.rec__meta--foot { margin-top: var(--s-3); }
.rec__caveat { margin-top: 2px; font-size: var(--fs-small); line-height: 1.5; color: var(--night-ink); }

/* Server Rendering Checker: an illustration of what the tool does (R1.9: no screenshot of a legacy-design page).
   One page fetched twice, as canonical HTML and as a cache-busted request, stands as two sheets on the night
   band; between them are the six things the tool compares, each ticked, on hairlines that join the sheets.
   Decorative: aria-hidden, the figure's caption describes it, and its text is English on every page
   (docs/I18N-SPEC.md). Night palette, hairlines, one green for the ticks; ivory marks for the first document,
   brass for the second. No text under 12px. */
.cmp { container-type: inline-size; }
.cmp__art {
  --mid: clamp(9.5rem, 31cqi, 14.5rem);
  color: var(--night-ink); font: 500 0.9375rem/1.3 var(--font-sans); letter-spacing: 0;
  forced-color-adjust: none;
}
.cmp__legend { display: none; }
.cmp__row { display: grid; grid-template-columns: minmax(0, 1fr) var(--mid) minmax(0, 1fr); }
.cmp__cell {
  --mark: rgba(237, 237, 232, .26); --mark-2: rgba(237, 237, 232, .56);
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 54px; padding: 8px clamp(12px, 2.6cqi, 20px);
  background: var(--night-2); border-inline: 1px solid var(--night-line); border-top: 1px solid rgba(237, 237, 232, .07);
}
.cmp__cell:last-child { --mark: rgba(210, 176, 122, .42); --mark-2: rgba(210, 176, 122, .8); }
.cmp__cell--lines { flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; }
.cmp__row--head .cmp__cell {
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 0; padding-block: 14px;
  border-top-color: var(--night-line); border-radius: 6px 6px 0 0;
}
.cmp__row:last-child .cmp__cell { border-bottom: 1px solid var(--night-line); border-radius: 0 0 6px 6px; }
.cmp__name { font-weight: 600; line-height: 1.25; color: var(--night-ink); }
.cmp__url { max-width: 100%; font: 400 12px/1.4 var(--font-mono); color: var(--night-muted); overflow-wrap: anywhere; }
.cmp__bar { display: block; flex: none; width: var(--w); height: 5px; border-radius: 3px; background: var(--mark); }
.cmp__bar--h { height: 9px; border-radius: 2px; background: var(--mark-2); }
/* a link: the word and its underline */
.cmp__bar--link { height: 9px; border-radius: 0; background: linear-gradient(var(--mark-2) 0 5px, transparent 5px 8px, var(--mark-2) 8px 9px); }
.cmp__code { flex: none; font: 500 14px/1 var(--font-mono); color: var(--mark-2); }
.cmp__tag {
  flex: none; padding: 5px 8px; border: 1px solid var(--night-line-ui); border-radius: 3px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--night-muted);
}
.cmp__tag--hit { border-color: rgba(63, 163, 122, .62); color: var(--ok-night); }
/* the check between the two sheets, on a hairline that joins them */
.cmp__chk { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.cmp__chk::before, .cmp__chk::after { content: ""; flex: 1 1 0; min-width: 8px; height: 1px; background: var(--night-line); }
.cmp__chk::before { flex: 0 0 clamp(10px, 3cqi, 26px); } /* the ticks stand in one column */
.cmp__row--head .cmp__chk::before, .cmp__row--head .cmp__chk::after { content: none; }
.cmp__chk svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--ok-night); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cmp__illus {
  margin-top: 12px;
  font: 500 12px/1.5 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--night-muted);
}
/* a narrow frame (phones, the two-column row up to ~1180px): the checks move to the left of the two sheets, and
   the sheets' names to a legend above them */
@container (max-width: 599.98px) {
  .cmp__art { font-size: clamp(0.8125rem, 2.9cqi, 0.9375rem); }
  .cmp__legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; color: var(--night-ink); }
  .cmp__legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
  .cmp__dot { width: 9px; height: 9px; border-radius: 2px; background: rgba(237, 237, 232, .56); }
  .cmp__dot--b { background: rgba(210, 176, 122, .8); }
  .cmp__row--head { display: none; }
  .cmp__row { grid-template-columns: minmax(7.5rem, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 6px; }
  .cmp__chk { grid-area: 1 / 1; justify-content: flex-start; gap: 6px; white-space: normal; }
  .cmp__chk::before, .cmp__chk::after { content: none; }
  .cmp__chk svg { width: 14px; height: 14px; }
  .cmp__cell { grid-row: 1; min-height: 44px; padding: 6px 8px; gap: 5px; }
  .cmp__cell:first-child { grid-column: 2; }
  .cmp__cell:last-child { grid-column: 3; }
  .cmp__cell--lines { gap: 6px; }
  .cmp__row--head + .cmp__row .cmp__cell { border-top-color: var(--night-line); border-radius: 6px 6px 0 0; }
  .cmp__tag { padding: 4px 6px; }
}
/* scrolled into view, the six checks tick one after another (no JS, reduced motion, print: all ticked) */
html.js .wk--tool.rv .cmp__chk svg { transition: opacity 280ms var(--ease), transform 520ms cubic-bezier(.16, 1, .3, 1); }
html.js .wk--tool.rv:not(.in) .cmp__chk svg { opacity: 0; transform: scale(.4); }
html.js .wk--tool.rv.in .cmp__row:nth-child(3) .cmp__chk svg { transition-delay: 320ms; }
html.js .wk--tool.rv.in .cmp__row:nth-child(4) .cmp__chk svg { transition-delay: 440ms; }
html.js .wk--tool.rv.in .cmp__row:nth-child(5) .cmp__chk svg { transition-delay: 560ms; }
html.js .wk--tool.rv.in .cmp__row:nth-child(6) .cmp__chk svg { transition-delay: 680ms; }
html.js .wk--tool.rv.in .cmp__row:nth-child(7) .cmp__chk svg { transition-delay: 800ms; }
html.js .wk--tool.rv.in .cmp__row:nth-child(8) .cmp__chk svg { transition-delay: 920ms; }

.journal { margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--night-line); display: grid; row-gap: var(--s-5); }
.notes { border-top: 1px solid var(--night-line); }
.notes a {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-5);
  min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--night-line);
  text-decoration: none; color: var(--night-ink);
}
.notes__t { font-size: 1.0625rem; line-height: 1.4; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--t-fast) var(--ease); }
.notes a:hover .notes__t { text-decoration-color: currentColor; }
.notes__m { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label); letter-spacing: 0.04em; color: var(--night-muted); text-transform: uppercase; }
.notes .i { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.notes a:hover .i { transform: translate(2px, -2px); }
.journal__links { margin-top: var(--s-3); display: flex; flex-wrap: wrap; gap: 0 var(--s-6); }

.work-slots:not(:has(> :not([hidden]))) { display: none; }
.work-close { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between; }
.work-close p { font-size: var(--fs-lead); line-height: 1.45; color: var(--night-ink); max-width: 40ch; }

@media (min-width: 900px) {
  .work__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 72px); align-items: end; }
  .wk, .journal { column-gap: clamp(32px, 4vw, 72px); }
  .wk--lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .wk--tool { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .journal { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- details / accordion ---------- */
.acc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: 56px; padding: 12px 0;
  list-style: none; cursor: pointer;
  font-weight: 500;
}
.acc > summary .pm { flex: none; }
.acc__body { border-top: 1px solid var(--rule); padding: var(--s-4) 0 var(--s-5); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content {
    height: 0; overflow: clip;
    transition: height var(--t-base) var(--ease), content-visibility var(--t-base) allow-discrete;
  }
  details[open]::details-content { height: auto; }
}

/* ---------- §07 founder ----------
   From 900px: eyebrow, H2 and the focus card on the left; the letter on the right. */
.founder__head h2 { max-width: 17ch; }
/* who "one accountable person" is, right under the heading ("Meet him ↓" lands here) */
.founder__by { margin-top: var(--s-5); display: grid; gap: 2px; }
.founder__name { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.founder__role { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.letter { margin-top: var(--s-7); max-width: 62ch; }
.letter p + p { margin-top: var(--s-4); }
.letter__first { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.letter p:not(.letter__first):not(.sign):not(.ps) { color: var(--ink-2); }
.sign { margin-top: var(--s-6) !important; padding-top: var(--s-3); border-top: 1px solid var(--ink); width: max-content; max-width: 100%; }
.sign__name { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); }
.sign__role { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.ps { margin-top: var(--s-5) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; color: var(--ink-2); }
.founder__aside { margin-top: var(--s-7); max-width: 30rem; }
.portrait { aspect-ratio: 4 / 5; border: 1px solid var(--rule); margin-bottom: var(--s-5); }
.focus { margin-top: var(--s-3); border-top: 1px solid var(--rule); }
.focus li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; line-height: 1.45; }
.founder__aside .tlink { margin-top: var(--s-3); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .grid > .founder__head { grid-column: 1 / 6; grid-row: 1; }
  .grid > .founder__aside { grid-column: 1 / 6; grid-row: 2; align-self: start; }
  .grid > .letter { grid-column: 7 / 13; grid-row: 1 / span 2; margin-top: 0; padding-top: calc(var(--fs-label) * 1.4 + var(--s-4) + .35em); }
}

/* ---------- §08 clock ---------- */
.clk-caption { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.clocks { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.clk__k { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.clk__t { margin-top: var(--s-3); font-size: clamp(4rem, 2rem + 5vw, 7.5rem); line-height: .95; letter-spacing: -0.04em; font-weight: 400; color: var(--ink); }
.clk__t time { display: inline-block; min-width: 5ch; }
.clk--sub { display: flex; align-items: baseline; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--rule); }
.clk--sub .clk__k { color: var(--ink-2); }
.clk--sub .clk__t { margin-top: 0; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); letter-spacing: -0.02em; color: var(--ink-2); }
.clk--sub .clk__t time { min-width: 0; }
.regions { margin-top: var(--s-8); display: grid; gap: var(--s-6) var(--gutter); }
.region { padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.region p:not(.label) { margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.region .tlink { margin-top: var(--s-1); font-size: var(--fs-small); }
.fit { margin-top: var(--s-8); display: grid; gap: var(--s-5) var(--gutter); }
.fit__title { font-size: var(--fs-h3); }
.fit__list { margin-top: var(--s-3); border-top: 1px solid var(--rule); }
.fit__list li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-small); line-height: 1.5; }
.fit__list li:last-child { border-bottom: 0; }
.fit__list .i { transform: translateY(3px); color: var(--ink); }
.legal { margin-top: var(--s-5); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
@media (min-width: 600px) {
  .regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fit { grid-template-columns: 1fr 1fr; }
  .fit__title { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .grid > .clock__head { grid-column: 1 / 7; grid-row: 1; align-self: center; padding-right: var(--s-6); }
  .grid > .clocks { grid-column: 7 / 13; grid-row: 1; align-self: center; margin-top: 0; }
  .fit { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .fit__title { grid-column: 1 / 5; padding-right: var(--s-5); }
  .fit__col:nth-of-type(1) { grid-column: 5 / 9; }
  .fit__col:nth-of-type(2) { grid-column: 9 / 13; }
}
@media (min-width: 1200px) {
  .fit__title { grid-column: 1 / 5; }
}

/* ---------- §09 faq ----------
   From 900px: heading, lead and the "still have questions" card on the left (sticky); questions on the right. */
.faq__side .lead { margin-top: var(--s-5); }
.faq { margin-top: var(--s-7); border-top: 1px solid var(--ink); }
.faq > .acc { border-bottom: 1px solid var(--rule); }
.faq > .acc > summary { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.35; letter-spacing: -0.01em; }
.faq > .acc > summary:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line-ui); }
.faq .acc__body p { color: var(--ink-2); max-width: 60ch; }
.faq-close { margin-top: var(--s-7); display: grid; justify-items: start; gap: var(--s-5); }
.faq-close p { font-size: 1.1875rem; line-height: 1.45; font-weight: 500; max-width: 30ch; }
.faq-close .btn { max-width: 100%; white-space: normal; padding-block: 10px; }
@media (max-width: 899.98px) {
  .faq__side { display: contents; }
  .faq__side > * { grid-column: 1 / -1; }
  .grid > .faq { order: 1; }
  .faq__side > .faq-close { order: 2; }
}
@media (min-width: 900px) {
  .grid > .faq__side { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--header-h) + var(--s-6)); padding-right: var(--s-5); }
  .grid > .faq { grid-column: 6 / 13; margin-top: 0; }
}
@media (min-width: 1200px) {
  .grid > .faq__side { padding-right: var(--s-7); }
}

/* ---------- §10 start ---------- */
.start__head .lead { margin-top: var(--s-5); max-width: 44ch; }
.start__form { margin-top: var(--s-7); }
.start__next, .start__write { margin-top: var(--s-7); }
.label-h { font-weight: 500; }
.next { margin-top: var(--s-3); border-top: 1px solid var(--rule); }
.next li { display: grid; grid-template-columns: 2rem 1fr; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-small); line-height: 1.5; }
.next .num { font-size: var(--fs-label); line-height: 1.4rem; }
.channels { margin-top: var(--s-3); border-top: 1px solid var(--rule); }
.ch { display: flex; align-items: center; gap: var(--s-4); min-height: 56px; border-bottom: 1px solid var(--rule); }
.ch__k { flex: none; width: 5.5rem; }
.ch__v { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.ch__v:hover { text-decoration-thickness: 2px; }
.ch__copy {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--line-ui); border-radius: 2px;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink);
}
.ch__copy:hover { background: var(--paper-2); }
.ch__copy span { white-space: nowrap; hyphens: manual; }
.ch__v[data-channel="email"] { white-space: nowrap; }
@media (max-width: 479.98px), (min-width: 900px) and (max-width: 1199.98px) {
  .channels:not(.channels--dlg) .ch { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); padding: 10px 0; }
  .channels:not(.channels--dlg) .ch__k { grid-column: 1 / -1; width: auto; }
  .channels--dlg .ch__v { white-space: normal; }
}
/* phones: in the contact sheet the copy button takes its own line under the address, so neither breaks */
@media (max-width: 479.98px) {
  .channels--dlg .ch { flex-wrap: wrap; row-gap: 6px; padding: 8px 0 12px; }
  .channels--dlg .ch__v { flex: 1 1 100%; }
  .channels--dlg .ch__copy { margin-left: 32px; }
}
.full-brief { margin-top: var(--s-5); }
.full-brief .tlink { font-size: var(--fs-small); display: inline; line-height: 1.6; }
.full-brief .tlink .i { display: inline-block; vertical-align: -2px; margin-left: 6px; }
.full-brief__langs { margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-3); }
.noscript { margin-bottom: var(--s-5); padding: 12px 14px; border: 1px solid var(--line-ui); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .start { grid-template-rows: auto auto 1fr; }
  .start__head { grid-column: 1 / 6; grid-row: 1; }
  .start__next { grid-column: 1 / 6; grid-row: 2; }
  .start__write { grid-column: 1 / 6; grid-row: 3; }
  .start__form { grid-column: 7 / 13; grid-row: 1 / span 3; margin-top: 0; align-self: start; }
}

/* ---------- quick form ---------- */
.qf { display: block; }
.qf__bar { display: flex; flex-direction: column; gap: 6px; padding-bottom: var(--s-4); border-bottom: 1px solid var(--ink); margin-bottom: var(--s-5); }
.qf__title { font-size: var(--fs-h3); }
.field { margin-top: var(--s-5); }
.qf__bar + .field, .err-sum + .field, .qf__bar + .err-sum + .field { margin-top: 0; }
.field__label { display: block; margin-bottom: 8px; font-size: var(--fs-small); font-weight: 500; line-height: 1.4; color: var(--ink); }
.req { margin-left: 6px; font-size: 0.8125rem; font-weight: 400; color: var(--ink-3); }
.hint { margin-top: 8px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.input {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--line-ui); border-radius: 2px;
  font: 400 1.0625rem/1.4 var(--font-sans);
  transition: border-color var(--t-fast) var(--ease);
}
.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-2); }
/* an ink ring on fields: the forge colour stays with buttons, so a focused, empty field never reads as an error */
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111315' stroke-width='1.5'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.input[aria-invalid="true"] { border: 2px solid var(--error); padding: 11px 13px; }
/* chips: an even grid (3 columns in a wide form, 2 in a narrow one, 1 below 300px); selected = ink border and a
   vermilion left rule */
.qf { container-type: inline-size; }
.chips__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 460px) { .chips__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 299.98px) { .chips__row { grid-template-columns: minmax(0, 1fr); } }
@container (min-width: 300px) and (max-width: 339.98px) { .chips__row label { padding-inline: 10px; } }
.chips__row label {
  display: flex; align-items: center; min-height: 52px; padding: 8px 12px;
  border: 1px solid var(--line-ui); border-radius: 2px; background: var(--sheet);
  font-size: var(--fs-small); font-weight: 500; line-height: 1.25; color: var(--ink); text-align: left;
  cursor: pointer; user-select: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.chips__row label .i { display: none; }
.chips__row input[name="budget"] + label { white-space: nowrap; } /* an amount range never breaks at its dash */
.chips__row label:hover { border-color: var(--ink); }
.chips__row input:checked + label { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--forge); }
.chips__row input:focus-visible + label, html.js:not(.ptr) .chips__row input:focus + label { outline: 2px solid var(--forge); outline-offset: 2px; }
.qf-method .seg__row label { flex: 1 1 0; }
.err { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: var(--fs-small); line-height: 1.45; color: var(--error); }
.err .i { flex: none; margin-top: 2px; }
.err-sum { margin-bottom: var(--s-5); padding: var(--s-4); border: 2px solid var(--error); background: var(--sheet); color: var(--error); font-size: var(--fs-small); }
.err-sum p { font-weight: 600; }
.err-sum ul { margin-top: 6px; }
.err-sum li { margin-top: 2px; }
.err-sum a { color: var(--error); text-underline-offset: 3px; }
.err-sum:focus { outline: 2px solid var(--forge); outline-offset: 2px; }
.qf__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.qf__actions [data-submit] { flex: 1 1 auto; }
.qf__privacy { margin-top: var(--s-4); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.qf__foot { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.qf__foot .reassure { margin-top: 0; color: var(--ink-3); }
.qf__net { margin-top: var(--s-4); }
.qf__resume { margin-bottom: var(--s-5); padding: var(--s-4); border: 1px solid var(--line-ui); background: var(--paper); }
.qf__resume p { font-size: var(--fs-small); font-weight: 500; }
.qf__resume-btns { margin-top: var(--s-3); display: flex; gap: var(--s-4); align-items: center; }
.qf__panel .qf__title { outline-offset: 4px; }
.qf__panel-body { margin-top: var(--s-3); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.draft {
  margin-top: var(--s-4); max-height: 16rem; overflow: auto; padding: var(--s-4);
  background: var(--paper); border: 1px solid var(--rule);
  font: 400 var(--fs-small)/1.6 var(--font-sans); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
.qf__msg { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ok); min-height: 1.5em; }
.qf__msg.is-warn { color: var(--ink-2); }
.qf__sender { margin-top: var(--s-4); }
.qf__reply { margin-top: var(--s-2); font-size: var(--fs-small); line-height: 1.55; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
/* no mail app (an iPhone without Mail): the address and a copy button, so the draft still reaches us */
.qf__alt { margin-top: var(--s-3); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.qf__alt .ch__copy { display: flex; width: max-content; margin: var(--s-2) 0 0; }
/* success: a clean confirmation (R1.3: no title block) */
.qf__ok-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-4); border-radius: 50%; background: var(--ok); color: var(--sheet); }
.qf__ok-mark .i { width: 22px; height: 22px; stroke-width: 2; }
.qf__ref { margin-top: var(--s-2); font: 400 var(--fs-small)/1.5 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.qf__ref b { font-weight: 500; color: var(--ink); }
.qf__ok .label { margin-top: var(--s-5); }
.next--sm { margin-bottom: var(--s-3); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
html:not(.js) :is([data-next], [data-back], [data-open-consent], [data-print], [data-copy-email]) { display: none; }
@media (max-width: 599.98px) {
  .qf__actions .btn { flex: 1 1 100%; }
  /* phones: the primary action first, "Back" as a quiet text link under it */
  .qf__actions [data-back] {
    order: 1; flex: 0 0 auto; min-height: 44px; padding: 0; border: 0; background: none;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  }
}

/* ---------- dialogs ---------- */
.dlg {
  padding: 0; border: 1px solid var(--ink); border-radius: 0;
  background: var(--sheet); color: var(--ink);
  width: calc(100% - 32px); max-width: 640px; max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.dlg[open] { display: flex; flex-direction: column; }
.dlg--form { max-width: 720px; }
.dlg::backdrop { background: rgba(17, 19, 21, .48); }
.dlg__head {
  position: relative; z-index: 1; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 14px 14px 14px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--rule);
}
.dlg__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; max-width: none; }
.dlg__close { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 2px; color: var(--ink); }
.dlg__close:hover { border-color: var(--line-ui); }
.dlg__body { overflow-y: auto; overscroll-behavior: contain; padding: var(--s-5) clamp(20px, 3vw, 32px) clamp(24px, 3vw, 32px); }
.dlg__intro { color: var(--ink-2); font-size: 1.0625rem; }
.channels--dlg { margin-top: var(--s-5); }
.channels--dlg .ch__v { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.channels--dlg .ch__v .i { color: var(--ink-3); }
/* the contact sheet: email first, the shared clock, then the two structured ways to start */
.dlg__now { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--ink-2); }
.dlg__now time { font: 500 var(--fs-small)/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.dlg__foot { margin-top: var(--s-4); padding-top: var(--s-2); border-top: 1px solid var(--rule); display: grid; justify-items: start; gap: 4px; font-size: var(--fs-small); }
.cn p { color: var(--ink-2); font-size: 1.0625rem; }
.check { margin-top: var(--s-5); display: flex; gap: 12px; align-items: center; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--forge); flex: none; }
.check label { font-weight: 500; cursor: pointer; }
.cn .cta-row { margin-top: var(--s-5); }
html:has(dialog[open]) { overflow: hidden; }
@media (max-width: 599.98px) {
  .dlg { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; }
  /* the contact sheet is short: on phones it rises from the bottom instead of filling an empty screen */
  #contact-sheet { inset: auto 0 0; height: auto; max-height: calc(100% - 48px); margin: 0; border-top: 1px solid var(--ink); }
  #contact-sheet .dlg__body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- sticky bar (< 900px) ---------- */
.sticky-cta { display: none; }
@media (max-width: 899.98px) {
  html { scroll-padding-bottom: 88px; }
  body { padding-bottom: 80px; }
  .site-footer { margin-bottom: -80px; padding-bottom: calc(var(--s-6) + 80px); }
  html.js .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; gap: 8px;
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 8px var(--margin) calc(8px + env(safe-area-inset-bottom));
    background: var(--sheet); border-top: 1px solid var(--rule);
    transform: translateY(100%); opacity: 0; visibility: hidden;
    transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base);
  }
  html.js .sticky-cta.is-on { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
}
.sticky-cta__btn { flex: 1 1 auto; min-width: 0; }
.sticky-cta__btn .l-short { display: none; }
@media (max-width: 359.98px) {
  .sticky-cta__btn .l-long { display: none; }
  .sticky-cta__btn .l-short { display: inline; }
}
.sticky-cta__contact {
  flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink);
}
.sticky-cta__contact:hover { background: var(--paper-2); }

/* ---------- footer (night) ---------- */
.site-footer { padding-block: var(--section-pad) var(--s-6); }
.ft-top { padding-bottom: var(--s-8); }
/* The closing line stands on a photograph (R4): dune ridges at blue hour, edge to edge, under a scrim that keeps
   every text on it at AA and lets the band's lower edge sink into the footer's night. The band's own dark
   gradient shows until the photo has loaded (it is lazy and takes no space of its own, so nothing shifts). */
.site-footer--band { padding-top: 0; }
.ft-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: var(--section-pad);
  background: linear-gradient(168deg, #18201F 0%, #101314 46%, var(--night) 100%);
}
.ft-band > .ph { z-index: -2; object-position: 50% 34%; }
.ft-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 19, 21, .30) 0%, rgba(17, 19, 21, .18) 38%, rgba(17, 19, 21, .62) 82%, var(--night) 100%),
    linear-gradient(90deg, rgba(17, 19, 21, .46) 0%, rgba(17, 19, 21, .18) 52%, rgba(17, 19, 21, .40) 100%);
}
.site-footer--band .ft-cols { border-top: 0; padding-top: var(--s-5); }
@media (min-width: 900px) { .site-footer--band .ft-top { padding-bottom: var(--s-9); } }
.ft-closing { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; max-width: 18ch; text-wrap: balance; color: var(--night-ink); }
.ft-top .cta-row { margin-top: var(--s-6); gap: 12px 16px; }
.ft-mail { margin-left: var(--s-2); }
.ft-cols { padding-block: var(--s-7); border-top: 1px solid var(--night-line); row-gap: var(--s-6); }
.ft-col .label { color: var(--night-muted); margin-bottom: var(--s-2); }
.ft-col ul a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  color: var(--night-ink); text-decoration: none; font-size: var(--fs-small);
}
.ft-col ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft-col ul .i { width: 14px; height: 14px; color: var(--night-muted); transition: transform var(--t-fast) var(--ease); }
.ft-col a[aria-current] { font-weight: 600; }
/* the plain flat mark, at lockup scale (R1.3: no construction drawing) */
.ft-brand .brand { gap: 14px; color: var(--night-ink); }
.ft-brand .af-mark { height: 28px; }
.ft-brand .brand__word { font-size: 24px; }
.ft-tag { margin-top: var(--s-4); font-size: var(--fs-small); line-height: 1.5; color: var(--night-muted); max-width: 30ch; }
.ft-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-5);
  padding-top: var(--s-4); border-top: 1px solid var(--night-line);
  font-size: var(--fs-small); color: var(--night-muted);
}
.ft-bottom .tbtn { color: var(--night-ink); font-size: var(--fs-small); font-weight: 400; }
@media (min-width: 600px) {
  .ft-cols > * { grid-column: span 4; }
}
@media (min-width: 900px) and (max-width: 1199.98px) {
  .ft-cols > .ft-brand { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .ft-cols > * { grid-column: span 3; }
}
@media (min-width: 900px) {
  .ft-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .ft-closing { grid-column: 1 / 8; }
  .ft-top .cta-row { grid-column: 8 / 13; justify-content: flex-end; margin-top: 0; }
}

/* ---------- scroll reveals (§2.6) ---------- */
html.js .rv { opacity: 0; transform: translateY(8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
html.js .rv.in { opacity: 1; transform: none; }
html.js .sec.rv-sec > .wrap::before { transform: scaleX(0); transition: transform 400ms var(--ease); }
html.js .sec.rv-sec.in-sec > .wrap::before { transform: scaleX(1); }
/* §05: the line draws across, then the step nodes fill with ink in sequence */
html.js .stations.rv::before { transform: scaleX(0); transition: transform 600ms var(--ease) 120ms; }
html.js .stations.rv.in::before { transform: none; }
html.js .stations.rv:not(.in) .station::before { background: var(--paper-2); color: var(--ink); }
html.js .stations.rv.in .station:nth-child(1)::before { transition-delay: 160ms; }
html.js .stations.rv.in .station:nth-child(2)::before { transition-delay: 320ms; }
html.js .stations.rv.in .station:nth-child(3)::before { transition-delay: 480ms; }
html.js .stations.rv.in .station:nth-child(4)::before { transition-delay: 640ms; }
@media (max-width: 899.98px) {
  html.js .stations.rv .station::after { transform: scaleY(0); transition: transform 360ms var(--ease); }
  html.js .stations.rv.in .station::after { transform: none; }
  html.js .stations.rv.in .station:nth-child(2)::after { transition-delay: 160ms; }
  html.js .stations.rv.in .station:nth-child(3)::after { transition-delay: 320ms; }
}

/* ---------- /ru/ adjustments (never affect /) ---------- */
:root:lang(ru) .nw { white-space: nowrap; }
:root:lang(ru) .ft-closing .sl { display: block; }
/* links to English-only pages: hreflang="en" plus a small mono "EN" tag (brief §5.15) */
:root:lang(ru) .tag-en { margin-left: 2px; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-3); }
:root:lang(ru) .night .tag-en { color: var(--night-muted); }
/* body text hyphenates on /ru/ below 600px only (§2.2); mono labels and headings never do */
@media (max-width: 599.98px) {
  :root:lang(ru) :is(p, li, dd) { hyphens: auto; }
  :root:lang(ru) :is(.label, .eyebrow, .tags, .hero__eyebrow, .legal, .svc__note, .svc__receive, .svc__caveat, .fit li, .ch__copy, .clause__t b, .fact__k,
    .hero__sub, .reassure, .hero__checks li, .lead, .leadin, .svc__promise, .letter__first, .work-close p, .faq-close p, .tlink, .thumb *) { hyphens: manual; }
}
:root:lang(ru) .wk--lead h3 { max-width: 26ch; }
/* hero, desktop: "balance" picks the same line breaks for the fallback face and for Onest (lab CLS, §8.6) */
@media (min-width: 900px) {
  :root:lang(ru) .hero__sub { text-wrap: balance; }
}
/* header: the Russian nav needs ~490px, which 900–1199px cannot give next to the brand, the language
   switch and the CTA. There the nav moves into the Menu disclosure (the header CTA stays); from 1200px
   it is inline with slightly tighter gaps, and the short CTA label holds until 1280px. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  html.js:lang(ru) .menu-btn { display: inline-flex; }
  :root:lang(ru) .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    display: none; margin: 0;
    background: var(--sheet); border-top: 1px solid var(--rule);
    padding: var(--s-2) var(--margin) var(--s-6);
    overflow-y: auto; overscroll-behavior: contain;
  }
  :root:lang(ru) .menu.is-open { display: block; }
  :root:lang(ru) .nav ul { display: block; }
  :root:lang(ru) .nav li { border-bottom: 1px solid var(--rule); }
  :root:lang(ru) .nav a { display: flex; width: 100%; min-height: 56px; font-size: 1.25rem; letter-spacing: -0.01em; }
  :root:lang(ru) .nav .i { width: 16px; height: 16px; }
  :root:lang(ru) .menu__langs { display: block; }
  html.menu-open:lang(ru) { overflow: hidden; }
}
@media (min-width: 1200px) {
  :root:lang(ru) .nav ul { gap: clamp(14px, 1.8vw, 28px); }
}
@media (min-width: 1200px) and (max-width: 1279.98px) {
  :root:lang(ru) .header__cta .l-long { display: none; }
  :root:lang(ru) .header__cta .l-short { display: inline; }
  :root:lang(ru) .header__end { gap: var(--s-3); }
}
/* «Скопировать» is wider than "Copy": below 360px, and in the narrow 900–999px start column, the button takes
   its own line under the address */
@media (max-width: 359.98px), (min-width: 900px) and (max-width: 999.98px) {
  :root:lang(ru) .channels:not(.channels--dlg) .ch__copy { grid-column: 1 / -1; justify-self: start; margin-left: 0; margin-top: 4px; }
}

/* ---------- /es/, /fr/ and /de/ adjustments (never affect / or /ru/) ----------
   The three pages are written by scripts/build-lang.mjs from index.html, so their markup is the English page's and
   only the words differ. These rules make each language sit as the English does (docs/I18N-SPEC.md). The header
   needs none: with the one-button language switcher the three navs fit at the English breakpoints. */
:root:is(:lang(es), :lang(fr), :lang(de)) .nw { white-space: nowrap; }
/* links to English-only pages: hreflang="en" plus a small "EN" tag, as on /ru/ */
:root:is(:lang(es), :lang(fr), :lang(de)) .tag-en { margin-left: 2px; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-3); }
:root:is(:lang(es), :lang(fr), :lang(de)) .night .tag-en { color: var(--night-muted); }
/* the working-language line under the §10 lead (these pages only: the studio works in English, Russian and Armenian) */
.start__langs { margin-top: var(--s-3); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }

/* Hero. The H1 is two lines, split at its dash, as in English. Its second line is 16.2 times the type size in
   German («auf dem Niveau Ihres Unternehmens.») and 13.9 in French (English 12.4): the copy column is sized to
   that line, and the H1 is set a little smaller so that the stage beside it stays wide enough for its full
   chapter bar (560px) at 1280. The Spanish and French eyebrows (563px of mono) stay on one line from 1280px:
   there the column is at least that wide. */
@media (min-width: 700px) {
  :root:lang(fr) .hero { --h1: min(52px, calc((min(100vw, 720px) - 2 * var(--margin)) / 14.35)); }
  :root:lang(de) .hero { --h1: min(46px, calc((min(100vw, 720px) - 2 * var(--margin)) / 16.65)); }
}
@media (min-width: 900px) and (max-width: 1079.98px) {
  :root:lang(fr) .hero { --h1: calc((100vw - 2 * var(--margin) - 40px) * 8 / 12 / 14.7); }
  :root:lang(de) .hero { --h1: calc((100vw - 2 * var(--margin) - 40px) * 8 / 12 / 17); }
}
@media (min-width: 1080px) {
  :root:lang(fr) .hero { --h1: clamp(38px, min(3.17vw, 6.15vh), 59.5px); --copy-w: calc(var(--h1) * 14.35); }
  :root:lang(de) .hero { --h1: clamp(34px, min(2.84vw, 5.5vh), 53px); --copy-w: calc(var(--h1) * 16.65); }
}
@media (min-width: 1280px) {
  :root:lang(es) .hero { --copy-w: max(calc(var(--h1) * 12.9), 572px); }
  :root:lang(fr) .hero { --copy-w: max(calc(var(--h1) * 14.35), 596px); }
}
/* the Spanish chapter prices are the longest («Desde 15.000 USD», 16 characters): while the stage is under 648px
   wide (windows of 1280 to about 1330px) its four columns hold them at 12px */
@container hs (min-width: 560px) and (max-width: 647.98px) {
  :root:lang(es) .hs-price a { font-size: 12px; }
}
/* a phone-width stage shows one price line for the selected chapter; the Spanish one («Desde 15.000 USD · desde
   4 semanas») is wider than the tabs' column, so it runs on under the Pause button, which stands a row above it */
@container hs (max-width: 559.98px) {
  :root:lang(es) .hs-prices { margin-right: calc(-44px - clamp(12px, 2.4cqi, 24px)); }
}
/* the prototype's heading: «Sie müssen uns nicht glauben.» and «Ne nous croyez pas sur parole.» are 21 to 22ch,
   so each half of the heading keeps one line where the column allows (English: 17ch, Russian: 19ch) */
:root:is(:lang(fr), :lang(de)) .proto__h2 { max-width: 22ch; }
/* the prototype's price line: on a narrow phone the longer strings break after their "·" (every other space in
   them is a no-break space) */
:root:is(:lang(es), :lang(fr), :lang(de)) .proto__nw { white-space: normal; }
/* the prototype's closing offer (full screen on a phone). af/proto/proto.css keeps its price on one line, which
   holds "from $15,000 · from 4 weeks" but cut «desde 15.000 USD · desde 4 semanas» on a 320px phone: here the price
   may break after its "·" (the only plain space in it), and a button label that needs two lines takes two even ones */
:root:is(:lang(es), :lang(fr), :lang(de)) .pt-offer__price b { white-space: normal; }
:root:is(:lang(es), :lang(fr), :lang(de)) .pt-offer__cta { text-wrap: balance; }
/* budget chips: «Menos de 10.000 USD» and «10.000–20.000 USD» are wider than "$10,000–20,000" and must not break
   at the dash, so the row takes fewer columns where three, or two, would not hold them */
@container (max-width: 383.98px) { :root:lang(es) .chips:not(#qf-service) .chips__row { grid-template-columns: minmax(0, 1fr); } }
@container (min-width: 460px) and (max-width: 579.98px) { :root:lang(es) .chips:not(#qf-service) .chips__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 367.98px) { :root:lang(de) .chips:not(#qf-service) .chips__row { grid-template-columns: minmax(0, 1fr); } }
@container (min-width: 460px) and (max-width: 555.98px) { :root:lang(de) .chips:not(#qf-service) .chips__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* «Kopieren» is wider than "Copy": where the address and the button do not fit one line, the button goes under it */
@media (max-width: 359.98px), (min-width: 900px) and (max-width: 999.98px) {
  :root:lang(de) .channels:not(.channels--dlg) .ch__copy { grid-column: 1 / -1; justify-self: start; margin-left: 0; margin-top: 4px; }
}
/* German: a long compound never overflows. Body text hyphenates below 600px (as on /ru/); labels, buttons, short
   UI lines and headings never do. Only German text is touched (:lang(de) on the element itself): the mock-ups and
   the prototype app are lang="en" and are left alone. */
@media (max-width: 599.98px) {
  /* only words of ten letters or more are divided, and never closer than four letters to either end: no «Ih-rem» */
  :root:lang(de) :is(p, li, dd):lang(de) {
    hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4;
    -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4;
  }
  :root:lang(de) :is(.label, .eyebrow, .tags, .hero__eyebrow, .legal, .svc__note, .fit li, .ch__copy, .clause__t b, .fact__k,
    .hero__sub, .reassure, .hero__checks li, .lead, .leadin, .svc__promise, .work-close p, .faq-close p, .tlink, .hint, .start__langs,
    .clause__note, .rec__stats dd, .hs *, .thumb *, .cmp *) { hyphens: manual; -webkit-hyphens: manual; }
}
/* «Projekteinschätzung anfragen» on a 320px phone: the button keeps one line with a little less padding */
@media (max-width: 359.98px) {
  :root:lang(de) .btn { padding-inline: 12px; }
}

/* ---------- A/B variants (§6.5) ---------- */
[class*="only-v-"]:not(.v-on), .v-off { display: none !important; }

/* ---------- owner preview: ?slots=1 (§0.5) ---------- */
html.show-slots [data-slot][hidden] {
  display: block !important; margin: 8px 0; padding: 8px 12px;
  border: 1px dashed var(--forge); color: var(--forge);
  font: 500 var(--fs-label)/1.45 var(--font-mono); letter-spacing: 0.02em; text-transform: none;
}
html.show-slots span[data-slot][hidden] { display: inline-block !important; margin: 4px 0 4px 8px; }
html.show-slots [data-slot][hidden]::before { content: attr(data-placeholder); }
html.show-slots .night [data-slot][hidden] { border-color: var(--forge-night); color: var(--forge-night); }
html.show-slots .work-slots { display: block; }

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

/* ---------- forced colours ---------- */
@media (forced-colors: active) {
  .sheet, .dlg, .btn, .input, .chips__row label, .seg__row label, .ch__copy, .sticky-cta__contact, .rec, .clause__ck { border-color: CanvasText; }
  .seg__row input:checked + label, .chips__row input:checked + label { border: 2px solid Highlight; }
  .ruler { border: 1px solid CanvasText; }
  .ruler__bar, .hs-tab__fill { forced-color-adjust: none; background: CanvasText; }
  .ft-band { background: none; }
  .ft-band > .ph, .ft-band::after { display: none; } /* the closing line and its buttons take the system colours */
  .cmp__art { padding: 14px; background: #111315; } /* the illustration keeps its own colours, so it keeps its own ground */
  .hs-bar { background: Canvas; } /* the scene stays dark: the bar's controls sit on the system background */
  .glyph { color: CanvasText !important; }
  :focus-visible { outline-color: Highlight; }
}

/* ---------- print (§4.7) ---------- */
@media print {
  :root { --night: #FFFFFF; --night-2: #FFFFFF; --night-ink: #111315; --night-muted: #474D52; --night-line: #D2D4CF; --forge-night: #B8360F; --ok-night: #1B6A46; --paper: #FFFFFF; --paper-2: #FFFFFF; }
  html, body { background: var(--sheet) !important; }
  body { padding: 0 !important; font-size: 11pt; }
  .site-header, .sticky-cta, dialog, .hs, .skip, .ft-cols nav, .cta-row, .qf__actions, .menu, .ft-top .cta-row, .terms-actions, .svc__discuss, .faq-close .btn, .thumb, noscript { display: none !important; }
  .night { background: var(--sheet) !important; color: var(--ink) !important; }
  .sec > .wrap { padding-block: 24pt; }
  html.js .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .sec.rv-sec > .wrap::before { transform: none !important; }
  html.js .wk--tool.rv .cmp__chk svg { opacity: 1 !important; transform: none !important; }
  .cmp__cell { --mark: rgba(17, 19, 21, .24); --mark-2: rgba(17, 19, 21, .62); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cmp__cell:last-child { --mark: rgba(143, 106, 58, .5); --mark-2: #8F6A3A; }
  .ft-band { background: none; padding-top: 24pt; }
  .ft-band > .ph, .ft-band::after { display: none; }
  :root { --fs-h2: 22pt; --fs-h3: 13pt; --fs-lead: 11.5pt; --fs-price: 14pt; --fs-body: 10pt; --section-pad: 20pt; --gutter: 14px; --margin: 0px; }
  .wrap { max-width: none; padding-inline: 0; }
  .grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .faq__side { position: static !important; }
  .eyebrow { margin-bottom: 8pt; }
  .sec-head, .terms__head { margin-bottom: 14pt; }
  .sec-head--split { display: block; }
  .sec-head--split > .lead { margin-top: 8pt; }
  .svc { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1.25fr) !important; column-gap: 18px; row-gap: 6pt; padding: 12pt 0; }
  .svc > .svc__a { grid-column: 1 !important; grid-row: 1 !important; padding-right: 0; }
  .svc > .svc__side { grid-column: 2 !important; grid-row: 1 !important; display: block; }
  .svc__b .price { font-size: var(--fs-price); }
  .svc > .svc__c { grid-column: 3 !important; grid-row: 1 !important; }
  .svc > .svc--sub { grid-column: 1 / -1 !important; grid-row: 2 !important; margin-top: 8pt; }
  .svc__foot, .incl { display: none !important; }
  .ruler, .ruler__bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ruler { background: #E6E6E0; }
  .svc__desc, .svc__receive, .svc__caveat, .clause__t { font-size: 9.5pt; }
  .clause { grid-template-columns: 22px minmax(0, 1fr) 150px; column-gap: 12px; padding: 9pt 0; }
  .clause__note { grid-column: 3; margin-top: 0; }
  .clause__ck { width: 16px; height: 16px; }
  .clause__ck .i { width: 10px; height: 10px; }
  h2, .sec-head { break-after: avoid; }
  .memo { break-inside: avoid; margin-top: 0; padding: 14pt 18pt; }
  .svc, .clause, .station, .wk, .rec, .acc { break-inside: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font: 400 9pt var(--font-mono); color: var(--ink-3); word-break: break-all; }
  html.print-terms main > section:not(#terms):not(#services) { display: none; }
  html.print-terms .site-footer { display: none; }
  .terms__faq { display: none; } /* the FAQ it points to is not printed */
  body::after { content: "hello@axiomforge.am · axiomforge.am"; display: block; margin-top: 18pt; padding-top: 8pt; border-top: 1px solid var(--rule); font: 400 9pt var(--font-mono); color: var(--ink-3); }
  @page { margin: 16mm; }
}

/* ==========================================================================
   #prototype: the clickable app prototype's section shell (REVISION-R1 §R1.8).
   Render-time CSS: it draws the section, the guidance panel, the dark stage and the device with its
   launch screen and its hardware Dynamic Island, so nothing shifts when the app arrives. The app itself
   (/af/proto/proto.js + proto.css) is loaded lazily by site.js ("prototype"). The launch screen's serif is
   the hero's "YC Serif" with its metric-matched fallback (top of this file).
   ========================================================================== */

.proto { position: relative; }
.proto > .wrap { position: relative; padding-block: 28px clamp(56px, 7vh, 96px); }
.proto > .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--margin); right: var(--margin);
  height: 1px; background: var(--rule);
}
.proto button, .proto a { -webkit-tap-highlight-color: transparent; }

.proto__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.proto__head, .proto__try, .proto__more { min-width: 0; }
/* R1.8 round 2: the H2 is capped at 44 px here, so the tasks and the CTA fit beside the phone */
.proto__h2 { max-width: 17ch; font-size: clamp(1.875rem, 1.45rem + 1.5vw, 2.75rem); }
:root:lang(ru) .proto__h2 { max-width: 19ch; }

/* ---------- the stage: a dark, quiet plinth that echoes the hero's night stage ---------- */
.proto__stage {
  position: relative; min-width: 0; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; align-content: center;
  padding: 24px 16px 28px; border-radius: 2px;
  background:
    radial-gradient(46% 26% at 50% 100%, rgba(214, 170, 108, .28), rgba(214, 170, 108, 0) 100%),
    radial-gradient(70% 55% at 50% 42%, rgba(44, 92, 81, .34), rgba(44, 92, 81, 0) 72%),
    linear-gradient(180deg, #08151A 0%, #0C2124 55%, #10221F 100%);
}
.proto__stage::before { /* a few stars, fading towards the floor */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220'%3E%3Cg fill='%23F6EEDF'%3E%3Ccircle cx='22' cy='30' r='.8' opacity='.7'/%3E%3Ccircle cx='96' cy='12' r='.6' opacity='.5'/%3E%3Ccircle cx='160' cy='54' r='.9' opacity='.6'/%3E%3Ccircle cx='230' cy='26' r='.6' opacity='.45'/%3E%3Ccircle cx='60' cy='118' r='.6' opacity='.4'/%3E%3Ccircle cx='200' cy='140' r='.7' opacity='.4'/%3E%3Ccircle cx='132' cy='186' r='.5' opacity='.3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 220px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 75%);
}

/* ---------- the device ---------- */
.proto-device {
  /* the screen is 390 x 844 CSS px, the body 420 x 874; one unit is 1/420 of the body width */
  position: relative; aspect-ratio: 420 / 874;
  width: min(100%, 320px, calc((100svh - 210px) * 420 / 874)); height: auto;
  container-type: inline-size;
}
@supports not (height: 1svh) { .proto-device { width: min(100%, 320px, calc((100vh - 210px) * 420 / 874)); } }
.proto-device > * { --u: calc(100cqw / 420); }
.proto-device::after { /* the ground shadow: one soft ellipse under the phone, no box-shadow steps */
  content: ""; position: absolute; left: 9%; right: 9%; bottom: -2.4%; height: 6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
  filter: blur(8px); pointer-events: none;
}
.proto-device__frame {
  position: absolute; inset: 0; border-radius: calc(var(--u) * 68);
  /* natural titanium: a brushed band with two specular edges */
  background: linear-gradient(90deg, #6D6C68 0%, #C9C6BE 2.2%, #8E8C86 5%, #A9A69F 50%, #8E8C86 95%, #CFCCC4 97.8%, #6D6C68 100%);
  box-shadow:
    inset 0 0 0 calc(var(--u) * 1) rgba(255, 255, 255, .42),
    inset 0 calc(var(--u) * 2) calc(var(--u) * 3) rgba(255, 255, 255, .25),
    0 calc(var(--u) * 2) calc(var(--u) * 4) rgba(0, 0, 0, .35);
}
.proto-device__frame::before { /* the black band between titanium and glass */
  content: ""; position: absolute; inset: calc(var(--u) * 4); border-radius: calc(var(--u) * 64);
  background: #070808;
  box-shadow: 0 0 0 calc(var(--u) * .8) rgba(0, 0, 0, .55), inset 0 0 0 calc(var(--u) * 1) #1A1B1C;
}
.proto-device__btn {
  position: absolute; width: calc(var(--u) * 4); border-radius: calc(var(--u) * 2);
  background: linear-gradient(90deg, #5E5D59, #B9B6AE 55%, #7C7A75);
}
.proto-device__btn--act { left: calc(var(--u) * -2.6); top: calc(var(--u) * 152); height: calc(var(--u) * 30); }
.proto-device__btn--vup { left: calc(var(--u) * -2.6); top: calc(var(--u) * 214); height: calc(var(--u) * 58); }
.proto-device__btn--vdn { left: calc(var(--u) * -2.6); top: calc(var(--u) * 286); height: calc(var(--u) * 58); }
.proto-device__btn--pwr { right: calc(var(--u) * -2.6); top: calc(var(--u) * 244); height: calc(var(--u) * 92); background: linear-gradient(270deg, #5E5D59, #B9B6AE 55%, #7C7A75); }
.proto-device__screen {
  position: absolute; inset: calc(var(--u) * 15); border-radius: calc(var(--u) * 55);
  overflow: hidden; background: #0F2A25;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari: clip transformed children to the radius */
}
/* the hardware Dynamic Island: part of the device, so it is there from the first paint, over the
   launch screen, during a reset and before the app loads. The app hides it only while its own island
   (drawn at exactly this size) expands. */
.proto-device__island {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--u) * 26);
  width: calc(var(--u) * 126); height: calc(var(--u) * 37); margin-left: calc(var(--u) * -63);
  border-radius: calc(var(--u) * 18.5); background: #000; pointer-events: none;
}
.proto-device__island::after { /* the front camera */
  content: ""; position: absolute; left: calc(var(--u) * 101); top: calc(var(--u) * 12);
  width: calc(var(--u) * 13); height: calc(var(--u) * 13); border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #28314A 0%, #0D1018 45%, #050608 70%);
  box-shadow: 0 0 0 calc(var(--u) * 1) #0A0B0E;
}
/* while the app's own island is active, the black pill is the app's; the camera lens stays on top, as on a real iPhone */
.proto-device[data-island="on"] .proto-device__island { background: transparent; }
.proto-device__glass { /* a faint glare over the glass, above the app */
  position: absolute; inset: calc(var(--u) * 15); border-radius: calc(var(--u) * 55); pointer-events: none; z-index: 3;
  background: linear-gradient(115deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .035) 100%);
}
/* desktop: shown once, when the wheel first passes over the phone before it has been clicked */
.proto-device__hint {
  position: absolute; z-index: 6; left: 50%; bottom: calc(var(--u) * 132); transform: translate(-50%, 6px);
  width: max-content; max-width: calc(100% - var(--u) * 70); padding: 9px 16px; border-radius: 20px; pointer-events: none;
  background: rgba(17, 19, 21, .72); color: #fff; font: 500 0.875rem/1.3 var(--font-sans); text-align: center; text-wrap: balance;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .28), 0 8px 24px rgba(0, 0, 0, .28);
  opacity: 0; transition: opacity .3s var(--ease, ease), transform .3s var(--ease, ease);
}
.proto-device__hint.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .proto-device__hint { transform: translate(-50%, 0); } }
/* on phones the framed device is a poster: the whole screen is one tap target that opens the app full screen */
.proto-device__open { display: none; }

/* the app's launch screen: the markup state before the module arrives, and without JS */
.proto-splash {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--u) * 22);
  background: radial-gradient(120% 70% at 50% 42%, #21493F 0%, #163A34 48%, #0F2A25 100%);
  color: #E8D7B6;
}
.proto-splash svg { width: calc(var(--u) * 84); height: calc(var(--u) * 84); fill: none; stroke: #D2B07A; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.proto-splash svg .sun { fill: #D2B07A; stroke: none; }
.proto-splash span {
  font: 500 calc(var(--u) * 21)/1.1 "YC Serif", "YC Serif Fallback", Georgia, serif;
  letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; white-space: nowrap;
}
.proto-splash__note { /* no JS */
  position: absolute; left: 12%; right: 12%; bottom: 12%; text-align: center;
  font: 400 max(12px, calc(var(--u) * 14))/1.45 var(--font-sans); color: rgba(250, 247, 241, .78);
}
.js .proto-splash__note { display: none; }
.proto-splash__retry { /* the module failed to load: one honest retry */
  display: none; position: absolute; left: 10%; right: 10%; bottom: 11%; min-height: 44px;
  padding: 10px 14px; border: 1px solid rgba(232, 215, 182, .5); border-radius: 2px; background: transparent;
  font: 500 max(13px, calc(var(--u) * 15))/1.35 var(--font-sans); color: #F4E7CE; cursor: pointer;
}
.proto--failed .proto-splash__retry { display: block; }

/* ---------- the guidance panel ---------- */
.proto__k { font: 600 1rem/1.4 var(--font-sans); letter-spacing: -0.005em; color: var(--ink); }
.proto__tasks { margin-top: 10px; counter-reset: pt; }
.proto__tasks li { border-top: 1px solid var(--rule); }
.proto__tasks li:last-child { border-bottom: 1px solid var(--rule); }
.proto__task { /* each task is a button: it takes the app to where the task starts */
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 14px; align-items: start;
  width: 100%; min-height: 48px; padding: 11px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; font-size: var(--fs-body); line-height: 1.45; color: var(--ink);
}
.proto__task-t { min-width: 0; text-wrap: balance; } /* a wrapped task never leaves one word alone on its second line */
:root .proto :is(.proto__task, .proto__progress, .proto__h2) { hyphens: manual; -webkit-hyphens: manual; } /* short UI lines: never split a word */
.proto__show {
  align-self: center; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink-2);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule);
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
.proto__task:hover .proto__show { color: var(--ink); text-decoration-color: currentColor; }
.proto__tasks li.is-done .proto__show { visibility: hidden; }
.proto__tasks li.is-next .proto__show { color: var(--ink); text-decoration-color: var(--forge); text-decoration-thickness: 2px; }
.proto__tick {
  position: relative; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%;
  border: 1.5px solid var(--line-ui);
  display: grid; place-items: center;
  font: 500 0.8125rem/1 var(--font-mono); color: var(--ink-2);
}
.proto__tick::before { counter-increment: pt; content: counter(pt); transition: opacity var(--t-fast) var(--ease); }
.proto__tick::after { /* the done state: a filled disc that grows in (transform and opacity only) */
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--ok);
  opacity: 0; transform: scale(.5);
  transition: opacity var(--t-base) var(--ease), transform 420ms cubic-bezier(.3, 1.5, .5, 1);
}
.proto__tick svg {
  position: absolute; inset: 0; z-index: 1; margin: auto; width: 14px; height: 14px;
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: scale(.4);
  transition: opacity var(--t-base) var(--ease) 80ms, transform 420ms cubic-bezier(.3, 1.6, .5, 1) 80ms;
}
.proto__tasks li.is-done .proto__tick::before { opacity: 0; }
.proto__tasks li.is-done .proto__tick::after { opacity: 1; transform: none; }
.proto__tasks li.is-done .proto__tick svg { opacity: 1; transform: none; }
.proto__status { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: 16px; margin-top: 12px; }
.proto__progress { flex: 1 1 14rem; min-width: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
/* Reset: a small text button beside the progress, only once there is something to reset */
.proto__reset {
  position: relative; flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 0.875rem/1.5 var(--font-sans); color: var(--ink-2);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule);
}
.proto__reset::after { content: ""; position: absolute; left: -10px; right: -10px; top: -10px; bottom: -10px; } /* 44 px target */
.proto__reset:hover { color: var(--ink); text-decoration-color: currentColor; }
.proto__reset[hidden] { display: none; }
.proto__progress.is-done + .proto__reset { margin-top: 12px; }
.proto__progress.is-done {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-left: 2px solid var(--ok);
  background: #E7F0EA; color: var(--ink); font-weight: 500;
}
.proto__progress.is-done::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--ok)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
/* Nothing moves when the third task is done. Where the phone is used in place (from 600px; below that it is a
   poster and the app opens full screen), the callout's height is there from the start: an invisible copy of its
   text (data-all, the string the app will print) shares one grid cell with the progress line, laid out in the
   callout's own box (2px rule, 14px, the 18px tick, 10px), so it wraps exactly as the callout will. Reset keeps
   its column while it is hidden, or the text beside it would re-wrap when it appears. Until all three are done
   the progress line stands in the middle of that height. */
@media (min-width: 600px) {
  .proto__status { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .proto__status::before {
    content: attr(data-all); grid-area: 1 / 1; visibility: hidden; pointer-events: none;
    padding: 12px 14px 12px 44px; font-size: var(--fs-small); line-height: 1.5; font-weight: 500; text-wrap: pretty;
  }
  .proto__progress { grid-area: 1 / 1; }
  .proto__progress.is-done { align-self: stretch; }
  .proto__reset { grid-area: 1 / 2; }
  .proto .proto__reset[hidden] { display: inline-flex !important; visibility: hidden; }
  .proto__progress.is-done + .proto__reset { align-self: start; }
}
@media (pointer: coarse) and (max-height: 520px) { /* a phone held sideways: the poster, as below 600px */
  .proto__status { display: flex; }
  .proto__status::before { content: none; }
  .proto .proto__reset[hidden] { display: none !important; }
}
.proto__price {
  padding-top: 18px; border-top: 1px solid var(--rule);
  font: 400 var(--fs-data)/1.5 var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero";
  color: var(--ink);
}
.proto__price b { font-weight: 500; }
.proto__nw { white-space: nowrap; }
/* the label on its own line, the price and the term together on the next: the line can never break
   around a "·" (the separator is kept in the markup for reading without CSS) */
.proto__price b { display: block; }
.proto__price .proto__sep { display: none; }
.proto__cta { margin-top: 16px; column-gap: 24px; }
.proto__note { margin-top: 10px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.proto__open-again { display: none; }
.proto.is-complete .proto__open-first { display: none; }
.proto.is-complete .proto__open-again { display: inline; }
.proto__cta .btn--primary { position: relative; }
.proto__cta .btn--primary::after { /* the "now's the moment" ring: opacity and scale only */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px var(--forge), 0 0 0 8px rgba(184, 54, 15, .18); opacity: 0;
}
.proto__cta .btn--primary.is-pulse::after { animation: proto-pulse 1.6s var(--ease) 2; }
@keyframes proto-pulse { 0% { opacity: 0; transform: scale(.98); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.04); } }
.proto__look { margin-top: 20px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.proto__caption {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 0.8125rem; line-height: 1.4; color: var(--ink-3);
}
.proto__caption svg { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1; }
.proto__caption svg rect + rect { fill: currentColor; }
.proto__open { display: none; }

/* ---------- layout ---------- */
@media (min-width: 600px) and (max-width: 899.98px) {
  .proto-device { width: auto; height: clamp(520px, calc(100svh - 160px), 860px); }
}
@media (min-width: 900px) {
  /* the hero's stage ends right above, on the other side: some paper separates the two dark stages. A jump
     to #prototype still lands with the stage 12px under the page's scroll-padding, the whole phone in view. */
  .proto { --proto-top: clamp(28px, 5vh, 56px); scroll-margin-top: calc(12px - var(--proto-top)); }
  .proto > .wrap { padding-top: var(--proto-top); }
  /* the panel is centred against the stage: rows above and below it take the spare height */
  .proto__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto auto auto auto minmax(0, 1fr);
    column-gap: var(--gutter); row-gap: 0; align-items: start;
  }
  /* the stage starts at the top of the section and stays in view while the panel is read */
  .proto__stage { grid-column: 1 / 7; grid-row: 1 / -1; position: sticky; top: calc(var(--header-h) + 12px); padding: 16px; }
  .proto-device { width: auto; height: clamp(500px, calc(100svh - var(--header-h) - 60px), 880px); }
  @supports not (height: 1svh) { .proto-device { height: clamp(500px, calc(100vh - var(--header-h) - 60px), 880px); } }
  .proto__head { grid-column: 7 / 13; grid-row: 2; padding-top: 28px; }
  .proto__try { grid-column: 7 / 13; grid-row: 3; margin-top: 28px; }
  .proto__open { grid-column: 7 / 13; grid-row: 4; justify-self: start; margin-top: 24px; }
  .proto__more { grid-column: 7 / 13; grid-row: 5; margin-top: 28px; }
}
/* short desktop windows (a 13" laptop with its bars): tighter rhythm, so the CTA stays in view even
   after the "all done" callout has grown under the tasks */
@media (min-width: 900px) and (max-height: 820px) {
  .proto__head { padding-top: 12px; }
  .proto__try { margin-top: 18px; }
  .proto__more { margin-top: 18px; }
  .proto__price { padding-top: 14px; }
  .proto__cta { margin-top: 12px; }
}
/* (round 3) the stage keeps six columns at every desktop width: about 110 px of night around the phone on
   each side, no wide empty margins; the panel gets the other six */
@media (max-width: 899.98px) {
  .proto__head { order: 1; }
  .proto__try { order: 2; }
  .proto__open { order: 3; }
  .proto__stage { order: 4; }
  .proto__more { order: 5; }
}

/* phones, and phones held sideways: the framed phone is a poster that opens the app full screen.
   Page scrolling always passes over it, and the primary action sits above the fold. */
@media (max-width: 599.98px), (pointer: coarse) and (max-height: 520px) {
  .proto__grid { row-gap: 20px; }
  .proto__tasks { margin-top: 6px; }
  .proto__task { padding: 9px 0; min-height: 44px; }
  .js .proto__open { display: inline-flex; width: 100%; }
  .js .proto-device__open {
    display: grid; place-items: end center; position: absolute; inset: calc(var(--u) * 15); z-index: 5;
    /* the pill sits on the Experiences pictures, above the card names: it never covers a line of the app's text */
    padding-bottom: calc(var(--u) * 252); border-radius: calc(var(--u) * 55); cursor: pointer;
    background: linear-gradient(180deg, rgba(8, 21, 26, 0) 55%, rgba(8, 21, 26, .38) 100%);
  }
  .proto-device__pill {
    display: inline-flex; align-items: center; justify-content: center; max-width: calc(100% - 16px); padding: 0 16px; min-height: 42px; border-radius: 21px;
    background: rgba(17, 19, 21, .62); color: #fff; font: 500 0.875rem/1.2 var(--font-sans); white-space: nowrap;
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .28), 0 8px 24px rgba(0, 0, 0, .28);
  }
  /* one forge-filled button per viewport: here "Open full screen" is the primary, the review CTA is outlined */
  .proto__cta .btn--primary { background: transparent; border-color: var(--ink); color: var(--ink); }
  .proto__cta .btn--primary:hover { background: var(--paper-2); }
}
@media (pointer: coarse) and (max-height: 520px) {
  .proto-device { width: auto; height: calc(100svh - 64px); }
  /* the phone is small here: a longer label («Открыть приложение») takes two lines inside the screen */
  .proto-device__pill { min-width: 0; padding: 6px 14px; white-space: normal; text-align: center; text-wrap: balance; }
}
/* touch tablets: the framed phone stays interactive, and "Open full screen" is offered too */
@media (pointer: coarse) { .js .proto__open { display: inline-flex; } }
/* phones, once all three tasks are done: the price and the CTA move up under the "all done" line and the
   CTA is the filled button; "Open the app again" steps back to an outline (still one filled button) */
@media (max-width: 599.98px), (pointer: coarse) and (max-height: 520px) {
  .proto.is-complete .proto__more { order: 3; }
  .proto.is-complete .proto__open { order: 4; background: transparent; border-color: var(--ink); color: var(--ink); }
  .proto.is-complete .proto__cta .btn--primary { background: var(--forge); border-color: var(--forge); color: var(--sheet, #fff); }
  .proto.is-complete .proto__cta .btn--primary:hover { background: var(--forge-deep, #8F2A0B); }
}

/* ---------- the full-screen dialog (the app moves into it; the frame stays behind) ---------- */
.proto-fs {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #000; color: inherit; overflow: hidden;
  overscroll-behavior: contain;
}
.proto-fs::backdrop { background: #000; }
.proto-fs[open] { display: block; }
/* the window the app grows in: during the launch it is a moving, rounded clip over the page */
.proto-fs__win { position: absolute; inset: 0; overflow: hidden; background: #F4EFE6; transform-origin: 0 0; }
.proto-fs.is-flying { background: transparent; }
.proto-fs.is-flying::backdrop { background: transparent; }
html:has(.proto-fs[open]) { overflow: hidden; }

/* print: an interactive prototype has nothing to show on paper */
@media print { .proto { display: none !important; } }
