/* RaftPrint — internal (informational) pages
   Shared layout on top of styles.css. DARK base (matches approved home:
   dark palette · Space Grotesk + Inter Tight). */

:root {
  --bg: #15130F;
  --bg-warm: #1E1B16;
  --fg: #F2EDE4;
  --fg-soft: #9A9285;
  --fg-mute: #6F6759;
  --line: rgba(242, 237, 228, 0.10);
  --line-strong: rgba(242, 237, 228, 0.22);
  --accent: #FF6A2C;
  --accent-ink: #15130F;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* dark page body wash */
body {
  background-image:
    radial-gradient(circle at 18% 0%, rgba(255, 106, 44, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 100% 24%, rgba(255, 106, 44, 0.03) 0%, transparent 38%);
}



/* ---------- static header / footer parity ---------- */
.site-header .nav a.active { color: var(--fg); background: var(--bg-warm); }
.lang-switch a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--fg-soft);
  text-transform: uppercase;
}
.lang-switch a.active { background: var(--fg); color: var(--bg); }

/* ---------- page masthead ---------- */
.page-masthead {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-masthead .crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.page-masthead .crumbs a { color: var(--fg-soft); }
.page-masthead .crumbs a:hover { color: var(--accent); }
.page-masthead .crumbs .sep { color: var(--line-strong); }

.page-masthead .mast-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.page-masthead h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 18px 0 0;
}
.page-masthead h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.page-masthead .mast-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: nowrap;
}
.page-masthead .mast-meta b { color: var(--fg); font-weight: 600; }
.page-masthead .mast-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 560px;
  margin: 22px 0 0;
}

/* ---------- LEGAL ---------- */
.legal {
  padding: 56px 0 120px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

/* left rail */
.legal-rail {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.rail-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.doc-switch { display: flex; flex-direction: column; gap: 2px; }
.doc-switch button {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-soft);
  transition: background .2s ease, color .2s ease;
}
.doc-switch button .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}
.doc-switch button:hover { background: var(--bg-warm); color: var(--fg); }
.doc-switch button.active { background: var(--fg); color: var(--bg); }
.doc-switch button.active .ix { color: rgba(255,255,255,0.55); }

.doc-toc { display: flex; flex-direction: column; gap: 1px; }
.doc-toc a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--fg-soft);
  border-left: 2px solid transparent;
  padding-left: 14px;
  margin-left: -2px;
  transition: color .2s ease, border-color .2s ease;
}
.doc-toc a .tnum { font-family: var(--font-mono); font-size: 11px; color: var(--fg-mute); }
.doc-toc a:hover { color: var(--fg); }
.doc-toc a.active { color: var(--accent); border-left-color: var(--accent); }

/* right content */
.legal-main { min-width: 0; max-width: 760px; }
.legal-doc { display: none; }
.legal-doc.active { display: block; }

.legal-doc .doc-head {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.legal-doc .doc-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 14px;
}
.legal-doc .doc-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  max-width: 620px;
}
.legal-doc .doc-head .stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.legal-doc .doc-head .stamp b { color: var(--fg); font-weight: 600; }

.legal-section { padding: 30px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: 96px; }
.legal-section:last-child { border-bottom: none; }
.legal-section > .sec-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px;
}
.legal-section h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.legal-section .secnum {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 6px;
}
.legal-prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose strong { color: var(--fg); font-weight: 600; }
.legal-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose ul {
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-prose ul li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.legal-prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 7px; height: 1.5px;
  background: var(--accent);
}
.legal-prose ul li b { color: var(--fg); font-weight: 600; }

.legal-prose .def {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.legal-prose .def b {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  display: block;
  margin-bottom: 6px;
}

/* legal footer note inside doc */
.doc-foot {
  margin-top: 40px;
  padding: 24px;
  background: #0C0B09;
  color: var(--dark-text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.doc-foot .df-text { max-width: 420px; }
.doc-foot .df-text h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.doc-foot .df-text p {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dark-text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-rail {
    position: static;
    flex-direction: column;
    gap: 24px;
  }
  .doc-switch { flex-direction: row; flex-wrap: wrap; }
  .doc-switch button { flex: 1 1 40%; }
  .doc-toc { display: none; }
  .page-masthead .mast-grid { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .page-masthead .mast-meta { text-align: left; }
  .legal-section > .sec-row { grid-template-columns: 1fr; }
  .legal-section .secnum { padding-top: 0; margin-bottom: 4px; }
}
@media (max-width: 600px) {
  .doc-switch button { flex: 1 1 100%; }
}

/* =====================================================================
   TECHNICAL REFERENCE
   ===================================================================== */
.ref { padding: 56px 0 120px; }
.ref-main { min-width: 0; }

.ref-section { padding: 16px 0 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.ref-section:last-child { border-bottom: none; }
.ref-section .sec-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.ref-section .sec-label .rn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.ref-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}
.ref-section .sec-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 640px;
  margin: 0 0 28px;
}

/* monospace data table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-bottom: 12px;
}
.spec-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
  padding: 0 18px 12px 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.spec-table td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-soft);
  vertical-align: top;
  line-height: 1.45;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
}
.spec-table td .mono,
.spec-table td.num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-feature-settings: "tnum";
  color: var(--fg);
}
.spec-table td .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  white-space: nowrap;
}
.spec-table td .tag.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.spec-table-wrap { overflow-x: auto; }

/* infill / parameter swatches */
.infill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fill-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fill-swatch {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: #100E0B;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.fill-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent var(--g), rgba(255,106,44,0.55) var(--g), rgba(255,106,44,0.55) calc(var(--g) + 1.5px)),
    repeating-linear-gradient(-45deg, transparent 0, transparent var(--g), rgba(255,106,44,0.55) var(--g), rgba(255,106,44,0.55) calc(var(--g) + 1.5px));
}
.fill-swatch.f10  { --g: 20px; }
.fill-swatch.f20  { --g: 13px; }
.fill-swatch.f40  { --g: 8px; }
.fill-swatch.f100::before { background: rgba(255,106,44,0.55); }
.fill-card .fc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.fill-card .pct {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-feature-settings: "tnum";
}
.fill-card .pct small { font-size: 15px; color: var(--fg-soft); }
.fill-card .fc-use {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.fill-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-soft);
  margin: 0;
}

/* parameter callout cards */
.param-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.param-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-warm);
  min-height: 200px;
}
.param-card .pc-val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.param-card .pc-val small { font-size: 18px; color: var(--fg-soft); margin-left: 4px; }
.param-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0;
}
.param-card p { font-size: 13.5px; line-height: 1.5; color: var(--fg-soft); margin: 0; }
.param-card .pc-foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.param-card .pc-foot b { color: var(--fg); }

/* file-format chips + requirement list */
.fmt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.fmt-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.fmt-chip.muted { color: var(--fg-mute); border-style: dashed; }

.req-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.req-list .req {
  background: var(--bg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.req-list .req .rk {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.req-list .req .rv {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.req-list .req .rv .u { font-size: 14px; color: var(--fg-soft); font-family: var(--font-mono); }
.req-list .req p { font-size: 13px; line-height: 1.45; color: var(--fg-soft); margin: 0; }

/* post-processing cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s ease, background .2s ease;
}
.post-card:hover { background: var(--bg-warm); border-color: var(--line-strong); }
.post-card .pn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}
.post-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0;
}
.post-card p { font-size: 13px; line-height: 1.5; color: var(--fg-soft); margin: 0; }
.post-card .pmeta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

@media (max-width: 980px) {
  .infill-grid { grid-template-columns: repeat(2, 1fr); }
  .param-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .req-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .infill-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   SERVICE PAGE TEMPLATE
   ===================================================================== */
.svc-hero { padding: 56px 0 8px; }
.svc-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.svc-kick {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.svc-kick .tagchip {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 600;
}
.svc-kick .count { color: var(--fg-mute); }
.svc-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 22px 0 26px;
}
.svc-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 520px;
  margin: 0 0 32px;
}
.svc-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* hero visual placeholder */
.svc-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: #100E0B;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.svc-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 13px, rgba(242,237,228,0.05) 13px, rgba(242,237,228,0.05) 14px);
}
.svc-visual::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--bg);
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.svc-visual .vtag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 11px;
}

/* spec strip */
.svc-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 48px;
}
.svc-spec-strip .cell {
  padding: 28px clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.svc-spec-strip .cell:last-child { border-right: none; }
.svc-spec-strip .cell .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.svc-spec-strip .cell .v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
  font-feature-settings: "tnum";
}
.svc-spec-strip .cell .v small { font-size: 16px; color: var(--fg-soft); }

/* generic section block on service page */
.svc-block { padding: 84px 0; border-bottom: 1px solid var(--line); }
.svc-block:last-of-type { border-bottom: none; }
.svc-block .blk-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
.svc-block .blk-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.svc-block .blk-head .blk-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

/* capabilities: two columns */
.svc-cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
  border-top: 1px solid var(--line-strong);
}
.svc-cap .item {
  padding: 22px 0;
  border-bottom: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px;
}
.svc-cap .item .ci {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 4px;
}
.svc-cap .item h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.svc-cap .item p { font-size: 14px; line-height: 1.5; color: var(--fg-soft); margin: 0; }

/* process steps */
.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.svc-step .sn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.svc-step h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 0;
}
.svc-step p { font-size: 13.5px; line-height: 1.5; color: var(--fg-soft); margin: 0; }

/* related works */
.svc-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-warm);
}
.work-card .wph {
  aspect-ratio: 4 / 3;
  position: relative;
  background: #100E0B;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 9px, rgba(242,237,228,0.05) 9px, rgba(242,237,228,0.05) 10px);
}
.work-card .wph .wlabel {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 4px;
}
.work-card .wmeta { padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.work-card .wmeta h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.work-card .wmeta .client {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

/* materials chips */
.svc-mat-row { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-mat {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

/* closing CTA band */
.svc-cta {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  margin: 8px 0 0;
}
.svc-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}
.svc-cta p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 16px 0 0;
  opacity: 0.8;
}
.svc-cta .cta-btns { display: flex; flex-direction: column; gap: 10px; }
.svc-cta .btn-dark { background: var(--fg); color: var(--bg); }
.svc-cta .btn-dark:hover { background: var(--accent-ink); color: var(--fg); }
.svc-cta .btn-line { background: transparent; border: 1px solid rgba(21,19,15,0.4); color: var(--accent-ink); }
.svc-cta .btn-line:hover { border-color: var(--accent-ink); }

@media (max-width: 980px) {
  .svc-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-spec-strip { grid-template-columns: 1fr 1fr; }
  .svc-spec-strip .cell:nth-child(2) { border-right: none; }
  .svc-spec-strip .cell { border-bottom: 1px solid var(--line); }
  .svc-cap { grid-template-columns: 1fr; gap: 0; }
  .svc-steps { grid-template-columns: 1fr 1fr; }
  .svc-work-grid { grid-template-columns: 1fr; }
  .svc-cta { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 600px) {
  .svc-spec-strip { grid-template-columns: 1fr; }
  .svc-spec-strip .cell { border-right: none; }
  .svc-steps { grid-template-columns: 1fr; }
  /* stack the block head (was 1fr auto) so its trailing button drops below the
     heading instead of overflowing the viewport on narrow phones */
  .svc-block .blk-head { grid-template-columns: 1fr; align-items: start; gap: 18px; justify-items: start; }
}

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.ct-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.ct-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-warm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  transition: border-color .2s ease, transform .15s ease;
}
.ct-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ct-card .ck {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.ct-card .cv {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  margin-top: 2px;
}
.ct-card .csub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
}
.ct-card .carrow {
  margin-top: auto;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--fg);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ct-card:hover .carrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* contact 2-col */
.contact-2col {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  margin-top: 14px;
}
.contact-panel {
  background: #100E0B;
  border: 1px solid var(--line);
}
.contact-panel h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aside-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  background: var(--bg-warm);
}
.aside-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 16px;
}
.hours-row, .req-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.hours-row:last-child, .req-row:last-child { border-bottom: none; }
.hours-row .d, .req-row .rk2 { color: var(--fg-soft); white-space: nowrap; }
.hours-row .h, .req-row .rv2 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  font-feature-settings: "tnum";
  text-align: right;
}
.hours-row .h.closed { color: var(--fg-mute); }

/* map placeholder */
.map-ph {
  margin-top: 14px;
  aspect-ratio: 21 / 7;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #100E0B;
  position: relative;
  overflow: hidden;
}
.map-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 38px, rgba(242,237,228,0.05) 38px, rgba(242,237,228,0.05) 39px),
    repeating-linear-gradient(90deg, transparent 0, transparent 38px, rgba(242,237,228,0.05) 38px, rgba(242,237,228,0.05) 39px);
}
.map-ph .pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 9px 15px;
  border-radius: 999px;
}

/* form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
}
.contact-panel.sent .form-fields { display: none; }
.contact-panel.sent .form-success { display: flex; }
.form-success .tick {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.form-success h3 { margin: 0; }
.form-success p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  max-width: 420px;
}
.form-success .ref {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-mute);
}

@media (max-width: 980px) {
  .ct-cards { grid-template-columns: 1fr 1fr; }
  .contact-2col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ct-cards { grid-template-columns: 1fr; }
}

/* =====================================================================
   BLOG — list / category
   ===================================================================== */
.blog-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blog-filter button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.blog-filter button:hover { color: var(--fg); border-color: var(--fg); }
.blog-filter button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* featured */
.blog-featured {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-warm);
  margin-bottom: 16px;
}
.blog-featured .fcover {
  position: relative;
  min-height: 360px;
  background: #100E0B;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 13px, rgba(242,237,228,0.05) 13px, rgba(242,237,228,0.05) 14px);
}
.blog-featured .fcover .ftag {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 5px 10px;
  border-radius: 5px;
}
.blog-featured .fcover .fpill {
  position: absolute;
  bottom: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 5px;
}
.blog-featured .fbody {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.blog-featured .fbody .fmeta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-featured .fbody h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.blog-featured .fbody p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
  max-width: 440px;
}
.blog-featured .fbody .read {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* dark-theme cover stripes for grid cards */
.blog-card { background: var(--bg-warm); }
.blog-card .cover {
  background-color: #100E0B;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 11px, rgba(242,237,228,0.05) 11px, rgba(242,237,228,0.05) 12px);
}
.blog-card .cover .tag { background: var(--accent); color: var(--accent-ink); }
.blog-card .read { color: var(--fg); }
.blog-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0 0 18px;
}

@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .fcover { min-height: 220px; }
  .blog-featured .fbody { padding: 28px; }
}

/* pagination */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
}
.pager button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pager button:hover:not(:disabled):not(.active) { border-color: var(--fg); color: var(--fg); }
.pager button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager button:disabled { opacity: 0.32; cursor: default; }
.pager .pg-nav { letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.pager .pg-gap { color: var(--fg-mute); padding: 0 2px; }

/* =====================================================================
   ARTICLE — full post
   ===================================================================== */
.article { padding-bottom: 110px; }
.art-head { max-width: 840px; padding-top: 44px; }
.art-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.art-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 20px 0 22px;
}
.art-deck {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 680px;
  margin: 0;
}
.art-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.art-byline .av {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-soft);
}
.art-byline .who b { font-size: 14px; font-weight: 600; display: block; }
.art-byline .who small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-soft);
  text-transform: uppercase;
}
.art-byline .meta-right {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-align: right;
}

/* cover */
.art-cover {
  margin: 36px 0 8px;
}
.art-cover .ph {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #100E0B;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 15px, rgba(242,237,228,0.05) 15px, rgba(242,237,228,0.05) 16px);
  position: relative;
}
.art-cover .ph .lab {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 6px;
}
.art-cover figcaption,
.art-fig figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  margin-top: 12px;
  text-align: center;
}

/* body */
.art-body {
  max-width: 940px;
  margin: 48px auto 0;
}
.art-body > p {
  font-size: 17px;
  line-height: 1.75;
  color: #C6BEAF;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.art-body > p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 64px;
  line-height: 0.8;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent);
}
.art-body strong { color: var(--fg); font-weight: 600; }
.art-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.art-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 48px 0 18px;
}
.art-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.art-body ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.art-body ul li {
  position: relative;
  padding-left: 26px;
  font-size: 16.5px;
  line-height: 1.6;
  color: #C6BEAF;
}
.art-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 9px; height: 1.5px;
  background: var(--accent);
}
.art-body ul li strong { color: var(--fg); }

.art-body blockquote {
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.art-callout {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 32px 0;
}
.art-callout .ck {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.art-callout p { font-size: 16px; line-height: 1.65; color: #C6BEAF; margin: 0; }

/* inline figure + table escape the 720 column a touch */
.art-fig { margin: 36px 0; }
.art-fig .ph {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #100E0B;
  background-image: repeating-linear-gradient(45deg, transparent 0, transparent 11px, rgba(242,237,228,0.05) 11px, rgba(242,237,228,0.05) 12px);
  position: relative;
}
.art-fig .ph .lab {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 5px;
}
.art-body .spec-table-wrap { margin: 32px 0; }

/* foot: tags + share */
.art-foot {
  max-width: 940px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.art-tags a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  transition: border-color .2s, color .2s;
}
.art-tags a:hover { border-color: var(--accent); color: var(--accent); }
.art-share { display: flex; gap: 8px; }
.art-share a {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.art-share a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* author card */
.art-author {
  max-width: 940px;
  margin: 36px auto 0;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.art-author .av {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg-soft);
  flex-shrink: 0;
}
.art-author h4 { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin: 0 0 4px; letter-spacing: -0.01em; }
.art-author .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 10px; }
.art-author p { font-size: 14.5px; line-height: 1.6; color: var(--fg-soft); margin: 0; }

/* related */
.art-related { margin-top: 80px; }
.art-related .rel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.art-related .rel-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 600px) {
  .art-body > p:first-child::first-letter { font-size: 48px; }
  .art-byline { flex-wrap: wrap; }
  .art-byline .meta-right { margin-left: 56px; text-align: left; }
}

/* =====================================================================
   404 — not found
   ===================================================================== */
.notfound {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.notfound::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 26px, rgba(242,237,228,0.025) 26px, rgba(242,237,228,0.025) 27px);
  pointer-events: none;
}
.nf-inner {
  text-align: center;
  max-width: 680px;
  position: relative;
}
.nf-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.nf-code::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.nf-big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(120px, 22vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin: 0;
  display: flex;
  justify-content: center;
}
.nf-big .stroke {
  -webkit-text-stroke: 1.6px var(--fg);
  color: transparent;
}
.nf-inner h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 26px 0 14px;
}
.nf-inner p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 460px;
  margin: 0 auto 32px;
}
.nf-ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.nf-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.nf-links .lk-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-right: 6px;
  align-self: center;
}
.nf-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-soft);
  transition: border-color .2s, color .2s;
}
.nf-links a:hover { border-color: var(--accent); color: var(--accent); }

/* =====================================================================
   RaftPrint_BIG — production refinements on top of the design CSS.
   ---------------------------------------------------------------------
   The sticky in-page TOC (.doc-toc) is desktop-only in the design (hidden at
   <=980, see line ~320). We bring it back on mobile/tablet as a COLLAPSIBLE
   accordion: toc-mobile.js tags the TOC's .rail-block with .toc-collapsible and
   toggles .toc-open when its heading ("On this page" / "Contents") is tapped.
   Collapsed by default so it never walls off the content; desktop (>980) is
   untouched and keeps the normal sticky list.
   ===================================================================== */
@media (max-width: 980px) {
  .legal-rail .rail-block.toc-collapsible > h4 {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    -webkit-user-select: none;
    user-select: none;
  }
  .legal-rail .rail-block.toc-collapsible > h4::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1;
    color: var(--fg-soft);
  }
  .legal-rail .rail-block.toc-collapsible.toc-open > h4::after { content: "\2212"; } /* − */
  /* collapsed by default (re-states the design's hide); open state overrides it */
  .legal-rail .rail-block.toc-collapsible .doc-toc { display: none; }
  .legal-rail .rail-block.toc-collapsible.toc-open .doc-toc { display: flex; margin-top: 14px; }
}

/* Service spec strip: keep it 2-up on phones (design collapsed it to 1 col).
   The cells are short label/value pairs, so two columns are more compact and
   read better than a long single-column stack — down to 320px. */
@media (max-width: 600px) {
  .svc-spec-strip { grid-template-columns: 1fr 1fr; }
  .svc-spec-strip .cell { border-right: 1px solid var(--line); }
  .svc-spec-strip .cell:nth-child(2n) { border-right: none; }
}

/* Breadcrumbs: the design only styled `.crumbs` inside `.page-masthead`, so the
   identical `.crumbs` on the article (.art-head) and the 6 service heroes
   (.svc-hero) rendered as plain unstyled text. De-scope the look to the base
   class (it's used only for breadcrumbs). The masthead's own rule still applies
   (same values) and inline margin-bottom on the hero/article crumbs is kept. */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.crumbs a { color: var(--fg-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--line-strong); }
