/* Company site stylesheet. Colours and font stacks come from the generated
   theme.css (--brand-*), so the palette is declared once, in brand-public.yaml.
   No script, no external request. */

:root {
  --t-xs: 0.75rem;   /* compact data labels */
  --t-sm: 0.875rem;  /* metadata and source attribution */
  --t-s: 1rem;      /* supporting prose and controls */
  --t-base: 1.0625rem;
  --t-md: 1.15rem;   /* ledes, h3 */
  --t-lg: 1.3rem;    /* large h3, figures */
  --type-display: clamp(2.5rem, 1.3rem + 5vw, 6rem);
  --type-page: clamp(2.5rem, 2rem + 3.5vw, 5.5rem);
  --type-section: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --type-section-compact: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  --type-item: clamp(1.5rem, 1.15rem + 0.8vw, 1.875rem);
  --type-prose-heading: clamp(1.375rem, 1.125rem + 0.75vw, 1.75rem);
  --type-lead: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  --type-statement: clamp(1.25rem, 1rem + 0.9vw, 1.625rem);
  --r-doc: 0.25rem;
  --cs-space: clamp(4.5rem, 8vw, 8rem);
  --cs-row-inset: clamp(1rem, 2vw, 1.5rem);
  --hx-line: color-mix(in srgb, var(--brand-text) 12%, transparent);
  --hx-line-strong: color-mix(in srgb, var(--brand-text) 30%, var(--brand-bg));
  --hx-dim: var(--brand-muted);
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--brand-text);
  font-family: var(--brand-font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cs-main { flex: 1 0 auto; }

.cs-wrap { width: min(100% - clamp(2.5rem, 7vw, 7rem), 80rem); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--brand-font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
h1 { font-size: var(--type-page); font-weight: 500; max-width: 22ch; }
h2 { font-size: var(--type-section-compact); font-weight: 500; }
h3 { font-size: var(--t-md); letter-spacing: -0.005em; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0 0 1rem; max-width: 68ch; }

a { color: var(--brand-accent-strong); text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
a:hover { color: var(--brand-text); }
/* Inline links keep a persistent weight and highlight cue without underlines. */
.cs-prose a, .cs-facts a, .cs-meta a, .hx-company a, .hx-cite {
  font-weight: 600; background-color: rgb(255 179 92 / 0.08);
  border-radius: var(--r-doc); box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.cs-prose a:hover, .cs-facts a:hover, .cs-meta a:hover, .hx-company a:hover, .hx-cite:hover {
  background-color: rgb(255 179 92 / 0.18);
}
:focus-visible { outline: 3px solid var(--brand-accent-strong); outline-offset: 3px; border-radius: 4px; }

ul, ol { padding: 0; margin: 0; list-style: none; }

.cs-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--brand-accent); color: var(--brand-bg);
  padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 600;
}
.cs-skip:focus { top: 1rem; }

/* Header */
.cs-header {
  border-bottom: 1px solid var(--brand-border);
  position: sticky; top: 0; z-index: 20; background: var(--brand-bg);
}
.cs-header__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1.25rem; min-height: 5.5rem; padding-block: 1rem;
}
.cs-brand {
  font-family: var(--brand-font-head); font-weight: 700; font-size: var(--t-md);
  color: var(--brand-text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.cs-brand:hover { color: var(--brand-text); }
.cs-brand__dot {
  width: 0.75rem; height: 0.75rem; border-radius: 0;
  box-shadow: 0.35rem -0.35rem 0 color-mix(in srgb, var(--brand-accent) 35%, transparent);
  background: var(--brand-accent);
}
.cs-nav { margin-left: auto; font-size: var(--t-s); }
.cs-nav ul, .cs-lang ul, .cs-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.cs-nav ul { column-gap: 1.5rem; }
.cs-nav a, .cs-lang a, .cs-footer a {
  color: var(--brand-muted); text-decoration: none; padding-block: 0.35rem; display: inline-block;
}
.cs-nav a:hover, .cs-lang a:hover, .cs-footer a:hover { color: var(--brand-text); }
.cs-nav a[aria-current], .cs-lang a[aria-current], .cs-footer a[aria-current] {
  color: var(--brand-accent-strong); font-weight: 500;
}
.cs-nav a { padding-inline: 0.5rem; margin-inline: -0.5rem; border-radius: var(--r-doc); }
.cs-nav a:hover, .cs-nav a[aria-current] { background-color: rgb(255 179 92 / 0.08); }
.cs-lang a {
  font-family: var(--brand-font-mono); font-size: var(--t-sm); letter-spacing: 0.04em;
  border: 1px solid var(--brand-border); border-radius: 0; padding: 0.55rem 0.45rem;
}
.cs-lang ul { gap: 0.4rem; }
.cs-lang a[aria-current] { border-color: var(--brand-accent); box-shadow: none; }

/* Inner pages use a spacious page head and ruled two-column documents. */

.cs-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.cs-section + .cs-section { border-top: 1px solid var(--brand-border); }
.cs-lead { font-size: var(--type-lead); color: var(--brand-muted); max-width: 58ch; line-height: 1.6; margin-bottom: 0; }
.cs-meta { color: var(--brand-muted); font-size: var(--t-s); }

/* Page head */
.cs-page-head {
  position: relative; isolation: isolate;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--brand-border);
}
.cs-page-head h1 {
  font-size: var(--type-page); line-height: 1.08; letter-spacing: -0.035em;
  max-width: 18ch; margin-bottom: 1.25rem; text-wrap: balance;
}
.cs-page-head .cs-meta { margin: 1.25rem 0 0; font-family: var(--brand-font-mono); font-size: var(--t-sm); }
.cs-page-head .cs-actions { margin: 2rem 0 0; }

/* Split document sections */
.cs-split {
  display: grid; gap: 1.5rem 4rem; grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.cs-split + .cs-split, .cs-split + .cs-closing { border-top: 1px solid var(--brand-border); }
@media (min-width: 62rem) {
  .cs-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .cs-split__head { position: sticky; top: 5.5rem; align-self: start; }
}
.cs-split__head h2 { font-size: var(--type-section-compact); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.cs-split__head p { color: var(--brand-muted); margin: 1rem 0 0; font-size: var(--t-base); }
.cs-split__body > :first-child { margin-top: 0; }

/* Use cases: an editorial contents list, specific workflow examples and full
   source descriptions. Surface-local colors keep the cream chapter accessible. */
.uc-opening, .uc-chapter, .uc-close { overflow-wrap: anywhere; }
.uc-opening { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 5vw, 4.5rem); }
.uc-opening h1 { font-size: var(--type-page); line-height: 1.08; letter-spacing: -.035em; max-width: 12ch; margin: 0; }
.uc-opening__intro { align-self: end; }
.uc-opening__intro .cs-button { margin-top: 1.75rem; }
.uc-contents { margin-top: clamp(2.75rem, 5vw, 4.5rem); }
.uc-contents li { border-top: 1px solid var(--brand-border); }
.uc-contents li:last-child { border-bottom: 1px solid var(--brand-border); }
.uc-contents a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1.5rem; align-items: center; padding: 1.35rem var(--cs-row-inset); color: var(--brand-text); }
.uc-contents a > span:first-child { color: var(--brand-muted); font-size: var(--t-s); }
.uc-contents strong { font: 500 var(--type-item)/1.3 var(--brand-font-head); letter-spacing: -.015em; grid-row: 2; }
.uc-contents a:hover { background: var(--brand-surface); }
.uc-arrow { grid-column: 2; grid-row: 1 / 3; width: .6rem; height: .6rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; margin-right: .5rem; color: var(--brand-accent); transition: translate 180ms var(--hx-ease); }
.uc-contents a:is(:hover, :focus-visible) .uc-arrow { translate: .2rem 0; }
.uc-chapter { --uc-ink: var(--brand-text); --uc-secondary: var(--brand-muted); --uc-rule: var(--brand-border); color: var(--uc-ink); padding-block: clamp(3.5rem, 6vw, 6rem); border-top: 1px solid var(--brand-border); }
.uc-chapter--A { background: var(--brand-text); --uc-ink: var(--brand-bg); --uc-secondary: color-mix(in srgb, var(--brand-bg) 77%, var(--brand-text)); --uc-rule: color-mix(in srgb, var(--brand-bg) 22%, var(--brand-text)); }
.uc-chapter--C { background: var(--brand-surface); }
.uc-chapter__intro { display: grid; gap: 1.5rem 4rem; align-items: start; }
.uc-chapter h2 { font-size: var(--type-section); letter-spacing: -.025em; max-width: 23ch; margin: 0; scroll-margin-top: 7rem; }
.uc-chapter__intro > p { color: var(--uc-secondary); font-size: var(--type-lead); line-height: 1.6; margin: .3rem 0 0; }
.uc-flow { margin: clamp(2.5rem, 4vw, 4rem) 0; }
.uc-flow strong { display: block; font: 500 var(--t-lg)/1.3 var(--brand-font-head); letter-spacing: -.015em; }
.uc-flow p { font-size: var(--t-s); line-height: 1.55; color: var(--uc-secondary); margin: .6rem 0 0; max-width: 45ch; }
.uc-flow__steps { display: grid; gap: 1.75rem; }
.uc-flow__steps li { position: relative; padding: 1.5rem 0 0 1.25rem; border-left: 1px solid var(--uc-rule); }
.uc-flow__steps li::before { content: ""; position: absolute; top: 0; left: -.3rem; width: .55rem; height: .55rem; background: var(--brand-accent); border: 1px solid var(--uc-ink); border-radius: 50%; }
.uc-flow__note { margin-top: 1.75rem; padding: 1.5rem 0 0; border-top: 1px solid var(--uc-rule); max-width: 58rem; }
.uc-flow__note strong { font-size: var(--t-md); }
.uc-flow figcaption { font-size: var(--t-sm); color: var(--uc-secondary); margin-top: 1.5rem; }
/* Document matching has a branch for human review, not an all-automatic promise. */
.uc-flow--A .uc-flow__steps li:nth-child(2) { background: color-mix(in srgb, var(--brand-accent) 16%, var(--brand-text)); padding: 1.5rem; }
.uc-flow--A .uc-flow__note { border-top: 0; border-left: 1px dashed var(--uc-secondary); padding: 1.25rem; margin: 1.5rem -1.5rem -1.5rem; background: var(--brand-text); }
/* Content has a visible review gate and a return path after publication. */
.uc-flow--B { display: grid; gap: 0 4rem; }
.uc-flow--B .uc-flow__steps li { border-left: 0; border-bottom: 1px solid var(--uc-rule); padding: 1.5rem 0; }
.uc-flow--B .uc-flow__steps li::before { display: none; }
.uc-flow--B .uc-flow__steps li:nth-child(2) strong { color: var(--brand-accent-strong); }
.uc-flow--B .uc-flow__note { align-self: center; padding: 2rem; border: 1px solid var(--uc-rule); }
/* Private deployment is a boundary of responsibilities, not a sequence. */
.uc-flow__boundary { display: grid; border: 1px solid var(--brand-muted); }
.uc-flow__boundary li { padding: 1.5rem; }
.uc-flow__boundary li + li { border-top: 1px solid var(--uc-rule); }
.uc-flow__boundary li:nth-child(2) { background: var(--brand-bg); }
.uc-flow__boundary li:nth-child(2) strong { color: var(--brand-accent-strong); }
.uc-flow--C .uc-flow__note { border: 0; padding-top: 0; }
.uc-flow--D .uc-flow__steps li:last-child::before { background: var(--brand-text); }
.uc-catalogue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 4rem; padding-top: 1rem; }
.uc-catalogue__head p { font-family: var(--brand-font-head); font-weight: 500; font-size: var(--t-lg); line-height: 1.35; margin: 0 0 .65rem; max-width: 24ch; }
.uc-catalogue__head > span { font-size: var(--t-sm); color: var(--uc-secondary); }
.uc-case { border-top: 1px solid var(--uc-rule); }
.uc-case:last-child { border-bottom: 1px solid var(--uc-rule); }
.uc-case summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem var(--cs-row-inset); cursor: pointer; list-style: none; }
.uc-case summary::-webkit-details-marker { display: none; }
.uc-case summary:hover { background: color-mix(in srgb, var(--uc-ink) 5%, transparent); }
.uc-case summary h3 { min-width: 0; margin: 0; font-size: var(--t-md); font-weight: 500; line-height: 1.4; letter-spacing: -.005em; text-wrap: initial; }
.uc-toggle { flex: 0 0 .65rem; width: .65rem; height: .65rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; rotate: 45deg; margin: -.3rem .5rem 0 0; transition: rotate 180ms var(--hx-ease); }
.uc-case[open] .uc-toggle { rotate: 225deg; margin-top: .3rem; }
.uc-case__detail { padding: 0 var(--cs-row-inset) 1.75rem; scroll-margin-top: 11rem; }
.uc-case__detail p { margin: 0; font-size: var(--t-base); line-height: 1.7; color: var(--uc-secondary); }
.uc-case:has(:target) { background: color-mix(in srgb, var(--uc-ink) 5%, transparent); }
.uc-chapter--A :focus-visible { outline-color: var(--brand-bg); }
.uc-close { display: grid; gap: 2.5rem 4rem; padding-block: var(--cs-space); }
.uc-close h2 { font-size: var(--type-section); max-width: 20ch; letter-spacing: -.025em; }
.uc-close__action { align-self: center; }
.uc-close__action p { color: var(--brand-muted); font-size: var(--t-s); margin: 1rem 0 1.5rem; max-width: 35ch; }
.uc-delivery { font-size: var(--t-sm); color: var(--brand-muted); padding-top: 1.5rem; border-top: 1px solid var(--brand-border); max-width: none; margin: 0; }
@media (min-width: 48rem) {
  .uc-contents a { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) auto; gap: 2rem; }
  .uc-contents strong { grid-column: 2; grid-row: 1; }
  .uc-contents a > span:first-child { grid-column: 1; grid-row: 1; }
  .uc-arrow { grid-column: 3; grid-row: 1; }
  .uc-flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .uc-flow__steps li { border-left: 0; border-top: 1px solid var(--uc-rule); padding: 1.5rem 0; }
  .uc-flow__steps li::before { top: -.3rem; left: 0; }
  .uc-flow--B { grid-template-columns: 1.3fr 1fr; }
  .uc-flow--B .uc-flow__steps { grid-template-columns: 1fr; gap: 0; }
  .uc-flow--B .uc-flow__steps li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem; border-top: 0; }
  .uc-flow--B .uc-flow__steps p { margin: 0; }
  .uc-flow--B figcaption { grid-column: 1 / -1; }
  .uc-flow__boundary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uc-flow__boundary li + li { border-top: 0; border-left: 1px solid var(--uc-rule); }
}
@media (min-width: 62rem) {
  .uc-opening { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 5rem; }
  .uc-contents { grid-column: 1 / -1; }
  .uc-chapter__intro { grid-template-columns: 1.2fr 1fr; }
  .uc-catalogue { grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr); }
  .uc-catalogue__head { position: sticky; top: 7rem; align-self: start; }
  .uc-close { grid-template-columns: 1.4fr 1fr; }
  .uc-delivery { grid-column: 1 / -1; }
}
@media (max-width: 61.999rem) {
  .uc-opening__intro { margin-top: 1.5rem; }
}

.cs-closing { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.cs-closing p, .cs-statement {
  font-family: var(--brand-font-head); font-weight: 500; letter-spacing: -0.015em;
  font-size: var(--type-statement); line-height: 1.4; max-width: 40ch; color: var(--brand-text);
}
.cs-statement { margin-bottom: 1.25rem; }
.cs-note { color: var(--brand-muted); padding-top: 1.1rem; border-top: 1px solid var(--brand-border); margin: 0; }
.cs-subhead {
  margin: 2.75rem 0 0.75rem; color: var(--brand-text);
  font: 600 var(--t-md)/1.35 var(--brand-font-head); letter-spacing: -0.005em;
}

.cs-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cs-button {
  display: inline-flex; align-items: center; min-height: 3.25rem;
  padding: 0.8rem 1.5rem; border-radius: var(--r-doc); font-weight: 600;
  background: var(--brand-accent); color: var(--brand-bg); text-decoration: none;
  border: 2px solid var(--brand-accent);
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease;
}
.cs-button:hover { background: var(--brand-accent-strong); border-color: var(--brand-accent-strong); color: var(--brand-bg); transform: translateY(-1px); }
.cs-button:active { transform: translateY(1px); }

/* Price lists: ruled data rows */
.cs-prices { display: grid; margin-top: 1rem; border-top: 1px solid var(--brand-border); }
.cs-split__body > .cs-prices:first-child { margin-top: 0; }
.cs-price {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.5rem 1.5rem; border-bottom: 1px solid var(--brand-border); padding: 1.15rem 0;
  transition: background 160ms ease;
}
.cs-price:hover { background: linear-gradient(90deg, rgb(255 138 42 / 0.03), transparent 70%); }
.cs-price__text { flex: 1 1 22rem; }
.cs-price__text h3 { margin-bottom: 0.25rem; font-size: var(--t-md); }
.cs-price__text p { margin: 0; color: var(--brand-muted); font-size: var(--t-s); }
.cs-price__figure { margin: 0; white-space: nowrap; font-family: var(--brand-font-mono); }
.cs-price__figure strong { font-size: var(--t-lg); font-weight: 500; color: var(--brand-text); letter-spacing: -0.02em; }
.cs-price__from, .cs-price__unit { color: var(--brand-muted); font-size: var(--t-sm); }

/* Fact lists and plain lists: ruled rows */
.cs-facts { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; margin: 0; border-top: 1px solid var(--brand-border); }
.cs-facts dt, .cs-facts dd { padding: 1rem 0; border-bottom: 1px solid var(--brand-border); }
.cs-facts dt { color: var(--brand-muted); font: 500 var(--t-s)/1.65 var(--brand-font-body); }
.cs-facts dd { margin: 0; }
.cs-section > .cs-facts { max-width: 52rem; }
.cs-plain { border-top: 1px solid var(--brand-border); }
.cs-plain li { padding: 0.9rem 0; border-bottom: 1px solid var(--brand-border); }

/* Writing index: ruled rows, not cards */
.cs-articles { border-top: 1px solid var(--brand-border); }
.cs-articles > li { padding: 1.5rem 0; border-bottom: 1px solid var(--brand-border); }
.cs-articles h2 { font-size: var(--t-lg); margin-bottom: 0.4rem; }
.cs-articles h2 a { color: var(--brand-text); text-decoration: none; }
.cs-articles h2 a:hover { color: var(--brand-accent-strong); }
.cs-articles p { margin: 0; color: var(--brand-muted); }
.cs-articles .cs-meta { font-family: var(--brand-font-mono); font-size: var(--t-sm); margin-bottom: 0.4rem; }

/* Prose (legal, articles) */
.cs-prose > * { max-width: 46rem; }
.cs-prose > section:first-child h2, .cs-prose > :first-child { margin-top: 0; }
.cs-prose h2 { font-size: var(--type-prose-heading); font-weight: 600; margin-top: 2.75rem; }
.cs-page-head .cs-meta a { color: var(--brand-muted); }
.cs-page-head .cs-actions + .cs-meta { margin-top: 1rem; font-family: var(--brand-font-body); font-size: var(--t-s); }
.cs-prose ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.cs-prose li { margin-bottom: 0.35rem; }
.cs-prose p { color: color-mix(in srgb, var(--brand-text) 88%, var(--brand-muted)); }

/* Footer */
.cs-footer { border-top: 1px solid var(--brand-border); margin-top: clamp(3rem, 6vw, 5rem); color: var(--brand-muted); font-size: var(--t-s); background: var(--brand-bg); }
.cs-footer__inner {
  display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 48rem) { .cs-footer__inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.cs-footer__brand p { margin: 1rem 0 0; max-width: 34ch; }
.cs-footer__nav ul { display: grid; gap: 0.35rem; }
.cs-footer__nav a { padding-block: 0.15rem; }
.cs-footer p { margin: 0; }

@media (max-width: 40rem) {
  .cs-facts { grid-template-columns: 1fr; }
  .cs-facts dt { border-bottom: 0; padding-bottom: 0; }
  .cs-facts dd { padding-top: 0.35rem; }
  .cs-price__figure { white-space: normal; }
}

/* Home: a studio opening, a readable service index, then product evidence. */
.cs-main:has(.hx-hero) { --hx-gap: var(--cs-space); }
.hx-products, .hx-proof, .hx-prices, .hx-own { padding-block: var(--hx-gap); border-top: 1px solid var(--brand-border); }
.hx-route, .hx-close { padding-block: var(--hx-gap); }
.hx-route { background: var(--brand-surface); }
.hx-problem { padding-block: 2rem; border-block: 1px solid var(--brand-border); }
.hx-problem .cs-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: baseline; }
.hx-problem__claim { max-width: 65ch; margin: 0; color: var(--brand-muted); }
.hx-problem__lead { margin: 0; }
.hx-cite { font-size: var(--t-sm); white-space: nowrap; }
.cs-main:has(.hx-hero) h2 { font-size: var(--type-section); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; max-width: 24ch; margin-bottom: 1.5rem; }
.hx-lede { color: var(--brand-muted); font-size: var(--t-md); max-width: 58ch; margin-bottom: 3rem; }
.hx-mono { font-family: var(--brand-font-mono); font-size: 0.85em; }
.hx-num { text-align: right; font-variant-numeric: tabular-nums; }
.hx-link { font-weight: 500; color: var(--brand-text); display: inline-flex; align-items: center; gap: 0.75rem; padding-block: 0.45rem; }
.hx-link::after { content: ""; width: 0.5rem; height: 0.5rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; margin-right: 0.35rem; transition: translate 180ms var(--hx-ease); }
.hx-link:hover, .hx-link:focus-visible { color: var(--brand-accent-strong); }
.hx-link:is(:hover, :focus-visible)::after { translate: 0.2rem 0; }
.hx-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 7vw, 7rem); }
.hx-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.hx-hero__copy { position: relative; z-index: 1; }
.hx-hero h1 { font-size: var(--type-display); line-height: 1.06; letter-spacing: -0.035em; font-weight: 500; max-width: none; margin-bottom: 2rem; text-wrap: initial; }
.hx-h1__lead, .hx-h1__own { display: block; }
.hx-h1__own { color: var(--brand-accent); }
.hx-sub { font-size: var(--type-lead); color: var(--brand-muted); max-width: 46ch; margin-bottom: 2.25rem; line-height: 1.6; }
.hx-call { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; max-width: none; margin-bottom: 1.25rem; }
.cs-button.hx-call__btn { min-height: 3.5rem; font-weight: 600; padding: 0.9rem 1.4rem; }
.hx-call__note { color: var(--brand-muted); font-size: var(--t-s); max-width: 28ch; }
.hx-explore { margin: 0; }
.hx-hero__visual { min-width: 0; margin: 0; }
.hx-hero__visual figcaption { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-family: var(--brand-font-head); font-size: var(--t-md); line-height: 1.4; max-width: 28ch; }
.hx-map__signal { flex: 0 0 1rem; height: 1rem; background: var(--brand-accent); }
.hx-map { list-style: none; margin: 0 0 0 0.5rem; padding: 0 0 0 2rem; border-left: 1px solid var(--brand-accent); }
.hx-map li { position: relative; }
.hx-map li::before { content: ""; position: absolute; top: 50%; left: -2rem; width: 2rem; border-top: 1px solid var(--brand-accent); }
.hx-map a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 6.25rem; padding: 1.5rem var(--cs-row-inset); border-block-end: 1px solid var(--hx-line-strong); color: var(--brand-text); }
.hx-map li:first-child a { border-block-start: 1px solid var(--hx-line-strong); }
.hx-map__id { font-family: var(--brand-font-mono); font-size: var(--t-sm); color: var(--brand-accent-strong); }
.hx-map__title { font-family: var(--brand-font-head); font-size: var(--t-lg); line-height: 1.4; }
.hx-map__arrow { width: 0.45rem; height: 0.45rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; margin-right: 0.25rem; }
.hx-map a:is(:hover, :focus-visible) { background: var(--brand-surface); color: var(--brand-accent-strong); }
.hx-next { max-width: 60ch; color: var(--brand-muted); margin: -1.5rem 0 2.5rem; }
@media (min-width: 62rem) {
  .hx-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); }
}
@media (max-width: 61.99rem) {
  .hx-hero__visual { width: min(100%, 38rem); margin-top: 1rem; }
  .hx-hero__copy { max-width: 45rem; }
}
@media (max-width: 40rem) {
  .hx-map { padding-left: 1rem; }
  .hx-map li::before { left: -1rem; width: 1rem; }
  .hx-map a { gap: 0.75rem; }
  .hx-map__title { font-size: var(--t-md); }
  .hx-call__note { max-width: none; }
}
/* Sources can be inspected without competing with the opening message. */
.hx-trail { display: grid; grid-template-columns: minmax(0, 1fr); border-block: 1px solid var(--brand-border); margin-block: 2.5rem; }
.ev { min-width: 0; }
.ev + .ev { border-top: 1px solid var(--brand-border); }
.ev summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem 1rem; padding: 1.5rem; }
.ev summary::-webkit-details-marker { display: none; }
.ev summary:hover { background: var(--brand-surface); }
.ev__fig { font: 500 clamp(1.75rem, 2.5vw, 2.5rem)/1.15 var(--brand-font-head); color: var(--brand-accent); }
.ev__label { grid-column: 1; color: var(--brand-muted); font-size: var(--t-s); }
.ev__mark { grid-column: 2; grid-row: 1; align-self: center; width: 0.6rem; height: 0.6rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; rotate: 45deg; }
.ev[open] .ev__mark { rotate: 225deg; }
.ev__src { font-size: var(--t-sm); color: var(--brand-muted); margin: 0; padding: 0 1.5rem 1.5rem; }
.ev__src-key { color: var(--brand-text); }
@media (min-width: 62rem) { .hx-trail { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ev + .ev { border-top: 0; border-left: 1px solid var(--brand-border); } }
.hx-products__grid { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
.hx-product { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hx-product h3 { font-size: var(--type-item); font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.hx-product__promise, .hx-product__runs { color: var(--brand-muted); margin: 0; }
.hx-product > p:last-child { margin: auto 0 0; }
@media (min-width: 62rem) { .hx-products__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; } }

/* Ledger: a square data surface inside the box. */
.hx-ledger { border: 1px solid var(--brand-border); background: #120e0b; overflow: hidden; }
.hx-ledger table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.hx-ledger caption {
  text-align: left; caption-side: top;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--brand-border); background: #17110d;
  font: 500 var(--t-xs)/1.2 var(--brand-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-muted);
}
.hx-sample {
  float: right; margin: -0.3rem 0 -0.3rem 1rem;
  border: 1px solid var(--hx-line-strong); border-radius: var(--r-doc); padding: 0.3rem 0.6rem;
  color: var(--hx-dim); letter-spacing: 0.06em;
}
.hx-ledger th {
  text-align: left; font: 500 var(--t-xs)/1.2 var(--brand-font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--hx-dim); padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--brand-border);
}
.hx-ledger th.hx-num { text-align: right; }
.hx-ledger td { padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--hx-line); vertical-align: middle; }
.hx-ledger tbody tr:last-child td { border-bottom: 1px solid var(--brand-border); }
.hx-ledger__note {
  margin: 0; padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--t-sm); color: var(--brand-muted);
}
.hx-ledger__note .hx-chip { padding: 0.25rem 0.45rem; }
.hx-ledger td:first-child, .hx-ledger th:first-child { padding-left: 1rem; }
.hx-ledger td:last-child, .hx-ledger th:last-child { padding-right: 1rem; }
.hx-ledger td.hx-mono { color: var(--brand-muted); white-space: nowrap; }
.hx-ledger td.hx-num { color: var(--brand-text); }
.hx-chip {
  display: inline-block; max-width: 12rem;
  font: 500 var(--t-xs)/1 var(--brand-font-mono); letter-spacing: 0.02em;
  padding: 0.4rem 0.6rem; border-radius: var(--r-doc);
  color: var(--brand-accent-strong); background: rgb(255 138 42 / 0.08);
  border: 1px solid rgb(255 138 42 / 0.35);
}
.hx-ledger tr.is-query td { background: rgb(255 179 92 / 0.06); }
.hx-ledger tr.is-query td:first-child { box-shadow: inset 2px 0 0 var(--brand-accent-strong); }
.hx-chip--query { color: var(--brand-text); background: rgb(255 246 233 / 0.06); border-color: var(--hx-line-strong); }

@media (max-width: 40rem) {
  .hx-ledger caption { letter-spacing: 0.04em; }
  .hx-sample { float: none; display: inline-block; margin: 0.5rem 0 0; }
  .hx-ledger caption .hx-sample { display: block; width: fit-content; }
  .hx-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hx-ledger tbody tr {
    display: grid; grid-template-columns: auto 1fr auto; gap: 0.35rem 0.75rem; align-items: center;
    padding: 0.8rem 1rem; border-bottom: 1px solid var(--hx-line);
  }
  .hx-ledger tbody tr:last-child { border-bottom: 0; }
  .hx-ledger tbody td { padding: 0 !important; border: 0; background: none !important; box-shadow: none !important; }
  .hx-ledger tbody tr.is-query { background: rgb(255 179 92 / 0.06); box-shadow: inset 2px 0 0 var(--brand-accent-strong); }
  .hx-ledger tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .hx-ledger tbody td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .hx-ledger tbody td:nth-child(4) { grid-column: 1; grid-row: 2; }
  .hx-ledger tbody td:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }
}

/* TACET: the practice network as a drawn boundary the audio never crosses. */
.hx-boundary {
  margin: 0; position: relative;
  border: 1px dashed var(--hx-line-strong);
  background: #14100d; padding: 1.6rem 1.1rem 1.1rem;
}
.hx-boundary figcaption {
  position: absolute; top: 0; left: 1rem; translate: 0 -50%;
  background: var(--brand-surface); padding: 0 0.55rem;
  font: 500 var(--t-xs)/1.2 var(--brand-font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-muted);
}
.hx-boundary ol { display: grid; gap: 0; counter-reset: hop; }
.hx-boundary li {
  position: relative; counter-increment: hop;
  display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.85rem;
  padding: 0 0 1.1rem; font-size: var(--t-s); color: var(--brand-text);
}
.hx-boundary li:last-child { padding-bottom: 0; }
.hx-boundary li::before {
  content: counter(hop);
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--hx-line-strong); color: var(--brand-muted);
  font: 500 var(--t-xs)/1 var(--brand-font-mono);
}
.hx-boundary li:not(:last-child)::after {
  content: ""; position: absolute; left: calc(0.875rem - 0.5px); top: 1.9rem; bottom: 0.2rem; width: 1px;
  background: var(--hx-line-strong);
}
.hx-boundary li:last-child::before { border-color: var(--brand-text); color: var(--brand-text); }

/* A bright service catalogue changes the rhythm and makes scope easy to scan. */
.hx-pillars { background: var(--brand-text); color: var(--brand-bg); padding-block: var(--cs-space); }
.hx-pillars .hx-lede { color: color-mix(in srgb, var(--brand-bg) 75%, var(--brand-text)); }
.hx-pillars__list { border-top: 1px solid color-mix(in srgb, var(--brand-bg) 25%, transparent); margin-block: 3rem 1.5rem; }
.hx-pillar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 4rem; padding-block: 2rem; border-bottom: 1px solid color-mix(in srgb, var(--brand-bg) 25%, transparent); }
.hx-pillar__id { display: none; }
.hx-pillar__body h3 { font-size: var(--type-item); font-weight: 500; line-height: 1.2; max-width: 26ch; margin-bottom: 1rem; }
.hx-pillar__body p { font-size: var(--t-base); color: color-mix(in srgb, var(--brand-bg) 80%, var(--brand-text)); }
.hx-pillar__cases { display: grid; align-content: start; }
.hx-pillar__cases a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--brand-bg); text-decoration: none; padding: 0.6rem var(--cs-row-inset); border-bottom: 1px solid color-mix(in srgb, var(--brand-bg) 15%, transparent); }
.hx-pillar__cases a::after { content: ""; width: 0.4rem; height: 0.4rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; rotate: 45deg; flex: none; margin-right: 0.3rem; transition: translate 180ms var(--hx-ease); }
.hx-pillar__cases a:is(:hover, :focus-visible) { background-color: rgb(15 13 11 / 0.05); }
.hx-pillar__cases a:is(:hover, :focus-visible)::after { translate: 0.2rem 0; }
.hx-pillars .hx-link { color: var(--brand-bg); padding-inline: var(--cs-row-inset); }
.hx-pillars .hx-link:hover { color: var(--brand-bg); background-color: rgb(15 13 11 / 0.05); }
.hx-pillars :focus-visible { outline-color: var(--brand-bg); }
@media (min-width: 62rem) { .hx-pillar { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 6rem; padding-block: 2.5rem; } }

/* Delivery steps remain ordered and readable without scroll effects. */
.hx-route__list { display: grid; gap: 0; margin-top: 2.5rem; counter-reset: station; }
.hx-station { position: relative; counter-increment: station; padding: 0 0 2rem 2.75rem; }
.hx-station::before {
  content: ""; position: absolute; left: 0.45rem; top: 0.35rem;
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--brand-bg); border: 2px solid var(--hx-line-strong);
}
.hx-station::after {
  content: ""; position: absolute; left: calc(0.9rem - 0.5px); top: 1.5rem; bottom: 0; width: 1px;
  background: var(--hx-line-strong);
}
.hx-station:nth-last-child(2)::after { background: linear-gradient(180deg, var(--hx-line-strong), var(--brand-text)); }
.hx-station--handover::after { display: none; }
.hx-station--handover::before { background: var(--brand-text); border-color: var(--brand-text); }
.hx-station h3 { font-size: var(--t-md); margin-bottom: 0.35rem; }
.hx-station h3::before {
  content: counter(station); font: 500 var(--t-xs)/1 var(--brand-font-mono); color: var(--hx-dim);
  display: block; margin-bottom: 0.5rem; letter-spacing: 0.06em;
}
.hx-station p { color: var(--brand-muted); font-size: var(--t-s); margin: 0; max-width: 30ch; }
.hx-station--handover h3 { color: var(--brand-text); }
@media (min-width: 62rem) {
  .hx-route__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .hx-station { padding: 2.4rem 0 0; }
  .hx-station::before { left: 0; top: 0; }
  .hx-station::after {
    left: 1.4rem; right: -1.1rem; top: calc(0.45rem - 0.5px); bottom: auto; width: auto; height: 1px;
    background: var(--hx-line-strong);
  }
  .hx-station:nth-last-child(2)::after { background: linear-gradient(90deg, var(--hx-line-strong), var(--brand-text)); }
}

/* Ownership and operating terms share one calm two-column section. */
.hx-own { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 62rem) { .hx-own { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hx-own .hx-lede { margin-bottom: 0; color: var(--brand-text); }
.hx-own__facts { border-top: 1px solid var(--brand-border); }
.hx-own__facts li {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 1rem 0; border-bottom: 1px solid var(--brand-border);
  font-size: var(--t-base);
}
.hx-own__facts li::before {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem; translate: 0 -0.1rem;
  background: var(--brand-text);
}

/* Proof: evidence sheets (documents are rounded). */
.hx-proof__cases { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 2.25rem; }
@media (min-width: 52rem) { .hx-proof__cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hx-case {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hx-line-strong); padding-top: 1.4rem;
}
.hx-case h3 { font-size: var(--t-lg); letter-spacing: -0.015em; margin-bottom: 1.4rem; }
.hx-case__facts { display: grid; gap: 0.55rem; margin-bottom: 1.4rem; }
.hx-case__facts li { position: relative; padding-left: 1.1rem; color: var(--brand-muted); font-size: var(--t-s); }
.hx-case__facts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.45rem; height: 1px; background: var(--brand-accent); }
.hx-case__src { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--hx-line); font: 400 var(--t-sm)/1.6 var(--brand-font-body); color: var(--hx-dim); }
.hx-operating {
  font-family: var(--brand-font-body); font-size: var(--type-lead); font-weight: 400; line-height: 1.6;
}

/* Prices on the home page reuse the ledger rows below. */
.hx-prices .cs-prices { margin: 0 0 2rem; }
.hx-prices .cs-price { padding-inline: 0; }

/* Close */
.cs-main:has(.hx-hero) + .cs-footer { margin-top: 0; }
.hx-close {
  padding-bottom: calc(var(--hx-gap) * 0.6);
  background: var(--brand-surface);
}
.hx-company { color: var(--brand-muted); max-width: 60ch; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--hx-line); font-size: var(--t-s); }
.hx-company a { color: var(--brand-text); }
@media (min-width: 62rem) {
  .hx-close > .cs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4rem; align-items: end; }
  .hx-close__head { grid-row: 1 / span 3; align-self: start; }
  .hx-close .hx-call { margin-bottom: 0; }
}
.cs-main:has(.hx-hero) .hx-close__head { font-size: var(--type-section); max-width: 16ch; }
.hx-close__line { font-size: var(--t-md); color: var(--brand-muted); max-width: 48ch; margin-bottom: 2.25rem; }

/* Small screens: brand and language on one row, the nav as one scrollable
   row, pillar text gets the width back, the call spans the column. */
@media (max-width: 40rem) {
  .cs-header__inner { gap: 0.5rem 1rem; padding-block: 0.75rem 0.25rem; }
  .cs-brand { order: 1; }
  .cs-lang { order: 2; margin-left: auto; }
  .cs-nav { order: 3; flex-basis: 100%; }
  .cs-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 1.1rem; }
  .cs-nav li { flex: none; }
  .cs-button.hx-call__btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------
   Products: rich cards on the index, one page per product. A product
   leads with what it really shows: a same-origin screenshot in a
   window frame, the sample ledger, or a real code excerpt.
   ------------------------------------------------------------------ */

.hx-products__more { grid-column: 1 / -1; margin: 1.75rem 0 0; }

.pc-grid-wrap { padding-block: clamp(2.5rem, 5vw, 4rem); }
.pc-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pc {
  position: relative; display: flex; flex-direction: column;
  background: var(--brand-surface); border: 1px solid var(--brand-border);
  box-shadow: none;
  transition: border-color 200ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.pc:hover { border-color: #65462f; transform: translateY(-3px); }
.pc:focus-within { border-color: var(--brand-accent); }
.pc__visual {
  aspect-ratio: 16 / 10; overflow: hidden; position: relative;
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem) 0;
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
}
.pc__visual .pv { transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); transform-origin: 50% 0; }
.pc:hover .pc__visual .pv { transform: translateY(-6px); }
.pc__visual--text { aspect-ratio: auto; padding-bottom: clamp(1rem, 2.5vw, 1.75rem); }
.pc__visual--text .pv--code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.pc__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.pc__body h2 { font-size: var(--type-item); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.pc__body h2 a { color: var(--brand-text); text-decoration: none; }
.pc__body h2 a::after { content: ""; position: absolute; inset: 0; }
.pc__body h2 a:focus-visible { outline: none; }
.pc__kind, .pp-kind {
  font: 400 var(--t-s)/1.5 var(--brand-font-body);
  color: var(--hx-dim, #a8998a); margin: 0 0 1rem;
}
.pc__promise { color: var(--brand-muted); margin: 0 0 1.25rem; }
.pc__status {
  display: flex; gap: 0.6rem; align-items: baseline; margin: 0 0 1.5rem;
  font-size: var(--t-s); color: var(--brand-text); max-width: 60ch;
}
.pc__status::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; translate: 0 -0.05rem; background: var(--brand-text); }
.pc__more { margin-top: auto; align-self: flex-start; }
.pc:is(:hover, :focus-within) .pc__more { color: var(--brand-accent-strong); }
.pc:is(:hover, :focus-within) .pc__more::after { translate: 0.2rem 0; }

/* Product visuals */
.pv { margin: 0; }
.pv--image, .pv--code { border: 1px solid #65462f; background: var(--brand-bg); box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.8); }
.pv__bar { display: flex; gap: 0.4rem; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--brand-border); background: #17110d; }
.pv__bar i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(255 246 233 / 0.18); }
.pv--image img { display: block; width: 100%; height: auto; }
.pv--code pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font: 400 var(--t-sm)/1.65 var(--brand-font-mono); color: var(--brand-text); tab-size: 4; }
.pv--code .pv__out { border-top: 1px solid var(--brand-border); color: var(--brand-accent-strong); background: #120e0b; }
.pv--ledger { border: 1px solid #65462f; background: #120e0b; box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.8); }
.pv--ledger figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--brand-border); background: #17110d;
  font: 500 var(--t-xs)/1.2 var(--brand-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-muted);
}
.pv--ledger .hx-sample { float: none; margin: 0; }
.pv--ledger li {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: center;
  padding: 0.65rem 0.9rem; border-bottom: 1px solid rgb(255 246 233 / 0.07); font-size: var(--t-s);
}
.pv--ledger li:last-child { border-bottom: 0; }
.pv--ledger li.is-query { background: rgb(255 179 92 / 0.06); box-shadow: inset 2px 0 0 var(--brand-accent-strong); }
.pv__date { font-family: var(--brand-font-mono); font-size: var(--t-sm); color: var(--brand-muted); }
.pv__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv__amt { font-family: var(--brand-font-mono); font-size: var(--t-sm); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 40rem) {
  .pv--ledger li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem; }
  .pv__text { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
}

/* Product page */
.pp-head h1 { margin-bottom: 0.4rem; }
.pp-head .pp-kind { margin-bottom: 1.25rem; }
.pp-head .pc__status { margin: 1.25rem 0 0; }
.pp-head .cs-actions { align-items: center; gap: 1rem 1.5rem; }
.pp-visual { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.pp-visual .pv { max-width: 64rem; }
.pp-gallery { padding-block: 0 clamp(1rem, 3vw, 2rem); }
.pp-gallery .pv { max-width: 64rem; }
.pp-steps { counter-reset: pp; border-top: 1px solid var(--brand-border); }
.pp-steps li {
  counter-increment: pp; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--brand-border);
}
.pp-steps li::before { content: counter(pp); font: 500 var(--t-sm)/1.9 var(--brand-font-mono); color: var(--hx-dim, #a8998a); }
.pp-cta { margin-top: 1.75rem; }

/* Writing: the mukimov.com journal pattern. Date and reading time in a mono
   column, then title, line and tags; tag filters are static pages. */
.wr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }
.wr-feed {
  font: 500 var(--t-xs)/1 var(--brand-font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-muted); text-decoration: none; border: 1px solid var(--brand-border); padding: 0.5rem 0.75rem;
}
.wr-feed:hover { color: var(--brand-text); border-color: var(--brand-accent); }
.wr-chips { margin-bottom: 2rem; }
.wr-chips ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wr-chips a, .wr-tags a {
  display: inline-block; text-decoration: none; font: 500 var(--t-xs)/1 var(--brand-font-mono); letter-spacing: 0.04em;
  color: var(--brand-muted); border: 1px solid var(--brand-border); border-radius: var(--r-doc); padding: 0.45rem 0.75rem;
}
.wr-chips a:hover, .wr-tags a:hover { color: var(--brand-text); border-color: #65462f; }
.wr-chips a[aria-current] { color: var(--brand-bg); background: var(--brand-accent); border-color: var(--brand-accent); }
.cs-articles > li { display: grid; gap: 0.5rem 2.5rem; grid-template-columns: minmax(0, 1fr); padding: 1.75rem 0; }
@media (min-width: 48rem) { .cs-articles > li { grid-template-columns: 9rem minmax(0, 1fr); } }
.wr-meta { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; font: 500 var(--t-xs)/1.4 var(--brand-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-muted); padding-top: 0.4rem; }
.wr-meta--article { flex-direction: row; gap: 1.25rem; margin-top: 1rem; }
.wr-body h2 { font-size: var(--type-item); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.6rem; }
.wr-body h2 a { color: var(--brand-text); text-decoration: none; }
.wr-body h2 a:hover { color: var(--brand-accent-strong); }
.wr-body > p { color: var(--brand-muted); margin: 0 0 0.9rem; max-width: 62ch; }
.wr-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cs-page-head .wr-tags { margin-top: 1rem; }

/* Native disclosure navigation: all routes stay available without JavaScript. */
.cs-menu { display: none; }
.cs-menu summary { cursor: pointer; list-style: none; min-height: 2.75rem; min-width: 2.75rem; padding: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: var(--t-s); }
.cs-menu summary::-webkit-details-marker { display: none; }
.cs-menu summary span { width: 1rem; height: 0.5rem; border-block: 1px solid currentColor; }
.cs-menu[open] summary { color: var(--brand-accent); }
.cs-menu nav { position: absolute; inset: 100% 0 auto; background: var(--brand-surface); border-bottom: 1px solid var(--brand-border); padding: 1rem max(1.25rem, calc((100% - 80rem) / 2)); }
.cs-menu nav a { color: var(--brand-text); display: block; padding: 0.8rem var(--cs-row-inset); text-decoration: none; border-bottom: 1px solid var(--brand-border); }
.cs-menu nav a[aria-current] { color: var(--brand-accent); }
@media (max-width: 74rem) {
  .cs-nav { display: none; }
  .cs-menu { display: block; margin-left: auto; order: 3; }
  .cs-lang { margin-left: auto; order: 2; }
  .cs-header__inner { min-height: 5rem; padding-block: 0.6rem; gap: 1rem; }
  .cs-brand { order: 1; }
}
@media (max-width: 40rem) {
  .cs-brand { font-size: 1rem; }
  .cs-menu summary { font-size: 0; gap: 0; padding: 0.75rem; }
  .cs-menu { margin-left: 0; }
  .cs-header__inner { gap: 0.5rem; }
  .cs-lang a { min-width: 2.25rem; text-align: center; }
  .hx-ledger { overflow-x: auto; }
  .cs-prose { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
