/* ============================================================================================
   Quiet - Direction A "Archive"
   The film's paper-and-archive world on the page. Tokens first (deck primitives, one radius, two
   shadows, a written motion system), then the page in P-5 order. Every motion rule lives inside
   @media (prefers-reduced-motion: no-preference); the default styles are the static end state.
   ============================================================================================ */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  /* deck primitives (C-01) */
  --counsel-900: #0F241F; --counsel-800: #163028; --counsel-700: #1F3B34;
  --counsel-600: #2C4F46; --counsel-500: #3E665C; --counsel-300: #8AADA3;
  --counsel-100: #E7EFEB; --counsel-050: #F3F7F5;
  --ink: #0F241F; --muted: #4A5A56;
  --paper: #F5F2EC; --paper-2: #EEE9DE; --card: #FBF9F5;
  --hair: #E2DDD0; --hair-2: #C9C3B4;
  --dark-fg: #F3F7F5; --dark-fg-muted: #9DBBB2; --dark-line: #24413A; --dark-line-strong: #2F544B; --dark-quote-bg: #132723;
  /* the film's single warm accent */
  --stamp: #B8322A;
  --fg-muted: var(--muted); /* used by the approved .tm-caption rule */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* type scale */
  --fs-display: clamp(46px, 5.4vw + 10px, 88px);
  --fs-h2: clamp(34px, 2.4vw + 12px, 54px);
  --fs-h3: 23px;
  --fs-narr: clamp(22px, 1.3vw + 9px, 30px);
  --fs-body: 17px;
  --fs-mono: 11.5px;

  /* visual system: one radius, two shadow levels */
  --r: 4px;
  --shadow-1: 0 1px 2px rgba(15, 36, 31, 0.06), 0 2px 8px rgba(15, 36, 31, 0.05);
  --shadow-2: 0 2px 6px rgba(15, 36, 31, 0.06), 0 28px 56px -16px rgba(15, 36, 31, 0.22);

  /* motion system */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-move: cubic-bezier(.32, .72, 0, 1);
  --dur-1: 150ms; --dur-2: 240ms; --dur-3: 400ms;

  --max: 1160px; --max-wide: 1400px; --gutter: 32px;
  --bleed: clamp(0px, 8vw, 120px);
  --nav-h: 64px;

  /* the paper: dot grid drawn in CSS + a faint ink grain (one 240px SVG tile, rasterised once) */
  --dots: radial-gradient(circle, rgba(15, 36, 31, 0.13) 1px, transparent 1.4px);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .06  0 0 0 0 .14  0 0 0 0 .12  0 0 0 .07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain), var(--dots);
  background-size: 240px 240px, 32px 32px;
  background-position: 0 0, 16px 16px;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible { outline-color: var(--dark-fg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--max-wide); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--paper); border-radius: var(--r); }
.skip:focus { top: 12px; }

/* below-fold sections render lazily.
   WS-15 F-1: contain-intrinsic-size placeholders are tuned per section so cold fragment
   navigation (direct #hash URLs, nav clicks arriving from other pages) scrolls against
   accurate placeholder layout. The smooth-scroll destination is computed while sections
   are still skipped and is not re-anchored after they render, so placeholder layout must
   equal rendered layout. Note contain-intrinsic-size sets the SKIPPED CONTENT size; the
   section's own vertical padding and border are added on top of it, so each value below
   is the content height: rendered border-box height minus vertical padding and border,
   rounded to the nearest 10px. Measured via CDP at 1440x900 (base rules) and 390x844
   (the max-width 900px block below); re-derive with _build/qa/f1_anchors.py (phases:
   sections, probe) if section content or padding changes. */
.why, .day-section, .arch, .integrations, .tasks, .pilot, .wir-tenant, .wir-spec, .wir-regulatory, .wir-setup, .wir-faq, footer { content-visibility: auto; }
.why { contain-intrinsic-size: auto 1470px; }            /* 1586 box minus 112 pad, at 1440 */
.day-section { contain-intrinsic-size: auto 6500px; }    /* 6689 box minus 192 pad, at 1440 */
.arch { contain-intrinsic-size: auto 1320px; }           /* 1528 box minus 208 pad, at 1440 */
.integrations { contain-intrinsic-size: auto 420px; }    /* 644 box minus 224 pad, at 1440 */
.tasks { contain-intrinsic-size: auto 890px; }           /* 1112 box minus 224 pad, at 1440 */
.pilot { contain-intrinsic-size: auto 880px; }           /* 1117 box minus 240 pad, at 1440 (Home) */
.contact + .pilot { contain-intrinsic-size: auto 490px; } /* contact's shorter pilot: 707 box minus 216 pad, at 1440 */
.wir-tenant { contain-intrinsic-size: auto 520px; }      /* 700 box minus 176 pad, at 1440 */
.wir-spec { contain-intrinsic-size: auto 1250px; }       /* 1407 box minus 160 pad, at 1440 */
.wir-regulatory { contain-intrinsic-size: auto 690px; }  /* 852 box minus 160 pad, at 1440 */
.wir-setup { contain-intrinsic-size: auto 450px; }       /* 595 box minus 144 pad, at 1440 */
.wir-faq { contain-intrinsic-size: auto 2000px; }        /* 2205 box minus 208 pad, at 1440 */
footer { contain-intrinsic-size: auto 570px; }           /* 708 box minus 137 pad, at 1440, same on all five pages */
@media (max-width: 900px) {
  .why { contain-intrinsic-size: auto 2120px; }            /* 2203 box minus 80 pad, at 390 */
  .day-section { contain-intrinsic-size: auto 5920px; }    /* 6042 box minus 120 pad, at 390 */
  .arch { contain-intrinsic-size: auto 2100px; }           /* 2253 box minus 152 pad, at 390 */
  .integrations { contain-intrinsic-size: auto 750px; }    /* 907 box minus 160 pad, at 390 */
  .tasks { contain-intrinsic-size: auto 1570px; }          /* 1732 box minus 160 pad, at 390 */
  .pilot { contain-intrinsic-size: auto 1810px; }          /* 1965 box minus 160 pad, at 390 (Home) */
  .contact + .pilot { contain-intrinsic-size: auto 1080px; } /* contact's shorter pilot: 1222 box minus 144 pad, at 390 */
  .wir-tenant { contain-intrinsic-size: auto 790px; }      /* 922 box minus 128 pad, at 390 */
  .wir-spec { contain-intrinsic-size: auto 1860px; }       /* 1967 box minus 112 pad, at 390 */
  .wir-regulatory { contain-intrinsic-size: auto 890px; }  /* 998 box minus 112 pad, at 390 */
  .wir-setup { contain-intrinsic-size: auto 660px; }       /* 757 box minus 96 pad, at 390 */
  .wir-faq { contain-intrinsic-size: auto 2760px; }        /* 2908 box minus 152 pad, at 390 */
  footer { contain-intrinsic-size: auto 730px; }           /* 845 box minus 113 pad, at 390, same on all five pages */
}

main > section { position: relative; overflow-x: clip; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 380; font-optical-sizing: auto; font-variation-settings: "SOFT" 20, "WONK" 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-display); font-weight: 360; line-height: 1.0; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.06; margin-bottom: 22px; }
h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.008em; }
p { color: var(--muted); text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
.lede { font-size: 19px; line-height: 1.55; max-width: 620px; }
.mono, .eyebrow, .figcap, .fig, .proof, .step-meta, .day-index .t, .t-mono, .wk, .tc-label, .engine-tag, .price-tier, .price-badge, .tab-index-head, .footer-nav a, .privacy {
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.06em; font-weight: 500;
}
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.14em; color: var(--counsel-500); margin-bottom: 26px; }
.eyebrow em { font-style: italic; color: var(--ink); }
.eyebrow-sep { margin: 0 12px; color: var(--hair-2); }
.fig { text-transform: uppercase; letter-spacing: 0.12em; color: var(--counsel-500); }
.fig::after { content: "\00B7"; margin: 0 12px; color: var(--hair-2); }
.figcap { display: block; color: var(--muted); letter-spacing: 0.02em; line-height: 1.5; margin-top: 16px; max-width: 64ch; }
.figcap--dark { color: var(--dark-fg-muted); }
.figcap--dark .fig { color: var(--counsel-300); }
.figcap--dark .fig::after { color: var(--dark-line-strong); }

/* ---------- controls: hover = colour/opacity only ---------- */
.btn { display: inline-block; padding: 14px 24px; border-radius: var(--r); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--counsel-700); border-color: var(--counsel-700); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link-arrow span { color: var(--counsel-500); text-decoration: none; }
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow--dark { color: var(--dark-fg); text-decoration-color: var(--dark-line-strong); }
.link-arrow--dark span { color: var(--counsel-300); }
.link-arrow--dark:hover { text-decoration-color: var(--dark-fg); }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- the stamp (Filed / Urgent / Due) ---------- */
.stamp {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); border-radius: 3px; padding: 5px 9px 4px; line-height: 1;
  transform: rotate(-7deg); opacity: 0.9; filter: url(#rough); pointer-events: none; white-space: nowrap;
}

/* cut-paper / engraved crops of the storyboard (true alpha, made by assets/_make_assets.py) */
.cut { pointer-events: none; user-select: none; }

/* ---------- NAV ---------- */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 242, 236, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.nav-inner { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: -0.025em; color: var(--ink); font-optical-sizing: auto; }
.logo span, .footer-wordmark span { color: var(--counsel-500); }
nav.links { display: flex; align-items: center; gap: 28px; }
nav.links a { font-size: 14px; color: var(--muted); }
nav.links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 9px 16px; border-radius: var(--r); font-weight: 600; font-size: 13.5px; }
.nav-cta:hover { background: var(--counsel-700); }
.nav-toggle { display: none; }

/* ---------- 1 · HERO ---------- */
.hero { padding: 64px 0 104px; }
.hero h1 { max-width: 14.5ch; margin-top: 6px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: end; margin-top: 56px; }
.hero-copy { padding-bottom: 36px; }
.hero-subhead { font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1.38; color: var(--ink); font-optical-sizing: auto; text-wrap: pretty; }
.hero-subhead a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--counsel-300); }
.hero-subhead a:hover { text-decoration-color: var(--ink); }
.hero-lede { margin: 20px 0 30px; font-size: 17px; max-width: 46ch; }
.proof { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 36px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--hair-2); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.proof li { position: relative; padding-left: 16px; }
.proof li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 6px; height: 6px; background: var(--counsel-500); border-radius: 1px; }

.animatic { position: relative; width: calc(100% + var(--bleed)); }
.animatic-frame { position: relative; }
.animatic-stage {
  position: relative; aspect-ratio: 1600 / 860; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--hair-2); box-shadow: var(--shadow-2);
  background: #F0E8DA url("assets/frame-1.webp") center / cover no-repeat;
}
.af { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.af-4 { opacity: 1; } /* static end state: the Q tile (frame 4) */
.film-btn {
  position: absolute; left: 18px; bottom: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 14px 10px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--hair-2); border-radius: var(--r);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-1);
}
.film-btn:hover { background: #FFFDF8; border-color: var(--ink); }
.film-btn .ic { width: 14px; height: 14px; fill: var(--stamp); }
.film-btn .dot { color: var(--hair-2); }
.cut-hero-a { position: absolute; z-index: 2; width: 160px; height: auto; top: -56px; left: -40px; transform: rotate(-9deg); }
.cut-hero-b { position: absolute; z-index: 2; width: 176px; height: auto; bottom: 12px; right: -60px; transform: rotate(7deg); }
.animatic .figcap { margin-top: 18px; }

/* ---------- 2 · WHY (paper-2) ---------- */
.section-paper-2 { background-color: var(--paper-2); background-image: var(--grain), radial-gradient(circle, rgba(15, 36, 31, 0.15) 1px, transparent 1.4px); background-size: 240px 240px, 32px 32px; background-position: 0 0, 16px 16px; }
.why { padding: 112px 0 0; }
.why-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.why-intro h2 { margin-bottom: 0; }
.pg-subhead { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.38; color: var(--ink); font-optical-sizing: auto; margin-bottom: 18px; }
.pg-para { font-size: 16.5px; max-width: 48ch; }
.why-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; margin-top: 72px; align-items: start; }
.why-left { grid-column: 1; grid-row: 1; }
.problem-points { border-top: 1px solid var(--hair-2); }
.problem-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--hair-2); }
.pp-num { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.1em; color: var(--counsel-500); padding-top: 6px; }
.pp-body strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.25; color: var(--ink); margin-bottom: 6px; font-optical-sizing: auto; }
.pp-body span { font-size: 15.5px; color: var(--muted); }
.pull-line { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.32; color: var(--ink); margin-top: 32px; max-width: 30ch; font-optical-sizing: auto; }
.arithmetic { grid-column: 1; grid-row: 2; max-width: 460px; background: var(--ink); color: var(--dark-fg); border-radius: var(--r); padding: 28px 30px 24px; margin-bottom: 112px; box-shadow: var(--shadow-2); }
.arithmetic .label { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--counsel-300); margin-bottom: 18px; }
.arithmetic-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--dark-line); font-size: 14.5px; color: var(--dark-fg-muted); }
.arithmetic-row span:last-child { font-family: var(--serif); font-size: 17px; color: var(--dark-fg); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.arithmetic-total { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--dark-line-strong); }
.at-label { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-fg-muted); margin-bottom: 8px; }
.at-value { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--dark-fg); font-variant-numeric: tabular-nums lining-nums; }
.arithmetic .footnote { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--dark-line); font-size: 11px; line-height: 1.5; color: var(--dark-fg-muted); }
.heap { grid-column: 2; grid-row: 1 / span 2; align-self: end; position: relative; margin-right: calc(-1 * var(--bleed)); padding-top: 24px; }
.heap-img { width: 100%; height: auto; }
.cut-court { position: absolute; width: 220px; height: auto; top: -20px; left: 4%; transform: rotate(-6deg); }
.heap .figcap { position: absolute; right: calc(var(--bleed) + 8px); top: 12px; max-width: 30ch; text-align: right; }

/* ---------- 3 · ONE DAY WITH QUIET ---------- */
.day-section { padding: 120px 0 72px; }
.day { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 0 72px; margin-top: 64px; align-items: start; }
.day-index { position: sticky; top: calc(var(--nav-h) + 28px); }
.day-index ol { border-left: 2px dotted var(--hair-2); }
.day-index a { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: baseline; padding: 11px 0 11px 22px; color: var(--muted); }
.day-index a::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: var(--paper); border: 1.5px solid var(--hair-2); border-radius: 2px; }
.day-index a .t { color: var(--counsel-500); letter-spacing: 0.1em; }
.day-index a .l { font-size: 15px; }
.day-index a:hover { color: var(--ink); }
.day-index a[aria-current="true"] { color: var(--ink); }
.day-index a[aria-current="true"]::before { background: var(--ink); border-color: var(--ink); }
.day-index a[aria-current="true"] .t { color: var(--ink); }
.day-index a[aria-current="true"] .l { font-weight: 600; }

.step { padding: 44px 0 80px; border-top: 1px dotted var(--hair-2); }
.step-meta { display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--counsel-500); }
.step-meta .fig::after { content: none; }
.narr { font-family: var(--serif); font-size: var(--fs-narr); font-weight: 380; line-height: 1.24; letter-spacing: -0.01em; color: var(--ink); max-width: 32ch; margin-top: 22px; font-optical-sizing: auto; font-variation-settings: "SOFT" 20, "WONK" 0; }
.step-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; margin-top: 28px; max-width: 820px; }
.feat-title { font-size: var(--fs-h3); }
.feat-desc { font-size: 15.5px; line-height: 1.6; }
.feat-desc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); color: var(--ink); }
.feat-desc a:hover { text-decoration-color: var(--ink); }

/* plates: the approved mocks at near-1:1 Teams scale (zoom keeps text crisp and in flow) */
.plate { position: relative; margin-top: 40px; --zoom: 1.3; --mock-w: 440px; }
.plate--wide { --zoom: 1.4; --mock-w: 540px; }
.plate .mock { width: 100%; }
.plate .tm-wrap { zoom: var(--zoom); align-items: flex-start; }
.plate .tm-caption { text-align: left; font-family: var(--mono); font-style: normal; font-size: calc(11.5px / var(--zoom)); letter-spacing: 0.04em; color: var(--muted); margin-top: 12px; }
.stamp--plate { position: absolute; z-index: 2; top: -18px; left: calc(var(--mock-w) * var(--zoom) - 64px); }
.cut-folder { position: absolute; z-index: 2; width: 200px; height: auto; left: calc(var(--mock-w) * var(--zoom) + 40px); bottom: 36px; }

/* the Task plate: what a Task produces, drawn as a paper document */
.plate--doc .doc { position: relative; max-width: 660px; background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 26px 30px 22px; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; text-transform: uppercase; color: var(--counsel-500); padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.doc-title { font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.15; margin-top: 18px; color: var(--ink); font-optical-sizing: auto; }
.doc-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 18px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc-table td { padding: 9px 0; border-top: 1px solid var(--hair); vertical-align: top; color: var(--ink); }
.doc-table td:first-child { width: 64px; color: var(--counsel-500); white-space: nowrap; }
.doc-table td:last-child { width: 48px; text-align: right; color: var(--muted); white-space: nowrap; }
.doc-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); color: var(--muted); }
.stamp--doc { position: absolute; top: 64px; right: 30px; transform: rotate(9deg); }

/* ---------- 4 · WHERE IT RUNS (the one dark section) ---------- */
.section-dark { background-color: var(--ink); color: var(--dark-fg); background-image: radial-gradient(circle, rgba(243, 247, 245, 0.09) 1px, transparent 1.4px); background-size: 32px 32px; background-position: 16px 16px; }
.section-dark p { color: var(--dark-fg-muted); }
.section-dark .eyebrow { color: var(--counsel-300); }
.arch { padding: 112px 0 96px; }
.arch-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.arch-left h2 { color: var(--dark-fg); }
.arch-lede { font-size: 17px; max-width: 40ch; margin-bottom: 28px; }
.tenant { margin-top: 8px; }
.tenant-svg { width: 100%; height: auto; }
.t-boundary { fill: rgba(243, 247, 245, 0.025); stroke: var(--counsel-300); stroke-width: 1.2; stroke-dasharray: 5 5; }
.t-node { fill: rgba(243, 247, 245, 0.04); stroke: var(--dark-line-strong); stroke-width: 1; }
.t-ghost { fill: none; stroke: var(--dark-line); stroke-width: 1; stroke-dasharray: 2 4; }
.t-glyph { fill: none; stroke: var(--counsel-300); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.t-label { font-family: var(--serif); font-size: 15px; fill: var(--dark-fg); }
.t-label--c, .t-sub--c { text-anchor: middle; }
.t-sub { font-family: var(--sans); font-size: 10.5px; fill: var(--dark-fg-muted); }
.t-sub--ghost { fill: #7D9A91; }
.t-mono { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--counsel-300); }
.t-mono--boundary { font-size: 10.5px; }
.t-mono--flow { text-anchor: middle; fill: var(--dark-fg-muted); letter-spacing: 0.1em; }
.t-flow { fill: none; stroke: var(--dark-fg-muted); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.t-arrhead { fill: var(--dark-fg-muted); }
.arch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 80px; border-top: 1px solid var(--dark-line); }
.arch-item { padding: 22px 0 24px; border-bottom: 1px solid var(--dark-line); }
.arch-item dt { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.25; color: var(--dark-fg); margin-bottom: 8px; font-optical-sizing: auto; }
.arch-item dt .fig { font-family: var(--mono); font-size: var(--fs-mono); color: var(--counsel-300); vertical-align: 3px; }
.arch-item dt .fig::after { color: var(--dark-line-strong); }
.arch-item dd { font-size: 15px; line-height: 1.6; color: var(--dark-fg-muted); max-width: 52ch; }
.callout { margin-top: 56px; max-width: 860px; padding: 26px 32px 28px; border-left: 2px solid var(--counsel-300); background: var(--dark-quote-bg); border-radius: 0 var(--r) var(--r) 0; }
.callout p { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--dark-fg); font-optical-sizing: auto; margin-bottom: 18px; }
.callout .link-arrow { color: var(--dark-fg); text-decoration-color: var(--dark-line-strong); }
.callout .link-arrow span { color: var(--counsel-300); }
.callout .link-arrow:hover { text-decoration-color: var(--dark-fg); }

/* ---------- 5 · WORKS WITH YOUR SYSTEMS (the map) ---------- */
.integrations { padding: 112px 0; }
.int-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.int-copy .lede { margin-bottom: 28px; }
.figcap--inline { margin-top: 0; }
.map-inner { position: relative; padding-left: 224px; max-width: 560px; margin-left: auto; }
.map-q { position: absolute; left: 0; top: 50%; width: 92px; height: 92px; margin-top: -46px; filter: drop-shadow(0 12px 20px rgba(15, 36, 31, 0.22)); }
.map-inner::before { content: ""; position: absolute; left: 100px; top: 50%; width: 80px; border-top: 2px dotted var(--hair-2); }
.spokes { position: relative; }
.spokes::before { content: ""; position: absolute; left: -44px; top: 30px; bottom: 30px; border-left: 2px dotted var(--hair-2); }
.spokes li { position: relative; display: flex; align-items: center; gap: 16px; height: 60px; padding-left: 44px; border-bottom: 1px solid var(--hair); }
.spokes li:last-child { border-bottom: 0; }
.spokes li::before { content: ""; position: absolute; left: -44px; top: 50%; width: 70px; border-top: 2px dotted var(--hair-2); }
.spokes li::after { content: ""; position: absolute; left: 26px; top: 50%; margin-top: -4.5px; border: 4.5px solid transparent; border-left: 7px solid var(--ink); }
.spokes img { height: 22px; width: auto; max-width: 130px; }
.spokes span { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: auto; }

/* ---------- 6 · TASKS LIBRARY (plates, CSS-only practice-area index) ---------- */
.tasks { padding: 112px 0; }
.tabs { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 64px; margin-top: 64px; align-items: start; }
.tabs input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-index-head { text-transform: uppercase; letter-spacing: 0.14em; color: var(--counsel-500); padding-bottom: 12px; border-bottom: 1px solid var(--hair-2); }
.tab-index label { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: baseline; padding: 13px 0; border-bottom: 1px dotted var(--hair-2); font-size: 15px; color: var(--muted); cursor: pointer; }
.tab-index label .fig::after { content: none; }
.tab-index label:hover { color: var(--ink); }
#tab-lit:checked ~ .tab-index label[for="tab-lit"],
#tab-corp:checked ~ .tab-index label[for="tab-corp"],
#tab-re:checked ~ .tab-index label[for="tab-re"],
#tab-ins:checked ~ .tab-index label[for="tab-ins"],
#tab-bank:checked ~ .tab-index label[for="tab-bank"] { color: var(--ink); font-weight: 600; }
#tab-lit:checked ~ .tab-index label[for="tab-lit"] .fig,
#tab-corp:checked ~ .tab-index label[for="tab-corp"] .fig,
#tab-re:checked ~ .tab-index label[for="tab-re"] .fig,
#tab-ins:checked ~ .tab-index label[for="tab-ins"] .fig,
#tab-bank:checked ~ .tab-index label[for="tab-bank"] .fig { color: var(--stamp); }
#tab-lit:focus-visible ~ .tab-index label[for="tab-lit"],
#tab-corp:focus-visible ~ .tab-index label[for="tab-corp"],
#tab-re:focus-visible ~ .tab-index label[for="tab-re"],
#tab-ins:focus-visible ~ .tab-index label[for="tab-ins"],
#tab-bank:focus-visible ~ .tab-index label[for="tab-bank"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.tab-panels .panel { display: none; }
#tab-lit:checked ~ .tab-panels .panel-lit,
#tab-corp:checked ~ .tab-panels .panel-corp,
#tab-re:checked ~ .tab-panels .panel-re,
#tab-ins:checked ~ .tab-panels .panel-ins,
#tab-bank:checked ~ .tab-panels .panel-bank { display: block; }
.task-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.task-card { background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 22px 26px 18px; }
.task-card:nth-child(2) { margin-top: 48px; }
.task-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); text-transform: uppercase; color: var(--counsel-500); }
.engine-tag { color: var(--muted); border: 1px solid var(--hair-2); border-radius: 2px; padding: 3px 7px 2px; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; }
.task-card .task-name { font-size: 24px; margin: 18px 0 10px; }
.tc-row { padding: 12px 0; border-top: 1px solid var(--hair); }
.tc-row:first-of-type { border-top: 0; }
.tc-row p { font-size: 14.5px; line-height: 1.55; }
.tc-label { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 5px; }
.tc-row.with .tc-label { color: var(--counsel-500); }
.tasks-close { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair-2); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.tasks-close p { max-width: 56ch; }

/* ---------- 7 · PILOT & PRICING ---------- */
.pilot { padding: 112px 0 128px; }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 20px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); }
.pilot-copy { margin: 0 0 30px; max-width: 44ch; font-size: 17px; }
.candour { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair-2); max-width: 560px; }
.candour-lead { font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--ink); font-optical-sizing: auto; margin-bottom: 18px; }
.weeks li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px dotted var(--hair-2); font-size: 15px; color: var(--muted); }
.weeks li:last-child { border-bottom: 1px dotted var(--hair-2); }
.wk { color: var(--counsel-500); letter-spacing: 0.12em; text-transform: uppercase; padding-top: 4px; }
.weeks strong { display: inline; }
.candour-foot { margin-top: 16px; font-size: 15px; }
.pilot-right { position: relative; padding-top: 44px; }
.pilot-pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.price-tile { position: relative; background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r); padding: 26px 24px 22px; box-shadow: var(--shadow-1); }
.price-tile.featured { border-color: var(--ink); box-shadow: var(--shadow-2); }
.price-badge { position: absolute; top: -11px; left: 20px; background: var(--ink); color: var(--paper); text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 8px 3px; border-radius: 2px; font-size: 10.5px; }
.price-tier { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.price-tile.featured .price-tier { color: var(--counsel-500); }
.price-amount { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink); margin-bottom: 12px; font-variant-numeric: lining-nums; font-optical-sizing: auto; }
.price-amount span { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.price-note { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.dp-list { margin-top: 32px; max-width: 420px; }
.dp-list li { padding: 16px 0; border-top: 1px solid var(--hair); font-size: 15px; color: var(--muted); }
.dp-list li:first-child { border-top: 0; }
.cut-folders { position: absolute; right: -8px; top: 236px; width: 132px; height: auto; }

/* ---------- 8 · FOOTER ---------- */
footer { padding: 96px 0 40px; border-top: 1px solid var(--hair-2); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid var(--hair); }
.footer-talk { max-width: 480px; }
.footer-talk h2 { margin-bottom: 28px; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; padding-left: 28px; border-left: 2px dotted var(--hair-2); }
.footer-nav a { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-brand-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.footer-wordmark { display: block; font-family: var(--serif); font-weight: 380; font-size: clamp(80px, 15vw, 220px); line-height: 0.86; letter-spacing: -0.035em; color: var(--ink); font-optical-sizing: auto; font-variation-settings: "SOFT" 20, "WONK" 0; }
.footer-meta { text-align: right; }
.copyright { font-size: 13px; }
.privacy { margin-top: 8px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--counsel-500); }
.footer-trademark { font-size: 12.5px; line-height: 1.5; max-width: 760px; margin-top: 24px; }

/* ---------- the film lightbox ---------- */
dialog.film { border: 0; padding: 0; background: transparent; width: min(760px, calc(100vw - 32px)); max-width: none; margin: auto; }
dialog.film::backdrop { background: rgba(15, 36, 31, 0.6); }
.film-inner { position: relative; background-color: var(--paper); background-image: var(--grain), var(--dots); background-size: 240px 240px, 32px 32px; border: 1px solid var(--hair-2); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 36px 40px 40px; }
.film-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--hair-2); border-radius: var(--r); background: var(--paper); }
.film-close:hover { border-color: var(--ink); }
.film-close .ic { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.film-h { font-size: 34px; margin-bottom: 12px; }
.film-p { max-width: 52ch; margin-bottom: 26px; }
.film-poster .tm-wrap { zoom: 1.15; align-items: flex-start; }
.film-poster .tm-caption { text-align: left; font-family: var(--mono); font-style: normal; font-size: 9px; letter-spacing: 0.04em; margin-top: 12px; }

/* ============================================================================================
   MOTION - the written system. Nothing below runs when the reader prefers reduced motion.
   ============================================================================================ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* colour/opacity transitions only */
  a, .btn, .nav-cta, .film-btn, .film-close, .tab-index label, .day-index a, .day-index a::before, .spokes img { transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out); }

  /* the hero animatic: five frames, 3.5 s each, 0.7 s dissolves, silent */
  @keyframes af { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
  .af { animation: af 17.5s linear infinite; }
  .af-1 { animation-delay: 0s; } .af-2 { animation-delay: 3.5s; } .af-3 { animation-delay: 7s; } .af-4 { animation-delay: 10.5s; } .af-5 { animation-delay: 14s; }

  /* hero entrance: a staggered rise from the page's static end state */
  .hero .eyebrow, .hero h1, .hero-copy > *, .animatic { transition: opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .hero .eyebrow { --i: 0; } .hero h1 { --i: 1; } .hero-subhead { --i: 2; } .hero-lede { --i: 3; } .hero .cta-row { --i: 4; } .proof { --i: 5; } .animatic { --i: 3; }
  @starting-style { .hero .eyebrow, .hero h1, .hero-copy > *, .animatic { opacity: 0; translate: 0 10px; } }

  /* the tenant figure's dotted flows move */
  @keyframes flow { to { stroke-dashoffset: -14; } }
  .t-flow { animation: flow 1.6s linear infinite; }

  /* scroll-linked rises are scrubbed, never threshold-triggered - enhancement only */
  @supports (animation-timeline: view()) {
    @keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
    .plate, .heap, .task-card, .price-tile, .tenant, .map, .candour { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 32%; }
  }

  /* lightbox */
  dialog.film[open] { transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out); }
  @starting-style { dialog.film[open] { opacity: 0; translate: 0 8px; } }
}

/* ============================================================================================
   RESPONSIVE - 1440 desktop · 1750-tall monitors · 1024 tablet · 390 phone
   ============================================================================================ */
@media (min-width: 1600px) {
  .plate { --zoom: 1.5; }
  .plate--wide { --zoom: 1.55; }
  .hero { padding-top: 88px; }
}
@media (max-width: 1240px) {
  .day { grid-template-columns: 196px minmax(0, 1fr); gap: 0 48px; }
  .plate { --zoom: 1.15; }
  .plate--wide { --zoom: 1.2; }
  .cut-folder { display: none; }
  .tabs { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .map-inner { padding-left: 176px; }
  .map-inner::before { left: 100px; width: 40px; }
}
@media (max-width: 1080px) {
  .hero-grid { gap: 40px; }
  .arch-grid { grid-template-columns: 1fr; gap: 40px; }
  .arch-lede { max-width: 56ch; }
  .int-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-inner { margin-left: 0; }
  .pilot-grid { gap: 48px; }
  .cut-folders { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  nav.links { display: none; }
  nav.links.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--hair); }
  .nav-toggle { display: block; border: 1px solid var(--hair-2); border-radius: var(--r); padding: 7px 12px; font-size: 13px; }
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .hero-copy { padding-bottom: 0; }
  .animatic { width: calc(100% + var(--gutter)); }
  .why { padding-top: 80px; }
  .why-intro { grid-template-columns: 1fr; gap: 24px; }
  .why-body { grid-template-columns: 1fr; margin-top: 48px; gap: 32px; }
  .why-left { grid-column: 1; grid-row: 1; }
  .heap { grid-column: 1; grid-row: 2; margin-right: calc(-1 * var(--gutter)); }
  .heap .figcap { position: static; margin-top: -8px; padding-bottom: 8px; }
  .arithmetic { grid-column: 1; grid-row: 3; max-width: none; margin-bottom: 72px; }
  .day-section { padding: 80px 0 40px; }
  .day { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 40px; }
  .day-index { top: var(--nav-h); z-index: 5; background: rgba(245, 242, 236, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); border-bottom: 1px solid var(--hair); }
  .day-index ol { display: flex; gap: 4px; overflow-x: auto; border-left: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .day-index ol::-webkit-scrollbar { display: none; }
  .day-index a { display: block; padding: 12px 10px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
  .day-index a::before { display: none; }
  .day-index a .l { display: none; }
  .day-index a[aria-current="true"] { border-bottom-color: var(--ink); }
  .step { padding: 32px 0 56px; }
  .step-copy { grid-template-columns: 1fr; gap: 8px; }
  .plate { --zoom: 1; margin-top: 28px; }
  .plate--wide { --zoom: 1.15; }
  .arch { padding: 80px 0 72px; }
  .arch-list { grid-template-columns: 1fr; margin-top: 56px; }
  .integrations, .tasks, .pilot { padding: 80px 0; }
  .tabs { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .tab-index { display: flex; flex-wrap: wrap; gap: 8px; }
  .tab-index-head { width: 100%; border-bottom: 0; padding-bottom: 4px; }
  .tab-index label { display: inline-flex; gap: 8px; padding: 8px 12px; border: 1px solid var(--hair-2); border-radius: var(--r); font-size: 14px; }
  .tab-index label .fig { display: none; }
  #tab-lit:checked ~ .tab-index label[for="tab-lit"],
  #tab-corp:checked ~ .tab-index label[for="tab-corp"],
  #tab-re:checked ~ .tab-index label[for="tab-re"],
  #tab-ins:checked ~ .tab-index label[for="tab-ins"],
  #tab-bank:checked ~ .tab-index label[for="tab-bank"] { border-color: var(--ink); background: var(--card); }
  .task-grid { grid-template-columns: 1fr; gap: 20px; }
  .task-card:nth-child(2) { margin-top: 0; }
  .pilot-grid { grid-template-columns: 1fr; gap: 40px; }
  .pilot-right { padding-top: 12px; }
  .footer-nav { padding-left: 0; border-left: 0; flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .footer-brand-row { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .footer-wordmark { font-size: clamp(64px, 20vw, 120px); }
  footer { padding-top: 72px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero h1 { max-width: none; }
  .hero-subhead { font-size: 20px; }
  .cta-row { gap: 18px; }
  .btn { width: 100%; }
  .proof { grid-template-columns: 1fr; gap: 8px; }
  .cut-hero-a, .cut-hero-b { display: none; }
  .film-btn { left: 12px; bottom: 12px; padding: 8px 12px 8px 10px; font-size: 12px; }
  .cut-court { width: 150px; }
  .why-body { gap: 24px; }
  .plate { --zoom: 1; }
  .plate--wide { --zoom: 0.78; }
  .stamp--plate { left: auto; right: 8px; }
  .plate--doc .doc { padding: 20px 18px 16px; }
  .doc-title { font-size: 22px; }
  .doc-table td:last-child { display: none; }
  .map-inner { padding-left: 96px; max-width: none; }
  .map-q { width: 56px; height: 56px; margin-top: -28px; }
  .map-inner::before { left: 60px; width: 20px; }
  .spokes::before { left: -16px; }
  .spokes li { padding-left: 24px; height: 52px; }
  .spokes li::before { left: -16px; width: 32px; }
  .spokes li::after { left: 10px; }
  .spokes span { display: none; }
  .pilot-pricing { grid-template-columns: 1fr; gap: 24px; }
  .weeks li { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .film-inner { padding: 28px 20px 24px; }
  .film-h { font-size: 26px; }
  .film-poster .tm-wrap { zoom: 1; }
}
@media (max-width: 430px) {
  .plate--wide { --zoom: 0.64; }
}

/* ============================================================================================
   APPROVED PRODUCT MOCKS (C-04) - copied verbatim from the Gate-1 shared copy (v3-styles.css). Re-staged by the
   .plate rules above (zoom, left alignment, mono caption); never redrawn.
   ============================================================================================ */
/* ---------- PRODUCT MOCKS: Microsoft Teams (light) + SharePoint library (C-04) ---------- */
/* Faithful, drawn-in-HTML recreations - real window structure and Adaptive-Card anatomy from the
   product's own Teams captures, demo-tenant content, and Quiet's Q mark in the bot-avatar slot.
   They are deliberately not screenshots: Microsoft's permissions terms allow product screenshots
   only whole and unaltered, and its brand guidelines bar third-party use of its logos, app icons
   and illustrations. Policy for this block: product names appear as plain text only (nominative
   use); every glyph is a generic line icon drawn for this site (no Teams / SharePoint / Copilot /
   Office logo shapes); "Microsoft" is never more prominent than "Quiet"; the footer carries the
   trademark attribution. The Fluent light neutrals and Microsoft's accent colors live only on the
   mock roots (--tm-* on .teams-frame/.tm-msg, --sp-* on .sp-frame) and never in :root; counsel
   can neutralize the accent by editing --tm-accent / --sp-bar in one place (C-04 D-6). */

.teams-frame, .tm-msg {
  --tm-window: #F5F5F5; --tm-rail: #EBEBEB; --tm-list: #F5F5F5; --tm-surface: #FFFFFF;
  --tm-bubble: #F5F5F5; --tm-stroke: #E0E0E0; --tm-stroke-strong: #D1D1D1;
  --tm-text: #242424; --tm-text-2: #616161;
  --tm-accent: #5B5FC7; --tm-accent-tint: #E8EBFA;
  --tm-shadow: 0 22px 50px rgba(15, 36, 31, 0.12);
  color: var(--tm-text);
  font-family: var(--sans);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
.sp-frame {
  --sp-bar: #0F6CBD; --sp-surface: #FFFFFF; --sp-stroke: #EDEBE9;
  --sp-text: #323130; --sp-text-2: #605E5C; --sp-link: #0F6CBD;
  --sp-canvas: #FAF9F8; --sp-hover: #F3F2F1; --sp-shadow: 0 22px 50px rgba(15, 36, 31, 0.12);
  color: var(--sp-text);
  font-family: var(--sans);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* Panel wrapper: visible card + optional caption (caption is site text, outside the mock palette) */
.tm-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.tm-caption { text-align: center; font-size: 11px; font-style: italic; color: var(--fg-muted); margin-top: 12px; }

/* The Q mark (R-6): rounded square at every size, never circular */
.q-avatar { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.q-avatar--32 { width: 32px; height: 32px; }
.q-avatar--24 { width: 24px; height: 24px; }
.q-avatar--16 { width: 16px; height: 16px; }

/* Generic line glyphs */
.teams-frame .ic, .tm-msg .ic, .sp-frame .ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.teams-frame .ic-xs, .sp-frame .ic-xs { width: 10px; height: 10px; }
.teams-frame .ic.is-dim { opacity: 0.4; }

/* ---- Feature 00: the full Teams window ---- */
.teams-frame {
  width: 100%; max-width: 540px; height: 372px;
  display: flex; flex-direction: column;
  background: var(--tm-window);
  border: 1px solid var(--tm-stroke-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--tm-shadow);
  font-size: 10.5px;
}
.tm-titlebar { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--tm-window); color: var(--tm-text-2); flex-shrink: 0; }
.tm-navbtns { display: flex; gap: 6px; }
.tm-search { flex: 1; max-width: 250px; margin: 0 auto; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; background: var(--tm-surface); border: 1px solid var(--tm-stroke); border-radius: 4px; color: var(--tm-text-2); font-size: 10.5px; }
.tm-tenant { white-space: nowrap; font-size: 10.5px; }
.tm-me, .tm-av { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 600; letter-spacing: 0.02em; }
.tm-me { width: 22px; height: 22px; border-radius: 50%; background: var(--tm-accent-tint); color: var(--tm-accent); font-size: 9.5px; }
.tm-body { flex: 1; min-height: 0; display: flex; }

.tm-rail { width: 36px; flex-shrink: 0; background: var(--tm-rail); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; color: var(--tm-text-2); }
.tm-rail-ic { position: relative; width: 36px; height: 26px; display: flex; align-items: center; justify-content: center; }
.tm-rail-ic .ic { width: 15px; height: 15px; }
.tm-rail-ic.is-selected { color: var(--tm-accent); }
.tm-rail-ic.is-selected::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2.5px; border-radius: 0 2px 2px 0; background: var(--tm-accent); }
.tm-rail-ic.is-selected .ic { fill: var(--tm-accent); stroke: var(--tm-accent); }
.tm-rail-bottom { margin-top: auto; }
.tm-badge { position: absolute; top: 0; right: 4px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: #C4314B; color: #FFFFFF; font-size: 9.5px; line-height: 14px; text-align: center; font-weight: 700; font-style: normal; }

.tm-list { width: 162px; flex-shrink: 0; background: var(--tm-list); border-right: 1px solid var(--tm-stroke); padding: 6px 0 0; color: var(--tm-text); overflow: hidden; }
.tm-list-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 4px; }
.tm-list-head b { font-size: 13px; font-weight: 700; }
.tm-list-tools { display: flex; align-items: center; gap: 6px; color: var(--tm-text); }
.tm-list-tools .ic { width: 12px; height: 12px; }
.tm-chips { display: flex; align-items: center; gap: 3px; padding: 0 8px 6px; border-bottom: 1px solid var(--tm-stroke); }
.tm-chips span { font-size: 9.5px; line-height: 1; padding: 3px 4px; border: 1px solid var(--tm-stroke-strong); border-radius: 10px; color: var(--tm-text); background: var(--tm-surface); white-space: nowrap; }
.tm-chips-more { margin-left: auto; color: var(--tm-text-2); }
.tm-group { display: flex; align-items: center; gap: 4px; padding: 4px 8px 1px; font-size: 10.5px; color: var(--tm-text); }
.tm-group .ic-xs { color: var(--tm-text-2); }
.tm-row { display: flex; align-items: center; gap: 5px; height: 20px; margin: 0 6px; padding: 0 4px; border-radius: 4px; font-size: 10.5px; color: var(--tm-text); white-space: nowrap; overflow: hidden; }
.tm-row.is-selected { background: var(--tm-surface); border: 1px solid var(--tm-stroke); font-weight: 600; }
.tm-row-ic { color: var(--tm-text); margin: 0 4px 0 3px; }
.tm-row-chev { color: var(--tm-text-2); margin-left: -4px; }
.tm-row .q-avatar--24 { width: 20px; height: 20px; }
.tm-av { width: 20px; height: 20px; border-radius: 4px; font-size: 9.5px; letter-spacing: 0; }
.tm-av--me { border-radius: 50%; background: #E7EFEB; color: #3E665C; }
.tm-av--chat { border-radius: 50%; background: #DCE9F5; color: #2B5A8A; }
.tm-av--team { background: var(--tm-accent); color: #FFFFFF; border-radius: 3px; }
.tm-row--channel { padding-left: 40px; color: var(--tm-text-2); } /* channel name sits under the team name, as in Teams */
.tm-list-link { padding: 2px 12px 1px; font-size: 10.5px; color: var(--tm-accent); }
.tm-list-rule { height: 1px; margin: 4px 10px; background: var(--tm-stroke); }

.tm-conv { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--tm-surface); }
.tm-conv-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--tm-stroke); flex-shrink: 0; }
.tm-conv-name { font-size: 13px; font-weight: 700; }
.tm-tab { position: relative; align-self: stretch; display: flex; align-items: center; margin-left: 4px; padding: 0 2px; font-size: 10.5px; font-weight: 600; color: var(--tm-text); }
.tm-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px 2px 0 0; background: var(--tm-accent); }
.tm-conv-tools { margin-left: auto; display: flex; gap: 10px; color: var(--tm-text-2); }
.tm-conv-body { flex: 1; min-height: 0; overflow: hidden; padding: 6px 12px 0; }
.tm-compose { flex-shrink: 0; display: flex; align-items: center; margin: 4px 10px 8px; height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--tm-stroke-strong); border-radius: 4px; background: var(--tm-surface); color: var(--tm-text-2); font-size: 10.5px; }
.tm-compose-tools { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--tm-text); }
.tm-compose-tools .ic { width: 13px; height: 13px; }
.tm-compose-sep { width: 1px; height: 14px; background: var(--tm-stroke-strong); margin: 0 1px; }

/* ---- Message anatomy (shared by the window and the excerpts) ----
   sender line above; avatar at left; a plain one-line bubble followed by the Adaptive Card container -
   the two-part shape the real bot renders (R-2). */
.tm-post { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; align-items: start; }
.tm-post + .tm-post { margin-top: 10px; }
.tm-post-meta { grid-column: 2; display: flex; gap: 6px; margin: 0 0 3px 4px; font-size: 10.5px; color: var(--tm-text-2); }
.tm-post-av { grid-column: 1; grid-row: 2; }
.tm-post-body { grid-column: 2; grid-row: 2; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tm-bubble { max-width: 100%; padding: 6px 10px; border-radius: 4px; background: var(--tm-bubble); font-size: 11px; color: var(--tm-text); }
.tm-post--me .tm-post-meta { justify-content: flex-end; margin-right: 4px; }
.tm-post--me .tm-post-body { align-items: flex-end; }
.tm-bubble--me { background: var(--tm-accent-tint); }
.tm-bubble--rich p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.tm-bubble--rich p + p, .tm-bubble--rich ul + p { margin-top: 6px; }
.tm-emails { margin: 6px 0 0; padding-left: 16px; font-size: inherit; line-height: inherit; }
.tm-emails li { margin: 1px 0; }
.tm-link { color: var(--tm-accent); text-decoration: underline; text-underline-offset: 2px; }
.tm-more { color: var(--tm-text-2); }

.tm-card { width: 100%; max-width: 300px; padding: 8px 12px 8px; border: 1px solid var(--tm-stroke); border-radius: 4px; background: var(--tm-surface); font-size: 11px; }
.tm-card-title { font-size: 12.5px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.tm-card-title--soft { font-weight: 400; font-style: italic; color: var(--tm-text); }
.tm-card-label { font-weight: 700; margin-bottom: 6px; }
.tm-item + .tm-item { margin-top: 10px; }
.tm-item-subject b { font-weight: 700; }
.tm-item-summary { margin-top: 1px; }
.tm-item-time { margin-top: 1px; color: var(--tm-text-2); }
.tm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tm-btn { display: inline-block; padding: 3px 8px; border: 1px solid var(--tm-stroke-strong); border-radius: 4px; background: var(--tm-surface); color: var(--tm-text); font-weight: 600; font-size: 10.5px; line-height: 1.3; white-space: nowrap; }

/* ---- Features 02–05: conversation excerpts (no app chrome) ---- */
.tm-msg { width: 100%; max-width: 440px; padding: 12px 14px 14px; background: var(--tm-surface); border: 1px solid var(--tm-stroke); border-radius: 10px; box-shadow: var(--tm-shadow); font-size: 12px; }
.tm-msg .tm-post-meta { font-size: 11px; }
.tm-msg .tm-bubble { font-size: 12px; padding: 7px 11px; }
.tm-msg .tm-card { max-width: none; padding: 10px 12px 10px; font-size: 11.5px; }
.tm-msg .tm-card-title { font-size: 13.5px; margin-bottom: 6px; }
.tm-msg .tm-card-label { margin-bottom: 8px; }
.tm-msg .tm-item + .tm-item { margin-top: 10px; }
.tm-msg .tm-actions { gap: 6px; margin-top: 6px; }
.tm-msg .tm-btn { font-size: 11px; padding: 3px 9px; }
.tm-msg .tm-item-time { margin-top: 1px; }

/* ---- Feature 01: SharePoint document library ---- */
.sp-frame { width: 100%; max-width: 540px; display: flex; flex-direction: column; background: var(--sp-canvas); border: 1px solid var(--sp-stroke); border-radius: 8px; overflow: hidden; box-shadow: var(--sp-shadow); font-size: 10.5px; }
.sp-suite { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: var(--sp-bar); color: #FFFFFF; flex-shrink: 0; }
.sp-brand { font-size: 11px; font-weight: 600; letter-spacing: 0.01em; }
.sp-search { flex: 1; max-width: 190px; margin: 0 auto; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; background: var(--sp-surface); border-radius: 4px; color: var(--sp-text-2); }
.sp-suite-tools { display: flex; gap: 10px; }
.sp-me { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #FFFFFF; color: #FFFFFF; font-size: 9.5px; font-weight: 600; }
.sp-site { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--sp-surface); border-bottom: 1px solid var(--sp-stroke); flex-shrink: 0; }
.sp-tile { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #0F7B6C; color: #FFFFFF; font-size: 12px; font-weight: 600; }
.sp-site-name { font-size: 15px; font-weight: 600; }
.sp-site-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--sp-text-2); }
.sp-follow { display: inline-flex; align-items: center; gap: 4px; color: var(--sp-text); }
.sp-follow .ic { color: var(--sp-link); fill: var(--sp-link); }
.sp-body { display: flex; flex: 1; min-height: 0; background: var(--sp-surface); }
.sp-nav { width: 90px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px; padding: 10px 0 8px; border-right: 1px solid var(--sp-stroke); }
.sp-nav span { padding: 4px 12px; color: var(--sp-text); white-space: nowrap; }
.sp-main { flex: 1; min-width: 0; padding: 8px 8px 10px; }
.sp-cmd { display: flex; align-items: center; gap: 8px; height: 30px; margin-bottom: 4px; white-space: nowrap; }
.sp-crumb { display: flex; align-items: center; gap: 4px; margin-right: auto; font-size: 11px; color: var(--sp-text); }
.sp-crumb .ic { color: var(--sp-text-2); }
.sp-crumb .ic-xs { color: var(--sp-text-2); margin: 0 1px; }
.sp-crumb b { font-size: 12px; font-weight: 600; }
.sp-cmds { display: flex; align-items: center; gap: 8px; color: var(--sp-text); }
.sp-cmds > span { display: inline-flex; align-items: center; gap: 4px; }
.sp-primary { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--sp-link); color: #FFFFFF; font-weight: 600; }
.sp-primary .ic { stroke-width: 1.8; width: 11px; height: 11px; }
.sp-views { display: flex; align-items: center; gap: 6px; height: 28px; margin-bottom: 6px; }
.sp-view { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid transparent; border-radius: 12px; color: var(--sp-text); white-space: nowrap; }
.sp-view.is-selected { background: #EEF4FB; border-color: #B7CFEA; }
.sp-view--right { margin-left: auto; }
.sp-views-sep { width: 1px; height: 16px; background: var(--sp-stroke); margin: 0 2px; }
.sp-list { display: flex; flex-direction: column; }
.sp-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 56px 70px 46px 54px; column-gap: 5px; align-items: center; height: 30px; padding: 0 2px; border-bottom: 1px solid var(--sp-stroke); white-space: nowrap; }
.sp-row > span { overflow: hidden; text-overflow: ellipsis; }
.sp-row--head { height: 28px; font-size: 10px; font-weight: 600; color: var(--sp-text); }
.sp-row--head > span { display: flex; align-items: center; gap: 2px; }
.sp-h { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sp-row-ic { color: var(--sp-text-2); }
.sp-name { color: var(--sp-text); }
.sp-cell { color: var(--sp-text-2); }
.sp-pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px 0 3px; border-radius: 10px; background: var(--sp-hover); color: var(--sp-text); }


/* ============================================================================================
   WS-01 - anchor offset for the sticky header. The base set no scroll-margin anywhere, so every
   in-page jump hid the target's top under the nav; on phone the sticky day-index bar (top:
   var(--nav-h)) adds its own height over the steps. Constants verified by measurement.
   ============================================================================================ */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 900px) {
  .step { scroll-margin-top: calc(var(--nav-h) + 60px); }
}


/* ============================================================================================
   ---------- legal prose pages ----------
   WS-11 - shared prose treatment for the two legal shells (Privacy Policy / Terms of Use).
   The A stylesheet is grids and plates; this is its one prose pattern. Deliberately boring:
   the site's own faces on a centered ~68ch measure, hair rules between sections, h2 at the
   h3-to-h2 midpoint (~28px). Counsel's text drops into the sections later; scroll-margin-top
   on the heading ids is inherited from the WS-01 [id] rule above.
   ============================================================================================ */
.prose-page { padding: 72px 0 128px; }
.prose { max-width: 68ch; margin-inline: auto; }
.prose-head { padding-bottom: 40px; }
.prose-head h1 { font-size: var(--fs-h2); line-height: 1.05; }
.prose-meta { margin-top: 16px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--counsel-500); }
.prose section { padding: 34px 0 42px; border-top: 1px solid var(--hair); }
.prose section:last-of-type { padding-bottom: 0; }
.prose h2 { font-size: 28px; line-height: 1.18; margin-bottom: 12px; }
.prose p + p { margin-top: 14px; }
.prose p { overflow-wrap: anywhere; }
.legal-links { margin-top: 8px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--counsel-500); }
.legal-links a:hover { color: var(--ink); }

/* ---------- contact page ---------- */
.contact { padding: 64px 0 72px; }
/* owner Gate-3 review (2026-08-31): the contact page re-scopes the shared .pilot band so the
   form-to-pilot content gap (72 + 72 = 144px) and the pilot-to-footer-hairline gap (144px)
   match; Home's bare .pilot rhythm is untouched. */
.contact + .pilot { padding: 72px 0 144px; }
@media (max-width: 900px) { .contact + .pilot { padding: 48px 0 96px; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px 80px; align-items: start; }
.contact-intro h1 { font-size: clamp(40px, 2.8vw + 14px, 62px); max-width: 13ch; margin: 6px 0 24px; }
.contact-card { background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 36px 36px 32px; min-width: 0; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; padding: 12px 14px; background: var(--card); border: 1px solid var(--hair-2); border-radius: 4px; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); }
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); } /* WS-13 F-1: no opacity - 6.92:1 on --card */
.field-error { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--stamp); }
.btn-block { display: block; width: 100%; }
.form-disclaimer { margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.form-success-mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border: 2px solid var(--counsel-500); border-radius: 50%; color: var(--counsel-500); font-size: 20px; }
.form-success h2 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.008em; margin-bottom: 8px; } /* WS-13 F-2: h2 for outline, h3 metrics for the card */
.form-success p { font-size: 15px; }
@media (max-width: 1080px) { .contact-grid { gap: 48px; } }
@media (max-width: 900px) {
  .contact { padding: 40px 0 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) { .contact-card { padding: 24px 20px; } }
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-fallback { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--stamp); }
.form-fallback a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- where-it-runs page ---------- */
/* WS-06 - shell, hero, the one dark tenant band, and the security spec sheet. Reuses the base's
   bones (.hero, .section-dark, .arch-grid, .tenant, .proof, .eyebrow, .figcap); only page-specific
   rules live in this banner block. WS-07 (regulatory table + IT setup) and WS-08 (FAQ) append
   below, inside this same block. */

nav.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* hero - the approved h1 keeps its <br>; on narrow screens the lines wrap naturally above it */
/* owner Gate-3 review (2026-08-31): section rhythm tightened to ~150px content gaps at 1440 */
.wir-hero { padding: 72px 0 80px; }
.wir-hero h1 { max-width: none; font-size: clamp(38px, 3.4vw + 10px, 58px); margin-top: 6px; }
.wir-lede { margin: 26px 0 34px; max-width: 54ch; }

/* tenant band - Home's figure, markup-identical; the proof statements re-set on the dark surface */
.wir-tenant { padding: 88px 0 88px; }
.wir-tenant .tenant { margin-top: 0; }
.proof--dark { grid-template-columns: 1fr; gap: 12px; color: var(--dark-fg-muted); border-top-color: var(--dark-line-strong); }
.proof--dark li::before { background: var(--counsel-300); }

/* spec sheet - the light-surface sibling of .arch-list: mono terms, hairline rules, no icons */
.wir-spec { padding: 88px 0 72px; }
.spec-sheet { margin-top: 48px; border-top: 1px solid var(--hair-2); }
.spec-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 8px 48px; padding: 20px 0 22px; border-bottom: 1px solid var(--hair); }
.spec-row dt { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--counsel-500); padding-top: 4px; }
.spec-row dd { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 62ch; }

@media (max-width: 900px) {
  .wir-hero { padding: 48px 0 56px; }
  .wir-tenant { padding: 64px 0 64px; }
  .wir-spec { padding: 64px 0 48px; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
}

/* on phones the tenant figure pans in its own container (the site's wide-artifact grammar)
   so its smallest engraved text stays legible; the page body never scrolls horizontally */
@media (max-width: 800px) {
  .wir-tenant .tenant { overflow-x: auto; }
  .wir-tenant .tenant-svg { min-width: 760px; }
}

/* WS-07 - regulatory-alignment table + IT setup. The table is .doc-table's register scaled up:
   mono column heads, serif rule names, hairline row rules; on phones it scrolls inside its own
   container (a 4-column comparison collapses badly), the page body never scrolls horizontally. */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wir-regulatory { padding: 80px 0 80px; }
.reg-scroll { overflow-x: auto; margin-top: 48px; }
.reg-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.reg-table th { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--counsel-500); padding: 0 28px 14px 0; border-bottom: 1px solid var(--hair-2); }
.reg-table td { padding: 20px 28px 22px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.55; color: var(--muted); vertical-align: top; }
.reg-table th:last-child, .reg-table td:last-child { padding-right: 0; }
.reg-table th:nth-child(1) { width: 22%; }
.reg-table th:nth-child(2) { width: 16%; }
.reg-table th:nth-child(3) { width: 32%; }
.reg-table th:nth-child(4) { width: 30%; }
.reg-table td:first-child { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--ink); font-optical-sizing: auto; }
.reg-table td:last-child { color: var(--ink); }
.reg-disclaimer { margin-top: 24px; font-size: 13px; line-height: 1.6; max-width: 72ch; }
.wir-setup { padding: 72px 0 72px; }
@media (max-width: 900px) {
  .wir-regulatory { padding: 56px 0 56px; }
  .wir-setup { padding: 48px 0 48px; }
  .reg-scroll { margin-top: 36px; }
}

/* WS-08 - the security-committee FAQ.
   GROWTH CONTRACT: one .faq-item = a hand-written id from the fixed slug list + one <h3 class="faq-q">
   question carrying its "§" self-link + one or more <p class="faq-a"> answers; groups are .faq-group
   with a .faq-cat eyebrow. Nothing is numbered, so inserting an item anywhere is safe; ids are
   hand-written slugs, never auto-derived - changing one breaks links people have forwarded.
   Adding a question is duplicating one .faq-item block; it needs zero CSS changes. */
.wir-faq { padding: 80px 0 128px; }
.faq-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; margin-top: 72px; }
.faq-group:first-of-type { margin-top: 56px; }
.faq-cat { grid-column: 1; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--counsel-500); padding-top: 24px; }
.faq-item { grid-column: 2; padding: 22px 0 24px; border-top: 1px solid var(--hair); }
.faq-q { font-size: 21px; margin-bottom: 8px; }
.faq-a { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.faq-a + .faq-a { margin-top: 10px; }
.faq-link { margin-left: 10px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--counsel-500); opacity: 0; }
.faq-item:hover .faq-link, .faq-link:focus-visible, .faq-link:focus { opacity: 1; }
.faq-item:target { border-left: 2px solid var(--stamp); padding-left: 24px; margin-left: -26px; }
@media (max-width: 900px) {
  .wir-faq { padding: 56px 0 96px; }
  .faq-group { grid-template-columns: 1fr; margin-top: 56px; }
  .faq-group:first-of-type { margin-top: 40px; }
  .faq-cat { grid-column: 1; padding-top: 0; margin-bottom: 14px; }
  .faq-item { grid-column: 1; }
}
@media (max-width: 600px) {
  .faq-item:target { padding-left: 14px; margin-left: -16px; }
}
