/*
 * devgineers — website theme "Schaltplan" (technical drawing).
 *
 * MONOLITH palette from tokens.css; typography in Barlow, a DIN-like
 * grotesque (SIL OFL, self-hosted, see /assets/fonts/OFL-Barlow.txt).
 * Drawing conventions instead of UI decoration: corner marks, wires with
 * nodes, dashed construction lines. No eyebrow labels, no invented IDs.
 */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --font-text: "Barlow", "Segoe UI", system-ui, Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;
  --font-code: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --line-dark: #2E383C;
  --line-light: #C9C7BF;
  --text-dim: #AEB7B3;
  --error: #8E2B2B;
  --gutter: clamp(20px, 5.5vw, 96px);
  --facet: clamp(28px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .65, .25, 1);
  --ink: var(--dg-off-white);
  --rule: var(--line-dark);
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--dg-charcoal);
  color: var(--dg-off-white);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  font-kerning: normal;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { max-width: 66ch; margin: 0 0 1em; }

h1, h2, h3 { margin: 0 0 .5em; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1; letter-spacing: -0.015em; }
h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.01em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }

:focus-visible { outline: 2px solid var(--dg-sage); outline-offset: 4px; }

::selection { background: var(--dg-sage); color: var(--dg-charcoal); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1400px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--dg-off-white); color: var(--dg-charcoal); font-weight: 600; }
.skip-link:focus { top: 16px; }

.lead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; }
.dim { color: var(--text-dim); }
.small { font-size: 15px; color: var(--text-dim); }

/* Light document sheets switch the drawing ink */
.sheet { --ink: var(--dg-charcoal); --rule: var(--line-light); }
.sheet .dim, .sheet .small { color: var(--dg-muted); }

/* ---------- Drawing primitives ---------- */

/* Button: four corner marks and a terminal node; the frame draws itself on hover */
.btn {
  --mark: 12px;
  --w: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 26px 14px 20px;
  border: 0;
  color: var(--ink);
  background-color: transparent;
  background-image:
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size:
    var(--mark) var(--w), var(--w) var(--mark), var(--mark) var(--w), var(--w) var(--mark),
    var(--mark) var(--w), var(--w) var(--mark), var(--mark) var(--w), var(--w) var(--mark);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-size 240ms var(--ease);
}

.btn::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dg-sage);
}

.btn:hover, .btn:focus-visible {
  --mark: 51%;
}

.btn--quiet::before { background: transparent; border: 1.5px solid currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 40px; }

/* Wire link: a node and a lead going into the label */
.wire {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(var(--dg-sage), var(--dg-sage)) no-repeat 9px 50% / 28px 1.5px;
  transition: background-size 240ms var(--ease);
}
.wire::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  margin-right: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--dg-sage);
  transition: margin-right 240ms var(--ease);
}
.wire:hover { background-size: 44px 1.5px; }
.wire:hover::before { margin-right: 54px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(15, 20, 24, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 80px; }
.brand img { width: 188px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-size: 16.5px; font-weight: 500; }
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-dim); text-decoration: none; }
.has-sub > .nav-link::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 240ms var(--ease); }
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link, .nav-item.is-active > .nav-link { color: var(--dg-off-white); }
.nav-item.is-active > .nav-link { box-shadow: inset 0 -1.5px 0 var(--dg-sage); }
.has-sub:hover > .nav-link::after, .has-sub:focus-within > .nav-link::after { transform: translateY(1px) rotate(225deg); }
.nav .btn { min-height: 44px; padding: 10px 20px 10px 16px; font-size: 16px; --mark: 9px; }

/* Submenu: a drawing sheet hanging from the header, opened by hover or keyboard focus */
.sub {
  position: absolute;
  top: 100%;
  left: -24px;
  z-index: 40;
  min-width: 300px;
  padding: 18px 24px 22px;
  background: var(--dg-charcoal);
  border: 1px solid var(--line-dark);
  border-top: 1.5px solid var(--dg-sage);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 120ms var(--ease), transform 240ms var(--ease), visibility 0s linear 240ms;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sub ul { margin: 0 0 12px; padding: 0; list-style: none; }
.sub li a { display: block; padding: 10px 0; border-bottom: 1px dashed var(--line-dark); color: var(--dg-off-white); text-decoration: none; white-space: nowrap; }
.sub li a:hover, .sub li a[aria-current="page"] { color: var(--dg-off-white); box-shadow: inset 2px 0 0 var(--dg-sage); padding-left: 12px; transition: padding-left 120ms var(--ease); }
.sub .wire { font-size: 15.5px; color: var(--text-dim); }
.sub .wire:hover { color: var(--dg-off-white); }

/* ---------- Breadcrumbs ---------- */

.crumbs { margin: 0 0 clamp(40px, 5vw, 72px); font-size: 15px; color: var(--text-dim); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #56625D; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--dg-off-white); }
.crumbs [aria-current="page"] { color: var(--dg-off-white); }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 104px) 0 calc(clamp(40px, 5vw, 72px) + var(--facet));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--facet)), 0 100%);
  background: var(--dg-charcoal);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 32px; }
.hero h1 .accent { color: var(--dg-sage); }
.hero .lead { color: #D4DAD7; max-width: 580px; }

.signet { width: 100%; max-width: 680px; justify-self: end; overflow: visible; }
.signet text { font-family: var(--font-text); font-size: 4.6px; font-weight: 500; fill: var(--text-dim); }
.signet line, .signet path.dim-line { stroke: #56625D; stroke-width: .35; fill: none; }
.signet circle { fill: var(--dg-charcoal); stroke: var(--dg-sage); stroke-width: .5; }

@media (prefers-reduced-motion: no-preference) {
  .signet .p1, .signet .p2, .signet .p3, .signet .ann { opacity: 0; transform-box: fill-box; animation: part-in 420ms var(--ease) forwards; }
  .signet .p1 { --from: translateX(-6px); animation-delay: 120ms; }
  .signet .p2 { --from: translateY(-6px); animation-delay: 360ms; }
  .signet .p3 { --from: translateY(6px); animation-delay: 600ms; }
  .signet .ann { --from: none; animation-delay: 900ms; animation-duration: 600ms; }
}

@keyframes part-in { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  padding: clamp(28px, 3.5vw, 48px) 0 calc(clamp(56px, 6vw, 96px) + var(--facet));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--facet)), 0 100%);
  background: var(--dg-charcoal);
}
.page-hero h1 { font-size: clamp(40px, 5.4vw, 80px); max-width: 16ch; }
.page-hero .lead { color: #D4DAD7; max-width: 700px; }

.page-hero .position { position: absolute; right: calc(var(--gutter) + 2vw); top: 54%; height: min(62%, 440px); width: auto; transform: translateY(-50%); pointer-events: none; }
.page-hero--positioned .wrap > :not(.crumbs) { max-width: min(860px, 62%); }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9vw, 136px) 0; }
.section--graphite { background: #161D21; }
.hero + .section { padding-top: clamp(48px, 6vw, 96px); }

.sheet {
  position: relative;
  margin-top: calc(-1 * var(--facet));
  padding-top: calc(clamp(64px, 8vw, 120px) + var(--facet));
  background: var(--dg-off-white);
  color: var(--dg-ink);
  clip-path: polygon(0 var(--facet), 100% 0, 100% 100%, 0 100%);
  color-scheme: light;
}
.sheet + .sheet { margin-top: 0; padding-top: clamp(64px, 8vw, 120px); clip-path: none; border-top: 1px dashed var(--line-light); }
.sheet--stone { background: var(--dg-stone); }

.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px clamp(32px, 6vw, 112px); margin-bottom: clamp(40px, 5vw, 72px); align-items: end; }
.head h2, .head p { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }

/* ---------- Service rows ---------- */

.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 5fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
}
.service-mark { width: 40px; height: 48px; align-self: start; }
.service-mark path { fill: var(--part, var(--dg-off-white)); }
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--text-dim); }
.service .wire { white-space: nowrap; }

.part-eng { --part: var(--dg-off-white); }
.part-dev { --part: var(--dg-sand); }
.part-sec { --part: var(--dg-sage); }
.sheet .part-eng { --part: var(--dg-charcoal); }
.sheet .service p { color: var(--dg-muted); }

/* ---------- Process: nodes on one wire (order is information) ---------- */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.process::before { content: ""; position: absolute; top: 6px; left: 6px; right: 0; height: 1.5px; background: var(--dg-sage); }
.process > li { position: relative; padding-top: 34px; }
.process > li::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--dg-charcoal); border: 1.5px solid var(--dg-sage); }
.process > li:last-child::before { background: var(--dg-sage); }
.sheet .process > li::before { background: var(--dg-off-white); }
.sheet .process > li:last-child::before { background: var(--dg-sage); }
.process strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.process p { margin: 0; color: var(--text-dim); font-size: 16.5px; }
.sheet .process p { color: var(--dg-muted); }
.process--2 { --steps: 2; }
.process--3 { --steps: 3; }
.process--4 { --steps: 4; }

/* ---------- Artefact: a real piece of work shown as figure ---------- */

.artefact { margin: 0; }
.artefact pre {
  margin: 0;
  padding: 28px 32px;
  overflow-x: auto;
  background: #0B1013;
  border: 1px solid var(--line-dark);
  font-family: var(--font-code);
  font-size: 14.5px;
  line-height: 1.7;
  color: #C9D1CD;
  tab-size: 2;
}
.artefact .k { color: var(--dg-sand); }
.artefact .c { color: #75817C; }
.artefact .hl { display: inline-block; width: 100%; background: rgba(122, 143, 134, .16); box-shadow: inset 2px 0 0 var(--dg-sage); }
.artefact figcaption { margin-top: 14px; font-size: 15px; color: var(--text-dim); max-width: 60ch; }
.sheet .artefact figcaption { color: var(--dg-muted); }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; }

.spec { width: 100%; border-collapse: collapse; font-size: 17px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 24px 28px 24px 0; border-bottom: 1px solid var(--rule); }
.spec thead th { padding-top: 0; padding-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--dg-muted); border-bottom: 1.5px solid var(--ink); }
.spec tbody th { width: 26%; font-weight: 400; }
.spec tbody th a { font-family: var(--font-display); font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; line-height: 1.2; text-decoration: none; }
.spec tbody th a:hover { text-decoration: underline; text-decoration-color: var(--dg-sage); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.spec td { color: var(--dg-graphite); }
.spec td:last-child { padding-right: 0; }

.matrix { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16.5px; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px dashed var(--rule); }
.matrix thead th { font-size: 15px; font-weight: 600; color: var(--text-dim); border-bottom: 1.5px solid var(--ink); }
.matrix td { color: #D4DAD7; }

/* ---------- Deliverables ---------- */

.deliverables { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.deliverables li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 26px 0; border-bottom: 1px dashed var(--rule); }
.deliverables h3 { margin: 0; }
.deliverables p { margin: 0; color: var(--dg-graphite); }

/* ---------- Notes, statements ---------- */

.note { margin: 32px 0 0; padding: 18px 22px; border: 1px dashed var(--rule); font-size: 16px; max-width: 760px; }
.note p { margin: 0; }

.goal { margin: 36px 0 0; padding-top: 24px; border-top: 1.5px solid var(--ink); font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.2; max-width: 30ch; }

.facts-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 32px 0 0; }
.facts-dl dt { font-size: 15px; font-weight: 600; color: var(--dg-muted); }
.facts-dl dd { margin: 0 0 16px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: baseline; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; justify-self: end; font-family: var(--font-text); font-weight: 400; font-size: 26px; line-height: 1; color: var(--dg-sage); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 26px; color: #D4DAD7; }
.faq details p a { text-decoration-color: var(--dg-sage); text-underline-offset: 4px; }
.sheet .faq details p { color: var(--dg-graphite); }

/* ---------- Link lists ---------- */

.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.links a { display: grid; gap: 4px; padding: 24px 0 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.links .title { font-family: var(--font-display); font-size: clamp(21px, 1.9vw, 27px); font-weight: 600; line-height: 1.2; }
.links .meta { font-size: 15.5px; color: var(--text-dim); }
.links a:hover .title { text-decoration: underline; text-decoration-color: var(--dg-sage); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.sheet .links .meta { color: var(--dg-muted); }

/* ---------- Timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1.5px; background: var(--ink); }
.timeline li { position: relative; padding-top: 32px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--dg-off-white); border: 1.5px solid var(--ink); }
.timeline li.is-now::before { background: var(--dg-sage); border-color: var(--dg-sage); }
.timeline time { display: block; font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; line-height: 1.1; margin-bottom: 8px; }
.timeline p { color: var(--dg-graphite); font-size: 16.5px; }
.timeline .status { font-size: 15px; font-weight: 600; color: var(--dg-muted); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: calc(clamp(80px, 10vw, 150px) + var(--facet)) 0 clamp(80px, 10vw, 150px);
  margin-top: calc(-1 * var(--facet));
  background: var(--dg-charcoal);
  clip-path: polygon(0 var(--facet), 100% 0, 100% 100%, 0 100%);
}
.cta-mark { position: absolute; right: -2vw; top: 10%; height: 110%; width: auto; max-width: none; pointer-events: none; }
.cta-mark path { fill: #182024; }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(38px, 5vw, 70px); max-width: 14ch; }
.cta p { color: #D4DAD7; max-width: 560px; }

/* ---------- Article & prose ---------- */

.prose { max-width: 740px; }
.prose p, .prose li { font-size: 19px; line-height: 1.7; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 64px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 12px; }
.prose a:not(.btn) { text-decoration-color: var(--dg-sage); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .sources li { font-size: 16px; }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.article-meta { position: sticky; top: 110px; display: grid; gap: 24px; font-size: 16px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.article-meta dl { margin: 0; display: grid; gap: 14px; }
.article-meta dt { font-size: 14.5px; font-weight: 600; color: var(--dg-muted); }
.article-meta dd { margin: 2px 0 0; }

.facts { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 17px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 14px 18px 14px 0; border-bottom: 1px dashed var(--rule); }
.facts th { font-weight: 600; color: var(--dg-muted); white-space: nowrap; }

.draft-note { margin: 0 0 36px; padding: 14px 18px; border: 1px dashed #9CAAA0; font-size: 16px; color: var(--dg-muted); }

/* ---------- Forms ---------- */

.form { display: grid; gap: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--dg-muted); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font: inherit;
  font-size: 17.5px;
  color: var(--dg-charcoal);
  background: #FFFFFF;
  border: 1px dashed #8E9893;
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-style: solid; border-color: var(--dg-charcoal); box-shadow: inset 3px 0 0 var(--dg-sage); }
.field textarea { min-height: 190px; resize: vertical; }
.field [aria-invalid="true"] { border: 1.5px solid var(--error); box-shadow: inset 3px 0 0 var(--error); }
.field .hint { margin: 8px 0 0; font-size: 15px; color: var(--dg-muted); }
.field .error { margin: 8px 0 0; font-size: 15.5px; font-weight: 600; color: var(--error); }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--dg-charcoal); }
.check label { font-size: 16px; font-weight: 400; }
.check a { text-decoration-color: var(--dg-sage); text-underline-offset: 3px; }

.form-alert { padding: 18px 22px; border: 1.5px solid var(--error); box-shadow: inset 4px 0 0 var(--error); background: #FBF4F2; }
.form-alert p { margin: 0; }
.form-alert ul { margin: 10px 0 0; padding-left: 20px; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.person img { width: 120px; height: 150px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person p { margin: 0; }
.person .name { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.person a { text-decoration-color: var(--dg-sage); text-underline-offset: 4px; }

/* ---------- Legal ---------- */

.legal dl { display: grid; grid-template-columns: 280px minmax(0, 1fr); margin: 0; border-top: 1.5px solid var(--ink); }
.legal dt, .legal dd { margin: 0; padding: 22px 0; border-bottom: 1px dashed var(--rule); }
.legal dt { font-weight: 600; color: var(--dg-muted); padding-right: 24px; }
.legal address { font-style: normal; }

/* ---------- Footer ---------- */

.footer { padding: 88px 0 32px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer .claim { margin: 22px 0 18px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.footer h2 { margin: 0 0 14px; font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-dim); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--dg-sage); text-underline-offset: 4px; }
.footer address { font-style: normal; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.footend { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 15px; color: var(--text-dim); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .signet { justify-self: start; max-width: 560px; }
  .service { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .service p { grid-column: 2 / -1; }
  .page-hero .position { display: none; }
  .page-hero--positioned .wrap > :not(.crumbs) { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  html { scroll-padding-top: 80px; }

  /* Header: inline navigation gives way to the disclosure menu */
  .header-inner { min-height: 64px; gap: 16px; }
  .brand img { width: 156px; }
  .nav { display: none; }
  .menu { display: block; }

  /* Rhythm: tighter vertical spacing on small screens */
  :root { --facet: 24px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 calc(48px + var(--facet)); }
  .hero + .section { padding-top: 40px; }
  .page-hero { padding: 20px 0 calc(48px + var(--facet)); }
  .sheet { padding-top: calc(56px + var(--facet)); }
  .sheet + .sheet { padding-top: 56px; }
  .cta { padding: calc(64px + var(--facet)) 0 64px; }
  .head { margin-bottom: 32px; gap: 16px; }
  .crumbs { margin-bottom: 28px; }
  .actions { gap: 12px 24px; margin-top: 28px; }

  /* Hero: the annotated signet needs width; on phones the headline carries it */
  .signet .ann { display: none; }
  .signet { max-width: 320px; justify-self: center; margin: -8px auto 0; }

  /* Touch targets of at least 44px */
  .wire { min-height: 44px; }
  .footer li a { display: inline-block; padding: 8px 0; }
  .crumbs a { display: inline-block; padding: 6px 0; }
  .head, .split, .form-row, .article-layout, .legal dl, .deliverables li { grid-template-columns: 1fr; }
  .service { grid-template-columns: 36px minmax(0, 1fr); }
  .service-mark { width: 28px; height: 34px; }
  .service .wire { grid-column: 2; }
  .process, .timeline { grid-template-columns: 1fr; }
  .process::before, .timeline::before { top: 6px; bottom: 6px; left: 6px; right: auto; width: 1.5px; height: auto; }
  .process > li, .timeline li { padding: 0 0 12px 36px; }
  .deliverables li { gap: 6px; }
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec tr { padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .spec th, .spec td { padding: 4px 0; border: 0; }
  .spec tbody th { width: 100%; margin-bottom: 8px; }
  .spec td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--dg-charcoal); }
  .article-meta { position: static; }
  .legal dt { border-bottom: 0; padding-bottom: 4px; }
  .legal dd { padding-top: 0; }
  .footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 40px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer ul { gap: 0; }
  .footend { flex-direction: column; gap: 4px; }
  .cta-mark { opacity: .5; }
}

@media (max-width: 600px) {
  .signet { display: none; }
  .person { grid-template-columns: 1fr; }
  .service { gap: 12px 14px; align-items: center; }
  .service p, .service .wire { grid-column: 1 / -1; }
}

/* ---------- Mobile menu: full screen, works without JavaScript ---------- */

.menu { display: none; }

.menu summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 2px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--dg-off-white);
}
.menu summary::-webkit-details-marker { display: none; }

.menu-icon { position: relative; width: 22px; height: 14px; }
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 240ms var(--ease), top 240ms var(--ease), bottom 240ms var(--ease);
}
.menu-icon::before { top: 2px; }
.menu-icon::after { bottom: 2px; }
.menu[open] .menu-icon::before { top: 6px; transform: rotate(45deg); }
.menu[open] .menu-icon::after { bottom: 6.5px; transform: rotate(-45deg); }

.menu-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 65px;
  bottom: 0;
  z-index: 50;
  display: grid;
  align-content: start;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--dg-charcoal);
}

.menu-panel a { color: var(--dg-off-white); text-decoration: none; }

.menu-home,
.menu-top {
  display: block;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-dark);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.menu-group { border-bottom: 1px dashed var(--line-dark); }
.menu-group .menu-top { border-bottom: 0; padding-bottom: 6px; }
.menu-group ul { margin: 0 0 14px; padding: 0 0 0 16px; list-style: none; border-left: 1.5px solid var(--line-dark); }
.menu-group li a { display: block; padding: 9px 0; font-size: 17px; font-weight: 500; color: #D4DAD7; }

.menu-panel a[aria-current="page"]:not(.btn) { color: var(--dg-off-white); box-shadow: inset 3px 0 0 var(--dg-sage); padding-left: 14px; }
.menu-group li a[aria-current="page"] { margin-left: -17.5px; padding-left: 31px; }

.menu-contact { display: grid; justify-items: start; gap: 6px; padding-top: 28px; }
.menu-contact .btn { margin-bottom: 14px; }
.menu-contact a:not(.btn) { padding: 6px 0; color: var(--text-dim); }

ul.faq { list-style: none; margin: 0; padding: 0; }

@media (max-width: 860px) {
  .menu { display: block; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { backdrop-filter: none; background: var(--dg-charcoal); }
}
