/* cr8veworks.com — CW-1454 "Working drawing" (the approved round 5 mockup, built for production).
   One identity: drafting paper, ink linework, one red. Red always means the visitor's hand:
   the chalk on the slate, a part they tried, the next action. */
:root {
  --paper: #f4f0e6; --paper-2: #e9e4d5; --card: #fbf9f4;
  --ink: #15171c; --ink-2: #2a2d35; --ink-3: #565963;
  --red: #c8322b; --red-d: #a3241e; --red-lit: #f0604f;
  --line: rgba(21, 23, 28, .17); --grid: rgba(21, 23, 28, .055);
  /* Bands (ink sections, the footer, the pill) and the paper cards drawn on them keep their own
     tokens, so the dark variant can darken the page without inverting them. */
  --band: #15171c; --band-fg: #f4f0e6; --band-3: #b9b5a8; --band-line: rgba(244, 240, 230, .22);
  --you: #f4f0e6; --you-fg: #15171c; --you-3: #565963; --shadow: #15171c;
  --cl: #474b55; --cr: #2a2d35; --top-bg: rgba(244, 240, 230, .93);
  --font: 'Archivo', 'Noto Sans Telugu Full', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --te: 'Noto Sans Telugu Full', 'Noto Sans Telugu', 'Archivo', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(18px, 4vw, 56px); --max: 1320px;
}
* { box-sizing: border-box; }
/* With JavaScript the page scrolls instantly: smooth scroll-behavior also applies to the browser's
   own focus scrolling, so a newly focused control (the skip link, the catalogue's scope link)
   stayed off screen for up to 1.65s (CW-1454), and drawing.js keeps focus in view itself.
   Without JavaScript the browser's focus scroll is all there is, and Chromium adds the rest of a
   running PageUp or PageDown to an instant focus scroll: a control focused by Tab mid-page ended
   up to a window and a half below it (CW-1454 round 18). A smooth focus scroll cancels that
   animation, so a page without JavaScript keeps the smooth scrolling the site had before
   (poster.css on main), unless the visitor asks for reduced motion. Its slower focus scroll on a
   long jump is pre-existing (website/README.md, "Focus stays clear of every layer"). */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h, 64px) + 12px); scroll-padding-bottom: calc(8px + var(--pill-h, 0px)); }
@media (prefers-reduced-motion: no-preference) { html:not(.js) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 450 17px/1.55 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
/* Long words (Panchangamanam, an email address) wrap rather than widen the page at 200% zoom. */
h1, h2, h3, h4, p, li, dt, dd, figcaption, td, th, .btn, .opt-b, .go, .st, .mono, small { overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
/* Every text link keeps a hit area at least 24px tall (company target-size minimum, CW-1382). Padding on an
   inline box grows its hit area upwards without moving the text; classed and block links size themselves. */
:where(a:not([class])) { padding-top: max(0px, calc(26px - 1.05em)); }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(42px, 1.728rem + 4.48vw, 104px); letter-spacing: -0.05em; line-height: .94; }
h2 { font-size: clamp(30px, 1.08rem + 2.8vw, 60px); }
h3 { font-size: clamp(20px, 0.486rem + 1.26vw, 26px); letter-spacing: -0.02em; line-height: 1.15; }
h1 em, h2 em { font-style: normal; color: var(--red); }
.te { font-family: var(--te); }
.mono, .tag { font: 600 12px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
/* Fixed on focus, so it shows at once wherever the page is scrolled, with no scroll back to the
   page top (CW-1454). CSS only, so it holds without JavaScript. */
.skip:focus { position: fixed; left: 8px; }
/* Its ring reaches 6px past its box, so the box stops 8px short of the window's right edge and
   breaks its words to fit: at 160 or 195 CSS px with doubled text it ran 6px past the window
   (CW-1454 site-capabilities web QA). */
.skip { box-sizing: border-box; max-width: calc(100% - 16px); overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.ink :focus-visible, .board :focus-visible { outline-color: var(--paper); }
.red :focus-visible, .letter .send :focus-visible { outline-color: #fff; }
/* A control inside a paper plate on the red band: its ring sits on the plate, so it is ink. */
.red .plat :focus-visible { outline-color: #15171c; }
::placeholder { color: var(--ink-3); opacity: 1; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--top-bg); backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
/* Without JavaScript nothing measures the bar (--top-h) and a phone shows the whole menu in it,
   so a sticky bar would cover the control the browser scrolls focus to: the bar scrolls with the
   page instead (CW-1454 site-work web QA). */
html:not(.js) { scroll-padding-top: 12px; }
/* Chromium does not stop a PageUp or PageDown scroll animation when an instant focus scroll lands
   during it: the rest of the animation is added on top. At the foot of the page the focus scroll
   is clamped there, so PageUp then Tab in the footer left the new link (Privacy) below the window
   for good (CW-1454 round 18). Without JavaScript the focus scroll is smooth (above), and the
   footer also leaves room for an instant one, which is all there is under reduced motion. A
   footer link is brought in with its foot 50px down, the window less 58px below it, and the
   focused link alone extends the page that far below itself (an empty box under it), so the
   page ends exactly there. The focus scroll is then neither clamped nor short: a PageUp moves
   the page by at most the window less 60px (the 20px scroll-padding and Chromium's 40px page
   overlap), so the rest of one added on top leaves the link and its 6px ring in the window; and
   the rest of a PageDown has no room left to carry the link above the window. Growing the whole
   footer instead left room below the last links, so PageDown, PageDown, PageUp, Tab pressed at
   once carried Privacy above the window under reduced motion (CW-1454 round 19). A link up to
   38px tall keeps its margin box inside the scroll-padding, so Shift+Tab up to a link above the
   window brings it in as before (a taller one is aligned by its foot, still 50px down). With
   JavaScript, drawing.js keeps focus in view itself. The room below the footer is the footer's
   band, as it was when the footer grew. Since that geometry holds with an instant focus scroll,
   a footer link is scrolled to at once, so it shows right after Tab with motion reduced or not
   (a smooth one left it below the window for a few hundred ms). */
html:not(.js) body > footer a { scroll-margin-bottom: calc(100vh - 58px); position: relative; }
html:not(.js) body > footer a:focus::after { content: ""; position: absolute; left: 0; top: 100%; width: 1px; height: calc(100vh - 50px); pointer-events: none; }
html:not(.js):has(body > footer a:focus) { background: var(--band); scroll-behavior: auto; }
html:not(.js) header.top { position: relative; }
/* The block padding keeps a focus ring inside the bar when 200% text wraps it and a control
   reaches the bar's top edge (CW-1454 site-contact web QA). */
.top .shell { display: flex; align-items: center; gap: 18px; min-height: 62px; padding-block: 7px; }
/* The home link's ring sits inside its 44px box: when a narrow window (or 200% text) wraps the
   bar, the link meets the window's top edge and an outside ring was cut off there (CW-1454). */
.top .home:focus-visible { outline-offset: -3px; }
.home { display: inline-flex; align-items: center; min-height: 44px; }
.logo { display: block; width: 158px; aspect-ratio: 800/77; background: currentColor; -webkit-mask: url(/assets/logo-wordmark.svg) left center/contain no-repeat; mask: url(/assets/logo-wordmark.svg) left center/contain no-repeat; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
/* A menu link is one word that cannot break, so at 200% text in a 195px window "Capabilities"
   widened the opened menu, and its focus ring, 23px past the window. Links break inside a word
   rather than overflow, and the menu never grows wider than the bar (CW-1454 site-capabilities). */
.top nav { min-width: 0; }
.top nav a { overflow-wrap: anywhere; hyphens: auto; }
/* Top-bar links and the Menu button keep a 44px hit area (CW-1380, WCAG 2.5.5). */
.top nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; box-sizing: border-box; text-decoration: none; font-weight: 650; font-size: 15.5px; padding: 8px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current='page'] { border-bottom-color: var(--red); }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; font-weight: 750; font-size: 16px; padding: 13px 20px; text-decoration: none; border: 1.5px solid var(--red); border-radius: 2px; transition: background .15s, transform .15s; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--red-d); border-color: var(--red-d); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.red .btn { background: #fff; color: #a3241e; border-color: #fff; } .red .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.top nav a.btn { padding: 9px 14px; font-size: 14.5px; border: 1.5px solid var(--red); color: #fff; }
.top nav a.btn:hover { border-color: var(--red-d); }
.menu-b { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); font: 600 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 10px 12px; min-height: 44px; min-width: 44px; color: inherit; cursor: pointer; border-radius: 2px; }
@media (max-width: 900px) {
  .logo { width: 128px; }
  .js .menu-b { display: block; }
  .top .shell { flex-wrap: wrap; }
  .top nav { flex-wrap: wrap; gap: 4px 18px; padding-bottom: 10px; width: 100%; margin-left: 0; }
  .js .top nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 14px; }
  .js .top nav.open { display: flex; }
  /* An open menu taller than the screen (a landscape phone, or 200% text) scrolls inside the bar. */
  .top.menu-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 12px; }
  /* The consent banner (and its 5px red rule) sits over the bar, so while it shows the open menu
     scrolls in the space above it: on a landscape phone it covered the lower links (CW-1454). */
  html.consent-open .top.menu-open { max-height: calc(100vh - var(--mz-h, 0px) - 5px); max-height: calc(100dvh - var(--mz-h, 0px) - 5px); }
  .js .top nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .js .top nav a.btn { margin-top: 12px; justify-content: center; padding: 13px; }
}

/* 200% zoom on a 390px phone, or 200% text at 195px: a word wider than its line ("Platforms" in a
   Scope your app plate, a Telugu month on the home page) widened the page up to 28px; any word
   that cannot fit its line breaks inside itself instead (narrow-text.browser.mjs, CW-1454). */
@media (max-width: 240px) {
  body { overflow-wrap: anywhere; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 8vw, 128px) 0; position: relative; border-bottom: 1.5px solid var(--ink); }
.sec.alt { background: var(--paper-2); }
.sec.ink { background: var(--band); color: var(--band-fg); --line: var(--band-line); --ink-3: var(--band-3); }
.sec.red { background: var(--red); color: #fff; --line: rgba(255, 255, 255, .34); --ink-3: #fff; }
.sec.grid, .hero, .phead.grid { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; background-position: center top; }
.tag { display: block; color: var(--ink-3); margin-bottom: 18px; }
.tag::before { content: ''; display: inline-block; width: 26px; height: 1.5px; background: currentColor; vertical-align: middle; margin: 0 10px 2px 0; }
.tag b { margin-right: 6px; }
.tag b { color: var(--red-d); font-weight: 700; } .ink .tag b { color: var(--red-lit); } .red .tag b { color: #fff; }
.lede { font-size: clamp(18px, 0.419rem + 1.085vw, 22px); line-height: 1.45; max-width: 38em; margin-top: 22px; }
.lede b { font-weight: 750; }
.sub { font-size: clamp(17px, 0.378rem + 0.98vw, 20px); max-width: 40em; margin-top: 16px; color: var(--ink-3); }
.sub + .ex-grid { margin-top: clamp(26px, 4vw, 52px); }
/* A band that holds only its tag and one block: the tag sits on the block's own top margin. */
.sec > .shell > .tag:last-child { margin-bottom: 0; }
.fine { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); max-width: 46em; margin-top: 18px; }
.go { display: inline-block; max-width: 100%; font-weight: 750; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; margin-top: 22px; }
.go:hover { color: var(--red-d); } .ink .go:hover { color: var(--red-lit); } .red .go { border-color: #fff; } .red .go:hover { color: var(--ink); }
.st { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: 7px 9px; border: 1.5px solid currentColor; border-radius: 2px; max-width: 100%; }
.st::before { content: ''; flex: none; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.st.live::before { background: var(--red); border-color: var(--red); }
.st.test::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.st.dev { border-style: dashed; }
/* "You tried it": a square red dot, shown only on a catalogue row the visitor tried. */
.st.you { color: var(--red-d); } .st.you::before { background: currentColor; border-radius: 0; }
.cat-row:not(.tried) .st.you { display: none; }

/* cube glyph: solid = built before, red top = you tried it here, dashed = new to us */
.cube { width: 34px; height: 34px; flex: none; --c-top: var(--ink); --c-l: var(--cl); --c-r: var(--cr); --c-dash: none; color: var(--ink); transition: transform .4s cubic-bezier(.2, .9, .25, 1.3); }
.cube.tried, .tried > .cube, .cat-row.tried > .cube, .tried .cube.follows { --c-top: var(--red); transform: translateY(-3px); }
.cube.new { --c-top: transparent; --c-l: transparent; --c-r: transparent; --c-dash: 3 2.6; }
.ink .cube { --c-top: var(--paper); --c-l: #a9a597; --c-r: #7c796f; color: var(--paper); }
.ink .cube.tried, .ink .tried > .cube { --c-top: var(--red-lit); }
.red .cube { --c-top: #fff; --c-l: #f3c9c5; --c-r: #e09a94; color: #fff; }
.onpaper { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-top: 0; padding: 10px 14px; }
.onpaper .cube { --c-top: var(--ink); --c-l: #474b55; --c-r: #2a2d35; color: var(--ink); } .onpaper .cube.tried { --c-top: var(--red); } .onpaper .cube.new { --c-top: transparent; --c-l: transparent; --c-r: transparent; }
.key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 600; align-items: center; }
.key span { display: inline-flex; align-items: center; gap: 8px; } .key .cube { width: 24px; height: 24px; transform: none; }
/* A legend under a heading (the capabilities catalogue) sits 20px below it, as in the R5 mockup;
   the configurator's legend in its tool row keeps the row's spacing (CW-1454 web QA round 15). */
h2 + .key { margin-top: 20px; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4.5vw, 64px) 0 0; border-bottom: 1.5px solid var(--ink); }
.hero .cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: 'head board' 'read board'; grid-template-rows: auto 1fr; gap: 0 clamp(24px, 4.5vw, 72px); align-items: start; }
.h-head { grid-area: head; } .h-read { grid-area: read; } .hero .board { grid-area: board; }
.h-read .meters { margin-top: 22px; }
.hero h1 { margin-top: 4px; }
/* The slate is always dark: ink in the light scheme, deeper in the dark one (see the dark variant). */
.board { position: relative; background: #15171c; color: #f4f0e6; border-radius: 3px; box-shadow: 10px 10px 0 var(--red); }
.board.small { max-width: 440px; }
.ink .board.small { border: 1.5px solid var(--band-fg); }
.board::before, .board::after { content: ''; position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--ink); pointer-events: none; }
.board::before { left: -9px; top: -9px; border-right: 0; border-bottom: 0; } .board::after { right: -19px; bottom: -19px; border-left: 0; border-top: 0; }
.board-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px dashed rgba(244, 240, 230, .3); font: 600 12px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.board-top b { color: var(--red-lit); font-weight: 700; }
.slate { position: relative; aspect-ratio: 1; background-color: #15171c; --chalk: #f7f3e9; --guide: rgba(255, 255, 255, .2); --slate-accent: #f0604f; --slate-ok: #f0604f; --slate-on-accent: #15171c; cursor: crosshair;
  background-image: linear-gradient(rgba(244, 240, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 240, 230, .06) 1px, transparent 1px); background-size: 10% 10%; }
.board-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; border-top: 1px dashed rgba(244, 240, 230, .3); }
.chip { font: 700 14.5px/1 var(--font); padding: 0 14px; min-height: 40px; min-width: 40px; background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: 2px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chip.te { font-family: var(--te); font-size: 19px; padding: 0 10px; }
.chip:hover { background: rgba(127, 127, 127, .2); }
.chip[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sec:not(.ink) .chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.act { margin-left: auto; background: var(--red); border-color: var(--red); color: #fff; }
.chip.act:hover { background: var(--red-d); }
.meters { margin-top: 26px; display: grid; gap: 9px; max-width: 540px; min-height: 60px; }
.meter { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.meter > span:first-child { flex: 0 1 10.5em; min-width: 0; } .meter output { flex: 0 0 3.2em; }
.meter .bar { flex: 1 1 6em; height: 12px; border: 1.5px solid var(--ink); position: relative; background: var(--card); }
.meter .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width .12s linear; }
.meter.ok .bar i { background: var(--red); }
.meter .bar b { position: absolute; top: -5px; bottom: -5px; width: 1.5px; background: var(--red); }
.meter output { text-align: right; font-weight: 700; }
.verdict { margin-top: 12px; font-size: clamp(20px, 0.54rem + 1.4vw, 27px); font-weight: 800; letter-spacing: -0.025em; min-height: 1.4em; line-height: 1.2; }
.verdict.pass { color: var(--red-d); }
/* On an ink band (the build note) the meters are drawn in paper and the lighter red. */
.ink .meters { margin-top: 0; gap: 11px; }
.ink .meter { gap: 4px 12px; }
.ink .meter .bar { border-color: currentColor; background: none; }
.ink .meter .bar i { background: currentColor; } .ink .meter.ok .bar i { background: var(--red-lit); }
.ink .meter .bar b { background: currentColor; }
.ink .verdict { margin: 18px 0 26px; max-width: 20em; } .ink .verdict.pass { color: var(--red-lit); }

/* the parts tray: links the hands-on parts to the blueprint */
.tray { margin-top: clamp(34px, 5vw, 64px); border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.15fr); background: var(--card); }
@media (max-width: 1180px) and (min-width: 981px) {
  .tray { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tray > * { border-bottom: 1.5px solid var(--ink); }
  .tray > :nth-child(2n) { border-right: 1.5px solid var(--ink); }
  .tray > :nth-child(2n+1) { border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
  .tray .cta { grid-column: 1 / -1; border-bottom: 0; }
}
.tray > * { padding: 16px 18px; border-right: 1.5px solid var(--ink); display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.tray > *:last-child { border-right: 0; }
.tray > *:first-child { border-left: 1.5px solid var(--ink); } .tray > *:last-child { border-right: 1.5px solid var(--ink); }
/* A cell's link is its text (a part's name and status; the last cell's count and "Scope your
   app" line), stretched over the cell so a click anywhere opens it. Keyboard focus rings that
   text, inside the cell's padding: a ring round the whole cell ran 6px past both sides of the
   window where the tray runs edge to edge (980px and narrower), and with doubled text at
   160x450 CSS px a whole cell, the cube above the name, was up to 514px tall, taller than the
   window (CW-1454 site-home web QA). */
.tray > * { position: relative; }
.tray a { display: block; min-width: 0; color: inherit; text-decoration: none; }
.tray a::after { content: ""; position: absolute; inset: 0; }
/* Below 300px wide (a phone at 200% zoom) the cube and the arrow, both decorative, give their room
   to the text, so a cell's link wraps to fewer lines and fits the window with doubled text; the
   status line still says whether the part was tried. */
@media (max-width: 300px) { .tray .cube, .tray .cta > [aria-hidden='true'] { display: none; } }
.tray .cta :focus-visible { outline-color: var(--paper); }
.slot b { display: block; font-weight: 750; font-size: 16px; line-height: 1.2; }
.slot small { display: block; font: 600 12px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.slot.tried small { color: var(--red-d); }
.slot:hover b { text-decoration: underline; }
.tray .cta { background: var(--ink); color: var(--paper); justify-content: space-between; font-weight: 750; font-size: 17px; line-height: 1.2; }
.tray .cta:hover { background: var(--red); }
.tray .cta small { display: block; font: 600 12px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #d9d5ca; margin-bottom: 3px; }
@media (max-width: 980px) {
  .hero .cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'board' 'read'; grid-template-rows: auto; }
  .hero .board { margin: 22px 10px 0 0; }
  .hero .lede { margin-top: 14px; font-size: 17px; }
  .board { margin-right: 10px; }
  .tray { grid-template-columns: minmax(0, 1fr); margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .tray > * { border-right: 0 !important; border-left: 0 !important; border-bottom: 1.5px solid var(--ink); padding: 13px var(--pad); } .tray > *:last-child { border-bottom: 0; }
  .meter { grid-template-columns: 9em 1fr 3em; gap: 8px; }
}
.pill { position: fixed; left: 16px; bottom: calc(16px + var(--mz-h, 0px)); z-index: 40; display: none; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 9px 14px 9px 10px; text-decoration: none; font-weight: 700; font-size: 14.5px; border-radius: 2px; box-shadow: 5px 5px 0 var(--red); max-width: calc(100% - 32px); }
/* A fixed box's 100% is the window less a classic scrollbar; 100vw counted the scrollbar's 15px, so
   at 160 CSS px a full-width pill ended at 144 of a 145px page and its 6px focus ring at 150
   (CW-1454 site-home web QA after 0754fc32). */
.pill.on { display: flex; }
.pill.aside { visibility: hidden; }
/* On a short screen the bar, the consent banner and the pill together would leave no room for a
   focused control, so the pill steps aside while the banner shows; the bar still links to Scope. */
@media (max-height: 560px) { html.consent-open .pill.on { display: none; } } .pill:hover { background: var(--red); box-shadow: 5px 5px 0 var(--ink); }
.pill .cube { width: 24px; height: 24px; --c-top: var(--red-lit); --c-l: #a9a597; --c-r: #7c796f; color: var(--paper); transform: none; }
/* The fixed pill may take at most two fifths of the window between the bar and the bottom layers
   (drawing.js). Taller than that (200% zoom with doubled text on a phone: 512px in a 160x450
   window, CW-1454 web QA), it first drops the count and the cube and reads "Scope →"; if even
   that is too tall it leaves the bottom of the window and sits at the foot of the page, where
   the visitor scrolls to it like any other link and its focus ring shows whole. */
.pill.short .cube { display: none; }
.pill.flow { position: static; width: fit-content; max-width: calc(100% - 32px); margin: 16px 16px 21px; }
/* Flowing, it covers nothing, so it never steps aside. */
.pill.flow.aside { visibility: visible; }

/* ---------- rows, tables ---------- */
.rows { margin-top: clamp(26px, 4vw, 52px); border-top: 1.5px solid currentColor; }
.row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 5fr) minmax(0, 4.6fr); gap: clamp(12px, 2.4vw, 36px); padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row h3 { font-size: clamp(26px, 0.81rem + 2.1vw, 44px); letter-spacing: -0.04em; }
.row .proof { font: 600 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.row.next h3 { color: var(--ink-3); }
.row.next { border-bottom: 1.5px dashed var(--ink); }
@media (max-width: 820px) { .row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 5vw, 80px); margin-top: clamp(26px, 4vw, 52px); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px); margin-top: clamp(26px, 4vw, 52px); }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); margin-top: clamp(26px, 4vw, 52px); }
@media (max-width: 860px) { .two, .three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .four { grid-template-columns: minmax(0, 1fr); } }
.claim { padding: 15px 0; border-top: 1px solid var(--line); }
.claim p { font-size: 17.5px; line-height: 1.45; }
.claim small, .by { display: block; font: 600 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.col-h { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; }

/* ---------- instruments ---------- */
.ex-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 22px; margin-bottom: clamp(22px, 3.4vw, 44px); }
.ex-head h2 { flex: 1 1 10em; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.ex-grid.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 900px) { .ex-grid, .ex-grid.flip { grid-template-columns: minmax(0, 1fr); } }
.say { font-size: clamp(18px, 0.405rem + 1.05vw, 21px); line-height: 1.45; max-width: 34em; }
.say + .say { margin-top: 14px; }
h2 + .say { margin-top: 20px; }
.say.first { margin-top: 0; }
.two + .say, .four + .say { margin-top: clamp(30px, 3.4vw, 44px); }
.dial-svg { width: 100%; height: auto; display: block; cursor: grab; overflow: visible; }
.dial-track { fill: rgba(244, 240, 230, .08); stroke: rgba(244, 240, 230, .35); stroke-width: 1.5; stroke-dasharray: 5 5; }
.dial-seg { transition: d .5s cubic-bezier(.2, .8, .2, 1); }
.dial-rahu { fill: var(--red); } .dial-yama { fill: var(--paper); } .dial-gulika { fill: #71747d; }
.dial-tick { stroke: var(--ink); stroke-width: 3; }
.dial-horizon { stroke: var(--paper); stroke-width: 3; }
.dial-now { stroke: var(--paper); stroke-width: 3; stroke-dasharray: 6 6; }
.dial-sun { fill: var(--paper); stroke: var(--ink); stroke-width: 8; cursor: grab; touch-action: none; }
/* CW-1454: the sun crosses paper, red, grey and ink, so its focus ring is a drawn ink-paper-ink
   band (3px each at any size) instead of one outline colour that vanishes over its own band. The ring
   is drawn in its own SVG layer laid over the dial and above the time readout, whose digits would
   otherwise cover part of it; without :has() the browser keeps its own outline instead. */
#dialRoot { position: relative; }
.dial-ring-layer { position: absolute; inset: 0 auto auto 0; z-index: 1; width: 100%; height: auto; overflow: visible; pointer-events: none; }
.dial-ring { display: none; pointer-events: none; }
.dial-ring circle { fill: none; vector-effect: non-scaling-stroke; }
.dial-ring-o { stroke: var(--ink); stroke-width: 9px; }
.dial-ring-i { stroke: var(--paper); stroke-width: 3px; }
@supports selector(:has(*)) {
  .ink .dial-sun:focus-visible { outline: none; }
  #dialRoot:has(.dial-sun:focus-visible) .dial-ring { display: inline; }
}
@media (forced-colors: active) { .ink .dial-sun:focus-visible { outline: 3px solid CanvasText; } #dialRoot:has(.dial-sun:focus-visible) .dial-ring { display: none; } }
.dial-label { font: 700 23px var(--te); fill: #fff; pointer-events: none; }
.dial-svg text:nth-of-type(2) { fill: var(--ink); }
.dial-box { position: relative; container-type: inline-size; }
.dial-center { position: absolute; left: 22%; right: 22%; bottom: 9%; text-align: center; pointer-events: none; }
/* The time follows the dial size, with a rem part so it still grows when the reader zooms. */
.dial-center .time { font-size: calc(12cqw + 1.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .86; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dial-center .where { font-size: clamp(0.75rem, 0.375rem + 2.2cqw, 1.375rem); font-weight: 700; margin-top: 1.6cqw; line-height: 1.2; }
.dial-center .where b { color: var(--red-lit); font-family: var(--te); }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.windows { display: grid; grid-template-columns: 1fr auto; margin-top: 24px; border-top: 1.5px solid var(--paper); font-size: 16.5px; }
.windows dt, .windows dd { padding: 11px 0; border-bottom: 1px solid var(--line); }
.windows dt { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.windows dt i { width: 14px; height: 14px; border: 1px solid var(--paper); flex: none; }
.windows dd { font: 600 15px var(--mono); text-align: right; }
.leaf-wrap { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; flex-wrap: wrap; }
.leaf { width: min(100%, 320px); background: var(--card); border: 1.5px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.leaf header { background: var(--red); color: #fff; padding: 12px 18px; font: 800 28px/1.2 var(--te); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.leaf header small { font: 700 13px var(--te); }
.leaf .big { font-size: 170px; font-weight: 800; line-height: 1; letter-spacing: -0.06em; text-align: center; padding: 8px 0 18px; transform-origin: top center; font-variant-numeric: tabular-nums; }
.leaf .big.flip { animation: tear .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes tear { from { transform: rotateX(-70deg); opacity: 0; } }
.steppers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; flex: 1 1 220px; min-width: 0; }
.stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; border: 1.5px solid var(--ink); background: var(--card); }
.stepper button, .stepper select { font: 700 17px var(--font); background: none; border: 0; min-height: 46px; color: inherit; cursor: pointer; }
.stepper select { min-width: 0; width: 100%; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); padding: 0 12px; appearance: none; text-align: center; text-align-last: center; border-radius: 0; }
.stepper button:hover { background: var(--ink); color: var(--paper); }
.shot { border: 1.5px solid var(--ink); background: var(--card); }
.shot img { width: 100%; height: auto; }
.shot figcaption { font: 600 12px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 9px 12px; border-top: 1.5px solid var(--ink); color: var(--ink-3); }
.ink .shot { border-color: var(--band-fg); background: var(--band); } .ink .shot figcaption { border-color: var(--band-fg); }

/* ---------- blueprint stage ---------- */
.stage { position: relative; height: min(680px, calc(100vh - 150px)); min-height: 500px; border: 1.5px solid var(--ink); overflow: hidden; background-color: var(--card); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; color: var(--ink);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.stage:active { cursor: grabbing; }
/* The drawing fills its frame, so its focus ring sits just inside the border. */
.stage:focus-visible { outline-offset: -5px; outline-color: var(--red); }
/* Home's drawing takes focus (scope.js), so it is never taller than the window below the sticky bar
   and above a fixed consent banner, less the 12px above and 8px below the focus clearance in
   drawing.js keeps (and 4px spare): at 200% zoom the bar wraps to 121px, and the fixed 340px phone
   drawing ran 12-40px below a 320x900 or 390x844 phone's window (CW-1454 round 19 site-home).
   scope.js scales the blocks to the frame. Without JavaScript the bar scrolls with the page and
   --top-h is unset, so the drawing may use the whole window. The 150px floor keeps the blocks
   legible on a window too short for anything to fit; focus then shows the drawing's top. */
.stage.small { --room: calc(100vh - var(--top-h, 0px) - var(--mz-h, 0px) - 24px); --tall: 470px; height: min(var(--tall), max(150px, var(--room))); min-height: 0; }
@supports (height: 100dvh) { .stage.small { --room: calc(100dvh - var(--top-h, 0px) - var(--mz-h, 0px) - 24px); } }
/* The sheet label and the module count share one row and wrap onto two when they do not fit
   (CW-1454 site-engagement web QA: at 200% text the count ran over the label). */
/* The labels are the frame's, not the drawing's: they lie over the drawing but outside its clipped
   box, so enlarged text is never cut off by it. Below 300px wide (a phone at 200% zoom) they leave
   the drawing, the sheet label and count above it and the hint below, where they wrap freely
   (CW-1454 site-home web QA: at 160x450 CSS px with doubled text the count ran 300px past the foot
   of the clipped drawing, and the sheet label ran over the hint). */
/* The frame takes the sheet's colour, so the labels' backdrop is the sheet in the page's
   structure as well as on screen. */
.stage-frame { position: relative; background-color: var(--card); }
.stage-frame > .lbl, .stage-frame > .bl { position: absolute; z-index: 3; pointer-events: none; color: var(--ink-3); --ink-3: #565963; }
.stage-frame > .lbl { left: 15.5px; right: 15.5px; top: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 16px; }
.stage-frame .tr { margin-left: auto; text-align: right; } .stage-frame > .bl { left: 15.5px; bottom: 13.5px; }
.stage-frame.small > .lbl { flex-direction: column; row-gap: 3.2px; } .stage-frame.small .tr { margin-left: 0; text-align: left; }
@media (max-width: 300px) {
  .stage-frame { background-color: transparent; }
  .stage-frame > .lbl, .stage-frame > .bl { position: static; display: flex; flex-direction: column; row-gap: 3.2px; padding: 0 0 8px; --ink-3: inherit; }
  .stage-frame > .bl { padding: 8px 0 0; }
  .stage-frame .tr { margin-left: 0; text-align: left; }
  /* The configurator's drawing runs edge to edge; its labels keep the page gutter. */
  .stage-col .stage-frame > .lbl, .stage-col .stage-frame > .bl { padding-inline: var(--pad); }
}
.iso-wrap { transition: transform .25s; }
.iso-wrap { position: absolute; left: 50%; top: 53%; width: 0; height: 0; transform: scale(var(--s, 1)); }
.iso { position: absolute; left: -190px; top: -190px; width: 380px; height: 380px; transform-style: preserve-3d; transform: rotateX(var(--rx, 58deg)) rotateZ(var(--rz, -45deg)) translateZ(calc(var(--gap) * -1.5)); --gap: 140px; }
.plate { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap))); }
.plate::before { content: ''; position: absolute; inset: 0; border: 1.5px solid var(--ink); background: rgba(244, 240, 230, .55); background-image: linear-gradient(rgba(21, 23, 28, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 23, 28, .1) 1px, transparent 1px); background-size: 38px 38px; }
.plate > b { position: absolute; left: 0; top: calc(100% + 8px); font: 700 15px var(--mono); letter-spacing: .08em; white-space: nowrap; text-transform: uppercase; }
.blk { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate3d(var(--x), var(--y), var(--z, 0px)); transition: transform .65s cubic-bezier(.2, .9, .25, 1), opacity .35s; }
.blk.enter { --z: 240px; opacity: 0; } .blk.leave { opacity: 0; --z: 90px; }
.blk i { position: absolute; display: block; transition: background-color .4s; }
.blk .top { inset: 0; transform: translateZ(var(--h)); background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center; font: 700 12.5px/1.08 var(--font); padding: 3px; font-style: normal; border: 1px solid var(--ink); }
.blk .s, .blk .n { left: 0; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(90deg); background: #474b55; border: 1px solid var(--ink); }
.blk .s { top: 100%; } .blk .n { top: 0; }
.blk .e, .blk .w { top: 0; width: var(--h); height: 100%; transform-origin: left; transform: rotateY(-90deg); background: #2a2d35; border: 1px solid var(--ink); }
.blk .e { left: 100%; } .blk .w { left: 0; }
.blk.tried .top { background: var(--red); border-color: var(--red-d); color: #fff; }
.blk.new .top { background: rgba(251, 249, 244, .8); color: var(--ink); border: 1.5px dashed var(--ink); }
.blk.new .s, .blk.new .n, .blk.new .e, .blk.new .w { background: rgba(251, 249, 244, .35); border: 1px dashed var(--ink); }
.blk .riser { left: 50%; top: 50%; width: 0; height: var(--gap); border-left: 1.5px dashed rgba(21, 23, 28, .6); transform-origin: top; transform: rotateX(-90deg); }
.plate[style*='--i:0'] .riser { display: none; }
.blk.flow .top { background: var(--card); color: var(--ink); } .blk.flow .s, .blk.flow .n { background: #d9d3c2; } .blk.flow .e, .blk.flow .w { background: #c4bead; }
.packet { position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--red); border-radius: 50%; transform: translate3d(34px, 179px, 46px); animation: run 5.2s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes run { 0%, 8% { transform: translate3d(45px, 180px, 46px); } 30%, 36% { transform: translate3d(139px, 180px, 46px); } 58%, 64% { transform: translate3d(233px, 180px, 46px); } 86%, 100% { transform: translate3d(327px, 180px, 46px); } }
.stage-tools { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 12px; font-size: 14px; }
.stage-tools label { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.stage-tools input[type='range'] { accent-color: var(--red); width: 150px; height: 28px; }

/* ---------- configurator ---------- */
.bench { padding: clamp(26px, 4vw, 56px) 0 clamp(48px, 6vw, 90px); border-bottom: 1.5px solid var(--ink); }
.bench .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; }
.bench h1 { font-size: clamp(38px, 1.35rem + 3.5vw, 78px); }
.stage-col { position: sticky; top: calc(var(--top-h, 62px) + 16px); }
fieldset { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
legend { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 0 0 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 12px; }
legend b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; } legend .mono { color: var(--ink-3); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-b { font: 650 15px/1.15 var(--font); min-height: 44px; padding: 8px 14px; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.opt-b:hover { background: var(--paper-2); }
.opt-b.new { border-style: dashed; }
.opt-b[aria-pressed='true'], .opt-b[aria-checked='true'] { background: var(--ink); color: var(--paper); }
.opt-b.new[aria-pressed='true'] { background: var(--card); color: var(--ink); border-style: dashed; box-shadow: inset 0 0 0 2px var(--ink); }
.opt-b.tried::after { content: 'you tried it'; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: 4px 5px; border-radius: 2px; }
.from { margin-top: 24px; padding: 14px 16px; border: 1.5px solid var(--ink); background: var(--card); border-left: 6px solid var(--red); }
.from p { font-size: 15.5px; } .from p b { font-weight: 750; }
.from .opts { margin-top: 10px; }
.from .opt-b { min-height: 38px; font-size: 14px; padding: 6px 11px; }
@media (max-width: 980px) {
  .bench .cols { grid-template-columns: minmax(0, 1fr); }
  .stage-col { top: var(--top-h, 62px); z-index: 20; order: -1; margin: 0 calc(var(--pad) * -1); padding-top: 10px; background: var(--paper); }
  .stage-col .stage { height: min(290px, 50vh); min-height: 0; border-left: 0; border-right: 0; }
  .stage-col .stage-tools, .stage-col .tr { display: none; }
  .stage-col .stage-frame > .lbl { left: 14px; right: 14px; } .stage-col .stage-frame > .bl { left: 14px; }
  .stage.small { --tall: 340px; }
}
/* On a short screen (a landscape phone, or 200% zoom), or while the consent banner takes the
   bottom of a phone screen, the stuck drawing and the bar would leave too little room for a
   focused control, so the drawing scrolls with the page there. */
@media (max-width: 980px) and (max-height: 560px) { .stage-col { position: relative; top: auto; } }
@media (max-width: 980px) { html.consent-open .stage-col { position: relative; top: auto; } }
/* At any width, drawing.js marks the column loose when it does not fit between the bar and the
   bottom layers (a short desktop window such as 1280x500, or the banner showing), so the
   layer slider under the drawing can always scroll into view (CW-1454). */
.stage-col.loose { position: relative; top: auto; }
.sheets { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; margin-top: clamp(26px, 4vw, 48px); border: 1.5px solid var(--ink); background: var(--card); }
.sheet { padding: clamp(16px, 2.2vw, 28px); border-right: 1.5px solid var(--ink); min-width: 0; }
.sheet:last-child { border-right: 0; }
.sheet h3 { font-size: 26px; margin: 6px 0 14px; }
.sheet .mono { color: var(--red-d); }
.sheet ul { list-style: none; padding: 0; }
.sheet li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; animation: rise .45s both; animation-delay: calc(var(--n) * 60ms); overflow-wrap: anywhere; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.sheet li b { font-weight: 750; display: block; }
.sheet li small { display: block; font: 600 12px/1.4 var(--mono); letter-spacing: .03em; color: var(--ink-3); margin-top: 4px; }
.sheet li small.tried { color: var(--red-d); } .sheet li small.new { font-style: italic; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.checks span { font: 600 12px var(--mono); border: 1.5px solid var(--ink); padding: 3px 7px; border-radius: 2px; animation: tick .3s both; animation-delay: calc(var(--n) * 60ms + var(--k) * 180ms + 300ms); }
@keyframes tick { from { opacity: 0; transform: scale(.7); } }
.letter { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1.5px solid var(--ink); }
/* The preview scrolls inside itself and takes focus, so it is never taller than the window less
   its ring (at 195x422 CSS px its 420px ran past both edges, CW-1454 web QA after e86e4764). */
.letter pre { margin: 0; padding: clamp(16px, 2.2vw, 28px); font: 500 14px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--card); max-height: min(420px, calc(100vh - 32px)); overflow: auto; }
.letter .send { background: var(--red); color: #fff; padding: clamp(18px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; --ink-3: #fff; }
.letter .send .btn { background: #fff; color: var(--red-d); border-color: #fff; margin-top: auto; } .letter .send .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.letter .send h3 { font-size: clamp(26px, 0.702rem + 1.82vw, 38px); }
@media (max-width: 900px) { .sheets, .letter { grid-template-columns: minmax(0, 1fr); } .sheet { border-right: 0; border-bottom: 1.5px solid var(--ink); } .sheet:last-child { border-bottom: 0; } }

/* ---------- work ---------- */
.refs { margin-top: clamp(26px, 4vw, 48px); border-top: 1.5px solid currentColor; }
.ref { position: relative; display: grid; grid-template-columns: 200px minmax(0, 4.6fr) minmax(0, 4.4fr) auto; gap: clamp(14px, 2.4vw, 34px); align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
/* A row's link is its title, stretched over the row as on the Work cards: with doubled text at
   160x450 CSS px a whole row ran up to 1295px tall, so its focus ring could never show whole
   (CW-1454 site-home web QA). */
.ref h3 a { color: inherit; text-decoration: none; }
.ref h3 a::after { content: ""; position: absolute; inset: 0; }
.ref img { width: 200px; aspect-ratio: 16/10; object-fit: cover; object-position: top; border: 1.5px solid currentColor; }
.ref h3 { font-size: clamp(24px, 0.675rem + 1.75vw, 36px); letter-spacing: -0.04em; }
.ref:hover h3 { color: var(--red); } .ink .ref:hover h3 { color: var(--red-lit); }
.ref.yours { border-bottom: 1.5px dashed currentColor; } .ref.yours .ph { width: 200px; aspect-ratio: 16/10; border: 1.5px dashed currentColor; display: grid; place-items: center; font: 600 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.ref.yours h3 { color: var(--ink-3); }
@media (max-width: 900px) { .ref { grid-template-columns: 96px 1fr; } .ref img, .ref.yours .ph { width: 96px; } .ref p, .ref .st { grid-column: 1 / -1; justify-self: start; } }
/* At 200% zoom on a phone (about 190 CSS px) a focused card must still fit under the bar. */
/* Below about 300px (a 320px phone at 200% zoom and narrower, with or without a scrollbar) the
   thumbnail and the title no longer fit side by side, so the title goes under the thumbnail
   (CW-1454 web QA round 15: at 160px the titles were a letter wide and crossed the edge). */
@media (max-width: 300px) { .ref { padding: 12px 0; grid-template-columns: minmax(0, 1fr); gap: 10px; } .ref img, .ref.yours .ph { width: 96px; max-width: 100%; } }
/* A focused work card shows whole, focus ring included (CW-1454 round 20 site-home: at 200% zoom
   on a 320x900 or 390x844 phone, 160x450 or 195x422 CSS px, Tab to a card left it 10-120px below
   the window, because a card is up to 440px tall and the bar wraps to 121px). On a short window
   the sticky bar yields while a card has keyboard focus: it scrolls with the page and the root's
   scroll-padding drops to the 12px it keeps without JavaScript. Below 300px wide the decorative
   thumbnail (alt="") also goes, so the tallest card (Dosefolder, about 370px at 160px wide) fits
   the window with its ring; the title, text and status stay. Without JavaScript the bar already
   scrolls with the page. */
@media (max-height: 560px) {
  html:has(.ref :focus-visible) { scroll-padding-top: 12px; }
  html:has(.ref :focus-visible) header.top { position: relative; }
}
/* The same for any control in the page on a short phone window (a phone at 200% zoom or on its
   side): with doubled text the bar wraps to 127px of a 450px window, and a link of eight wrapped
   lines (about 370px, "Every capability, and where it comes from") had no room under it (CW-1454
   site-home web QA). The bar comes back with focus in the bar or the footer, or no focus. Wider
   windows keep it: there the configurator drawing sticks under the bar. */
@media (max-height: 560px) and (max-width: 980px) {
  html:has(main :focus-visible) { scroll-padding-top: 12px; }
  html:has(main :focus-visible) header.top { position: relative; }
}
@media (max-width: 300px) and (max-height: 560px) { .ref img, .ref.yours .ph { display: none; } }
/* Block padding only: the 404 hero is a .shell.phead, whose side padding is the page gutter (CW-1454). */
.phead { padding-block: clamp(36px, 5.6vw, 88px) clamp(26px, 4vw, 52px); }
.phead h1 { font-size: clamp(40px, 1.512rem + 3.92vw, 88px); max-width: 15em; }
.phead .crumb a { text-decoration: none; border-bottom: 1.5px solid var(--red); }
/* The drawn page head: grid paper, the heading and a title block, ruled off from the page. */
.phead.grid { padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1.5px solid var(--ink); }
.phead h1 em { color: var(--red-d); }
.phead .cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
@media (max-width: 900px) { .phead .cols { grid-template-columns: minmax(0, 1fr); } }
.case-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
/* A case study's name stops at 72px, so the longest one (Panchangamanam) stays beside its title block. */
.case-top h1 { font-size: clamp(38px, 1.1875rem + 3.3vw, 72px); overflow-wrap: anywhere; }
.tb { display: grid; grid-template-columns: 7.5em 1fr; border: 1.5px solid var(--ink); background: var(--card); font-size: 15.5px; }
.tb dt, .tb dd { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tb dt { font: 600 12px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-right: 1px solid var(--line); }
.tb dt:last-of-type, .tb dd:last-of-type { border-bottom: 0; }
.tb.drawn { grid-template-columns: 8.5em 1fr; box-shadow: 8px 8px 0 var(--red); }
.tb.drawn dd { font-weight: 650; }
@media (max-width: 900px) { .tb.drawn { box-shadow: 6px 6px 0 var(--red); margin-right: 6px; } }
.tb.case { grid-template-columns: 7.5em 1fr; }
.tb dd a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; }
/* A title block keeps its two columns on a phone, as drawn at 390px (CW-1454 site-capabilities
   and site-process web QA: the stack below had reached them). Each label sits above its value
   only where the column is narrow for its text: a case study's on a 320px phone (site-work web
   QA), and any title block when the text is set much larger. */
:has(> .tb) { container-type: inline-size; }
@container (max-width: 18em) {
  .tb.case { grid-template-columns: minmax(0, 1fr); } .tb.case dt { border-right: 0; border-bottom: 0; padding-bottom: 0; }
}
@container (max-width: 16em) {
  .tb, .tb.drawn { grid-template-columns: minmax(0, 1fr); } .tb dt { border-right: 0; border-bottom: 0; padding-bottom: 0; }
}
.case-shots { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 21%, 270px); gap: clamp(14px, 2.4vw, 32px); align-items: start; margin-top: clamp(22px, 3vw, 40px); }
.case-shots.one { grid-template-columns: minmax(0, 1fr); }
.case-shots .phone img { aspect-ratio: 1170/2532; object-fit: cover; object-position: top; }
.case-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 0 clamp(20px, 4vw, 64px); margin-top: clamp(22px, 3vw, 40px); border-bottom: 1.5px solid var(--ink); }
.case-body > h2 { font-size: clamp(22px, 0.54rem + 1.4vw, 28px); letter-spacing: -0.02em; padding: 22px 0; border-top: 1.5px solid var(--ink); }
.case-body > div { padding: 22px 0 30px; border-top: 1.5px solid var(--ink); font-size: clamp(17px, 0.378rem + 0.98vw, 20px); max-width: 44em; }
.case-body > div p + p { margin-top: 12px; }
.built { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.built li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.built li b { display: block; font-weight: 750; }
.partlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.part { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid #15171c; background: #fff; padding: 8px 14px 8px 10px; font-weight: 700; font-size: 15.5px; text-decoration: none; }
.part .cube { width: 26px; height: 26px; flex: none; }
/* At 200% zoom on a 320px phone (160 CSS px) a part name is wider than its plate, so a part may
   shrink to the plate and break its name instead of pushing the page sideways. */
.part { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
/* Below about 300px (a phone at 200% zoom) a name beside its cube got a column one or two letters
   wide with doubled text (CW-1454 web QA), so the plate and the part pad less and the name goes
   under its cube, across the part's full width. */
@media (max-width: 300px) { div.plat { padding: 12px; } .part { flex-wrap: wrap; gap: 6px; padding: 6px 8px; line-height: 1.2; } }
/* On the red band's paper plate the cubes are drawn in ink, and a tried part's top is red. */
.red .plat .cube { --c-top: var(--ink); --c-l: var(--cl); --c-r: var(--cr); color: var(--ink); }
.part.tried > .cube { --c-top: var(--red); transform: none; }
/* The status band that closes a case study: the status on red, and one paper plate. */
.status h2 { max-width: 9em; }
.status .st { margin-bottom: 18px; }
.plat.next h3 { margin-top: 6px; }
.plat.next p { margin: 10px 0 0; }
.red .plat .go { border-color: #c8322b; margin-top: 20px; } .red .plat .go:hover { color: #a3241e; }
.red .plat .btn { background: #c8322b; color: #fff; border-color: #c8322b; margin-top: 20px; } .red .plat .btn:hover { background: #a3241e; border-color: #a3241e; }
@media (max-width: 900px) { .case-top, .case-body { grid-template-columns: minmax(0, 1fr); } .case-body > div { border-top: 0; padding-top: 0; } .built { grid-template-columns: minmax(0, 1fr); } .case-shots { grid-template-columns: 1fr 34%; } .case-shots.one { grid-template-columns: minmax(0, 1fr); } }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: clamp(22px, 3vw, 40px); }
.card { position: relative; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
/* The card's link is its title (or, on the open card, its "Scope your app" line), stretched over
   the whole card so a click anywhere opens it. Keyboard focus lands on that short line, so the
   focus ring always fits the window: with 200% text a whole card ran up to 1065px tall, past
   the foot of a 900px window (CW-1454 web QA). */
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a::after, .card .go::after { content: ""; position: absolute; inset: 0; }
.red .card :focus-visible { outline-color: #15171c; }
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--red); }
/* Product plates on the red band: paper, with the ink offset shadow. */
.red .card { border-color: var(--shadow); box-shadow: 8px 8px 0 var(--shadow); background: #fbf9f4; color: #15171c; --ink-3: #565963; --red-d: #a3241e; --line: rgba(21, 23, 28, .17); }
.red .card:hover { box-shadow: 12px 12px 0 var(--shadow); }
/* The whole 16:10 capture shows: a 16:9 crop cut through the Panchangamanam name. */
.card img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-bottom: 1.5px solid #15171c; }
.card .in { padding: clamp(16px, 2vw, 26px); display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.card h2 { font-size: clamp(30px, 0.864rem + 2.24vw, 48px); letter-spacing: -0.04em; }
.card .meta { font: 600 12px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: auto; padding-top: 8px; }
.card.open { border-style: dashed; background: transparent; margin-top: clamp(22px, 3vw, 40px); }
.card.open .in { padding: clamp(24px, 4vw, 56px); }
.card.open h2 { color: var(--ink-3); }
.card.open .go { margin-top: 8px; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } .red .card { margin-right: 10px; } }
/* Below 300px wide (a phone at 200% zoom) a Work card's title, the Notes page's note title and the
   configurator's send button keep smaller floors and hyphenate, so with doubled text each focus
   target fits a 160x450 or 195x422 window: "Panchangamanam" stood a letter or two a line (556px
   tall), the note title ran 1027px and "Email hi@cr8veworks.com" 772px (CW-1454 web QA after
   e86e4764). 200% zoom still draws each at least 1.2x its size in a 390px window. */
@media (max-width: 300px) {
  .card .in { padding: 12px; }
  .card h2 { font-size: 18px; hyphens: auto; }
  .letter .send { padding: 12px; }
  .letter .send .btn { font-size: 12px; padding: 10px 12px; hyphens: auto; }
  .letter pre { padding: 12px; font-size: 12px; }
}

/* ---------- capabilities ---------- */
.cat { margin-top: clamp(26px, 4vw, 48px); border-top: 1.5px solid var(--ink); }
.cat-row { display: grid; grid-template-columns: 44px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3.2fr); gap: clamp(10px, 2vw, 28px); padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cat-row h3 { font-size: 20px; }
.cat-row .n { font: 600 12px var(--mono); color: var(--ink-3); letter-spacing: .05em; display: block; margin-bottom: 3px; }
.cat-row p { font-size: 16px; }
.cat-row .sts { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cat-row.new { border-bottom-style: dashed; border-bottom-color: var(--ink); }
@media (max-width: 900px) { .cat-row { grid-template-columns: 44px minmax(0, 1fr); align-items: start; row-gap: 8px; } .cat-row p, .cat-row .sts { grid-column: 2; } }
.col p.intro { margin-bottom: 16px; }
.plat { border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); padding: clamp(18px, 2.2vw, 28px); display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
/* On the red band a plate stays paper, drawn with an ink shadow, in light and dark alike. */
.red .plat { background: #fbf9f4; color: #15171c; border-color: var(--shadow); box-shadow: 8px 8px 0 var(--shadow); --ink-3: var(--you-3); --line: rgba(21, 23, 28, .17); --red-d: #a3241e; }
.plat .mono { color: var(--ink-3); }
.plat h3 { font-size: clamp(34px, 1.08rem + 2.8vw, 56px); letter-spacing: -0.045em; margin-top: 6px; }
.plat h3.s { font-size: clamp(26px, 0.702rem + 1.82vw, 36px); letter-spacing: -0.035em; }
.plat p { margin: 10px 0 18px; }
.plat .st { margin-top: auto; }
@media (max-width: 900px) { .red .plat, .pr { margin-right: 10px; } }
/* Below 300px wide (a phone at 200% zoom, less a 15px classic scrollbar), with doubled text the
   handoff links wrapped to targets taller than a 450px window, so a focus ring could not show
   whole: the contact address 452px, "What happens after you email" 524px, the case-study scope
   links 478-531px and the plate's "Scope your own app" 822px (CW-1454 site-work web QA round
   26, and site-process the same round). Their words had a column 31-73px wide: a button's 20px
   side padding, the plate's padding and its 8px drawn shadow. Here those tighten, and the contact
   block keeps a 10px gutter (the 6px ring still clears the edge), so each link wraps to fewer,
   longer lines. A text link's wrapped lines sit at 1.2 rather than the body's 1.55, so the long
   ones ("Every capability, and where it comes from", 478px) fit too. Wider windows keep the
   drawn spacing. */
@media (max-width: 300px) {
  .btn { padding-inline: 8px; }
  .go { line-height: 1.2; }
  div.plat { padding: 8px; }
  .red .plat { box-shadow: 5px 5px 0 var(--shadow); margin-right: 6px; }
  .contact { padding-inline: 10px; }
}
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stack span { font: 600 12.5px var(--mono); border: 1.5px solid currentColor; padding: 7px 10px; }

/* ---------- process ---------- */
.track { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(30px, 4.6vw, 60px); }
.track::before { content: ''; position: absolute; left: 8.33%; right: 8.33%; top: 21px; border-top: 1.5px dashed currentColor; opacity: .5; }
.track .fill { position: absolute; left: 8.33%; top: 20px; height: 3px; background: var(--red-lit); width: 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.step { position: relative; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; display: grid; justify-items: center; gap: 10px; padding: 0 4px; text-align: center; }
.step i { width: 44px; height: 44px; border: 1.5px solid currentColor; background: var(--band); display: grid; place-items: center; font: 700 15px var(--mono); font-style: normal; transition: background .25s, color .25s; }
.step span { font-weight: 700; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.step.done i { background: var(--band-fg); color: var(--band); border-color: var(--band-fg); }
.step[aria-selected='true'] i { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.12); }
/* No minimum height: the panel takes its content's height, as in the R5 Process mockup (200.5px at
   1440; a 210px minimum pushed the next band 9.5px lower, CW-1454 web QA round 15). */
.step-panel { margin-top: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); border: 1.5px solid var(--band-fg); }
.step-panel > div { padding: clamp(18px, 2.6vw, 34px); min-width: 0; }
.step-panel .mono { color: var(--ink-3); }
.step-panel .you { background: var(--you); color: var(--you-fg); --ink-3: var(--you-3); }
.step-panel .you .mono { color: #a3241e; }
.step-panel h3 { font-size: clamp(24px, 0.702rem + 1.82vw, 38px); letter-spacing: -0.03em; margin: 8px 0 10px; }
/* On a phone the six steps are two columns of rows, tile left and label right; one column at
   200% zoom (CW-1454 site-process web QA: three columns overlapped at 160 CSS px). */
@media (max-width: 900px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; border-top: 1.5px solid var(--band-fg); }
  .track::before, .track .fill { display: none; }
  .step { grid-template-columns: 44px minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .step span { font-size: 14.5px; min-width: 0; }
  .step[aria-selected='true'] i { transform: none; }
  .step-panel { grid-template-columns: minmax(0, 1fr); }
}
.ruler { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(28px, 4vw, 56px); border-top: 1.5px solid currentColor; counter-reset: r; }
.ruler li { counter-increment: r; padding: 16px 14px 0 0; position: relative; }
.ruler li::before { content: counter(r, decimal-leading-zero); font: 700 12px var(--mono); color: var(--red-d); display: block; margin-bottom: 8px; }
.ink .ruler li::before { color: var(--red-lit); }
.ruler li::after { content: ''; position: absolute; left: 0; top: -6px; width: 1.5px; height: 12px; background: currentColor; }
.ruler b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.ruler span { display: block; font-size: 14.5px; margin-top: 6px; color: var(--ink-3); }
@media (max-width: 900px) { .ruler { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; } }
/* The pull-request card is paper with an ink shadow, on the red band in light and dark alike. */
.pr { border: 1.5px solid var(--shadow); background: #fbf9f4; color: #15171c; box-shadow: 10px 10px 0 var(--shadow); --ink-3: #565963; }
.pr header { padding: 14px 18px; border-bottom: 1.5px solid #15171c; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: baseline; }
/* The title shrinks and wraps inside a narrow card: at 160 CSS px (320px at 200% zoom) "Reminders"
   ran 5px past the card's edge (CW-1454 site-process web QA). */
.pr header b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.pr ul { list-style: none; padding: 0; }
.pr header .mono { color: #565963; }
.pr li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 11px 18px; border-bottom: 1px solid rgba(21, 23, 28, .17); font-size: 15.5px; align-items: baseline; font-weight: 650; }
.pr li:last-child { border-bottom: 0; }
.pr li::before { content: ''; width: 12px; height: 12px; background: #c8322b; display: block; transform: translateY(1px); }
.pr li small { display: block; color: #565963; font-size: 13.5px; font-weight: 450; }

/* ---------- engagement, contact ---------- */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1.5px solid currentColor; margin-top: clamp(24px, 4vw, 44px); }
.modes > div { padding: clamp(18px, 2.6vw, 36px); }
.modes > div + div { border-left: 1.5px solid currentColor; }
.modes h3 { font-size: clamp(26px, 0.81rem + 2.1vw, 42px); letter-spacing: -0.035em; margin-bottom: 10px; }
.modes .mono { display: block; margin-bottom: 10px; color: var(--ink-3); }
.after { list-style: none; padding: 0; margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: a; border-top: 1.5px solid currentColor; }
.after li { counter-increment: a; padding: 16px 18px 0 0; }
.after li::before { content: counter(a); display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid currentColor; font: 700 14px var(--mono); margin-bottom: 12px; }
.after b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.after span { display: block; font-size: 15px; margin-top: 6px; color: var(--ink-3); }
@media (max-width: 800px) { .modes { grid-template-columns: minmax(0, 1fr); } .modes > div + div { border-left: 0; border-top: 1.5px solid currentColor; } .after { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } }
/* Block padding only: the contact block is also a .shell, whose side padding is its gutter
   (CW-1454 web QA: the text and its focus rings touched the screen edge). */
.contact { padding-block: clamp(56px, 9vw, 140px); }
.contact p { font-size: clamp(18px, 0.432rem + 1.12vw, 22px); max-width: 32em; }
.contact a.big { display: inline-block; font-size: clamp(30px, 2.052rem + 5.32vw, 124px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; text-decoration: none; border-bottom: .07em solid var(--red); margin-top: 18px; overflow-wrap: anywhere; }
.contact a.big:hover { color: var(--red); }
/* Below 300px wide (a phone at 200% zoom) the address stays at 32px, so with doubled text it
   wraps to a target that fits the window (CW-1454 site-home web QA: 666px tall at 160x450 CSS
   px), while 200% zoom still enlarges it 1.19x over the 53.6px it has in a 390px window. */
@media (max-width: 300px) { .contact a.big { font-size: 32px; } }
/* The Contact page head: the address is the headline, on one line down to a 344px phone (it
   fills the 390px frame edge to edge as drawn, at 36.66px). The drawn size is 9.4vw, which would
   not grow under page zoom, so each of the three steps carries a rem part and each is at most
   1.74x the size at half the width: at 200% zoom the address renders at least 1.15x larger at
   every width, and it reaches the drawn 124px on wider screens than the drawing does. Where it
   cannot fit (a 320px phone, larger text, a zoomed phone) it breaks after the @ first, then
   anywhere, instead of running off the page. */
.phead .addr { display: inline-block; max-width: 100%; font-size: clamp(30px, min(0.04875rem + 9.2vw, 0.7556rem + 6.3vw, 1.3125rem + 5.47vw), 124px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; text-decoration: none; border-bottom: .07em solid var(--red); margin: 2px 0 clamp(30px, 4.4vw, 60px); overflow-wrap: anywhere; }
.phead .addr:hover { color: var(--red); }
.phead .lede.first { margin-top: 0; }
@media (max-width: 900px) { body[data-page='contact'] .after { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } }
.mail { border: 1.5px solid var(--ink); background: var(--card); box-shadow: 8px 8px 0 var(--red); }
.mail .mail-h { padding: 14px 18px; border-bottom: 1.5px solid var(--ink); display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: baseline; }
.mail .mail-h b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.mail .mail-h .mono { color: var(--ink-3); }
.mail ol { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.mail li { counter-increment: m; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 17.5px; line-height: 1.45; align-items: baseline; }
.mail li::before { content: counter(m, decimal-leading-zero); font: 700 12px var(--mono); letter-spacing: .05em; color: var(--red-d); }
.mail li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .mail { box-shadow: 6px 6px 0 var(--red); margin-right: 6px; } }
.alt-go { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- notes ---------- */
.nlist { margin-top: clamp(24px, 4vw, 44px); border-top: 1.5px solid currentColor; container-type: inline-size; }
.nlist > * { display: grid; grid-template-columns: 14em 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.nlist b { font-size: clamp(19px, 0.54rem + 1.4vw, 28px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.nlist .mono { color: var(--ink-3); }
/* A written note's link is its title, stretched over the row (as on the Work cards and the Notes
   page's card), so its focus ring fits the window with doubled text (CW-1454 site-home web QA). */
.nlist > *, .plat.note { position: relative; }
.nlist b a, .plat.note h3 a { color: inherit; text-decoration: none; }
.nlist b a::after, .plat.note h3 a::after { content: ""; position: absolute; inset: 0; }
.nlist .written:hover b { color: var(--red-d); } .ink .nlist .written:hover b { color: var(--red-lit); }
.nlist .draft b { color: var(--ink-3); } .nlist .draft .st { border-style: dashed; }
@media (max-width: 760px) { .nlist > * { grid-template-columns: minmax(0, 1fr) auto; } .nlist .mono { grid-column: 1 / -1; } }
/* The list also stacks by its own width in text sizes, so enlarged text stacks it earlier
   (CW-1454 site-notes web QA: at 768px with 200% text a badge ran past the page). */
@container (max-width: 40em) { .nlist > * { grid-template-columns: minmax(0, 1fr) auto; } .nlist .mono { grid-column: 1 / -1; } }
@container (max-width: 20em) { .nlist > * { grid-template-columns: minmax(0, 1fr); gap: 6px; } .nlist .st { justify-self: start; } }
.article { max-width: 44em; padding-bottom: clamp(56px, 8vw, 110px); font-size: clamp(18px, 0.392rem + 1.015vw, 20.5px); line-height: 1.6; }
.article h2 { font-size: clamp(26px, 0.702rem + 1.82vw, 36px); letter-spacing: -0.03em; margin: 44px 0 12px; }
.article p + p { margin-top: 14px; }
.rule-box { border: 1.5px solid var(--ink); background: var(--card); margin: 18px 0; }
.rule-box ul { list-style: none; padding: 0; }
/* Each number sits beside its rule while the rule keeps at least 12em; narrower (a phone at
   200% text) the number sits above it (CW-1454 site-notes web QA: a one-character column). */
.rule-box li { padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 17px; }
.rule-box li b { flex: 0 0 5.4em; }
.rule-box li span { flex: 1 1 12em; min-width: 0; }
.rule-box li:last-child { border-bottom: 0; }
.rule-box li b { font: 700 15px/1.75 var(--mono); color: var(--red-d); }
@media (max-width: 900px) { body[data-page='notes'] .nlist > * { grid-template-columns: minmax(0, 1fr) auto; } body[data-page='notes'] .nlist .mono { grid-column: 1 / -1; } }
/* The written note: one paper plate on the red band, and the whole plate is the link. */
.plat.note { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(26px, 4vw, 52px); text-decoration: none; }
.plat.note > div:first-child { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; }
.plat.note h3 { font-size: clamp(28px, 0.6875rem + 2.8vw, 50px); letter-spacing: -0.04em; margin-top: 8px; }
.plat.note p:not(.mono) { font-size: clamp(17px, 0.375rem + 0.98vw, 20px); max-width: 30em; }
.plat.note .slate { cursor: inherit; } .plat.note .slate svg { display: block; width: 100%; height: 100%; }
.plat.note:hover h3 { color: var(--red-d); }
@media (max-width: 900px) { .plat.note { grid-template-columns: minmax(0, 1fr); } }
/* Below 300px wide the note's title keeps an 18px floor and hyphenates, as the Work cards' titles
   do (see .card h2): with doubled text at 160x450 CSS px it ran 1027px, long words a letter a line. */
@media (max-width: 300px) { .plat.note h3 { font-size: 18px; hyphens: auto; } }
/* The letter figure on the note: the outline and the strokes, side by side. */
.fig { border: 1.5px solid var(--ink); background: var(--card); box-shadow: 8px 8px 0 var(--red); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig > div { padding: 14px 16px 16px; }
.fig > div + div { border-left: 1px solid var(--line); }
.fig .mono { color: var(--ink-3); display: block; }
.fig svg { display: block; width: 100%; height: auto; margin-top: 6px; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 10% 10%; border: 1px solid var(--line); }
.fig .cap { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 10px 16px; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 900px) { .fig { box-shadow: 6px 6px 0 var(--red); margin-right: 6px; } }
.plat.thr h3 { font-variant-numeric: tabular-nums; color: #a3241e; }
.plat.thr p { margin-bottom: 0; }
.board.small::before, .board.small::after { display: none; }

/* ---------- footer ---------- */
footer { background: var(--band); color: var(--band-fg); padding: clamp(36px, 5vw, 64px) 0 28px; --ink-3: var(--band-3); }
/* Room under the last link for the tried-parts pill (drawing.js measures --pill-h). */
body > footer { padding-bottom: calc(28px + var(--pill-h, 0px)); }
footer .cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 26px; }
footer .logo { width: 180px; }
footer p { font-size: 15.5px; color: var(--ink-3); margin-top: 14px; max-width: 26em; }
footer h2 { font: 600 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; font-weight: 600; font-size: 15.5px; } footer ul a { display: inline-block; padding: 4px 0; } footer a:hover { color: var(--red-lit); }
footer .legal { display: inline-flex; flex-wrap: wrap; gap: 4px 20px; }
footer .legal a { display: inline-block; padding: 4px 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
footer .base { margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(244, 240, 230, .22); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--ink-3); }
@media (max-width: 760px) { footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer .cols > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 360px) { footer .cols { grid-template-columns: minmax(0, 1fr); } }

/* At 200% zoom a phone lays the page out 160 to 195 CSS px wide (WCAG 1.4.10 reflow): every row stacks. */
@media (max-width: 300px) {
  footer .logo { width: 100%; }
  .top .home { min-width: 0; flex: 0 1 128px; } .top .logo { width: 100%; }
  .rule-box li { padding: 12px; }
  .track { grid-template-columns: minmax(0, 1fr); }
  .btn, .opt-b { max-width: 100%; }
  .stepper { grid-template-columns: 40px minmax(0, 1fr) 40px; } .stepper select { padding: 0 4px; }
  .tb, .tb.drawn { grid-template-columns: minmax(0, 1fr); } .tb dt { border-right: 0; border-bottom: 0; padding-bottom: 0; }
  .cat-row { grid-template-columns: minmax(0, 1fr); } .cat-row p, .cat-row .sts { grid-column: auto; }
  .nlist > * { grid-template-columns: minmax(0, 1fr); gap: 6px; } .nlist .st { justify-self: start; }
  /* The Notes page's 900px two-column rule is more specific; without this a written note's
     Read badge leaves its title a one-letter column (CW-1448). */
  body[data-page='notes'] .nlist > * { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .packet { display: none; }
  .btn:hover, .card:hover, .pill:hover { transform: none; }
}

/* ---------- part 04: the Dosefolder logbook demo (home) ----------
   The board is ink, like the slate. Values are made up and stay in the page. Progress is drawn
   in neutral ink and paper: the demo never colours a weight change as good or bad. */
.ledger { display: flex; flex-direction: column; }
.lg-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px dashed rgba(244, 240, 230, .3); }
.lg-tabs button { font: 600 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; min-height: 40px; padding: 0 12px; background: transparent; color: inherit; border: 1.5px solid rgba(244, 240, 230, .45); border-radius: 2px; cursor: pointer; }
.lg-tabs button:hover { border-color: var(--paper); }
.lg-tabs button[aria-selected='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lg-panel { padding: 16px 14px 6px; min-height: 300px; }
.lg-panel[hidden] { display: none; }
#lgp-log { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr)); gap: 12px; align-content: start; }
#lgp-log[hidden] { display: none; }
.lg-card { border: 1.5px solid rgba(244, 240, 230, .4); padding: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.lg-card h3 { font-size: 21px; }
.lg-card .chip.act { margin-left: 0; margin-top: 4px; }
.lg-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; width: 100%; font-size: 17px; padding: 10px 0; border-top: 1px dashed rgba(244, 240, 230, .3); border-bottom: 1px dashed rgba(244, 240, 230, .3); }
.lg-hint { font-size: 13.5px; line-height: 1.45; color: #c9c5b9; }
.lg-field { font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #d9d5ca; }
.ledger input, .ledger select { width: 100%; max-width: 16em; min-height: 44px; padding: 0 12px; font: 700 18px var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--paper); border-radius: 2px; }
.ledger select { font-size: 16px; cursor: pointer; }
.ledger input[aria-invalid='true'] { border-color: var(--red-lit); box-shadow: 0 0 0 2px var(--red-lit); }
.lg-err { min-height: 1.4em; font-size: 14px; font-weight: 650; color: var(--red-lit); }
.lg-err:empty { display: none; }
.lg-sub { font-size: 15px; color: #d9d5ca; margin-bottom: 8px; }
.lg-book { list-style: none; padding: 0; border-top: 1.5px solid rgba(244, 240, 230, .5); }
.lg-book li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed rgba(244, 240, 230, .3); font-size: 16px; }
.lg-book li .mono { color: #c9c5b9; }
.lg-book li b { font-weight: 700; font-variant-numeric: tabular-nums; }
.lg-book li.new { color: #fff; }
.lg-book li.new .mono { color: var(--red-lit); }
.lg-book .more { display: block; font-size: 14px; color: #c9c5b9; }
/* At 200% zoom on a phone (a 160-195 CSS px layout) the date, entry and amount columns need
   more room than the board has, and the rows ran 185 CSS px wide (CW-1454). A narrow logbook
   puts the date on its own line above the entry and amount, and a very narrow one stacks all
   three; at normal widths the rows keep the R5 three-column layout. */
.lg-book { container-type: inline-size; }
@container (max-width: 16em) {
  .lg-book li { grid-template-columns: minmax(0, 1fr) auto; }
  .lg-book li > :first-child { grid-column: 1 / -1; }
}
@container (max-width: 9em) {
  .lg-book li { grid-template-columns: minmax(0, 1fr); }
  .lg-book li > * { overflow-wrap: anywhere; }
}
/* At 160 CSS px the report title and the Save reminders button were each wider than the board. */
.lg-sheet header b, .ledger .chip { max-width: 100%; overflow-wrap: anywhere; }
.lg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr)); gap: 10px; margin-bottom: 12px; }
.lg-stats > div { border: 1.5px solid rgba(244, 240, 230, .4); padding: 10px 12px; min-width: 0; }
.lg-stats dt { font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #c9c5b9; }
.lg-stats dd { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lg-chart { width: 100%; height: auto; border: 1.5px solid rgba(244, 240, 230, .4); }
.lg-chart .grid { stroke: rgba(244, 240, 230, .14); stroke-width: 1; }
.lg-chart .axis { fill: #c9c5b9; font: 600 15px var(--mono); }
.lg-chart .line { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.lg-chart .pt { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.lg-chart .pt.new { fill: var(--paper); }
.lg-chart .dose { fill: var(--red-lit); }
.lg-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #d9d5ca; }
.lg-key span { display: inline-flex; align-items: center; gap: 8px; }
.lg-key i { display: inline-block; flex: none; }
.lg-key i.w { width: 18px; height: 3px; background: var(--paper); }
.lg-key i.d { width: 8px; height: 14px; background: var(--red-lit); }
.lg-period { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lg-sheet { background: var(--card); color: var(--ink); border: 1.5px solid var(--paper); padding: 16px; --ink-3: #565963; }
.lg-sheet header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
.lg-sheet header b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-right: auto; }
.lg-sheet header span { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lg-sheet .lg-pdf { border: 1.5px solid var(--ink); color: var(--ink); padding: 3px 6px; }
.lg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr)); gap: 8px; margin-top: 12px; }
.lg-tiles > div { border: 1.5px solid var(--ink); padding: 10px 12px; min-width: 0; }
.lg-tiles dt { font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lg-tiles dd { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lg-medline { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 650; }
.lg-medline .mono { color: var(--ink-3); }
/* The site footer rule lightens --ink-3 for its dark band; the report's own footer sits on the light card. */
.lg-sheet footer { margin-top: 10px; padding: 0; background: none; font: 600 12px/1.4 var(--mono); letter-spacing: .04em; --ink-3: #565963; color: var(--ink-3); }
.ledger .chip[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
#lgp-report .lg-hint { margin-top: 12px; }
#lgRemind { max-width: 22em; }
.lg-toast { min-height: 3em; padding: 10px 14px 14px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--red-lit); }

/* ---------- dark variant (Capabilities, Process, Contact, Build notes and the note) ----------
   The pages with an approved dark mockup (DesignStudioR5Capabilities, DesignStudioR5Process,
   DesignStudioR5Contact, DesignStudioR5Notes, DesignStudioR5Note) opt in with html.dk and
   color-scheme "light dark"; every other Working drawing page stays light until it has its
   own dark mockup. Ink bands and the footer go darker than the page, the
   red band stays red, and paper cards on the red band stay paper. */
@media (prefers-color-scheme: dark) {
  html.dk {
    color-scheme: dark;
    --paper: #15171c; --paper-2: #1d2027; --card: #22252d;
    --ink: #f4f0e6; --ink-2: #dcd8cc; --ink-3: #b9b5a8;
    --red-d: #f0604f;
    --band: #0a0b0e; --shadow: #000;
    --line: rgba(244, 240, 230, .2); --grid: rgba(244, 240, 230, .05);
    --cl: #a9a597; --cr: #7c796f; --top-bg: rgba(21, 23, 28, .93);
  }
  /* On a band, paper and ink keep their light meaning: light marks on the dark band. */
  html.dk .sec.ink, html.dk body > footer, html.dk .pill { --ink: var(--band); --paper: var(--band-fg); }
  html.dk .sec.red { --ink: #15171c; }
  /* A band's own bottom rule stays the light line of the dark page. */
  html.dk .sec.ink, html.dk .sec.red { border-bottom-color: var(--band-fg); }
  /* A red ring is too faint on the dark page; the lighter red reads at 5:1. */
  html.dk :where(:focus-visible), html.dk body .mz-btn:focus-visible { outline-color: var(--red-lit); }
  html.dk .btn:hover { background: #a3241e; border-color: #a3241e; }
  html.dk .contact a.big:hover, html.dk .phead .addr:hover { color: var(--red-lit); }
  /* The slate goes a step darker than the dark page. */
  html.dk .board, html.dk .slate { background-color: #0a0b0e; }
}

/* the consent banner (measurement.js) on this design */
body .mz-consent { border-top: 1.5px solid var(--ink); box-shadow: 0 -5px 0 var(--red); }
/* Flowing at the top of the page (measurement.js, when the fixed banner would cover a control), its rules face the page below. */
body .mz-consent.mz-flow { border-top: 0; border-bottom: 1.5px solid var(--ink); box-shadow: 0 5px 0 var(--red); margin-bottom: 5px; }
body .mz-btn { font-family: var(--mono); font-size: 13px; border-width: 1.5px; border-radius: 2px; }
