/* Ferrix website v3: the drawing set (creative round, 2026-10-15).
   Generated pages: _build/page.py writes index.html and he/index.html; the hero drawing is generated
   from the CBACT04C source by _build/drawing.py. Spec and copy: vault docs/website.md; brand: docs/brand/. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Hebrew Display";
  src: url("/fonts/hebrew-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("/fonts/noto-sans-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --field: #123a2c;
  --field-deep: #0e3125;
  --cream: #f3f0e6;
  --cream-2: #bdd7c6;
  --cream-3: #8bb59d;
  --frame: rgba(243, 240, 230, 0.2);
  --ink-line: rgba(243, 240, 230, 0.72);
  --signal: #f08c64;
  --signal-wash: rgba(240, 140, 100, 0.14);
  --cream-wash: rgba(243, 240, 230, 0.04);   /* keeps the orange digit on the highlighted row at 4.6:1 */
  --line-quiet: rgba(243, 240, 230, 0.42);   /* the drawing's structure: present, not loud (3.2:1) */
  --box-quiet: rgba(243, 240, 230, 0.58);

  --text: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(1rem, 3.6vw, 3.25rem);
  --sec: clamp(3.5rem, 8vw, 7rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
  scrollbar-color: var(--cream-3) var(--field-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--field); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--field);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  caret-color: var(--cream);
}
body:lang(he) {
  --text: "Noto Sans Hebrew", "Archivo", ui-sans-serif, system-ui, sans-serif;
  --display: "Hebrew Display", "Noto Sans Hebrew", "Archivo", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}
::selection { background: var(--cream); color: var(--field-deep); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--cream-3); transition: color 150ms ease, text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { a:not(.button):not(.head-cta):not(.skip):hover { color: #fff; text-decoration-color: currentColor; } }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 1px; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
code { font-family: var(--mono); font-size: 0.88em; }
:lang(he) code { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.nb { white-space: nowrap; }
[hidden] { display: none !important; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 10;
  background: var(--cream); color: var(--field); padding: 0.5rem 0.75rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* The sheet: one quiet frame around the whole page */

.sheet { margin: clamp(0.5rem, 1.2vw, 1rem); border: 1px solid var(--frame); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem var(--gutter); }
.brand { display: inline-flex; align-items: center; min-height: 44px; direction: ltr; color: var(--cream); text-decoration: none; }
.brand svg { display: block; height: 1.55rem; width: auto; fill: currentColor; }
.head-links { display: flex; align-items: center; gap: 0.5rem 1.4rem; }
.head-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: var(--cream-2); text-decoration: none; }
.head-links a[lang="he"] { font-family: "Noto Sans Hebrew", sans-serif; }
.head-links a[lang="en"] { font-family: "Archivo", sans-serif; }
.head-cta { padding: 0 1.1rem; background: var(--cream); color: var(--field-deep) !important; font-weight: 650; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
:lang(he) .head-cta { font-weight: 600; }
.head-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .head-cta:hover { background: #fff; } }

/* Hero: the title of the sheet, then the drawing */

.hero { position: relative; padding: clamp(1rem, 2.2vw, 1.75rem) var(--gutter) 0; }
.hero-title { max-width: 62%; }
h1 { font-family: var(--display); letter-spacing: -0.028em; }
.h1a { display: block; font-stretch: 78%; font-weight: 700; font-size: clamp(2.6rem, 1.15rem + 3.4vw, 4.6rem); line-height: 0.98; letter-spacing: -0.018em; }
.h1b { display: block; margin-top: 0.3em; font-stretch: 100%; font-weight: 400; font-size: clamp(1.25rem, 0.95rem + 0.75vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--cream-2); }
:lang(he) h1 { letter-spacing: 0; }
:lang(he) .h1a { font-weight: 700; font-size: clamp(2.8rem, 1.3rem + 3.6vw, 4.9rem); line-height: 1.02; letter-spacing: 0; }
:lang(he) .h1b { font-family: var(--text); font-weight: 400; line-height: 1.3; }
.audience { color: var(--cream-2); font-size: 1rem; margin-bottom: 0.75rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 1.35rem;
  background: var(--cream); color: var(--field-deep); text-decoration: none; font-weight: 650; font-size: 1rem;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
:lang(he) .button { font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .button:hover { background: #fff; color: var(--field-deep); } }
.button:active { transform: scale(0.97); }

/* The drawing */

.plan-fig { margin: clamp(1.25rem, 2.5vw, 2rem) 0 0; }
.plan-sheet { position: relative; }
.plan { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.plan-phone { display: none; }
/* The phone drawing's caption, set like the sheet locators: a label on a rule */
.plan-cap { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.9rem; font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-2); }
.plan-cap::after { content: ""; flex: 1; border-top: 1px solid var(--frame); }
:lang(he) .plan-cap { font-family: var(--text); font-stretch: 100%; letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.plan .ln { fill: none; stroke: var(--line-quiet); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.plan .bx { stroke: var(--box-quiet); stroke-width: 1; }
.plan .hot { stroke: var(--cream); stroke-width: 1.6; }
.plan .dmn, .plan .tk, .plan .ldr2 { stroke-width: 0.75; }
.plan .htch { stroke: var(--cream-3); stroke-width: 0.8; opacity: 0.6; }
.plan .ldr2 { stroke: var(--cream); }
.plan .ldot2 { fill: var(--cream); }
.plan .dash { stroke-dasharray: 4 3; }
.plan .io { stroke-dasharray: 2 3; }
.plan .dmn, .plan .tk { stroke: var(--cream-3); }
.plan .hd { fill: var(--line-quiet); }
.plan .hd.dmn { fill: var(--cream-3); }
.plan text { fill: var(--cream-2); paint-order: stroke; stroke: var(--field); stroke-width: 3.2px; stroke-linejoin: round; }
.plan .nm { font: 600 12px var(--mono); }
.plan .nm.sm { font-size: 10px; }
.plan .id { font: 400 9.2px var(--mono); fill: var(--cream-3); }
.plan .id.dmd { font-size: 8.4px; }   /* the rate test's condition stays inside its diamond */
.plan .id.xs { font-size: 9px; }
.plan .dm, .plan .dl, .plan .cap { font-family: "Archivo", sans-serif; font-stretch: 75%; }
.plan .dm { font-size: 9.4px; font-weight: 550; letter-spacing: 0.04em; fill: var(--cream-3); }
.plan .dl { font-size: 9.4px; font-weight: 550; letter-spacing: 0.05em; fill: var(--cream-3); }
.plan .dl.xs { font-size: 9px; }
.plan .cap { font-size: 9.2px; font-weight: 650; letter-spacing: 0.07em; fill: var(--cream-3); }
.plan .keyc { fill: var(--field); stroke: var(--cream); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .keyt { font: 650 10px "Archivo", sans-serif; fill: var(--cream); }
/* The revision: the only colour on the sheet */
.plan .rv { fill: none; stroke: var(--signal); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: var(--k, 9) calc(var(--k, 9) * 2); stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease-out), opacity 200ms ease; }
.plan .rvf { fill: none; stroke: var(--signal); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
/* The finding: a cloud like the revision's but cream, because it marks a fact about the code, not a change */
.plan .fd { fill: none; stroke: var(--cream); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.plan .cap.fdt, .plan .fdl { fill: var(--cream); }
.plan .fdp { stroke: var(--cream); }
.plan .hd.fdp { fill: var(--cream); }
/* Secondary annotations wait behind "Show every annotation" */
.plan .sec { display: none; }
.full .plan .sec { display: inline; }
.full .plan .qo { display: none; }
.plan .rvt { font: 650 10px "Archivo", sans-serif; fill: var(--signal); }
.plan .ldr { stroke: var(--signal); stroke-dasharray: none; }
.plan .ldot { fill: var(--signal); }
.plan .rvtag, .plan .ldr, .plan .ldot { transition: opacity 200ms ease; }
.plan-fig.is-off .plan .rv { stroke-dashoffset: var(--k, 9); opacity: 0; }
.plan-fig.is-off .plan .rvtag, .plan-fig.is-off .plan .ldr, .plan-fig.is-off .plan .ldot { opacity: 0.25; }

/* The notes set on the drawing, in zones the drawing keeps clear: the revision (top right, on its leader),
   keynote A (right) and the title block (lower left) */
.rev-note { position: absolute; left: 63.9%; top: 0; width: 36.1%; }
.rn-head { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.45rem; font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); }
:lang(he) .rn-head { font-family: var(--text); letter-spacing: 0; text-transform: none; font-size: 0.9rem; font-weight: 600; }
.rn-title { flex: 1; }
.tag { display: inline-block; padding: 0.05rem 0.4rem; border: 1px solid var(--cream-3); font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-2); }
:lang(he) .tag { font-family: var(--text); letter-spacing: 0; text-transform: none; font-size: 0.78rem; font-weight: 500; }
.delta { width: 1.15rem; height: 1rem; flex: none; }
.delta path { fill: none; stroke: var(--signal); stroke-width: 1.4; }
.delta text { font: 700 10px "Archivo", sans-serif; fill: var(--signal); }
.rn-real { grid-column: 1 / -1; margin: 0.5rem 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--cream-3); }
.rn-real a { white-space: nowrap; }
.rn-code { display: none; }
.rn-ctx { grid-column: 1 / -1; margin: 0; font-size: 0.875rem; line-height: 1.4; color: var(--cream-2); }
.rn-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1rem; }
.rn-vals { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 0.2rem 0.9rem; direction: ltr; }
:lang(he) .rn-vals { direction: rtl; }   /* before on the right, as in the Hebrew table */
.v { direction: ltr; unicode-bidi: isolate; }
.cell { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: max-content; }
.v { white-space: nowrap; font-family: "Archivo", sans-serif; font-stretch: 100%; font-weight: 500; font-size: clamp(1.9rem, 0.6rem + 2.2vw, 2.8rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--cream); font-variant-numeric: tabular-nums; }
.v .dd { display: inline-block; color: var(--signal); font-weight: 650; transform-origin: 50% 80%; }
.note { font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.75rem; font-weight: 550; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream-2); white-space: nowrap; }
:lang(he) .note { font-family: var(--text); letter-spacing: 0; text-transform: none; font-size: 0.8rem; font-weight: 400; }
.sign { position: relative; width: 1.5rem; height: 1.05rem; margin-bottom: 1.1rem; }
.sign i { position: absolute; inset-inline: 0; height: 2px; background: var(--cream-2); }
.sign i:first-child { top: 22%; }
.sign i:nth-child(2) { bottom: 22%; }
.sign b { position: absolute; left: 50%; top: -18%; width: 2px; height: 136%; background: var(--signal); transform: translateX(-50%) rotate(28deg) scaleY(1); transition: transform 240ms var(--ease-out); }
.plan-fig.is-off .sign b { transform: translateX(-50%) rotate(28deg) scaleY(0); }
.rn-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; padding-bottom: 0.1rem; }
.verdict { font-weight: 650; color: var(--cream); font-size: 0.9375rem; }
.verdict-note, .cap-note { font-size: 0.8125rem; line-height: 1.4; color: var(--cream-3); }
.cap-note { display: block; margin-top: 0.35rem; }
:lang(he) .verdict { font-weight: 600; }
.plan-fig.is-off .verdict { color: var(--cream); }
.plan-fig.is-off .rn-head { color: var(--cream-2); }
.plan-fig.is-off .delta path { stroke: var(--cream-3); }
.plan-fig.is-off .delta text { fill: var(--cream-3); }
.plan-fig.is-off .title-block .tb-rev dd { color: var(--cream-2); }
.exact { font-size: 0.8125rem; color: var(--cream-2); }
.control { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: 0.8125rem; color: var(--cream-2); }
.rev-note .control-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.segmented { display: inline-flex; border: 1px solid var(--cream-3); }
.segmented button {
  font: inherit; font-size: 0.8125rem; color: var(--cream-2); background: transparent;
  border: 0; min-height: 40px; padding: 0 0.75rem; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.segmented button:active { transform: scale(0.97); }
.segmented button[aria-pressed="true"] { background: var(--cream); color: var(--field-deep); }
.detail-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.45rem; font-size: 0.8125rem; color: var(--cream-2); }
.bubble {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.45rem; height: 1.45rem; border: 1px solid var(--cream); border-radius: 50%;
  font: 650 0.75rem/1 "Archivo", sans-serif; color: var(--cream); text-decoration: none;
}
.rule-note { position: absolute; left: 83.9%; top: 67.58%; width: 16.1%; font-size: 0.875rem; line-height: 1.45; color: var(--cream-2); }
.rule-note .bubble { margin-inline-end: 0.45rem; vertical-align: -0.35em; }
/* Right-aligned Hebrew lines run to the note's left edge, where the leader from 1300 arrives: keep them clear of it */
@media (min-width: 75.0625rem) { :lang(he) .rule-note { padding-left: 1.1rem; box-sizing: border-box; } }
.rn-k { font-weight: 650; color: var(--cream); margin-inline-end: 0.25rem; }
.rn-src { margin-top: 0.35rem; font-size: 0.78rem; color: var(--cream-2); }
.rn-src code { color: var(--cream); }

@media (max-width: 90rem) {
  .rn-body { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .rn-vals .v { font-size: 2.1rem; }
  .rn-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
  .rn-side .control { order: -1; }
  .rev-note .segmented button { min-height: 32px; padding: 0 0.6rem; font-size: 0.75rem; }
  .title-block dd { font-size: 0.72rem; }
}
/* Desktop: the figures with the exact value and the source beside them; the labelled switch; the verdict and its
   caveat. The card sits on a field background so the revision leader rises from under it */
@media (min-width: 75.0625rem) {
  .rev-note { top: -2.5rem; background: var(--field); }
  :lang(he) .rev-note { top: -0.75rem; }   /* the Hebrew title, not empty space, sits above the card */
  .rn-body { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "vals exact" "vals real" "ctl ctl" "verdict verdict" "vnote vnote"; column-gap: 1.5rem; row-gap: 0; }
  .rn-ctx { display: none; }   /* on desktop the card sits on the drawing, which gives the figures their context */
  .rn-vals { grid-area: vals; }
  .rn-side { display: contents; }
  .rn-side .exact { grid-area: exact; align-self: end; }
  .rn-real { grid-area: real; grid-column: auto; align-self: start; margin: 0.15rem 0 0; }
  .rn-side .control { grid-area: ctl; margin-top: 0.55rem; }
  .rev-note .control-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .rn-side .verdict { grid-area: verdict; margin-top: 0.45rem; }
  .rn-side .verdict-note { grid-area: vnote; margin-top: 0.1rem; }
@media (min-width: 75.0625rem) and (max-width: 80rem) { :lang(he) .rev-note { top: -1.2rem; } }
}
@media (max-width: 75rem) {
  /* One column: the context, the figures with the exact value beside them, the verdict, the labelled switch, the source */
  .rn-body { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ctx ctx" "vals exact" "verdict verdict" "vnote vnote" "ctl ctl" "real real" "code code"; column-gap: 1rem; row-gap: 0; }
  /* The COMPUTE in code, with ROUNDED marked where the change inserts it: "they read our code" on the first screen */
  .rn-code { grid-area: code; display: grid; gap: 0.1rem; margin: 0.85rem 0 0; font: 400 0.75rem/1.5 var(--mono); color: var(--cream-2); white-space: pre; overflow-x: auto; }
  .rn-code a { color: var(--cream-3); text-decoration: none; }
  .rn-code ins { color: var(--signal); font-weight: 600; text-decoration: underline 1px; text-underline-offset: 0.2em; }
  .plan-fig.is-off .rn-code ins { visibility: hidden; }
  .rn-ctx { grid-area: ctx; margin: 0.3rem 0 0.15rem; }
  .rn-vals { grid-area: vals; }
  .rn-vals .v { font-size: clamp(2.1rem, 0.9rem + 5vw, 2.8rem); }
  .rn-side { display: contents; }
  .rn-side .verdict { grid-area: verdict; margin-top: 0.4rem; font-size: 0.875rem; }
  .rn-side .verdict-note { grid-area: vnote; margin-top: 0.1rem; }
  .rn-side .exact { grid-area: exact; justify-self: end; align-self: center; }
  .rn-side .control { grid-area: ctl; margin-top: 0.55rem; }
  .rev-note .control-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .rev-note .segmented button { min-height: 44px; padding: 0 0.85rem; font-size: 0.875rem; }
  .rn-real { grid-area: real; margin-top: 0.65rem; }
}

/* The title block: a quiet strip in the lower left of the sheet, no box; the honesty labels stay */
.title-block { position: absolute; left: 0; bottom: 0; width: 50%; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1.75rem; }
.title-block > div { min-width: 0; }
.title-block .tb-status, .title-block .tb-find { grid-column: span 2; }
.title-block .tb-rev { grid-column: span 2; }
.title-block .tb-rev dd { color: var(--signal); }
.title-block .tb-rev a { color: var(--cream-2); }
.title-block dt { font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); }
:lang(he) .title-block dt { font-family: var(--text); letter-spacing: 0; text-transform: none; font-size: 0.72rem; }
.title-block dd { margin: 0.1rem 0 0; font-size: 0.8125rem; line-height: 1.4; color: var(--cream-2); }
.plan-fig:not(.full) .rule-note, .plan-fig:not(.full) .title-block .tb-rev { display: none; }
.full .title-block { position: static; width: auto; margin-top: 1.25rem; }   /* with every annotation shown, the strip moves below the drawing */
/* The way into the full sheet: a quiet toggle under the drawing */
.detail-toggle { display: flex; align-items: center; gap: 0.55rem; min-height: 44px; margin: 0.4rem 0 0 auto; padding: 0; border: 0; background: none; font: inherit; font-size: 0.8125rem; color: var(--cream-2); cursor: pointer; }
.detail-toggle::before { content: ""; width: 0.7rem; height: 0.7rem; border: 1px solid var(--cream-3); transition: background-color 150ms ease; }
.detail-toggle[aria-pressed="true"]::before { background: var(--cream-2); border-color: var(--cream-2); }
@media (hover: hover) and (pointer: fine) { .detail-toggle:hover { color: var(--cream); } }

/* One-time drawing: lines in reading order, then the revision, then the changed digit */
/* Strokes do not scale (vector-effect), so dashes are measured on screen: --k, set by site.js, is the drawing's
   screen scale. The dash exists only while the line draws; afterwards the line is whole at any size. */
@keyframes draw {
  from { stroke-dasharray: var(--k, 1) calc(var(--k, 1) * 2); stroke-dashoffset: var(--k, 1); }
  to { stroke-dasharray: var(--k, 1) calc(var(--k, 1) * 2); stroke-dashoffset: 0; }
}
@keyframes appear { from { opacity: 0; } }
@keyframes digit { from { opacity: 0; transform: translateY(35%); } }
@keyframes slash { from { transform: translateX(-50%) rotate(28deg) scaleY(0); } }
.plan [pathLength] { animation: draw 900ms var(--ease-out) backwards; }
.plan text, .plan .hd, .plan .key, .plan .io, .plan .dash { animation: appear 500ms ease-out backwards; }
.plan .g1 { animation-delay: 0ms; }
.plan text.g1, .plan .hd.g1 { animation-delay: 280ms; }
.plan .g2 { animation-delay: 220ms; }
.plan text.g2, .plan .hd.g2, .plan .io.g2 { animation-delay: 520ms; }
.plan .g3 { animation-delay: 480ms; }
.plan text.g3, .plan .hd.g3, .plan .io.g3, .plan .dash.g3 { animation-delay: 760ms; }
.plan .g4 { animation-delay: 720ms; }
.plan text.g4, .plan .hd.g4, .plan .io.g4, .plan .dash.g4, .plan .key { animation-delay: 1000ms; }
.plan .rv { animation: draw 700ms var(--ease-out) 1300ms backwards; }
/* A drawing below the first screen holds its draw-in until it scrolls into view (site.js adds .wait) */
.plan.wait * { animation-play-state: paused !important; }
.plan .rvtag, .plan .ldr, .plan .ldot { animation: appear 300ms ease-out 1750ms backwards; }
.plan .ldr2, .plan .ldot2 { animation: appear 400ms ease-out 1100ms backwards; }
.rule-note, .title-block { animation: appear 500ms ease-out 1200ms backwards; }
.rev-note { animation: appear 400ms ease-out 1650ms backwards; }
.rev-note .dd { animation: digit 320ms var(--ease-out) 2000ms backwards; }
.rev-note .sign b { animation: slash 280ms var(--ease-out) 1950ms backwards; }
.drawn .plan *, .drawn .rev-note, .drawn .rev-note *, .drawn .rule-note, .drawn .title-block { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .plan *, .rev-note, .rev-note *, .rule-note, .title-block { animation: none !important; }
  .plan .rv, .sign b { transition: opacity 200ms ease; }
}

/* Sections: one idea each, separated by space rather than rules */

.band { position: relative; padding: var(--sec) var(--gutter); }
/* What Ferrix does and for whom, said once, large, after the exhibit */
.statement { padding-top: clamp(4rem, 9vw, 8rem); }
.statement-phone { display: none; }
.statement-text { margin: 0; max-width: 30ch; font-family: var(--display); font-stretch: 90%; font-weight: 500; font-size: clamp(1.6rem, 0.95rem + 2.3vw, 2.9rem); line-height: 1.4; letter-spacing: -0.012em; color: var(--cream); }
:lang(he) .statement-text { font-family: var(--text); font-weight: 500; letter-spacing: 0; line-height: 1.5; max-width: 32ch; }
.statement .audience { margin: 1.4rem 0 0; max-width: 44rem; font-size: 1.0625rem; }
.statement .safe { margin: 0.5rem 0 0; max-width: 44rem; font-size: 1.0625rem; color: var(--cream); }
h2 { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(2.3rem, 1.2rem + 3.2vw, 4.25rem); line-height: 1; letter-spacing: -0.018em; max-width: 18ch; }
:lang(he) h2 { font-weight: 700; letter-spacing: 0; line-height: 1.06; font-size: clamp(2.3rem, 1.2rem + 3vw, 4rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
:lang(he) h3 { font-weight: 650; font-size: 1.35rem; }

.situation h2 { max-width: 24ch; }
.sched { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.srow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0.4rem clamp(1.5rem, 4vw, 3.5rem); padding: 0; }
.srow p { margin: 0; color: var(--cream-2); max-width: 68ch; }
.srow-text p + p { margin-top: 0.8rem; }
.reach { margin: 1.4rem 0 0; max-width: 26rem; }
.reach svg { display: block; width: 100%; height: auto; }
.reach figcaption { margin-top: 0.6rem; font-size: 0.8125rem; line-height: 1.5; color: var(--cream-3); }
.plan.still * { animation: none !important; }
.plan-reach .nm { font-size: 13px; } .plan-reach .nm.sm, .plan-reach .id, .plan-reach .dm, .plan-reach .dl, .plan-reach .cap { font-size: 12px; }
/* How we work: four short commitments in two columns, title over text */
.work .sched { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2.5rem, 6vw, 6rem); row-gap: clamp(2.25rem, 4vw, 3.25rem); max-width: 68rem; }
.work .srow { display: block; }
.work .srow h3 { margin-bottom: 0.5rem; }
.notes { border: 1px solid var(--frame); padding: clamp(1.25rem, 2.6vw, 2.1rem); counter-reset: note; }
.notes-head { grid-column: 1 / -1; margin: 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--frame); font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-2); }
:lang(he) .notes-head { font-family: var(--text); font-stretch: 100%; letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.notes .srow { counter-increment: note; }
.notes .srow h3::before { content: counter(note) "."; display: inline-block; min-width: 1.4rem; font-family: "Archivo", sans-serif; font-stretch: 75%; font-weight: 650; color: var(--cream-3); }
.srow .lead-in, .srow h3 { font-family: "Archivo", sans-serif; font-stretch: 85%; font-size: 1.3rem; font-weight: 650; line-height: 1.25; color: var(--cream); }
:lang(he) .srow .lead-in, :lang(he) .srow h3 { font-family: var(--text); font-size: 1.25rem; font-weight: 650; }
.details { display: grid; gap: clamp(4rem, 8vw, 6.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2.5rem, 5vw, 5rem); align-items: start; }
.detail-exhibit > :first-child { margin-top: 0; }
.detail h3 { margin-bottom: 0.8rem; }
.detail-p { color: var(--cream-2); max-width: 38rem; }
.schedule { margin: 1.5rem 0 0; }
.schedule table { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { padding: 0.7rem 0.6rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--frame); }
.schedule thead th { padding-block: 0.45rem; border-bottom: 1px solid var(--cream-3); font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); }
:lang(he) .schedule thead th { font-family: var(--text); letter-spacing: 0; text-transform: none; font-size: 0.8rem; }
.record tbody th { font-weight: 600; white-space: nowrap; font-size: 0.9375rem; padding-inline-start: 0; }
.record td { font-size: 0.9375rem; }
.record .src { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: var(--cream-3); }
.record .src code { color: var(--cream-2); overflow-wrap: anywhere; }
.record tfoot th, .record tfoot td { color: var(--cream-2); font-size: 0.875rem; font-weight: 500; border-bottom: 1px solid var(--cream-3); padding-inline-start: 0; }
.schedule figcaption { margin-top: 0.8rem; font-size: 0.8125rem; color: var(--cream-3); max-width: 58ch; }
.schedule figcaption strong { color: var(--cream-2); font-weight: 600; }
.more-btn { margin-top: 0.6rem; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--cream); background: none; border: 1px solid var(--cream-3); min-height: 44px; padding: 0 1rem; cursor: pointer; }
.record.folded .more-rows { display: none; }
.more-btn[aria-expanded="true"] { margin-top: 0.8rem; }
.pdf-link { display: inline-block; margin-top: 0.9rem; font-size: 0.9rem; color: var(--cream-2); }
.question { margin: 1.75rem 0 0; padding: 1rem 1.1rem; border: 1px dashed var(--cream-3); }
/* A finding is settled, so its frame is solid (the open question keeps the single dashed frame) */
.finding { margin: 2rem 0 0; padding: 0; }   /* settled, so unframed; the open question keeps the one dashed frame */
.finding .f-text { margin: 0; font-size: 0.9375rem; max-width: 68ch; }
.finding .src { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--cream-3); }
.finding .src code { color: var(--cream-2); overflow-wrap: anywhere; }
.real { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0 0; font-size: 0.9375rem; color: var(--cream); }
.real .delta { margin-top: 0.22rem; }
.q-head { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.6rem; font-size: 0.8125rem; color: var(--cream-3); }
.q-label { font-weight: 650; color: var(--cream); font-size: 0.9375rem; }
:lang(he) .q-label { font-weight: 600; }
.question dl { margin: 0; display: grid; gap: 0.5rem; }
.question dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; }
.question dt { font-size: 0.8125rem; color: var(--cream-3); padding-top: 0.1rem; }
.question dd { margin: 0; font-size: 0.9375rem; }
.question figcaption { margin-top: 0.8rem; font-size: 0.8125rem; color: var(--cream-3); }
.replay { scroll-margin-top: 1.5rem; }
.replay .control { margin-bottom: 0.9rem; }
.replay .table-scroll { overflow-x: auto; }
.replay table { font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.replay th, .replay td { text-align: end; white-space: nowrap; }
.replay th:first-child, .replay td:first-child { text-align: start; }
/* Number cells are left-to-right inside the right-to-left page, so their logical start and end flip: set physical sides */
:lang(he) .replay td.num { text-align: left; }
:lang(he) .replay td.num:first-child { text-align: right; }
.replay tbody tr { transition: background-color 180ms ease; }
.replay tr.differs td { background: var(--cream-wash); font-weight: 650; }
.replay .after .dd { color: var(--signal); }
.chip { display: inline-block; padding: 0.08rem 0.5rem; border: 1px solid var(--cream-3); font-size: 0.78rem; font-weight: 600; color: var(--cream-2); }
.differs .chip { border-color: var(--cream-2); color: var(--cream); }
.replay:target { animation: locate 1400ms var(--ease-out) 1; }
@keyframes locate { 0%, 100% { outline-color: transparent; } 15% { outline: 2px solid var(--signal); outline-offset: 10px; } }
.keep-line { margin: clamp(3.5rem, 7vw, 5.5rem) 0 0; max-width: 26ch; font-family: var(--display); font-stretch: 90%; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); font-weight: 600; line-height: 1.4; }
:lang(he) .keep-line { font-family: var(--text); line-height: 1.5; }

/* Pilot: a timeline drawn like the plan; the 8-10 weeks dimensioned from access to delivery */
.pilot { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); grid-template-areas: "h seq" "h dim"; column-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.pilot h2 { grid-area: h; }
.seq { grid-area: seq; list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; position: relative; }
.seq::before { content: ""; position: absolute; top: 0.62rem; inset-inline: 0.6rem calc(33.333% - 0.6rem); height: 1px; background: var(--cream); }
.seq li { counter-increment: step; position: relative; padding: 2.1rem 1.25rem 0 0; }
:lang(he) .seq li { padding: 2.1rem 0 0 1.25rem; }
.seq li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 0; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1px solid var(--cream); border-radius: 50%; background: var(--field); font: 650 0.72rem/1 "Archivo", sans-serif; color: var(--cream); }
.seq li p { margin: 0; color: var(--cream-2); }
.seq-dim { grid-area: dim; position: relative; margin: 1.4rem 0 0; margin-inline-start: calc(33.333% + 0.62rem); margin-inline-end: calc(33.333% - 0.62rem); height: 1.6rem; border-inline: 1px solid var(--cream-2); font-family: "Archivo", sans-serif; font-stretch: 75%; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); }
.seq-dim::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--cream-2); }
.seq-dim span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 0 0.5rem; background: var(--field); white-space: nowrap; }
:lang(he) .seq-dim { font-family: var(--text); letter-spacing: 0; text-transform: none; font-size: 0.85rem; }

/* Contact: the close */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-intro p { margin-top: 1.2rem; color: var(--cream-2); font-size: 1.15rem; max-width: 30rem; }
.contact-intro .mail-alt { margin-top: 2rem; font-size: 1rem; }
/* The contact form: quiet fields on the field colour; errors in words, not colour (orange means change) */
.contact-form { display: grid; gap: 1.15rem; max-width: 36rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9375rem; color: var(--cream); }
.field input, .field textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 0.7rem 0.85rem;
  border: 1px solid var(--cream-3); border-radius: 0; background: transparent; color: var(--cream);
  font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color 150ms ease;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
:lang(he) .field input[dir="ltr"] { text-align: right; }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field textarea:hover { border-color: var(--cream-2); } }
.field input:focus, .field textarea:focus { border-color: var(--cream); outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--cream); border-width: 2px; padding: calc(0.7rem - 1px) calc(0.85rem - 1px); }
.field-error { margin: 0; font-size: 0.875rem; color: var(--cream); }
.field-error::before { content: "↳ "; color: var(--cream-2); }
:lang(he) .field-error::before { content: "↲ "; }
.privacy { margin: 0.1rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--cream-3); max-width: 34rem; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .button:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; min-height: 1.5em; font-size: 1rem; color: var(--cream); }
.form-status.is-sent { font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-target { display: none; margin: 0; font-size: 1rem; color: var(--cream); }
.cf-target:target { display: block; }

/* Footer */
.site-foot { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0.75rem 2rem; padding: 1rem var(--gutter) 1.2rem; border-top: 1px solid var(--frame); font-size: 0.875rem; color: var(--cream-3); }
.site-foot a { color: var(--cream-2); }

/* 404 */
.notfound { padding: var(--sec) var(--gutter); }
.notfound h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 1.05; margin-bottom: 1.2rem; }

/* Below desktop: the tall drawing, its notes in the flow, in reading order */
.plan-tall .nm { font-size: 12.8px; } .plan-tall .nm.sm { font-size: 10.6px; } .plan-tall .id { font-size: 10.6px; } .plan-tall .id.xs { font-size: 9px; } .plan-tall .dl.xs, .plan-tall .dm { font-size: 10.6px; } .plan-tall .cap { font-size: 9.4px; }
.plan-tall .id.dmd { font-size: 8.4px; } .plan-tall .fdl, .plan-tall .cap.fdt { font-size: 9.6px; }
@media (max-width: 75rem) {
  .hero-title { max-width: none; }
  .plan-wide { display: none; }
  .plan-phone { display: block; max-width: 30rem; margin: 3.5rem auto 0; }
  .statement-wide { display: none; }
  .statement-phone { display: block; max-width: 30rem; margin: 3.5rem auto 0; padding: 0; }
  .rev-note, .rule-note, .title-block { position: static; width: auto; max-width: 30rem; margin-inline: auto; }
  .rev-note { padding: 0.9rem 0 0; }
  .rule-note { margin-top: 1.4rem; font-size: 0.9375rem; }
  /* The comparison comes right after the headline on phones: no wait for the drawing, the digit changes early */
  .rev-note { animation: none; }
  .rev-note .sign b { animation-delay: 450ms; }
  .rev-note .dd { animation-delay: 500ms; }
  .rev-note .verdict, .rev-note .verdict-note { animation: appear 300ms ease-out 500ms backwards; }   /* the verdict arrives with the changed digit */
  .title-block { margin-top: 1.25rem; }
  .detail-toggle { margin: 0.5rem auto 0; max-width: 30rem; width: 100%; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: minmax(0, 1fr); }
  .work .sched { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .pilot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "seq" "dim"; }
  .seq { grid-template-columns: minmax(0, 1fr); margin-top: 1.75rem; }
  .seq::before { top: 0.6rem; bottom: 0.6rem; inset-inline: 0.62rem auto; width: 1px; height: auto; }
  .seq li { padding: 0 0 1.4rem 2.2rem; }
  :lang(he) .seq li { padding: 0 2.2rem 1.4rem 0; }
  .seq-dim { margin-inline: 2.2rem 0; }
  .site-foot { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 40rem) {
  /* The first phone screen is the headline and the comparison; what follows starts past the fold */
  .statement-phone { margin-top: clamp(2.5rem, 100svh - 31rem, 14rem); }
  .head-row { padding-block: 0.6rem; }
  .brand svg { height: 1.3rem; }
  .head-links { gap: 0 0.9rem; }
  .head-cta { padding: 0 0.85rem; font-size: 0.875rem !important; }
  .hero { padding-top: 0.75rem; }
  .h1a { font-size: 2.3rem; }
  .h1b { font-size: 1.2rem; }
  :lang(he) .h1a { font-size: 2.45rem; }
  .hero-title .audience { font-size: 0.9375rem; margin-top: 0.55rem; }
  .plan-fig { margin-top: 1rem; }
  .rev-note { padding-top: 0.6rem; }
  .rn-head { margin-bottom: 0.3rem; font-size: 0.75rem; letter-spacing: 0.05em; }   /* one line beside the tag */
  .rn-head .tag { font-size: 0.625rem; }
  .question dl > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .record thead { display: none; }
  .record tr { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--frame); padding-block: 0.6rem; }
  .record th, .record td { border: 0; padding: 0.15rem 0; }
  .record tfoot tr { grid-template-columns: auto auto; justify-content: space-between; }
  .replay table { font-size: 0.875rem; }
  .replay th, .replay td { padding-inline: 0.3rem; }
  .record tfoot th, .record tfoot td { border: 0; padding: 0.15rem 0; }
  .site-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 24rem) {
  .replay table { font-size: 0.78rem; }
  .replay th, .replay td { padding-inline: 0.18rem; }
  .replay td:first-child { white-space: normal; }
  .chip { padding: 0.05rem 0.3rem; }
}
/* At 320px the replay table fits without sideways scrolling: tighter heads, cells and chips */
@media (max-width: 22.5rem) {
  .rn-code { font-size: clamp(0.625rem, 3.05vw, 0.6875rem); }   /* the code line fits the card down to 320px */
  .replay table { font-size: 0.75rem; }
  .replay thead th { letter-spacing: 0.03em; }
  .replay th, .replay td { padding-inline: 0.12rem; }
  .replay .chip { padding: 0.04rem 0.22rem; font-size: 0.7rem; }
}
