/* paper v7 (condensed from v6) — sand ground, the living site plan, the assembling set, and the real app's screens (kit app-ui.css + app-ai.css). */

@font-face{ font-family: "Manrope"; src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family: "Manrope"; src: url("assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root{
  --sand: #F7F4EE;
  --sand-2: #EFEAE0;
  --paper: #FDFCF9;
  --ink: #2C3338;
  --ink-2: #4B5358;
  --ink-3: #626C73;
  --line: rgba(44, 51, 56, .14);
  --line-2: rgba(44, 51, 56, .26);
  --teal: #1B7A6C;
  --teal-ink: #135B51;
  --teal-soft: rgba(27, 122, 108, .10);
  --ochre: #B8863B;
  --ochre-ink: #8F6628;
  --ochre-soft: rgba(184, 134, 59, .14);
  --rust: #BD5B39;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4.6vw, 64px);
  --max: 1320px;
  --nav-h: 72px;
  /* v14 (R8) the page's one rhythm and one type scale: every section break is --sec-gap (from the last thing in one section to the
     first thing in the next); every section heading is --h2-*, every lede --lede-*, every body line --body-*. The clamps reach their
     ceiling by 1500 px, so from there to 2560 (a 1440 screen zoomed out to 70 %) nothing changes size: the page only centres. */
  --sec-gap: clamp(112px, 9.8vw, 148px);
  --h2-size: clamp(36px, 3.05vw, 44px);
  --h2-lh: 1.07;
  --h2-track: -.032em;
  --h2-weight: 720;
  --lede-size: clamp(17px, 1.25vw, 18px);
  --lede-lh: 1.58;
  --lede-measure: 44ch;
  --body-size: clamp(16px, 1.15vw, 16.5px);
  --body-lh: 1.55;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-1: 120ms; --t-2: 240ms; --t-3: 420ms; --t-4: 640ms;
  --shadow-card: 0 1px 2px rgba(16, 24, 32, .06), 0 0 0 1px rgba(44, 51, 56, .08);
  --shadow-sheet: 0 1px 1px rgba(44, 51, 56, .10), 0 10px 24px -12px rgba(44, 51, 56, .22), 0 40px 80px -30px rgba(44, 51, 56, .30);
  --shadow-lift: 0 2px 2px rgba(44, 51, 56, .08), 0 18px 36px -14px rgba(44, 51, 56, .26), 0 70px 120px -40px rgba(44, 51, 56, .32);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body{ margin: 0; }
body{
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; }
img, svg{ display: block; }
.mono{ font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible{ outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection{ background: rgba(27, 122, 108, .22); }

.skip{ position: fixed; top: -48px; left: 16px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--sand); border-radius: 6px; transition: top var(--t-2) var(--ease-out); }
.skip:focus{ top: 12px; }

/* ---------- ground: the living site plan and a fine grain ---------- */
.ground{ position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
.grain{
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}
main, header, footer{ position: relative; z-index: 2; }

/* ---------- buttons ---------- */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; border: 1px solid transparent; cursor: pointer; transition: background var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out), transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out); white-space: nowrap; }
.btn-ink{ background: var(--ink); color: var(--sand); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 14px -8px rgba(44,51,56,.5); }
.btn-ink:hover{ background: #1F2529; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(44,51,56,.55); }
.btn-ink:active{ transform: translateY(0); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover{ background: rgba(44,51,56,.05); }
.btn-sm{ height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn[disabled]{ background: rgba(44,51,56,.10); color: var(--ink-3); box-shadow: none; cursor: default; transform: none; }

.link-arrow{ display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); padding: 6px 2px; border-bottom: 1px solid var(--line-2); transition: border-color var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out); }
.link-arrow svg{ transition: transform var(--t-2) var(--ease-out); }
.link-arrow:hover{ color: var(--teal); border-color: var(--teal); }
.link-arrow:hover svg{ transform: translateX(4px); }

/* ---------- nav ---------- */
.nav{ position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 20; transition: background var(--t-3) var(--ease-out), box-shadow var(--t-3) var(--ease-out), backdrop-filter var(--t-3) var(--ease-out); }
.nav.is-stuck{ background: rgba(247, 244, 238, .94); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 1px 0 var(--line); }
.nav-in{ max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img{ height: 27px; width: auto; }
.brand-icon{ display: none; }
.nav-links{ display: flex; gap: 26px; margin-left: 24px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a{ position: relative; padding: 6px 0; transition: color var(--t-2) var(--ease-out); }
.nav-links a::after{ content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: var(--teal); transition: right var(--t-3) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="true"]{ color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after{ right: 0; }
.nav-actions{ margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-signin{ font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 2px; transition: color var(--t-2) var(--ease-out); }
.nav-signin:hover{ color: var(--ink); }

/* ==========================================================================
   paper v6 — the page around the real-app windows: five anchors at full width, detail panels between
   ========================================================================== */
.nav-links a{ white-space: nowrap; }

/* ---------- type: one H2, one H3, body 17 px (A3) ---------- */
.h2{ margin: 0; font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: var(--h2-track); font-weight: var(--h2-weight); text-wrap: balance; max-width: 16ch; }
.h3{ margin: 0 0 12px; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.2; letter-spacing: -.02em; font-weight: 720; text-wrap: balance; }
.lede{ margin: 0; font-size: var(--lede-size); line-height: var(--lede-lh); color: var(--ink-2); max-width: var(--lede-measure); text-wrap: wrap; }
.lede + .lede{ margin-top: 14px; }
.lede-strong{ color: var(--ink); font-weight: 500; }
.sec p{ text-wrap: wrap; }   /* v15 int: plain wrapping on ALL body copy, site-wide: `pretty` breaks at different words in WebKit and Firefox has none; `wrap` is the same line breaks in Chrome, Firefox and WebKit (proved word by word, whole page) */

/* ---------- sections ---------- */
.sec{ position: relative; padding: var(--sec-gap) 0 0; }
.sec-in{ max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sec-head{ margin-bottom: clamp(36px, 4vw, 56px); }
.head-split{ display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.head-split .lede{ margin-bottom: 4px; }
.sub-head{ display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin: clamp(56px, 6vw, 80px) 0 28px; padding-top: 26px; border-top: 1.2px solid var(--ink); }
.sec-head + .sub-head{ margin-top: 0; }
.sub-head .h3{ margin: 0; }
.sub-head p, .row-text p{ margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.sub-head p{ margin: 0; }

/* every product window is set at 1:1 on its own screen width; in a narrower column it reflows (main.js fit), never scaled below 1 */
.fitw{ width: 100%; }
figure{ margin: 0; }
.app.a-window{ box-shadow: 0 1px 2px rgba(16,24,32,.06), 0 0 0 1px rgba(44,51,56,.13), 0 30px 70px -30px rgba(44,51,56,.38); }
/* the five anchors: the container's full width, a heavier lift, so a skim reads as five screens */
.anchor{ position: relative; margin: 0; }
.anchor .app.a-window{ box-shadow: 0 1px 2px rgba(16,24,32,.08), 0 0 0 1px rgba(44,51,56,.16), 0 50px 100px -40px rgba(44,51,56,.45), 0 20px 40px -24px rgba(44,51,56,.18); border-radius: 14px; }
/* detail panels: lighter, smaller */
.row-fig .app.a-window,
.ai-b .app.a-window{ box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 0 0 1px rgba(44,51,56,.12), 0 22px 48px -28px rgba(44,51,56,.32); }

/* ---------- hero ---------- */
/* Desktop (1000 px and wider): the copy column is only as wide as its widest line needs (fit-content: the longer H1 line, or the sub's
   40ch), up to --copy-max, past which the H1 wraps; the art column holds the building alone, its canvas box (.hero-stage) spanning
   the whole column and nothing past it. building.js fits the whole motion envelope (tower, stack, every flight, the drift) inside that
   box, contained, with the box centred on the assembled tower (v14): the tower sits at the column's centre, level with the copy's
   centre (align-items: center), and is never cut. v14 (R0): ONE composition from 1000 to 2560 px: no breakpoint inside it, only
   fluid sizes (H1 3.7vw to 50 px, sub 17 to 19 px; the H1 stops growing where the container does), so a zoomed page is the same
   hero, scaled; from about 1350 px it is fixed and centred. The canvas and poster fade over their outer 5% left and right, so the
   ground shadow never ends on a hard edge at the column's side. */
/* v15 (S1a, owner: "too much space … make it cover more space"): the canvas box (.hero-stage) is the building's motion envelope itself,
   tight (building.js), with the assembled tower off-centre in it; anchors0.json carries the box's aspect (--env) and the tower's centre
   in it (--fx, --fy; assemble.mjs writes them on .hero). The box is --hs tall: as tall as the screen allows under the nav, capped at
   860 px and by the column's width (it may overhang the column by up to 40 px a side). It is placed so the tower's centre sits on the
   art column's centre, and the copy column is centred on the tower's centre (its box spans 2 x fy of the stage), so the copy reads level
   with the building. The hero is as tall as the stage: its bottom is the lowest point the motion reaches (the stack's front corner), so
   the break to #usual is the page's own --sec-gap below the drawing. ONE composition from 1000 to 2560 px (R0): no breakpoint, fluid
   sizes only (the H1 3.7vw to 50 px, the copy column 11.5 em of it, the stage by the screen's height). */
.hero{ position: relative; padding-top: var(--nav-h);
  --h1: clamp(36px, 3.7vw, 50px); --copy-w: calc(var(--h1) * 11.5); --hero-gap: 48px; --hero-pt: clamp(10px, 2.4vh, 28px); --hero-pb: 0px; }
.hero-in{ position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--hero-pt) var(--gutter) var(--hero-pb); container-type: inline-size;
  display: grid; grid-template-columns: var(--copy-w) minmax(0, 1fr); column-gap: var(--hero-gap); align-items: start; }
.hero-copy, .hero-art{ --hs: min(860px, max(500px, 100svh - var(--nav-h) - var(--hero-pt) - var(--hero-pb) - 12px), (100cqw - var(--copy-w) - var(--hero-gap) + 80px) / var(--env)); }
.hero-copy{ position: relative; z-index: 3; min-width: 0; min-height: calc(2 * var(--fy) * var(--hs)); display: flex; flex-direction: column; justify-content: center; }
.h1{ margin: 0; font-size: var(--h1); line-height: 1.02; font-weight: 770; letter-spacing: -.047em; text-wrap: balance; }
.h1-a{ display: block; }
.h1-b{ display: block; color: var(--teal); }
.sub{ margin: 28px 0 0; max-width: 40ch; font-size: clamp(17px, calc(12px + .5vw), 19px); line-height: 1.55; font-weight: 500; color: var(--ink-2); text-wrap: wrap; }
.actions{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-art{ position: relative; z-index: 2; height: var(--hs);
  /* the stage's lowest band (the stack's front corner, reached only mid-loop) overhangs the hero's end into #usual's own top space by
     11 % of the stage, so the break below the building at rest stays close to the page's rhythm at every screen height (owner, v15: no sea of
     empty paper under the building on a tall or zoomed-out screen; #usual's heading may show on the first screen) */
  margin-bottom: calc(-.11 * var(--hs)); }
.hero-stage, .hf{ position: absolute; top: 0; height: var(--hs); width: calc(var(--hs) * var(--env)); left: calc(50% - var(--fx) * var(--hs) * var(--env)); }
.hero-stage{
  background: radial-gradient(44% 36% at calc(var(--fx) * 100%) calc(var(--fy) * 100%), rgba(255, 254, 250, .9), rgba(252, 249, 242, .5) 60%, rgba(247, 244, 238, 0) 100%); }
/* the poster is the t = 0 frame of the same fit (the envelope's aspect, contained and centred), so the swap to the canvas is invisible */
.poster, .hero-canvas{ -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); }
.poster{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s var(--ease-out) .15s, visibility 0s linear .6s; }
.hero-canvas{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s var(--ease-out); }
.hero-art.is-live .hero-canvas{ opacity: 1; }
.hero-art.is-live .poster{ opacity: 0; visibility: hidden; }

/* v15 S1d: the floor index (assemble.mjs heroMore): the six floors as a ruled two-column register under the sub, each a button that
   lights its floor (hero-floors.js sets .is-hi on the entry whose floor is shown, from either side). Type in px, columns in em: the same
   wrap in every engine and at every R0 width. */
.hx-fls{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 32px; margin: 36px 0 0; padding: 0; list-style: none; max-width: 32em; border-top: 1px solid var(--line-2); }
.hx-fls li{ border-bottom: 1px solid var(--line); }
.hx-fl{ display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 2px 11px 0; border: 0; background: none; font: inherit; font-size: 15px; line-height: 1.3; font-weight: 620; color: var(--ink-2); text-align: left; cursor: pointer; transition: color var(--t-2) var(--ease-out); }
.hx-g{ width: 16px; height: 18px; flex: none; overflow: visible; }
.hx-g path{ fill: none; stroke: rgba(44, 51, 56, .42); stroke-width: 1.1; stroke-linejoin: round; transition: stroke var(--t-2) var(--ease-out), fill var(--t-2) var(--ease-out); }
.hx-g path.on{ stroke: var(--teal); fill: rgba(27, 122, 108, .18); stroke-width: 1.4; }
.hx-fl:hover, .hx-fl.is-hi{ color: var(--ink); }
.hx-fl:hover .hx-g path.on, .hx-fl.is-hi .hx-g path.on{ fill: var(--teal); }
/* v16 T3: the scan's hint (main.js): the row's glyph fills as its floor lights, the name a step darker; slower than hover, so it glows */
.hx-fl.is-hint{ color: var(--ink); transition-duration: .32s; }
.hx-fl.is-hint .hx-g path.on{ fill: var(--teal); transition-duration: .32s; }
.hx-fl:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* the pause icon (two bars; a triangle when pressed), shared by the #beyond slides' pause button (v16: the hero has none) */
.pz-i{ position: relative; width: 14px; height: 14px; display: block; }
.pz-i::before, .pz-i::after{ content: ""; position: absolute; top: 0; width: 4px; height: 14px; border-radius: 1px; background: currentColor; }
.pz-i::before{ left: 1px; } .pz-i::after{ right: 1px; }

/* ---------- 2 the usual way ---------- */
.usual-grid{ display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.vig{ list-style: none; margin: 0; padding: 0; display: grid; align-content: start; border-top: 1.2px solid var(--ink); }
.vig-c{ padding: 24px 0 26px; border-bottom: 1px solid var(--line-2); }
.vig-s{ margin: 0 0 14px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.vig-p{ margin: 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 16.5px; line-height: 1.5; font-weight: 600; color: var(--teal-ink); }

.usual-fig{ display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card), 0 30px 70px -40px rgba(44,51,56,.35); }
.uf-l{ position: relative; min-height: 400px; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(rgba(44,51,56,.10) 1px, transparent 1.2px) 0 0 / 16px 16px, #EEE9DF; }
.hk{ position: absolute; color: #5F676C; font-size: 13px; }
.hk-print{ left: 12%; top: 12%; width: 70%; padding: 10px 10px 8px; background: #FAF8F3; box-shadow: 0 1px 2px rgba(44,51,56,.12), 0 8px 18px -10px rgba(44,51,56,.3); transform: rotate(-3.5deg); }
.hk-print svg{ width: 100%; height: auto; }
.hk-label{ display: block; margin-top: 6px; font-weight: 700; font-size: 13px; color: #5F676C; }
.hk-pin{ position: absolute; left: 50%; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #A8705A; box-shadow: 0 2px 3px rgba(0,0,0,.25), inset -2px -2px 0 rgba(0,0,0,.18); }
.hk-chat{ right: 9%; bottom: 14%; display: grid; gap: 4px; justify-items: end; transform: rotate(2deg); }
.hk-bub{ padding: 11px 15px; border-radius: 14px 14px 4px 14px; background: #DCE3DC; color: #4F5A55; font-weight: 600; font-size: 15px; box-shadow: 0 1px 1px rgba(44,51,56,.08), 0 8px 18px -12px rgba(44,51,56,.3); }
.hk-time{ font-size: 11.5px; color: #5A6267; font-family: var(--mono); }
.uf-r{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; padding: 28px; align-items: center; background: linear-gradient(180deg, #F4F1EA, #EFEBE2); }
.uf-r .app.a-window{ box-shadow: 0 1px 2px rgba(16,24,32,.06), 0 0 0 1px rgba(44,51,56,.12), 0 14px 30px -18px rgba(44,51,56,.32); }
.uf-phone{ display: grid; place-items: center; }
.uf-phone .app.a-phone{ width: 172px; border-radius: 26px; padding: 7px; }
.uf-phone .app.a-phone .a-phone-body{ min-height: 0; height: 236px; border-radius: 21px; display: grid; place-items: center; }
@media (min-width: 1000px){   /* ai-compare.js sets --stick-top: 96 px, or less when the column is taller than the screen */
  .ai-lead-text .head-split{ display: block; margin-bottom: 28px; }
  .ai-lead-text .head-split .lede{ margin: 18px 0 0; }
  .ai-lead-text .ai-c + .ai-c{ border-top: 1px solid var(--line-2); }
}
.ai-c{ padding: 24px 0 22px; }
.ai-c p{ margin: 0; font-size: 16.5px; line-height: 1.58; color: var(--ink-2); }
.asked{ margin: 0 0 16px; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.2; font-weight: 720; letter-spacing: -.02em; color: var(--rust); }
.asked::before{ content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border: 2px solid currentColor; border-radius: 2px; vertical-align: 1px; }

/* ---------- 4 pinned A-201 (1100 px wide and 680 px tall or more; static below and under reduced motion) ---------- */
.pin{ position: relative; margin-top: calc(var(--sec-gap) - var(--pin-lead, 0px)); }   /* --pin-lead: the empty stage above the pinned content (main.js pinFit sets it), so the break above #record reads as --sec-gap. Below the story, pinFit pulls the next section up by the exact empty space, so that break is the next section's own --sec-gap */
.pin-track{ position: relative; height: calc(100vh + 900px); height: calc(100svh + 900px); }
.pin-stage{ position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 680px; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
/* --pin-lead can exceed --sec-gap (the stage's empty top then overlaps the end of #ai): that empty band must not catch #ai's pointer */
html:not(.story-static) .pin-stage{ pointer-events: none; }
html:not(.story-static) .pin-stage > *{ pointer-events: auto; }
.stage-in{ position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(24px, 3.4vw, 56px); display: grid; grid-template-columns: minmax(0, 31fr) minmax(0, 69fr); gap: clamp(28px, 3vw, 52px); align-items: center; }
.rail{ list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail-btn{ position: relative; display: grid; grid-template-columns: 1fr; width: 100%; text-align: left; padding: 11px 12px 11px 16px; background: transparent; border: 0; border-radius: 10px; cursor: pointer; transition: background var(--t-2) var(--ease-out); }
.rail-btn::before, .rail-btn::after{ content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; border-radius: 2px; background: var(--line); }
.rail-btn::after{ background: var(--teal); transform: scaleY(var(--f, 0)); transform-origin: top; transition: transform .15s linear; }
.rail-btn:hover{ background: rgba(44,51,56,.045); }
.rail-t{ font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.012em; color: var(--ink-3); transition: color var(--t-3) var(--ease-out); }
.rail-btn[aria-current="step"] .rail-t{ color: var(--ink); }
.rail-step.is-past .rail-t{ color: var(--ink-2); }
.beats{ position: relative; margin-top: 20px; display: grid; }
.beat{ grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity var(--t-3) var(--ease-out), transform var(--t-3) var(--ease-out); pointer-events: none; }
.beat.is-on{ opacity: 1; transform: none; pointer-events: auto; }
.beat-h{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.story-static .beat-h{ position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 0 0 12px; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.2; letter-spacing: -.02em; font-weight: 720; }
.beat-arts{ display: none; }
.stage-right{ position: relative; min-width: 0; }
.deck{ position: relative; }
.art{ position: absolute; right: 0; top: 0; width: var(--fw); height: var(--fh); opacity: 0; visibility: hidden; will-change: transform, opacity; transform-origin: 100% 0; }
.art.is-shown{ visibility: visible; }
.art-fig{ position: relative; width: 100%; height: 100%; margin: 0; }

/* the pinned stage (1000 px and wider) is set dense for every height: a wider text column (fewer wrapped lines), a heading a size smaller, gaps tight,
   body type 16 px; the longest beat (Rev D) must sit inside the stage at 1366x768, 1440x900 and 1536x864 */
html:not(.story-static) .stage-left .lede{ margin: 8px 0 12px; }
.rail-btn{ padding-top: 5px; padding-bottom: 5px; } .rail-btn::before, .rail-btn::after{ top: 5px; bottom: 5px; }
html:not(.story-static) .beats{ margin-top: 14px; }
/* static story: phones, tablets, reduced motion */
.story-static .pin-track{ height: auto; }
.story-static .pin-stage{ position: relative; height: auto; min-height: 0; padding: 0; overflow: visible; display: block; }
.story-static .stage-in{ display: block; max-width: var(--max); padding: 0 var(--gutter); }
.story-static .stage-left .lede{ margin-bottom: 40px; }
.story-static .rail{ display: none; }
/* with no script the arts are never moved into their beats: they stack under the story instead (once the script has moved them the deck is empty) */
.story-static .stage-right{ display: block; }
.story-static .deck{ height: auto; display: grid; gap: 28px; }
.story-static .deck .art{ position: relative; inset: auto; opacity: 1; visibility: visible; display: block; margin-top: 28px; }
.story-static .deck .art:first-child{ margin-top: 56px; }
.story-static .beats{ margin: 0; gap: clamp(56px, 8vw, 96px); }
.story-static .beat{ grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
.story-static .beat-arts{ display: grid; gap: 28px; margin-top: 28px; }
.story-static .beat-arts .art{ position: relative; inset: auto; opacity: 1; visibility: visible; display: block; }

/* ---------- rows (detail panels beside their text) ---------- */
.row{ display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4.4vw, 64px); align-items: center; margin-top: clamp(56px, 6vw, 80px); }

.row-fig{ position: relative; min-width: 0; }

/* ---------- 7 practice ---------- */
.hub-row{ align-items: start; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ---------- 9 questions (A8) ---------- */
/* ---------- 9 questions (v13): one quiet panel, the heading inside it, a two-level rule system, no nested scroll ----------
   Replaces every FAQ rule in style.css (INTEGRATE.md lists them). Markup: faq.partial.html / the assemble form in INTEGRATE.md.
   Rules: ONE strong rule per group (on .faq-g, spanning the label and the questions as one line), ONE hairline between questions
   inside a group (.q + .q). Nothing else draws a line, so no rule is ever doubled. */
.faq-panel { position: relative; padding: clamp(36px, 4.4vw, 64px) clamp(28px, 4.4vw, 64px) clamp(20px, 2.4vw, 36px);
  background: rgba(253, 252, 249, .92); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 24px 48px -32px rgba(44, 51, 56, .18); }
.faq-h { margin: 0 0 clamp(28px, 3vw, 40px); font-size: var(--h2-size); line-height: var(--h2-lh); font-weight: var(--h2-weight); letter-spacing: var(--h2-track); color: var(--ink); }
.faq-g { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: clamp(24px, 3.4vw, 56px); border-top: 1px solid rgba(44, 51, 56, .5); }
.faq-g + .faq-g { margin-top: 6px; }
/* the group label shares the first question's first line: same top padding, same line box */
.faq-gl { margin: 0; padding: 22px 0 0; font-size: 14.5px; line-height: 25px; font-weight: 650; letter-spacing: -.005em; color: var(--ink-2); }
.faq-gi { min-width: 0; }
.q + .q { border-top: 1px solid var(--line); }
.q > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 24px; align-items: start; padding: 22px 0; cursor: pointer; border-radius: 6px; }
.q > summary::-webkit-details-marker { display: none; }
.q > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.q-t { font-size: 18px; line-height: 25px; font-weight: 650; letter-spacing: -.014em; color: var(--ink); text-wrap: balance; transition: color var(--t-2) var(--ease-out); }
.q > summary:hover .q-t { color: var(--teal-ink); }
/* +/−: a hairline ring; open, it fills with ink and the vertical stroke turns flat (a minus) */
.q-i { position: relative; width: 30px; height: 30px; margin-top: -2.5px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out); }
.q-i::before, .q-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; border-radius: 1px; background: var(--ink); transition: transform var(--t-3) var(--ease-out), background var(--t-2) var(--ease-out); }
.q-i::after { transform: rotate(90deg); }
.q > summary:hover .q-i { box-shadow: inset 0 0 0 1px var(--ink-3); background: var(--sand); }
.q[open] .q-i { background: var(--ink); box-shadow: none; }
.q[open] .q-i::before, .q[open] .q-i::after { background: var(--sand); }
.q[open] .q-i::after { transform: rotate(0deg); }
.q-a p { margin: 0; padding: 0 54px 26px 0; max-width: 64ch; font-size: var(--body-size); line-height: 1.65; color: var(--ink-2); text-wrap: wrap; }
.q:target > summary .q-t, .q.is-target > summary .q-t { color: var(--teal-ink); }
/* open and close: CSS only where the browser can animate to height:auto (so static.html, which has no script, animates too);
   elsewhere faq.js animates the height, and with neither the answer simply appears. interpolate-size is set on the section only,
   so no other height:auto on the page changes timing. */
@supports (interpolate-size: allow-keywords) {
  .sec-faq { interpolate-size: allow-keywords; }
  .q::details-content { block-size: 0; overflow-y: clip; transition: block-size 340ms var(--ease-out), content-visibility 340ms allow-discrete; }
  .q[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: reduce) { .q::details-content { transition: none; } }
}
.q-a { overflow: hidden; }   /* the script fallback animates .q-a's height */

/* tablets: the group label goes above its questions; the group rule stays the one line over both */
@media (max-width: 860px) {
  .faq-g { grid-template-columns: minmax(0, 1fr); }
  .faq-gl { padding: 18px 0 2px; line-height: 20px; font-size: 13.5px; }
  .faq-gl + .faq-gi .q:first-child > summary { padding-top: 10px; }
}
@media (max-width: 640px) {
  .faq-panel { padding: 26px 18px 8px; border-radius: 14px; margin: 0 -2px; }
  .faq-h { margin-bottom: 20px; }
  .faq-g + .faq-g { margin-top: 6px; }
  .faq-gl { padding-top: 16px; }
  .q > summary { gap: 14px; padding: 16px 0; grid-template-columns: minmax(0, 1fr) 28px; }
  .q-t { font-size: 16.5px; line-height: 23px; }
  .q-i { width: 28px; height: 28px; margin-top: -2.5px; }
  .q-a p { padding: 0 0 20px; line-height: 1.55; }
}

.foot{ padding: clamp(56px, 7vw, 88px) 0 40px; }
.foot-in{ max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; }
.foot-brand img{ height: 24px; width: auto; }
.foot-brand p{ margin: 14px 0 0; max-width: 40ch; font-size: 14.5px; color: var(--ink-2); }
.foot-links{ display: flex; flex-wrap: wrap; gap: 10px 26px; align-content: start; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.foot-links a{ padding: 4px 0; transition: color var(--t-2) var(--ease-out); }
.foot-links a:hover{ color: var(--teal); }
.foot-base{ grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }

/* ---------- reveal: a short rise, never a fade (text stays at full contrast) ---------- */
.rv{ transform: translateY(22px); transition: transform .9s var(--ease-out); }
.rv.rv-in{ transform: none; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1180px){
  .nav-links{ gap: 20px; margin-left: 8px; font-size: 14.5px; }
  .usual-grid{ grid-template-columns: minmax(0, 1fr); }
  .vig{ grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 1099px){   /* v14 R0: the Hub row keeps its two columns from 1100 up (125 % zoom on a 1440 screen) */
  .row{ grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row-text{ max-width: 680px; }
}
/* tablets: the copy above, the building below it, centred at the full width */
@media (max-width: 999px){
  .hero{ --h1: clamp(36px, 5.4vw, 52px); }
  .hero-in{ grid-template-columns: minmax(0, 1fr); padding: 32px var(--gutter) 0; }
  .hero-copy{ max-width: 680px; min-height: 0; display: block; }
  .hero-copy, .hero-art{ --hs: min(640px, 100cqw / var(--env)); }
  .hero-art{ margin: 28px 0 calc(-.11 * var(--hs)); }
}
@media (max-width: 960px){
  .nav-links{ display: none; }
  .head-split, .sub-head{ grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .head-split{ align-items: start; }

}
@media (max-width: 640px){
  :root{ --nav-h: 64px; --gutter: 16px; --sec-gap: 56px; --h2-size: clamp(28px, 7.7vw, 32px); --lede-size: 16px; --body-size: 16px; }
  .brand-full{ display: none; }
  .brand-icon{ display: block; }
  .nav-actions{ gap: 14px; }
  .h3{ font-size: 20px; }
  .h1{ font-size: clamp(28px, 8.9vw, 40px); }
  .sub{ font-size: 17px; margin: 20px 0 24px; }
  .hero-copy, .hero-art{ --hs: min(430px, (100cqw + 8px) / var(--env)); }
  .hero-art{ margin: 18px 0 calc(-.06 * var(--hs)); }   /* a phone overhangs less: #usual's heading sits only 48 px under the hero */
  .hx-fls{ margin-top: 22px; column-gap: 18px; grid-template-columns: max-content minmax(0, 1fr); }   /* v17: the short names' column takes only its width, so "Specification and tender" keeps one line at 390 */
  .hx-fl{ align-items: flex-start; gap: 9px; padding: 10px 0; font-size: 14.5px; line-height: 1.32; }
  .hx-g{ margin-top: 1px; }
  .vig{ grid-template-columns: minmax(0, 1fr); }
  .usual-fig{ grid-template-columns: minmax(0, 1fr); }
  .uf-l{ min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hk-print{ width: 54%; left: 8%; top: 10%; } .hk-chat{ right: 6%; bottom: 12%; }
  .uf-r{ grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .uf-phone .app.a-phone{ width: 220px; } .uf-phone .app.a-phone .a-phone-body{ height: 190px; }
  .ai-c:nth-child(n+2){ border-top: 1px solid var(--line-2); }
  .story-static .art-over{ display: none; }
  .lede, .sub-head p, .row-text p, .vig-s, .ai-c p{ line-height: 1.5; }
  .sub-head{ margin: 26px 0 14px; padding-top: 14px; }
  .row{ margin-top: 26px; gap: 16px; }
  .sec-head{ margin-bottom: 18px; }
  .head-split{ gap: 14px; }
  .sub-head p, .row-text p, .vig-s, .ai-c p{ font-size: 16px; }
  .usual-grid{ gap: 22px; }
  .uf-l{ min-height: 200px; }
  .uf-l{ min-height: 220px; }
  .hk-print{ width: 44%; top: 8%; } .hk-chat{ bottom: 7%; }
  .uf-r{ grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; }
  .uf-phone .app.a-phone{ width: 128px; border-radius: 22px; padding: 6px; } .uf-phone .app.a-phone .a-phone-body{ height: 168px; border-radius: 17px; }
  .uf-phone .a-gone{ padding: 16px 8px; }

  .foot-in{ grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .foot{ padding: 44px 0 28px; }
  .foot-links{ gap: 4px 20px; }
}
/* v19 (owner: f2 is now "Fine-tuned AI agents"): below 430 px the two columns cannot hold it and "Specification and tender" on one line
   each, so the six names stack in one column, bottom floor first, rather than wrap. */
@media (max-width: 429px){ .hx-fls{ grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

@media (max-width: 360px){
  .nav-actions .btn-sm{ padding: 0 12px; font-size: 13.5px; }
  .uf-r{ grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .uf-r > *{ width: 100%; } .uf-r > .uf-phone{ width: auto; }
  .hk-chat{ right: 4%; bottom: 5%; }
  .nav-signin{ font-size: 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ transition-duration: 0s !important; animation: none !important; }
  .rv{ transform: none; }
}

/* ---------- the product windows on a marketing page ----------
   the app's ink-500 (46% lightness) sits at 4.2–4.4:1 on its tinted surfaces at 11–12px; a picture of the app on a public
   page meets 4.5:1, so the greys step one notch darker here (site-side only: the kit's markup and tokens are unchanged) */
.app{ --ink-500: 205 12% 39%; --field-placeholder: 205 10% 42%; }

/* ---------- round 3b gate repair ---------- */
i.lazyw{ display: block; font-style: normal; }

/* a cropped window fades at the cut (never a hard edge); the header's lockup is held at the left edge of a cropped window */
.app .a-viewport.crop-r{ -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.app .a-viewport.crop-l{ -webkit-mask-image: linear-gradient(to right, transparent, #000 44px); mask-image: linear-gradient(to right, transparent, #000 44px); }
.app .a-viewport.crop-l.crop-r{ -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 56px), transparent); }

/* G1: the pinned stage's three windows share one frame: a reflowed one (a column under 831 px) keeps its crop and fade, which main.js snaps to whole rows */
html:not(.story-static) .art .app.is-flow .a-viewport[data-cut]::after{ display: block; }
html:not(.story-static) .art .app.is-flow .a-viewport[data-cut][data-nofade]::after{ display: none; }

/* ===== G2 (paper v7): the usual-way band polish, from design-v7/proto-G2/G2-band.patch ===== */

/* ================= G2 v7 prototype: the "usual way" band, last 4% + 2% ================= */
/* 2% — text column: keyed numerals, an answer bound to its problem, a calmer ground */
.vig{ position: relative; isolation: isolate; }
.vig::before{ content: ""; position: absolute; inset: -18px -40px -18px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 40% 50%, rgba(247,244,238,.94) 55%, rgba(247,244,238,0) 100%); }
.vig-c{ padding: 26px 0 30px; }
.vig-c .h3{ display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.vig-n{ flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.2px solid var(--ink-3); font: 600 12px/1 var(--mono); letter-spacing: 0; color: var(--ink-2); transform: translateY(-3px); }
.vig-s, .vig-p{ padding-left: 36px; text-wrap: wrap; }
.vig-s{ margin: 0 0 14px; }
.vig-p{ position: relative; padding-top: 0; border-top: 0; font-size: 17px; line-height: 1.5; font-weight: 600; }
.vig-p::before{ content: ""; position: absolute; left: 11px; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: var(--teal); }

/* 4% — the figure: one story per numeral, the print and the phone joined by the scan */
.uf-l{ background: radial-gradient(rgba(44,51,56,.09) 1px, transparent 1.2px) 0 0 / 16px 16px, linear-gradient(160deg, #F0EBE1, #E9E3D7); }
.hk-print{ left: 9%; top: 9%; width: 80%; padding: 8px 8px 9px; background: #FBFAF6;
  box-shadow: 0 1px 1px rgba(44,51,56,.10), 0 3px 6px -2px rgba(44,51,56,.12), 0 18px 26px -16px rgba(44,51,56,.38); transform: rotate(-2.5deg); }
.hk-print::after{ content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; background: linear-gradient(315deg, #E6E0D4 48%, rgba(0,0,0,.08) 50%, #FBFAF6 54%); }
.hk-print svg{ display: block; }
.hk-label{ margin-top: 7px; font: 600 12px/1 var(--mono); letter-spacing: .02em; color: #555D62; }
.hk-n{ position: absolute; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); border: 1.2px solid #626C73; font: 600 11px/1 var(--mono); color: #4B5358; }
.hk-print .hk-n{ left: -11px; top: -11px; transform: rotate(2.5deg); }
.hk-chat{ right: 8%; bottom: 9%; gap: 6px; transform: rotate(1.5deg); }
.hk-chat .hk-n{ left: -30px; top: 2px; transform: rotate(-1.5deg); }
.hk-bub{ font-size: 14.5px; padding: 10px 14px; }
.hk-voice{ display: flex; align-items: center; gap: 9px; padding: 9px 13px 9px 11px; }
.hk-play{ width: 0; height: 0; border-left: 9px solid #4F5A55; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hk-wave{ width: 84px; height: 18px; background: repeating-linear-gradient(90deg, #6E7A73 0 2px, transparent 2px 5px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 L3 7 L6 4 L9 8 L12 2 L15 6 L18 3 L21 9 L24 5 L27 1 L30 4 L33 7 L36 3 L39 6 L42 2 L45 5 L48 8 L51 4 L54 6 L57 3 L60 7 L63 5 L66 8 L69 6 L72 7 L75 8 L78 7 L81 8 L84 9 L84 9 L81 10 L78 11 L75 10 L72 11 L69 12 L66 10 L63 13 L60 11 L57 15 L54 12 L51 14 L48 10 L45 13 L42 16 L39 12 L36 15 L33 11 L30 14 L27 17 L24 13 L21 9 L18 15 L15 12 L12 16 L9 10 L6 14 L3 11 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 L3 7 L6 4 L9 8 L12 2 L15 6 L18 3 L21 9 L24 5 L27 1 L30 4 L33 7 L36 3 L39 6 L42 2 L45 5 L48 8 L51 4 L54 6 L57 3 L60 7 L63 5 L66 8 L69 6 L72 7 L75 8 L78 7 L81 8 L84 9 L84 9 L81 10 L78 11 L75 10 L72 11 L69 12 L66 10 L63 13 L60 11 L57 15 L54 12 L51 14 L48 10 L45 13 L42 16 L39 12 L36 15 L33 11 L30 14 L27 17 L24 13 L21 9 L18 15 L15 12 L12 16 L9 10 L6 14 L3 11 Z' fill='black'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hk-dur{ font: 500 11.5px/1 var(--mono); color: #4F5A55; }
.hk-bub:not(.hk-voice){ border-radius: 14px 14px 4px 14px; }
.hk-voice{ border-radius: 14px 14px 4px 14px; }

.uf-r{ position: relative; }
.uf-lead{ position: absolute; left: -1px; top: 0; width: calc(100% - 196px); height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.uf-lead path{ fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .75; }
.uf-t, .uf-phone{ position: relative; z-index: 1; }
.uf-phone .app.a-phone{ width: 184px; border-radius: 28px; padding: 6px; background: #2C3338; transform: rotate(3deg); box-shadow: 0 2px 3px rgba(16,24,32,.18), 0 24px 44px -18px rgba(16,24,32,.45), inset 0 0 0 1px rgba(255,255,255,.08); position: relative; }
.uf-phone .a-phone-bar{ position: absolute; left: 50%; top: 12px; width: 46px; height: 12px; margin-left: -23px; border-radius: 8px; background: #2C3338; z-index: 2; }
.uf-phone .app.a-phone .a-phone-body{ height: 300px; border-radius: 23px; background: hsl(var(--background)); padding: 0 12px; }
.app .a-gone2{ display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; padding: 22px 12px; border-radius: var(--radius); background: hsl(var(--card)); box-shadow: var(--shadow-card); }
.app .a-gone-chip{ display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm, 6px); background: hsl(var(--brand-subtle)); color: hsl(var(--brand)); }
.app .a-gone-chip .a-i{ width: 18px; height: 18px; stroke-width: 1.75; }
.app .a-gone2 .a-md{ line-height: 1.3; }
.app .a-gone2 .a-xs{ line-height: 1.45; }

@media (max-width: 960px){ .vig::before{ inset: -12px -20px; } }
@media (max-width: 640px){
  .vig-p{ font-size: 16px; }
  .vig-s, .vig-p{ padding-left: 34px; }
  .uf-lead{ display: none; }
  .hk-print{ width: 58%; left: 7%; top: 8%; } .hk-chat{ right: 5%; bottom: 7%; }
  .hk-chat .hk-n{ left: -28px; }
  .uf-phone .app.a-phone{ width: 150px; transform: rotate(2deg); } .uf-phone .app.a-phone .a-phone-body{ height: 236px; padding: 0 8px; }
  .app .a-gone2{ padding: 14px 8px; }
  .uf-r{ grid-template-columns: minmax(0, 1fr) 150px; } .uf-l{ min-height: 250px; }
}
/* -- iteration 2 -- */
.vig-s, .vig-p{ padding-left: 0; }
.vig-p{ padding-left: 14px; }
.vig-p::before{ left: 0; }
.vig-c{ position: relative; }
@media (min-width: 1181px){
  .vig-c .h3{ display: block; }
  .vig-n{ position: absolute; left: -40px; top: 27px; transform: none; }
}
.usual-fig{ position: relative; }
.uf-lead{ left: 0; top: 0; width: 100%; height: 100%; z-index: 3; }
.uf-lead circle{ fill: var(--teal); stroke: none; }
.uf-lead path{ stroke-width: 1.5; opacity: .8; }
.hk-qr{ position: absolute; right: 16%; bottom: 30px; width: 34px; height: 34px; border: 3px solid #fff; outline: 1px solid rgba(44,51,56,.25); background:
  conic-gradient(from 90deg at 3px 3px, #2C3338 25%, transparent 0) 0 0 / 0 0,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25' shape-rendering='crispEdges'%3E%3Cpath fill='%232C3338' d='M0 0h7v7H0zM18 0h7v7h-7zM0 18h7v7H0zM2 2h3v3H2zM20 2h3v3h-3zM2 20h3v3H2zM9 0h2v2H9zM12 1h2v3h-2zM9 4h3v2H9zM14 6h2v3h-2zM9 9h3v2H9zM0 9h3v2H0zM4 10h3v2H4zM13 11h3v2h-3zM18 9h3v3h-3zM22 10h3v2h-3zM9 13h2v3H9zM12 15h4v2h-4zM18 14h2v2h-2zM21 15h4v3h-4zM9 18h3v2H9zM13 19h2v4h-2zM17 18h3v3h-3zM21 21h4v4h-4zM9 22h3v3H9zM17 23h2v2h-2z'/%3E%3Cpath fill='%23fff' d='M1 1h5v5H1zM19 1h5v5h-5zM1 19h5v5H1z'/%3E%3Cpath fill='%232C3338' d='M2 2h3v3H2zM20 2h3v3h-3zM2 20h3v3H2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat #fff; }
.uf-phone .app.a-phone{ width: 184px; transform: none; }
.uf-phone .app.a-phone .a-phone-body{ height: 316px; }
@media (max-width: 640px){
  .uf-lead{ display: none; }
  .uf-phone .app.a-phone{ width: 150px; } .uf-phone .app.a-phone .a-phone-body{ height: 250px; }
  .hk-qr{ width: 26px; height: 26px; border-width: 2px; bottom: 24px; }
}
/* -- iteration 3 -- */
.vig-p{ font-size: 16.5px; text-wrap: wrap; }
.uf-lead .uf-lead-a{ stroke-dasharray: none; stroke-linecap: round; stroke-linejoin: round; }
.uf-lead circle{ transform-box: fill-box; }
@media (max-width: 640px){ .vig-p{ font-size: 16px; } }
@media (min-width: 1181px){ .vig-p{ padding-left: 0; } .vig-p::before{ left: -14px; } }
@media (max-width: 640px){
  .uf-l{ min-height: 330px; }
  .hk-print{ width: 64%; left: 8%; top: 7%; }
  .hk-chat{ right: 5%; bottom: 6%; }
  .uf-r{ grid-template-columns: minmax(0, 1fr) 136px; }
  .uf-phone .app.a-phone{ width: 136px; border-radius: 24px; } .uf-phone .app.a-phone .a-phone-body{ height: 232px; border-radius: 19px; padding: 0 6px; }
  .uf-phone .a-phone-bar{ width: 36px; height: 10px; margin-left: -18px; top: 10px; }
  .uf-t .a-xl[style]{ white-space: normal !important; }
}
.vig::before{ inset: -60px -90px; background: rgba(247,244,238,.93);
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%); mask: radial-gradient(closest-side, #000 72%, transparent 100%); }
@media (max-width: 960px){ .vig::before{ inset: -40px -16px; } }

/* v9: the record's one tamper-evident line, under the story's intro: quiet, the size of a caption */

/* ===== the #beyond band (v9): a compact two-slide gallery after the A-201 story; each slide's title is its h2 =====
   No script (static.html): every slide in place, stacked (text, figure; text, figure). With script, html.beyond-gal (set in the head
   before first paint, so nothing shifts) lays the slides' texts in one grid cell and their figures in another: each cell is as tall as
   its tallest slide at every width, so changing slide moves nothing (CLS 0). */
/* v14 (R0, R6): from 1100 px the band is one composition: the text column takes the slack and the figure column is a fixed 640 px (both
   figures are fixed 640 px compositions, so a browser zoom only centres the band, never changes its form). v15 (S5): one even margin
   (24 px) on all four sides, so the figures' top, right and bottom edges sit 24 px in from the band's; the 56 px column gap equals slide
   1's phone-to-window gutter (kit-v7 --st-gut), so text, phone and window keep one rhythm. The band's ground is a tad
   darker than the page (--sand-2 at 82 %, so the ground's linework still shows faintly through, as it does through the FAQ panel); the
   border and radius are the FAQ panel's. */
.beyond-in{ position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 640px; column-gap: 56px; row-gap: 40px; align-items: center; padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: rgba(239, 234, 224, .82); background: color-mix(in srgb, var(--sand-2) 82%, transparent); box-shadow: 0 1px 2px rgba(16, 24, 32, .04), 0 24px 48px -32px rgba(44, 51, 56, .18); touch-action: pan-y; }
.beyond-left, .beyond-texts, .beyond-figs{ display: contents; }
.beyond-text[data-s="0"], .beyond-fig[data-s="0"]{ grid-row: 1; }
.beyond-text[data-s="1"], .beyond-fig[data-s="1"]{ grid-row: 2; }
.beyond-text[data-s="2"], .beyond-fig[data-s="2"]{ grid-row: 3; }   /* v17: slide 3 (no script: the third pair under the second) */
.beyond-text{ grid-column: 1; }
.beyond-fig{ grid-column: 2; }
.beyond-text .h2{ margin: 0 0 14px; max-width: 9em; }   /* v14 (R0): both titles take two lines at every width (the column is narrowest at 1100) */
.beyond-text .lede{ margin: 0; }
.beyond-fig{ margin: 0; min-width: 0; }
.beyond-fig > .lazyw{ display: block; }
.beyond-ctl{ display: none; }
@media (max-width: 1099px){
  .beyond-in{ grid-template-columns: minmax(0, 1fr); row-gap: 24px; padding: 28px clamp(20px, 3vw, 36px); }
  .beyond-text, .beyond-fig{ grid-column: 1; }
  .beyond-text[data-s="0"]{ grid-row: 1; } .beyond-fig[data-s="0"]{ grid-row: 2; } .beyond-text[data-s="1"]{ grid-row: 3; } .beyond-fig[data-s="1"]{ grid-row: 4; } .beyond-text[data-s="2"]{ grid-row: 5; } .beyond-fig[data-s="2"]{ grid-row: 6; }
}
@media (max-width: 640px){ .beyond-in{ padding: 26px 16px 22px; } }

/* the gallery */
.beyond-gal .beyond-left{ display: flex; flex-direction: column; gap: 26px; grid-column: 1; grid-row: 1; min-width: 0; }
.beyond-gal .beyond-texts, .beyond-gal .beyond-figs{ display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.beyond-gal .beyond-figs{ grid-column: 2; grid-row: 1; align-items: center; }
.beyond-gal .beyond-text, .beyond-gal .beyond-fig{ grid-area: 1 / 1; }
.beyond-gal .beyond-texts{ align-items: center; }
.beyond-gal .beyond-text:not(.is-on), .beyond-gal .beyond-fig:not(.is-on){ visibility: hidden; opacity: 0; transform: translateX(-12px); }
.beyond-gal .beyond-text, .beyond-gal .beyond-fig{ transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s; }
.beyond-gal .beyond-text.is-on, .beyond-gal .beyond-fig.is-on{ transition: opacity .34s var(--ease-out), transform .34s var(--ease-out), visibility 0s; transition-delay: .2s, .2s, 0s; }
.beyond-gal .beyond-text.is-in, .beyond-gal .beyond-fig.is-in{ transform: translateX(14px); opacity: 0; transition: none; }
.beyond-gal .beyond-ctl{ display: flex; align-items: center; gap: 8px; }
.beyond-b{ display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(250,248,243,.92); box-shadow: 0 0 0 1px var(--line-2); color: var(--ink-2); cursor: pointer; transition: box-shadow var(--t-2) var(--ease-out), color var(--t-2) var(--ease-out); }
.beyond-b:hover{ color: var(--ink); background: #fff; box-shadow: 0 0 0 1px rgba(44,51,56,.5), 0 2px 8px rgba(44,51,56,.12); }
.beyond-b[hidden]{ display: none; }
.beyond-pz .pz-i{ width: 12px; height: 12px; } .beyond-pz .pz-i::before, .beyond-pz .pz-i::after{ width: 3.5px; height: 12px; }
.beyond-pz[aria-pressed="true"] .pz-i::before{ left: 2px; width: 0; height: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-radius: 0; }
.beyond-pz[aria-pressed="true"] .pz-i::after{ display: none; }
.beyond-dots{ display: flex; align-items: center; gap: 2px; margin: 0 2px; }
.beyond-dot{ display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.beyond-dot i{ position: relative; display: block; width: 8px; height: 8px; border-radius: 4px; background: rgba(44,51,56,.24); overflow: hidden; transition: width var(--t-3) var(--ease-out), background var(--t-3) var(--ease-out); }
.beyond-dot:hover i{ background: rgba(44,51,56,.42); }
.beyond-dot[aria-current="true"] i{ width: 34px; background: rgba(27,122,108,.22); }
.beyond-dot[aria-current="true"] i::after{ content: ""; position: absolute; inset: 0; background: var(--teal); transform-origin: left; }
/* the dwell: the active dot fills while its slide shows; the gallery moves on when the fill ends (main.js). Held (hover, focus, paused,
   off screen, waiting for slide 1's thread) = the fill stops where it is */
.beyond-in.is-run .beyond-dot[aria-current="true"] i::after{ animation: beyondFill var(--dwell, 8s) linear both; }
.beyond-in.is-held .beyond-dot[aria-current="true"] i::after{ animation-play-state: paused; }
.beyond-in:not(.is-run) .beyond-dot[aria-current="true"] i::after{ transform: none; }
@keyframes beyondFill{ from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (min-width: 741px){ .beyond-gal .beyond-figs{ min-height: 571px; } }   /* v15: the figures (v17: all three) are fixed 571 px compositions (kit-v7 --st-slot; v16: slide 1's window fills it and its phone is centred in it): their slot is reserved before windows.html lands, so the band never grows under the reader */
/* v15 (S2/S5): #rfis-by-text (the band's container) is where #usual card 4's link and a #rfis-by-text deep link land: below the fixed nav,
   and from 1100 px centred in the screen under the nav (621 = the band's height there: the 571 px slot, two 24 px margins, the border).
   main.js scrolls to it with this same margin, so a click and a page load land in the same place. */
#rfis-by-text{ scroll-margin-top: calc(var(--nav-h) + 24px); }
#rfis-by-text:focus{ outline: none; }   /* v15 int: focused only as the start point of the next Tab after the card-4 link (main.js); the controls inside keep their rings */
@media (min-width: 1100px){ #rfis-by-text{ scroll-margin-top: calc(var(--nav-h) + max(24px, (100vh - var(--nav-h) - 621px) / 2)); } }
@media (max-width: 740px){ .beyond-fig > .app.a-clashfig{ height: 100%; grid-template-rows: minmax(0, 1fr) auto; } }   /* the stacked form of slide 2 (v14: under 740 px, where both figures stack): the figure fills the slot, the sheet row takes the spare height */
@media (max-width: 640px){ .beyond-fig > .app.a-clashfig{ grid-template-rows: auto auto; align-content: center; } }   /* a phone caps the sheet's height (all three rings stay in view): the figure is centred in what is left of the slot, never split by a gap */
/* v17, slide 3 stacked (gallery only; static.html keeps the kit's own 380 px window): the figure fills the shared slot and its window takes
   what is left, adding nothing to the slot's height (its viewport is sized 0 and grows), so slide 1, the tallest stacked, still sets the slot */
@media (max-width: 740px){
  .beyond-gal .beyond-fig > .app.a-psfig{ height: 100%; grid-template-rows: auto auto minmax(0, 1fr); }
  .beyond-gal .beyond-fig > .app.a-psfig .ps-win{ align-self: stretch; display: flex; flex-direction: column; min-height: 0; }
  .beyond-gal .beyond-fig > .app.a-psfig .ps-win > .app.a-window{ flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; }
  .beyond-gal .beyond-fig > .app.a-psfig .ps-win .a-viewport{ flex: 1 1 0; height: 0; min-height: 0; max-height: none; }
}
@media (max-width: 1099px){
  .beyond-gal .beyond-left{ grid-column: 1; grid-row: 1; gap: 18px; }
  .beyond-gal .beyond-figs{ grid-column: 1; grid-row: 2; align-items: start; }
  .beyond-gal .beyond-fig{ align-self: stretch; }   /* the figure fills the shared slot (slide 2's sheet takes the spare height on phones); the slot itself never changes */
}
@media (prefers-reduced-motion: reduce){
  .beyond-gal .beyond-text, .beyond-gal .beyond-fig{ transition: none; transform: none; }
  .beyond-gal .beyond-text:not(.is-on), .beyond-gal .beyond-fig:not(.is-on){ transform: none; }
}

/* ===== v7 mobile length (phones only, <= 640 px): the same words and windows, less scrolling =====
   Parallel items (the refusals, the AI cards, the usual-way problems, the client's text blocks and windows, the two cards of the
   last band, A-201's three beats) become horizontal swipe rows: scroll-snap, the next card peeking in at the edge, the row a
   focusable named group (main.js adds tabindex and a name taken from the section's own heading). Nothing is hidden or removed;
   desktop and tablet are untouched. */
@media (max-width: 640px){
  /* vertical rhythm */
  .sec-head{ margin-bottom: 14px; }
  .foot{ padding-top: 36px; }
  .asked{ margin-bottom: 12px; }
  .row{ gap: 14px; }

  .sub-head{ margin: 18px 0 10px; }

  /* swipe rows: shared shape */
  .vig,
.story-static .beats{
    display: flex; flex-direction: row; align-items: flex-start; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter);
    max-width: none;
    /* v8b D1: the next card still peeks in (the signal that the row swipes) but as a bare cue: the row's mask clears the peek strip completely (a fade, so no letter of the next card reads there) so no
       letter reads there. The last card keeps the peek's width (--pk) as end margin, so every card snaps to the same left edge and its
       right end always sits clear of the strip; the previous card's tail on the left gets the same hold. */
    --pk: 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 8px, #000 12px, #000 calc(100% - var(--pk) - 14px), transparent calc(100% - var(--pk) - 8px));
    mask-image: linear-gradient(90deg, transparent 0, transparent 8px, #000 12px, #000 calc(100% - var(--pk) - 14px), transparent calc(100% - var(--pk) - 8px));
  }
  .vig > :last-child,
.story-static .beats > :last-child{ margin-right: var(--pk); }
  .story-static .beats{ --pk: 36px; }
  /* the swipe cue that replaces the peeking text: a small chevron pinned just left of the cleared strip, drawn by the row's last pseudo
     element (zero net width in the flow; the refusals grid has none, it is a grid); where scroll-driven animation exists it fades out when the row is at its end */
  .vig::after,
.story-static .beats::after{
    content: ""; flex: 0 0 7px; box-sizing: border-box; width: 7px; height: 7px; margin-left: -19px; align-self: center; position: sticky; right: calc(var(--pk) + 12px);
    border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; }
  @supports (animation-timeline: scroll(nearest inline)){
    .vig::after,
.story-static .beats::after{
      animation: swipeCue linear both; animation-timeline: scroll(nearest inline); animation-range: 0 100%; }
    @keyframes swipeCue{ 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
  }
  .vig::-webkit-scrollbar,
.story-static .beats::-webkit-scrollbar{ display: none; }
  .vig > *,
.story-static .beats > *{ flex: 0 0 calc(100% - 28px); min-width: 0; scroll-snap-align: start; }
  .vig:focus-visible,
.story-static .beats:focus-visible{ outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 6px; }
  @media (prefers-reduced-motion: reduce){ .vig,
.story-static .beats{ scroll-behavior: auto; } }

  /* usual way: two problems side by side in a row */
  .vig{ background: rgba(247,244,238,.93); isolation: auto; }
  .vig::before{ display: none; }
  .vig-c{ padding: 18px 0 16px; }
  .vig-c .h3{ margin-bottom: 8px; }
  .vig-s{ margin-bottom: 10px; }
  .usual-grid{ gap: 14px; }
  .uf-l{ min-height: 270px; }
  .ai-c, .ai-c:nth-child(n+2){ padding: 16px 0 14px; border-top: 0; }

  /* A-201: the three beats, each with its window, one swipe */
  .story-static .stage-left .lede{ margin-bottom: 18px; }
  .story-static .beats{ margin-top: 0; }
  .story-static .beats > *{ flex-basis: calc(100% - 36px); }
  .story-static .beat-h{ font-size: 20px; margin-bottom: 8px; }
  .story-static .beat-arts{ margin-top: 16px; gap: 16px; }

  /* second pass: smaller gaps between bands, closer FAQ rows, a shorter footer */
  .sec-head{ margin-bottom: 12px; }
  .sub{ margin: 14px 0 20px; }
  .foot{ padding-top: 30px; padding-bottom: 22px; }
  .foot-in{ gap: 12px; }
  .foot-base{ padding-top: 14px; }

  .uf-l{ min-height: 300px; }
  .hk-print{ width: 58%; }
  .lede,
.sub-head p,
.row-text p,
.vig-s,
.ai-c p{ line-height: 1.45; }
}

/* ===== v7 repair (QA D1 to D8) ===== */
/* D2: the dashed leader passes BEHIND the transmittal card and the phone, so it never crosses a word (it shows between the print and the card, and at the card's right edge) */
.uf-lead{ z-index: 1; }
.uf-t, .uf-phone{ z-index: 2; }
/* D1, QA minor c: at 440 px and under the transmittal card takes the full width and the phone sits under it, so no word of the card is cut and
   "For Review" stays on the title line */
@media (max-width: 440px){
  .uf-r{ grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .uf-r > *{ width: 100%; } .uf-r > .uf-phone{ width: auto; }
  .uf-phone .app.a-phone{ width: 190px; } .uf-phone .app.a-phone .a-phone-body{ height: 214px; }
}
/* D5: the pinned stage's text column and window share the page container (nav, headings and every other section) */
html:not(.story-static) .stage-in{ max-width: var(--max); padding: 0 var(--gutter); }

/* ===== v8b repair ===== */
/* D9: headings never end on a single word (the build also joins the last two words with a no-break space, for browsers without balance) */
h2, h3, .h2, .h3, .beat-h, .faq-gl{ text-wrap: balance; }
/* D5: at least 48 px between the headline column and the window at every desktop width above 1180 (the narrow-desktop band is 48 px too, its room
   coming from the shorter sub) */

/* ===== v11: the pinned story's implicit "more below" cues (no text, no arrow, no counter): ONE continuous line down the step list that
   fills from the first pixel of the pin (main.js sets --p), a teal dot at the current step, past steps fading back; the current
   window also drifts up over its beat (main.js layout). ===== */
html:not(.story-static) .rail{ position: relative; padding-left: 18px; gap: 4px; --p: 0; }
html:not(.story-static) .rail::before, html:not(.story-static) .rail::after{ content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line-2); }
html:not(.story-static) .rail::after{ background: var(--teal); transform-origin: top; transform: scaleY(var(--p)); }
html:not(.story-static) .rail-btn::before, html:not(.story-static) .rail-btn::after{ display: none; }
html:not(.story-static) .rail-btn{ padding: 6px 10px 6px 0; }
html:not(.story-static) .rail-btn[aria-current="step"]::before{ display: block; content: ""; position: absolute; left: -18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--sand); }
html:not(.story-static) .rail-t{ color: var(--ink-3); }
html:not(.story-static) .rail-btn[aria-current="step"] .rail-t{ color: var(--ink); }
html:not(.story-static) .rail-step.is-past .rail-t{ color: var(--ink-3); }
html:not(.story-static) .rail-btn:hover .rail-t{ color: var(--teal-ink); }
html:not(.story-static) .beats{ overflow: clip; }
.sec-usual .h2{ text-wrap: balance; max-width: 26ch; }
@media (min-width: 1000px){ .sec-usual .head-split{ grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }   /* frame 3 keeps the answered height while "Thinking": only its contents change, not its edge */

/* ===== v11: bottom half ===== */
.beyond-text .lede{ text-wrap: wrap; }
@media (max-width: 640px){ #beyond-s1 .lede{ max-width: 18.5em; } }   /* v15 int: on a phone the slide-1 lede ends on "sent by you." together, not "you." alone (360-430 px) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){ .nav.is-stuck{ background: var(--sand); } }   /* no blur: a solid bar, never crisp text through it */

/* ===== v11: phones (<= 640 px) ===== */
@media (max-width: 640px){
  /* the swipe chevron has its own lane: text cards keep clear of it, window cards end before it */
  .vig > *{ padding-right: 22px; box-sizing: border-box; }
  /* Sign in and Create an account: a 44 px tap target */
  .nav .btn, .nav-signin{ min-height: 44px; }
  .nav-signin{ display: inline-flex; align-items: center; padding: 0 6px; }
}

/* ===== v11: the #proof band (design-v11/band.css) ===== */
.proof-in{ display: grid; grid-template-columns: minmax(21.5em, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4.4vw, 64px); row-gap: 32px; align-items: center; }   /* v15 int: the text column never under 21.5 em (1100-1240), so "Part A, pre-filled" keeps one line under plain wrapping */
.proof-text .h2{ max-width: 17ch; }
.proof-text .lede{ margin-top: 18px; }
.proof-pts{ list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-size: var(--body-size); line-height: var(--body-lh); color: var(--ink-2); max-width: var(--lede-measure); }
.proof-pts li{ position: relative; padding-left: 24px; }
.proof-pts li::before{ content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.proof-pts .nw{ white-space: nowrap; }
.proof-pts b{ color: var(--ink); font-weight: 650; }
.proof-fig{ margin: 0; min-width: 0; }
/* 761 to 999: the text sits above, heading beside lede, the points in three columns; the figure takes the full width */
@media (max-width: 999px){
  .proof-in{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }   /* 1:1 so "A tamper‑evident" (one unbreakable unit) fits its line */
  .proof-text{ display: contents; }
  .proof-text .h2{ grid-column: 1; grid-row: 1; max-width: 17ch; }
  .proof-text .lede{ grid-column: 2; grid-row: 1; margin-top: 4px; max-width: 56ch; }
  .proof-pts{ grid-column: 1 / -1; grid-row: 2; margin: 0; max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .proof-fig{ grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 760px){
  .proof-in{ grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .proof-text .h2, .proof-text .lede, .proof-pts, .proof-fig{ grid-column: 1; grid-row: auto; }
  .proof-text .lede{ margin-top: -10px; }
  .proof-pts{ grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 640px){
}
html:not(.story-static) .stage-left .h2{ margin-bottom: 22px; }   /* the intro and seal lines left: the heading keeps its air above the rail */

/* ===== v12: the pinned story (P1, P2, P3), the practice row (R2, R6) ===== */
/* P1: a little more than one viewport of scroll per beat (v15, owner: "a tad longer so it feels less abrupt": 1.2 viewports per beat, +20 %;
   three beats: the track is the stage plus 3.6 viewports). main.js derives every beat's span from the track and keeps the blend short in px */
.pin-track{ height: 460vh; height: 460svh; }
/* P2: one top line. The windows hang from the deck's top (main.js sets the deck to the tallest fitted window, so the composition is centred
   on it) and the text column starts on the same line; the scale (the fit) keeps the window's top where it is */
html:not(.story-static) .pin-stage{ align-items: safe center; }
html:not(.story-static) .stage-left .h2{ margin-top: -.12em; }
/* P3: each beat is two to four short points */
.beat-pts{ list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; max-width: 46ch; }
.beat-pts li{ position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); text-wrap: wrap; }
.beat-pts li::before{ content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 2px; border-radius: 1px; background: var(--teal); }
html:not(.story-static) .beats{ margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
html:not(.story-static) .beat-pts li{ font-size: 16px; }
.story-static .beat-pts{ max-width: 60ch; }
.story-static .beat-pts li{ font-size: 17px; }
@media (max-width: 640px){ .story-static .beat-pts{ gap: 7px; } .story-static .beat-pts li{ font-size: 16px; } }
/* practice: one row, the heading and two points beside the Hub window (the credit lead and the h3 eyebrow left) */
.sec-practice .hub-row{ margin-top: 0; align-items: center; }
.hub-row .row-text .h2{ margin: 0 0 26px; }
.hub-pts{ list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hub-pts li{ padding: 16px 0; border-top: 1px solid var(--line-2); font-size: var(--body-size); line-height: var(--body-lh); color: var(--ink-2); }
.hub-pts li:first-child{ border-top: 1.2px solid var(--ink); }
.hub-pts b{ font-weight: 700; color: var(--ink); }
@media (max-width: 640px){ .hub-row .row-text .h2{ margin-bottom: 14px; } .hub-pts li{ padding: 12px 0; line-height: 1.45; } }
/* v17 (U4): the practice figure, the firm's own workspaces side by side (kit prac-pair): the Hub's window (its Overview, drawn at its own
   narrow width) as the main plane at the left, and beside it a column of two cards of an internal project, overlapping only the window's
   empty right gutter (its 24 px page padding and the cards' own 16 px), so nothing in the Hub is covered or cut. The window fades out at its
   foot. One composition from 1100 px (R0): the planes are placed in % of the column (581 to 658 px), so the figure only scales and every
   window keeps its 1:1 text. */
.fig-prac{ position: relative; min-height: 480px; }
.app.a-pracfig{ position: relative; display: block; height: 480px; }
.a-pracfig > .pf-a{ position: absolute; left: 0; top: 0; width: 64%; }
.a-pracfig > .pf-side{ position: absolute; left: calc(64% - 16px); right: 0; top: 104px; z-index: 1; display: grid; gap: 14px; }
.a-pracfig .pf-a .a-viewport{ max-height: 444px; }
.a-pracfig .pf-a .pf-ob{ padding: 8px 0; }
.a-pracfig .pf-a .a-viewport::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(to bottom, hsl(var(--canvas) / 0), hsl(var(--canvas))); }
.a-pracfig .pf-a > .app.a-window{ box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 0 0 1px rgba(44,51,56,.12), 0 22px 48px -28px rgba(44,51,56,.30); }
.a-pracfig .app.a-float{ display: block; border-radius: 12px; background: hsl(var(--background)); box-shadow: 0 0 0 1px hsl(var(--ink-200)), 0 2px 4px rgba(16,24,32,.06), 0 28px 56px -18px rgba(16,24,32,.40); overflow: hidden; }
.a-pracfig .pf-c{ margin-left: 22px; }
.a-pracfig .pf-roles{ padding: 12px 16px 6px; }
.app .pf-tbc .pf-eyebrow{ padding: 16px 18px 0; }
.app .pf-title{ margin: 0; padding: 2px 18px 14px; font-size: 22px; line-height: 28px; letter-spacing: -.025em; font-weight: 600; color: hsl(var(--foreground)); }
.app .pf-rl{ margin-top: 6px; }
.app .pf-rl > li{ display: grid; justify-items: start; gap: 5px; padding: 9px 0; border-top: 1px solid hsl(var(--ink-100)); }
.app .pf-rl > li:first-child{ border-top: 0; }
.app .pf-rl .a-badge{ white-space: nowrap; }
/* a phone: the Hub's window across the column, drawn scrolled to its Expiring list (the app's header stays; the page header and tab bar
   have scrolled away), and the internal project's title block overlapping only its faded foot, offset right; the open line, the cell's
   label and value, and the Role overrides card are left out */
@media (max-width: 640px){
  .fig-prac{ min-height: 333px; }
  .app.a-pracfig{ height: 333px; }
  .a-pracfig > .pf-a{ width: 100%; }
  .a-pracfig .pf-a .a-viewport{ max-height: 194px; }
  .a-pracfig .pf-a .a-viewport::after{ height: 18px; }
  .a-pracfig .pf-a .a-ph{ display: none; }
  .a-pracfig .pf-a .a-content{ padding-top: 16px !important; }
  .app .pf-tbc .pf-eyebrow{ padding-top: 12px; }
  .app .pf-title{ padding-bottom: 10px; }
  .a-pracfig .pf-a .a-tabbar{ display: none; }
  .a-pracfig > .pf-side{ left: 16%; top: auto; bottom: 0; }   /* it overlaps only the window's last few px, under its fade */
  .a-pracfig .pf-c, .a-pracfig .pf-open, .a-pracfig .pf-wall > .a-tb-cell-l, .a-pracfig .pf-wall > .a-tb-cell-v{ display: none; }
  .a-pracfig .pf-wall > .pf-only{ margin-top: 0; }
}
.app .pf-ob-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.app .pf-ob .a-lr-main{ min-width: 0; }
.app .pf-ob .a-lr-main > div{ min-width: 0; flex: 1; }
.app .pf-ob{ flex-wrap: nowrap; align-items: flex-start; }
.app .pf-due{ display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; flex: none; }
.app .pf-due b{ font-size: 14px; line-height: 20px; font-weight: 600; color: hsl(var(--foreground)); white-space: nowrap; }
.app .pf-due span{ font-size: 12px; line-height: 16px; white-space: nowrap; }
.app .pf-link{ margin-left: auto; font-size: 13px; line-height: 18px; font-weight: 600; color: hsl(var(--brand)); }
.app .pf-eyebrow{ font-size: 11px; line-height: 14px; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; color: hsl(var(--ink-500)); margin: 0; }
.app .pf-cells{ display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid hsl(var(--ink-200)); }
.app .pf-cells > .a-tb-cell{ padding: 12px 18px; }
.app .pf-cells > .a-tb-cell + .a-tb-cell{ border-left: 0; border-top: 1px solid hsl(var(--ink-200)); }
.app .pf-wall{ background: hsl(var(--brand-subtle)); box-shadow: inset 2px 0 0 hsl(var(--brand)); }
.app .pf-only{ display: flex; align-items: center; gap: 6px; color: hsl(var(--brand-ink)) !important; font-weight: 600; }
.app .pf-only .a-i{ width: 13px; height: 13px; color: hsl(var(--brand)); }
/* ---------- #ai (v14, BRIEF-v14 R0 + R4): ONE composition from 1100 px up ----------
   The text column beside the window, the window flush with the container's right edge, at every width from 1100 to 2560 (browser
   zoom included). The window is drawn at its 820 px design width (its two-column form: the asker's pane beside the answer) and scaled
   to its column with `zoom`: ai-compare.js sets the exact scale; the stepped values below are the no-script floor (static.html).
   Under 1100 the text sits above the window; under 761 the window is fluid and its own phone form (app-ai-compare.css) takes over.
   Type sizes of .h2 and .lede are GLOBAL's; this block sets only measure and spacing. */
.sec-ai .ai-lead{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.sec-ai .ai-h2{ max-width: 9.2em; }   /* v15: "AI agents that know" is 8.98em in every engine (measured: Chrome, Firefox, WebKit); the next word would make it 10.2em, so it
   breaks after "know" in all three. Sized in em, never ch (13ch sat exactly on the v14 edge and Firefox wrapped it to 3 lines) */
.sec-ai .ai-lead-text .lede{ margin: 20px 0 0; max-width: 34ch; }
/* v15: plain wrapping in the text column, so every engine breaks the lines at the same words (`pretty` differs per engine; Firefox has none) */
.sec-ai .ai-lead-text .lede, .sec-ai .ai-pts span{ text-wrap: wrap; }
/* two ruled points, a bold label over one sentence (the Hub's points are the page's pattern) */
.sec-ai .ai-pts{ list-style: none; margin: 30px 0 0; padding: 0; max-width: 40ch; }
.sec-ai .ai-pts li{ display: grid; gap: 4px; padding: 15px 0 16px; border-top: 1px solid var(--line-2); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.sec-ai .ai-pts li:first-child{ border-top: 1.2px solid var(--ink); }
.sec-ai .ai-pts li:last-child{ padding-bottom: 0; }
.sec-ai .ai-pts b{ font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.sec-ai .ai-lead-win{ min-width: 0; }
.sec-ai .ai-cx{ margin: 0; display: flex; justify-content: center; }
.sec-ai .ai-cx .app.a-window{ max-width: none; box-shadow: 0 1px 2px rgba(16,24,32,.05), 0 0 0 1px rgba(44,51,56,.12), 0 22px 48px -28px rgba(44,51,56,.32); }
@media (min-width: 761px){
  .sec-ai .ai-cx .app.a-window{ flex: none; width: 820px; zoom: .84; }
}
@media (min-width: 920px){ .sec-ai .ai-cx .app.a-window{ zoom: 1; } }
/* 1100 px and up: the text column beside the window (v15 1 : 1.8, so the column is at least 9.2em of GLOBAL's 44 px H2 and the H2 keeps its two
   lines at every width; v14 was 1 : 1.95 for "read"), the window
   last so its right edge is the container's */
@media (min-width: 1100px){
  .sec-ai .ai-lead{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); column-gap: clamp(36px, 3.4vw, 52px); align-items: center; }
  .sec-ai .ai-cx{ justify-content: flex-end; }
  .sec-ai .ai-cx .app.a-window{ zoom: .75; }
}
@media (min-width: 1152px){ .sec-ai .ai-cx .app.a-window{ zoom: .78; } }
@media (min-width: 1240px){ .sec-ai .ai-cx .app.a-window{ zoom: .84; } }
@media (min-width: 1280px){ .sec-ai .ai-cx .app.a-window{ zoom: .87; } }
@media (min-width: 1392px){ .sec-ai .ai-cx .app.a-window{ zoom: .89; } }
/* 761 to 1099: the text is one row above the window (heading and lead | the two points) */
@media (min-width: 761px) and (max-width: 1099px){
  .sec-ai .ai-lead-text{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
  .sec-ai .ai-lead-text > :nth-child(-n+2){ grid-column: 1; }
  .sec-ai .ai-lead-text .ai-h2{ grid-row: 1; }
  .sec-ai .ai-lead-text .lede{ grid-row: 2; }
  .sec-ai .ai-lead-text .ai-pts{ grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
}
@media (max-width: 760px){
  .sec-ai .ai-lead{ gap: 22px; }
  .sec-ai .ai-lead-text .lede{ margin-top: 12px; }
  .sec-ai .ai-pts{ margin-top: 18px; }
  .sec-ai .ai-pts li{ padding: 12px 0 13px; font-size: 15px; line-height: 1.5; }
  .sec-ai .ai-pts b{ font-size: 16px; }
}
/* ---------- 10 close (v13): full bleed on ink, the axonometric "one record under the project" redrawn as a paper drawing ----------
   Replaces every .cta / .cg rule in style.css (INTEGRATE.md lists them). Graphic: design-v13/faq-close/close-graphic.mjs.
   v13 against v12: no teal wash, no halo, no neon; paper plates and sheets (the hero's material) on the ink ground; three line
   weights (profile, edge, hairline); teal only as ink on paper; labels in the site's Manrope, sentence case. */
.cta { position: relative; margin-top: var(--sec-gap); background: var(--ink); color: var(--sand); overflow: hidden; isolation: isolate; }
.cta-in { max-width: var(--max); margin: 0 auto; padding: clamp(52px, 5vw, 72px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.cta-h { color: var(--sand); max-width: 11ch; margin-bottom: 32px; }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost-d { color: var(--sand); border-color: rgba(247,244,238,.34); }
.btn-ghost-d:hover { background: rgba(247,244,238,.08); }
.cta-fig { margin: 0; justify-self: end; width: min(660px, 100%); }
.cta :focus-visible { outline-color: var(--sand); }

/* the graphic: two SVGs on one viewBox (640 x 430) and five HTML labels in % of the box */
.cg { position: relative; aspect-ratio: 640 / 430;
  --l1: rgba(247,244,238,.86);   /* profile: the outline of a mass */
  --l2: rgba(247,244,238,.5);    /* edge */
  --l3: rgba(247,244,238,.22);   /* hairline */
  --pp: #F4EFE5;                 /* paper (the hero's plates) */
  --pp-2: #E4DDCF;               /* paper in shade */
  --board: #9A8F7E;              /* the hero's slab edge */
  --board-2: #7E7466; }
.cg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cg-move { will-change: transform; pointer-events: none; }
.cg line, .cg polygon, .cg path { vector-effect: non-scaling-stroke; stroke-width: 1; }
.cg-grid { stroke: rgba(247,244,238,.06); }
.cg-shadow { fill: rgba(16,20,23,.32); stroke: none; }
.cg-flow { stroke: var(--l2); stroke-dasharray: 16 4 3 4; }
.cg-pl-side { fill: #262C30; stroke: var(--l2); }
.cg-hatch { stroke: rgba(247,244,238,.16); vector-effect: none; stroke-width: .8; }
.cg-pl-top { fill: #343C41; stroke: var(--l1); stroke-width: 1.4; }
.cg-pl-kerb { fill: none; stroke: var(--l3); }
.cg-pad { fill: none; stroke: var(--l3); }
.cg-sh { fill: var(--pp-2); stroke: rgba(44,51,56,.55); }
.cg-sh.is-top { fill: var(--pp); stroke: rgba(44,51,56,.7); }
.cg-sh-ln { stroke: rgba(44,51,56,.42); }
.cg-sh-tb { fill: none; stroke: rgba(44,51,56,.55); }
.cg-crane { stroke: var(--l3); }
.cg-crane.is-m { stroke: var(--l2); stroke-width: 1.2; }
.cg-hook { stroke: var(--l2); }
.cg-fr { fill: #23292D; stroke: var(--l2); }
.cg-fl { fill: #3A4246; stroke: var(--l2); }
.cg-ft { fill: var(--pp-2); stroke: var(--l2); }
.cg-ok { fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cg-gl.is-l { fill: #3B4549; }
.cg-gl.is-r { fill: #2A3236; }
.cg-mul { stroke: rgba(247,244,238,.14); }
.cg-lit { fill: #5C6A66; }
.cg-lit.is-r { fill: #4A5653; }
.cg-sl.is-l { fill: var(--board); stroke: rgba(44,51,56,.6); }
.cg-sl.is-r { fill: var(--board-2); stroke: rgba(44,51,56,.6); }
.cg-sl.is-t { fill: var(--pp-2); stroke: rgba(44,51,56,.5); }
.cg-roof { fill: var(--pp); stroke: var(--ink); stroke-width: 1.2; }
.cg-plan { stroke: rgba(44,51,56,.62); }
.cg-plan.is-g { stroke: rgba(247,244,238,.5); }
.cg-room { fill: rgba(27,122,108,.16); stroke: var(--teal); }
.cg-edge { stroke: var(--l2); }
.cg-edge.is-s { stroke: var(--l3); }
.cg-pk-s { fill: var(--pp); stroke: rgba(44,51,56,.7); }
.cg-pk-l { stroke: var(--teal); }
.cg-pulse { fill: none; stroke: var(--sand); stroke-width: 1.2; opacity: 0; }
.cg-l { position: absolute; transform: translate(-50%, 10px); font: 600 13px/1.2 var(--sans); letter-spacing: -.005em; color: rgba(247,244,238,.88); white-space: nowrap; pointer-events: none; }
/* the record is named on a paper tag, like the hero's floor cards */
.cg-l.is-record { transform: translate(-50%, 14px); padding: 6px 10px 7px; border-radius: 6px; background: var(--sand); color: var(--ink); font-weight: 680; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.cg-l.is-record::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 9px; background: var(--sand); }

/* motion (close.js adds .is-on while the figure is on screen; never under reduced motion). One 6 s cycle: your firm's sheet
   reaches the record (0 to 30%), the plinth's rim answers once, then three sheets leave it for the other parties (32 to 62%), then rest. */
.cg.is-on .cg-pk { animation: cg-in 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.cg.is-on .cg-pk.is-out { animation-name: cg-out; }
.cg.is-on .cg-pulse { animation: cg-pulse 6s ease-out infinite; }
@keyframes cg-in { 0% { transform: translate(var(--ax), var(--ay)); opacity: 0; } 4% { opacity: 1; } 27% { opacity: 1; } 30%, 100% { transform: translate(var(--bx), var(--by)); opacity: 0; } }
@keyframes cg-out { 0%, 31% { transform: translate(var(--ax), var(--ay)); opacity: 0; } 35% { opacity: 1; } 58% { opacity: 1; } 62%, 100% { transform: translate(var(--bx), var(--by)); opacity: 0; } }
@keyframes cg-pulse { 0%, 28% { opacity: 0; } 32% { opacity: .55; } 46%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cg.is-on .cg-pk, .cg.is-on .cg-pulse { animation: none; } }

/* tablets and phones: the copy above, the graphic under it, centred */
@media (max-width: 999px) {
  .cta-in { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 48px; gap: 28px; }
  .cta-fig { justify-self: center; width: min(560px, 100%); }
  .cg-base { overflow: hidden; }   /* stacked, the grid would run up behind the copy and the buttons: clip it to the box */
}
@media (max-width: 640px) {
  .cta-in { padding-top: 36px; padding-bottom: 32px; gap: 20px; }
  .cta-h { margin-bottom: 22px; }
  .cg-l { font-size: 11.5px; transform: translate(-50%, 7px); }
  .cg-l.is-record { transform: translate(-50%, 11px); padding: 4px 8px 5px; }
  .cg-l.is-record::before { top: -7px; height: 7px; }
}

/* ===== v13 hero: the floor plates are their own hover regions (hero-floors.js) =====
   .hf is the canvas box. .hf-map's viewBox is the building's envelope box with "meet", the camera's own fit, so the polygons sit on the
   plates at every size. A plate's group draws a teal tint and edge from its hull, masked by the plates above it: only the part you can
   see lights. The card glides between floors (script) and its six stacked faces cross-fade; the tint cross-fades here. */
.hf { z-index: 4; container-type: size; pointer-events: none; }
.hf-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; -webkit-tap-highlight-color: transparent; }
.hf.is-js .hf-map { pointer-events: auto; }
.hf-fl use { fill: transparent; stroke: none; }
.hf-fl .hf-fill { fill: var(--teal); fill-opacity: 0; transition: fill-opacity .18s var(--ease-out); }
.hf-fl .hf-edge { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-opacity: 0; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke-opacity .18s var(--ease-out), stroke-width .18s var(--ease-out); }
.hf-fl.is-hi .hf-fill { fill-opacity: .085; }
.hf-fl.is-hi .hf-edge { stroke-opacity: .9; }
.hf-fl.is-focus .hf-fill { fill-opacity: .11; }
/* v16 floors: the scan carries the hover's own teal edge and 70 % of its tint, and lights in .2 s (each floor is lit only 540 ms, so a
   .32 s rise never let it register); it fades out at the base .18 s, so the lap scan's last floor is dark before the roof lifts */
.hf-fl.is-hint:not(.is-hi) .hf-fill { fill-opacity: .06; transition-duration: .2s; }
.hf-fl.is-hint:not(.is-hi) .hf-edge { stroke-opacity: .9; transition-duration: .2s; }
.hf-fl.is-focus .hf-edge { stroke-opacity: 1; stroke-width: 2.6; }
.hf:not(.is-js) .hf-fl .hf-fill { pointer-events: all; cursor: pointer; }   /* live, hero-floors.js sets the pointer cursor over a floor that takes hover */
.hf-fl.is-away { display: none; }
/* v17 U1 (owner: a tiny dot with a line on each floor, so it is clear there is something to read): each floor's callout, a drawing leader.
   Quiet at rest (ink, no motion); it lights teal with its floor (hover, focus, tap, the idle scan). Hidden while its plate is away (never on
   a sheet in flight); it fades in once its plate lands. Strokes are non-scaling, so the dot and line are the same px at every size. */
.hf-co { transition: opacity .32s var(--ease-out); }
@starting-style { .hf-co { opacity: 0; } }
.hf-co.is-away { display: none; }
.hf-co path { fill: none; vector-effect: non-scaling-stroke; }
.hf-co-hit { stroke: transparent; stroke-width: 14; stroke-linecap: round; pointer-events: stroke; }
.hf:not(.is-js) .hf-co-hit { cursor: pointer; }
.hf-co-ln { stroke: var(--ink); stroke-opacity: .42; stroke-width: 1; stroke-linejoin: round; pointer-events: none; transition: stroke .18s var(--ease-out), stroke-opacity .18s var(--ease-out); }
.hf-co-dt { stroke: var(--ink); stroke-opacity: .78; stroke-width: 5; stroke-linecap: round; pointer-events: none; transition: stroke .18s var(--ease-out), stroke-opacity .18s var(--ease-out); }
.hf-co.is-hi .hf-co-ln, .hf-co.is-focus .hf-co-ln, .hf-co.is-hint .hf-co-ln { stroke: var(--teal); stroke-opacity: .95; }
.hf-co.is-hi .hf-co-dt, .hf-co.is-focus .hf-co-dt, .hf-co.is-hint .hf-co-dt { stroke: var(--teal); stroke-opacity: 1; }
.hf-co.is-hint .hf-co-ln, .hf-co.is-hint .hf-co-dt { transition-duration: .2s; }
/* v18 (owner: "the left end point should have some sort of small circle … so people know you should hover over it"): the leader ends in a
   small open ring, a drawing callout's terminal, drawn as two round-capped zero-length strokes (ink 9 px under paper 6 px) so it stays the
   same px at every size like the dot. It fills solid teal with its floor. */
.hf-co-end { stroke: var(--ink); stroke-opacity: .5; stroke-width: 9; stroke-linecap: round; pointer-events: none; transition: stroke .18s var(--ease-out), stroke-opacity .18s var(--ease-out); }
.hf-co-endin { stroke: var(--paper); stroke-width: 6; stroke-linecap: round; pointer-events: none; transition: stroke .18s var(--ease-out); }
.hf-co.is-hi .hf-co-end, .hf-co.is-focus .hf-co-end, .hf-co.is-hint .hf-co-end { stroke: var(--teal); stroke-opacity: 1; }
.hf-co.is-hi .hf-co-endin, .hf-co.is-focus .hf-co-endin, .hf-co.is-hint .hf-co-endin { stroke: var(--teal); }
.hf-ld { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .2s var(--ease-out); }
.hf-ld path { fill: none; stroke: var(--teal); stroke-width: 1.2; }
.hf-ld circle { fill: var(--teal); }
.hf.has-open .hf-ld { opacity: 1; }
/* v16 T2: 258 px, so every floor's line (now one plain sentence each) breaks in three with no one-word last line, identically in Chrome,
   Firefox and WebKit (px type, px box: the same at every width). Orphans start below 252 and above 263 px; 258 sits in the middle. */
.hf-card { position: absolute; left: 0; top: 0; display: grid; width: 258px; max-width: calc(100vw - 20px); padding: 12px 15px 13px; border-radius: 9px; background: var(--paper);
  box-shadow: 0 0 0 1px rgba(44, 51, 56, .14), 0 16px 34px -16px rgba(44, 51, 56, .4); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s var(--ease-out), visibility 0s linear .16s; }
.hf.has-open .hf-card { opacity: 1; visibility: visible; transition: opacity .16s var(--ease-out); }
.hf-face { grid-area: 1 / 1; opacity: 0; transition: opacity .18s var(--ease-out); }
.hf.is-js .hf-card { display: block; box-sizing: border-box; overflow: hidden; translate: 0 6px; transition: opacity .2s var(--ease-out), translate .2s var(--ease-out), visibility 0s linear .2s, height .19s var(--ease-out); }
.hf.is-js.has-open .hf-card { translate: 0 0; transition: opacity .24s var(--ease-out), translate .32s var(--ease-out), height .19s var(--ease-out); }   /* v15: the card rises into place as it fades in, and sinks as it fades out */
.hf.is-js .hf-face { position: absolute; left: 15px; right: 15px; top: 12px; }
.hf-face.is-on { opacity: 1; }
.hf-tn { display: block; font-size: 14px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
.hf-tl { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.45; font-weight: 500; color: var(--ink-2); text-wrap: wrap; }
.hf-sr { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* no script: hover a plate, or hover or focus its floor-index entry, and its tint and card show by CSS; the card sits at the stage's top right */
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="0"]:hover, .hf-co[data-i="0"]:hover, .hx-fl[data-i="0"]:hover, .hx-fl[data-i="0"]:focus-visible) .hf-fl[data-i="0"] .hf-fill { fill-opacity: .085; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="0"]:hover, .hf-co[data-i="0"]:hover, .hx-fl[data-i="0"]:hover, .hx-fl[data-i="0"]:focus-visible) .hf-fl[data-i="0"] .hf-edge { stroke-opacity: .9; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="0"]:hover, .hf-co[data-i="0"]:hover, .hx-fl[data-i="0"]:hover, .hx-fl[data-i="0"]:focus-visible) .hf-face[data-i="0"] { opacity: 1; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="1"]:hover, .hf-co[data-i="1"]:hover, .hx-fl[data-i="1"]:hover, .hx-fl[data-i="1"]:focus-visible) .hf-fl[data-i="1"] .hf-fill { fill-opacity: .085; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="1"]:hover, .hf-co[data-i="1"]:hover, .hx-fl[data-i="1"]:hover, .hx-fl[data-i="1"]:focus-visible) .hf-fl[data-i="1"] .hf-edge { stroke-opacity: .9; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="1"]:hover, .hf-co[data-i="1"]:hover, .hx-fl[data-i="1"]:hover, .hx-fl[data-i="1"]:focus-visible) .hf-face[data-i="1"] { opacity: 1; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="2"]:hover, .hf-co[data-i="2"]:hover, .hx-fl[data-i="2"]:hover, .hx-fl[data-i="2"]:focus-visible) .hf-fl[data-i="2"] .hf-fill { fill-opacity: .085; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="2"]:hover, .hf-co[data-i="2"]:hover, .hx-fl[data-i="2"]:hover, .hx-fl[data-i="2"]:focus-visible) .hf-fl[data-i="2"] .hf-edge { stroke-opacity: .9; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="2"]:hover, .hf-co[data-i="2"]:hover, .hx-fl[data-i="2"]:hover, .hx-fl[data-i="2"]:focus-visible) .hf-face[data-i="2"] { opacity: 1; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="3"]:hover, .hf-co[data-i="3"]:hover, .hx-fl[data-i="3"]:hover, .hx-fl[data-i="3"]:focus-visible) .hf-fl[data-i="3"] .hf-fill { fill-opacity: .085; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="3"]:hover, .hf-co[data-i="3"]:hover, .hx-fl[data-i="3"]:hover, .hx-fl[data-i="3"]:focus-visible) .hf-fl[data-i="3"] .hf-edge { stroke-opacity: .9; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="3"]:hover, .hf-co[data-i="3"]:hover, .hx-fl[data-i="3"]:hover, .hx-fl[data-i="3"]:focus-visible) .hf-face[data-i="3"] { opacity: 1; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="4"]:hover, .hf-co[data-i="4"]:hover, .hx-fl[data-i="4"]:hover, .hx-fl[data-i="4"]:focus-visible) .hf-fl[data-i="4"] .hf-fill { fill-opacity: .085; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="4"]:hover, .hf-co[data-i="4"]:hover, .hx-fl[data-i="4"]:hover, .hx-fl[data-i="4"]:focus-visible) .hf-fl[data-i="4"] .hf-edge { stroke-opacity: .9; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="4"]:hover, .hf-co[data-i="4"]:hover, .hx-fl[data-i="4"]:hover, .hx-fl[data-i="4"]:focus-visible) .hf-face[data-i="4"] { opacity: 1; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="5"]:hover, .hf-co[data-i="5"]:hover, .hx-fl[data-i="5"]:hover, .hx-fl[data-i="5"]:focus-visible) .hf-fl[data-i="5"] .hf-fill { fill-opacity: .085; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="5"]:hover, .hf-co[data-i="5"]:hover, .hx-fl[data-i="5"]:hover, .hx-fl[data-i="5"]:focus-visible) .hf-fl[data-i="5"] .hf-edge { stroke-opacity: .9; }
.hero:has(.hf:not(.is-js)):has(.hf-fl[data-i="5"]:hover, .hf-co[data-i="5"]:hover, .hx-fl[data-i="5"]:hover, .hx-fl[data-i="5"]:focus-visible) .hf-face[data-i="5"] { opacity: 1; }
.hero:has(.hf:not(.is-js)):has(.hf-fl:hover, .hf-co:hover, .hx-fl:hover, .hx-fl:focus-visible) .hf-card { opacity: 1; visibility: visible; transition: opacity .16s var(--ease-out); }
.hf:not(.is-js) .hf-card { right: 12px; left: auto; top: 8%; }
@media (prefers-reduced-motion: reduce) { .hf-fl use, .hf-ld, .hf-card, .hf-face { transition: none !important; } .hf.is-js .hf-card { translate: none; } }


/* ===== v12 final: the step titles in the static / phone story keep their air under the heading ===== */
.story-static .stage-left .h2{ margin-bottom: 22px; }
.story-static .beats{ margin-top: 22px; }

/* ===== v14: the #usual band, "Why Plintara" since v15 (lane `usual`; BRIEF-v14 R0, R2, R3; v15 S2). The END of style.css.
   The H2 alone, then four problem cards. One composition from 721 to 2560 px: a 2 x 2 grid of cards, each a drawn before/after sheet
   (inline SVG, 480 x 240, scaled to the card) over its title, problem line and answer line. One column on phones (<= 720).
   No sticky positioning. Type sizes are fixed px inside the card, so browser zoom only rescales, never re-flows the composition.
   The H2's size and the section's outer spacing are GLOBAL's (R8); only the H2's measure is set here. */
.sec-usual .uc-head { position: relative; isolation: isolate; width: fit-content; }   /* v15: the paper wash hugs the short title */
.sec-usual .uc-head::before { content: ""; position: absolute; inset: -26px -60px -18px; z-index: -1; pointer-events: none;
  background: rgba(242,239,233,.92); -webkit-mask: radial-gradient(closest-side, #000 76%, transparent 100%); mask: radial-gradient(closest-side, #000 76%, transparent 100%); }
.sec-usual .uc-head .h2 { max-width: none; }

.usual-grid.ucs { display: block; }
.uc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.uc { display: flex; flex-direction: column; padding: 11px; border-radius: 18px; background: var(--paper);
  box-shadow: var(--shadow-card), 0 24px 48px -32px rgba(44,51,56,.38); }
.uc-art { border-radius: 11px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(44,51,56,.08); line-height: 0; }
.uc-v { display: block; width: 100%; height: auto; aspect-ratio: 30 / 13; }   /* v15: the band y 16-224 of the 480 x 240 sheet (usual-band.mjs) */
.uc-tx { padding: 20px 16px 12px; display: grid; gap: 8px; }
.uc-h { margin: 0 0 2px; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; font-weight: 720; color: var(--ink); text-wrap: balance; }
.uc-s1, .uc-p1 { margin: 0; font-size: 16px; line-height: 1.5; max-width: 46ch; }
.sec-usual .uc-h, .sec-usual .uc-s1, .sec-usual .uc-p1 { text-wrap: wrap; }   /* v15: plain wrapping (over `.sec p`), the same line breaks in Chrome, Firefox and WebKit (each engine's `pretty` breaks differently; Firefox has none) */
.uc-s1 { color: var(--ink-2); }
.uc-p1 { position: relative; padding-left: 22px; color: var(--teal-ink); font-weight: 620; }
.uc-p1::before { content: ""; position: absolute; left: 1px; top: .5em; width: 10px; height: 10px; border-radius: 2px; background: var(--teal); transform: rotate(45deg) scale(.82); }
.uc-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(27,122,108,.5); text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  border-radius: 3px; transition: text-decoration-color .15s ease, color .15s ease; }
.uc-link:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.uc-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; text-decoration-color: currentColor; }

/* the drawings' marks (SVG text, in viewBox units) */
.uc-v text { font-family: var(--mono); font-size: 12px; fill: var(--ink-2); }
.uc-v .uc-s { font-family: var(--sans); font-size: 13px; font-weight: 650; fill: var(--ink); }
.uc-v .uc-m { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.uc-v .uc-b { font-weight: 700; fill: var(--ink); }
.uc-v .uc-k { fill: #5E676D; }
.uc-v .uc-q { fill: #6A747A; }
.uc-v .uc-t { fill: var(--teal-ink); }
.uc-v .uc-w { fill: #fff; }
.uc-v .uc-o { fill: var(--ochre-ink); }
.uc-v .uc-g { fill: #4F5A55; font-size: 12.5px; }
.uc-v .uc-l { font-size: 15px; font-weight: 700; }
.uc-v .uc-xs { font-size: 10.5px; font-weight: 700; }
.uc-v .uc-sm { font-size: 12px; }
.uc-v .uc-r { fill: #A64B2C; font-weight: 700; letter-spacing: .1em; font-size: 12.5px; }
.uc-v .uc-q2 { font-family: var(--sans); font-size: 17px; font-weight: 700; fill: var(--rust); }
.uc-v .uc-sh { filter: drop-shadow(0 4px 7px rgba(44,51,56,.13)); }
.uc-v .uc-bf { filter: saturate(.85); }

/* tablet: the same 2 x 2, tighter */
@media (max-width: 1099px) {
  .uc-list { gap: 18px; }
  .uc-tx { padding: 20px 12px 10px; }
  .uc-h { font-size: 20px; }
  .uc-s1, .uc-p1 { font-size: 15.5px; }
}
/* phones: one column */
@media (max-width: 720px) {
  .uc-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .uc { padding: 10px; border-radius: 18px; }
  .uc-tx { padding: 18px 10px 10px; gap: 8px; }
  .sec-usual .uc-head::before { inset: -18px -16px; }
}

/* ===== v14 #record (R0, R5): ONE composition from 1100 to 2560 px wide =====
   The three windows share one frame: the window (--fw wide, --wh tall, every beat the same) with its floating card over the bottom-right
   corner, hanging --ovb below it. main.js draws the frame at this size at every width and scales it as a whole to the window column (min(--fw,
   60%) of the page container) and the stage height; the text column takes the rest and the stage centres both. Only height (680 px) decides
   pinned or static from 1100 up; below 1100 the story is static. */
#record{ --fw: 720px; --wh: 640px; --ovb: 48px; --fh: 688px; }
/* v15 int: the points column is 24.2 em at every pinned size (body em), so the plain-wrapped beat points break the same way everywhere, with no
   one-word last line ("…title block / read." past 24.3 em, "…the old / revision." under 23.6 em; Chrome, Firefox and WebKit within 1 px);
   from 1100 to about 1280 the window gives the text column what it needs for that */
html:not(.story-static) .stage-in{ --bp-w: 24.2em; grid-template-columns: minmax(0, 1fr) min(var(--fw), 60%, calc(100% - var(--bp-w) - clamp(32px, 3.2vw, 56px))); column-gap: clamp(32px, 3.2vw, 56px); align-items: center; }
html:not(.story-static) .beat-pts{ max-width: var(--bp-w); }
html:not(.story-static) .stage-left .h2{ max-width: 7.2em; }
html:not(.story-static) .deck{ height: var(--fh); }
.art-main{ position: relative; }
html:not(.story-static) .art-main{ position: absolute; top: 0; left: 0; right: 0; }
html:not(.story-static) .art-main .app.a-window{ height: var(--wh); display: flex; flex-direction: column; }
html:not(.story-static) .art-main .app.a-window .a-viewport{ flex: 1; min-height: 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.art-float{ position: absolute; right: 24px; bottom: 0; z-index: 3; width: 300px; }
.art-float .app.a-float{ display: block; width: 100%; border-radius: 12px; background: hsl(var(--background)); padding: 14px 16px; box-shadow: 0 0 0 1px hsl(var(--ink-200)), 0 2px 4px rgba(16,24,32,.06), 0 28px 56px -18px rgba(16,24,32,.36); }
.app .a-float-hd{ display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app .a-float-sub{ margin-top: 4px; }
.app .a-float-crop{ margin-top: 10px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px hsl(var(--ink-200)); background: #fff; line-height: 0; }
.app .a-float-crop svg{ display: block; width: 100%; height: auto; }
.app .a-float-ft{ margin-top: 10px; }
.app .a-float-rcp{ margin-top: 4px; }
.app .a-float-rcp > li{ padding: 9px 0 !important; }
.app .a-float-rcp > li + li{ border-top: 1px solid hsl(var(--ink-100)); }
.app .a-float-notes{ margin-top: 10px; }
.app .a-float-notes .a-textarea{ font-size: 12px; line-height: 17px; padding: 8px 10px; }
.app .a-revs{ list-style: none; margin: 0; display: grid; gap: 2px; }
.app .a-revs li{ display: flex; align-items: baseline; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.app .a-revs li.is-cur{ background: hsl(var(--brand-subtle)); }
/* static story (tablets; phones drop the float): the window keeps its natural height, the card hangs over its bottom-right corner */
.story-static .art{ width: auto; height: auto; }
.story-static .art-fig{ height: auto; padding-bottom: 28px; }

.story-static .art-float{ width: min(300px, 46%); }
@media (max-width: 640px){ .story-static .art-float{ display: none; } .story-static .art-fig{ padding-bottom: 0; } }
html:not(.story-static) .art-main .app.a-window .a-screen{ min-height: 100%; display: grid; }
html:not(.story-static) .art-main .app.a-window .a-scrim-sheet{ min-height: 100%; }
