/* Bennett Mende: The Process Sheet
   A plotter-white engineering drawing sheet. Ink line work in three weights,
   a zone border, a title block, highlighter yellow for checked lines, red pencil
   for the revision cloud. Type: Barlow Condensed (DIN-style engineering caps)
   and Barlow for reading. */

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

:root {
  --sheet: #f6f7f4;
  --sheet-deep: #eceee9;
  --ink: #15181c;
  --ink-2: #4b535d;
  --ink-3: #6b7480;
  --rule: rgba(21, 24, 28, 0.28);
  --rule-strong: rgba(21, 24, 28, 0.6);
  --yellow: #ffd60a;
  --yellow-ink: #7a6200;
  --red: #d7262c;
  --red-deep: #b01c21;
  --code: var(--ink);

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --frame: 28px;        /* distance from viewport edge to the border line */
  --frame-pad: 60px;    /* content inset from viewport edge */
  --gutter: 72px;       /* spine column width */
  --max: 1320px;

  --w-thin: 1px;
  --w-med: 1.5px;
  --w-thick: 2.5px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 760px) {
  :root { --frame: 14px; --frame-pad: 32px; --gutter: 0px; }
}

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

html {
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  caret-color: var(--ink);
  scrollbar-color: var(--ink) var(--sheet);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 1.0625rem;
  font-feature-settings: "tnum" 1, "kern" 1;
  padding: 0 var(--frame-pad);
}

::selection { background: var(--yellow); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--sheet); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--sheet); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
  border-radius: 1px;
}

a { color: inherit; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
time { font-variant-numeric: tabular-nums; }

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

.skip {
  position: absolute; left: var(--frame-pad); top: -60px;
  background: var(--ink); color: var(--sheet); padding: 8px 14px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; z-index: 60;
}
.skip:focus { top: 8px; }

/* ---------- Sheet frame with zone markers ---------- */

.frame { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.frame-border {
  position: absolute; inset: var(--frame);
  border: var(--w-thick) solid var(--ink);
}
.frame-border::before {
  content: ""; position: absolute; inset: -9px;
  border: var(--w-thin) solid var(--rule);
}
.zones {
  position: absolute; display: flex; margin: 0; padding: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 0.6875rem;
  letter-spacing: 0.08em; color: var(--ink-2);
}
.zones li { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.zones-top, .zones-bottom { left: var(--frame); right: var(--frame); height: var(--frame); }
.zones-top { top: 0; } .zones-bottom { bottom: 0; }
.zones-left, .zones-right { top: var(--frame); bottom: var(--frame); width: var(--frame); flex-direction: column; }
.zones-left { left: 0; } .zones-right { right: 0; }
.zones-top li:not(:last-child)::after, .zones-bottom li:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 30%; height: 40%; border-right: var(--w-thin) solid var(--rule-strong);
}
.zones-left li:not(:last-child)::after, .zones-right li:not(:last-child)::after {
  content: ""; position: absolute; bottom: 0; left: 30%; width: 40%; border-bottom: var(--w-thin) solid var(--rule-strong);
}
@media (max-width: 760px) {
  .zones { font-size: 0.5625rem; }
  .frame-border::before { display: none; }
}

/* ---------- Drawing header ---------- */

.dwg-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto;
  padding: 44px 0 12px;
  background: var(--sheet);
  box-shadow: 0 1px 0 var(--rule);
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2);
}
.dwg-meta { display: flex; gap: 20px; white-space: nowrap; }
.dwg-meta-right { justify-content: flex-end; }
.dwg-nav { display: flex; gap: 26px; }
.dwg-nav a { text-decoration: none; color: var(--ink); padding: 4px 0; position: relative; }
.dwg-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.dwg-nav a:hover::after, .dwg-nav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 960px) {
  .dwg-header { position: static; grid-template-columns: 1fr; gap: 8px; padding-top: 34px; background: none; box-shadow: none; }
  .dwg-meta-right { display: none; }
  .dwg-nav { gap: 8px 14px; flex-wrap: wrap; font-size: 0.6875rem; }
}
@media (max-width: 480px) {
  .dwg-header .dwg-meta { display: none; }
}

/* ---------- Hero ---------- */

main { max-width: var(--max); margin: 0 auto; }

.hero { padding: 12px 0 40px; }

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 48px;
  align-items: start;
}

h1 {
  font-size: clamp(2.75rem, 7.5vw + 1rem, 6rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-left: -0.03em;
}
.hero-sub {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Revision cloud: red pencil markup around Contact */
.rev-cloud {
  position: relative; margin: 14px 10px 0 0;
  padding: 22px 30px 24px 26px;
  color: var(--red-deep);
  min-width: 250px;
}
.cloud-outline {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  pointer-events: none;
}
.cloud-outline path { fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linejoin: round; }
.rev-tri { position: absolute; right: -12px; top: -14px; width: 28px; height: 26px; }
.rev-tri svg { width: 100%; height: 100%; }
.rev-tri path { fill: var(--sheet); stroke: var(--red); stroke-width: 1.8; }
.rev-tri text { font-family: var(--font-display); font-weight: 700; font-size: 11px; fill: var(--red-deep); text-anchor: middle; }
.rev-cloud h2 {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red-deep); margin-bottom: 10px;
}
.contact-list { display: grid; gap: 8px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
}
.contact-link .ic { width: 16px; height: 16px; flex: none; color: var(--red); }
a.contact-link { position: relative; }
a.contact-link::after {
  content: ""; position: absolute; left: 26px; right: 0; bottom: 1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
a.contact-link:hover::after, a.contact-link:focus-visible::after { transform: scaleX(1); }
.contact-link.placeholder { color: var(--ink-2); font-weight: 500; }
.contact-link.placeholder .ic { color: var(--ink-3); }

@media (max-width: 1100px) {
  .hero-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 24px 40px; }
  .hero-title { grid-row: auto; }
  .rev-cloud { grid-column: 2; grid-row: auto; margin: 0 10px 0 0; padding: 18px 26px 20px 22px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 8px; }
  .hero-top { grid-template-columns: 1fr; grid-template-rows: none; gap: 26px; }
  .hero-title { grid-row: auto; }
  .rev-cloud { grid-column: auto; grid-row: auto; }
  .hero-sub { font-size: 1.0625rem; margin-top: 16px; }
  .rev-cloud { margin: 18px 12px 0 0; padding: 18px 24px 20px 20px; min-width: 0; width: 100%; }
  .contact-link { font-size: 1.125rem; }
}

/* Process flow diagram */
.pfd { margin: 14px 0 0; }
.pfd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pfd-svg text { font-family: var(--font-display); fill: var(--ink); }
.pfd-svg .line-main { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: square; }
.pfd-svg .line-bypass { fill: none; stroke: var(--code, var(--ink)); stroke-width: 1.5; stroke-dasharray: 7 5; }
.pfd-svg .arrow { fill: var(--ink); }
.pfd-svg .sym { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.pfd-svg .sym .thin { stroke-width: 1.2; }
.pfd-svg .sym .solid { fill: var(--ink); }
.pfd-svg .sym-text { font-size: 11px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.pfd-svg .node-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; fill: var(--ink-2); }
.pfd-svg .node-name { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.pfd-svg .node-role { font-size: 12.5px; font-weight: 500; fill: var(--ink-2); }
.pfd-svg .node-dates { font-size: 12px; font-weight: 600; fill: var(--ink); letter-spacing: 0.04em; }
.pfd-svg .code-swatch { stroke-width: 3; stroke: var(--code, var(--ink)); }
.pfd-svg .leader { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.pfd-svg .bubble-c { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.pfd-svg .bubble-t { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-anchor: middle; }
.pfd-svg .bubble-l { font-size: 11px; font-weight: 500; fill: var(--ink-2); text-anchor: middle; }
.pfd-svg .status-box { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; }
.pfd-svg .status-t { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-anchor: middle; fill: var(--ink); }
.pfd-svg .dim line { stroke: var(--ink-2); stroke-width: 1; }
.pfd-svg .dim-tick { fill: var(--ink-2); }
.pfd-svg .dim-t { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; fill: var(--ink-2); text-transform: uppercase; }
.pfd-svg .bypass-l { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; fill: var(--code, var(--ink)); text-transform: uppercase; }

.pfd-svg a.node { cursor: pointer; outline: none; }
.pfd-svg a.node .sym { transition: stroke-width 180ms var(--ease-out); }
.pfd-svg a.node:hover .sym, .pfd-svg a.node:focus-visible .sym { stroke-width: 3.2; }
.pfd-svg a.node .node-name { transition: fill 180ms; }
.pfd-svg a.node:hover .node-name, .pfd-svg a.node:focus-visible .node-name { fill: var(--code, var(--ink)); }
.pfd-svg a.node .focus-ring { fill: none; stroke: var(--yellow); stroke-width: 4; opacity: 0; }
.pfd-svg a.node:focus-visible .focus-ring { opacity: 1; }

.pfd-fallback { counter-reset: step; display: grid; gap: 6px; font-family: var(--font-display); font-size: 1.05rem; }
.pfd-fallback li::before { counter-increment: step; content: counter(step) "  "; font-weight: 700; }

.pfd-caption {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 0.875rem; color: var(--ink-2);
}
.pfd-caption span { display: inline-block; }
.key { display: inline-block; width: 22px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.key-bubble { width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 50%; }
.key-dash { height: 0; border-top: 1.5px dashed var(--ink); }

/* ---------- Sheet body: spine + sections ---------- */

.sheet-body { position: relative; padding-top: 24px; isolation: isolate; }

.spine {
  position: absolute; left: 35px; top: 0; bottom: 0; width: 2px;
  background: var(--ink);
}
.spine-yellow {
  position: absolute; left: -7px; top: 0; width: 16px; height: 100%;
  background: var(--yellow); opacity: 0.62; mix-blend-mode: multiply;
  transform-origin: top; transform: scaleY(var(--progress, 0));
  will-change: transform;
}

.sheet-section {
  display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr);
  padding: 56px 0 8px;
  border-top: var(--w-thin) solid var(--rule);
}
.sheet-section:first-of-type { border-top: 0; }
.gutter { position: relative; }
.tag-bubble {
  position: sticky; top: 118px;
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-left: 14px; border-radius: 50%;
  background: var(--sheet); border: 1.5px solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em;
}
.section-inner { min-width: 0; padding-left: 8px; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding-bottom: 14px; margin-bottom: 26px;
  border-bottom: var(--w-thick) solid var(--ink);
}
h2 { font-size: 2.125rem; font-weight: 600; letter-spacing: 0.005em; text-transform: uppercase; line-height: 1; }
.sheet-ref {
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lede { max-width: 66ch; color: var(--ink-2); margin-bottom: 26px; }

@media (max-width: 760px) {
  .sheet-section { grid-template-columns: 1fr; padding-top: 40px; }
  .gutter { display: none; }
  .spine { display: none; }
  .section-inner { padding-left: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
  .sheet-ref { white-space: normal; }
  h2 { font-size: 1.75rem; }
}

/* General notes */
.notes { counter-reset: note; max-width: 70ch; display: grid; gap: 12px; }
.notes li { position: relative; padding-left: 40px; }
.notes li::before {
  counter-increment: note; content: counter(note) ".";
  position: absolute; left: 0; top: 0.1em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05em; font-variant-numeric: tabular-nums;
}

/* Equipment list (experience) */
.equipment { width: 100%; border-collapse: collapse; }
.equipment th, .equipment td { text-align: left; vertical-align: top; }

.equipment thead th {
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  padding: 0 14px 10px 0; border-bottom: var(--w-thin) solid var(--rule-strong);
}
.equipment .col-tag { width: 92px; }
.equipment .col-period { width: 156px; white-space: nowrap; }
.equipment .col-service { width: 30%; }

.equipment tbody { border-top: var(--w-thin) solid var(--rule); }
.equipment tbody:first-of-type { border-top: 0; }
.unit-row th {
  padding: 22px 0 10px;
  display: table-cell;
}
.unit-row th > * { display: inline-block; vertical-align: baseline; }
.unit-tag {
  display: inline-block; min-width: 64px; padding: 2px 8px 1px; margin-right: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em;
  border: 1.5px solid var(--ink); border-bottom: 3px solid var(--code); text-align: center;
}
.unit-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; text-transform: uppercase; margin-right: 16px; }
.unit-meta { font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); letter-spacing: 0.02em; }
.in-operation {
  display: inline-block; padding: 1px 8px 0; margin-left: 4px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  vertical-align: 1px;
}
.equipment tbody td { padding: 6px 14px 14px 0; }
.equipment tbody td.col-tag { position: relative; }
.equipment tbody td.col-tag::before {
  content: ""; position: absolute; left: 32px; top: 0; bottom: 0; width: 1.5px;
  background: repeating-linear-gradient(to bottom, var(--code) 0 4px, transparent 4px 8px);
}
.equipment tbody tr:last-child td.col-tag::before { bottom: 50%; }
.equipment tbody td.col-tag::after {
  content: ""; position: absolute; left: 28px; top: 0.85em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sheet); border: 1.5px solid var(--code);
}
.equipment tbody .col-service { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.25; letter-spacing: 0.005em; }
.equipment tbody .col-notes { color: var(--ink); max-width: 62ch; }
.equipment tbody .col-period { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.inst {
  display: inline-block; margin: 6px 6px 0 0; padding: 0 8px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.6;
}

@media (max-width: 760px) {
  .equipment thead { display: none; }
  .equipment, .equipment tbody, .equipment tr, .equipment th, .equipment td { display: block; }
  .equipment .col-tag, .equipment .col-period, .equipment .col-service { width: auto; }
  .equipment .unit-row th { padding: 18px 0 6px; }
  .unit-row th > * { display: block; }
  .unit-row th > .unit-tag { display: inline-block; margin-bottom: 8px; }
  .unit-name { font-size: 1.375rem; margin: 0 0 2px; }
  .equipment tbody tr:not(.unit-row) { padding: 10px 0 12px 0; border-top: 1px dashed var(--rule); }
  .equipment tbody td { padding: 0; }
  .equipment tbody td.col-tag { display: none; }
  .equipment .col-period { font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; margin-bottom: 2px; }
  .equipment tbody .col-service { font-size: 1.125rem; margin-bottom: 4px; }
  .equipment tbody .col-notes { font-size: 1rem; }
}

/* Utilities (education) */
.utilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.utility { padding: 0 0 22px; display: grid; grid-template-rows: auto auto auto 1fr; }
.utility dt {
  font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 6px;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: var(--w-thin) solid var(--rule-strong);
}
.utility dd { margin: 0; }
.u-degree { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.u-period { color: var(--ink-2); margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.u-notes { max-width: 52ch; }
@media (max-width: 760px) {
  .utilities { grid-template-columns: 1fr; }
  .utility { padding-bottom: 28px; }
}

.certs { margin-top: 18px; padding-top: 22px; border-top: var(--w-thin) solid var(--rule); }
.cert-list { margin-top: 12px; display: grid; gap: 0; }
.cert-list li {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
}
.cert-name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cert-value { font-weight: 500; }
.cert-meta { color: var(--ink-2); font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 760px) {
  .cert-list li { grid-template-columns: 1fr; gap: 2px; }
  .cert-meta { white-space: normal; }
}

/* Instrument index (skills) */
.instruments {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 48px;
}
@media (max-width: 760px) { .instruments { grid-template-columns: 1fr; } }
.instruments li {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px dashed var(--rule);
}
.bubble {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--sheet);
  font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.04em;
}
.i-name { font-weight: 500; }
.i-src {
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.3; text-align: left; display: inline-flex; align-items: center; gap: 8px;
}
.i-src::before { content: ""; width: 10px; height: 10px; background: var(--code); flex: none; }

.languages { margin-top: 22px; padding-top: 22px; border-top: var(--w-thin) solid var(--rule); }
.lang-list { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.lang-list li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.lang { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.04em; }
.level { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 760px) { .lang-list { grid-template-columns: 1fr; } }

/* ---------- Title block ---------- */

.title-block {
  margin: 72px 0 60px;
  display: grid;
  grid-template-columns: 2fr 2.4fr 1fr 1.4fr 1fr 1fr 0.7fr 1fr 0.5fr 0.7fr;
  grid-template-areas:
    "title contact location langs source drawn scale dwg rev sheet";
  border: var(--w-thick) solid var(--ink);
}
.tb-cell { padding: 10px 14px 14px; border-right: var(--w-thin) solid var(--rule-strong); min-width: 0; }
.tb-cell:last-child { border-right: 0; }
.tb-title { grid-area: title; } .tb-contact { grid-area: contact; } .tb-location { grid-area: location; }
.tb-langs { grid-area: langs; } .tb-source { grid-area: source; } .tb-drawn { grid-area: drawn; }
.tb-scale { grid-area: scale; } .tb-dwg { grid-area: dwg; } .tb-rev { grid-area: rev; } .tb-sheet { grid-area: sheet; }

.tb-label {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px;
}
.tb-name { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.005em; }
.tb-value { font-family: var(--font-display); font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }
.tb-title .tb-value { margin-top: 6px; color: var(--ink-2); }
.tb-mono { font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.title-block .contact-list { gap: 6px; }
.title-block .contact-link { font-size: 0.9375rem; font-weight: 600; }
.title-block a.contact-link::after { left: 24px; }
.title-block .contact-link .ic { width: 14px; height: 14px; }

@media (max-width: 1100px) {
  .title-block {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "title title title contact contact contact"
      "location langs langs source drawn scale"
      "dwg dwg rev rev sheet sheet";
  }
  .tb-cell { border-bottom: var(--w-thin) solid var(--rule-strong); }
  .tb-cell:last-child { border-right: 0; }
  .tb-contact, .tb-scale, .tb-sheet { border-right: 0; }
  .tb-dwg, .tb-rev, .tb-sheet { border-bottom: 0; }
}
@media (max-width: 760px) {
  .title-block {
    margin: 48px 0 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title title"
      "contact contact"
      "location langs"
      "source drawn"
      "dwg rev"
      "scale sheet";
  }
  .tb-cell { border-right: var(--w-thin) solid var(--rule-strong); border-bottom: var(--w-thin) solid var(--rule-strong); }
  .tb-title, .tb-contact, .tb-langs, .tb-drawn, .tb-rev, .tb-sheet { border-right: 0; }
  .tb-scale, .tb-sheet { border-bottom: 0; }
  .title-block .contact-link { font-size: 1rem; word-break: break-all; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dwg-nav a::after, a.contact-link::after, .pfd-svg a.node .sym { transition: none; }
}

/* ---------- Print: the sheet prints as a sheet ---------- */

@media print {
  :root { --frame-pad: 24px; }
  .frame, .dwg-nav, .skip { display: none; }
  .dwg-header { position: static; padding-top: 0; background: none; }
  body { padding: 12px 24px; border: 2px solid var(--ink); }
  .tag-bubble { position: static; }
  .spine-yellow { transform: none; }
  a[href^="http"]::after { content: ""; }
}
