/* ==========================================================================
   BLUEPRINT: a cyanotype engineering drawing portfolio, on the template kit.
   Ground: deep blueprint blue. Linework: 1px white and ice. Mono annotations.
   ========================================================================== */

:root {
  --kit-bg: #0d3b66;
  --kit-ink: #eaf3fb;
  --kit-accent: #9fdbff;
  --kit-muted: #b4cde4;
  --kit-radius: 0;
  --kit-border: 1px solid rgba(234, 243, 251, 0.38);
  --kit-shadow: none;
  --kit-font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --kit-font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --kit-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --bg-base: var(--kit-bg);
  --bg-deep: #0a2f52;
  --bg-panel: #0c3459;
  --panel-glass: rgba(9, 42, 74, 0.42);
  --ink: var(--kit-ink);
  --ink-body: #d9e8f5;
  --ink-dim: var(--kit-muted);
  --line: rgba(234, 243, 251, 0.82);
  --line-mid: rgba(234, 243, 251, 0.38);
  --line-soft: rgba(234, 243, 251, 0.18);
  --line-faint: rgba(234, 243, 251, 0.1);
  --grid-minor: rgba(234, 243, 251, 0.045);
  --grid-major: rgba(234, 243, 251, 0.09);
  --accent: var(--kit-accent);
  --font-head: var(--kit-font-display);
  --font-mono: var(--kit-font-mono);
  --gutter: 40px;
}

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

html {
  scroll-padding-top: 96px;
  scrollbar-color: rgba(234, 243, 251, 0.35) var(--bg-deep);
  background: var(--bg-deep);
}

/* The sheet: one gradient and one drafting grid over the whole document, never a seam. */
body {
  position: relative;
  min-height: 100vh;
  font-family: var(--kit-font-body);
  font-weight: 400;
  color: var(--ink-body);
  background: linear-gradient(
    180deg,
    #0f4271 0,
    var(--bg-base) 1100px,
    var(--bg-base) 70%,
    var(--bg-deep) 100%
  );
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Drafting grid: 10px minor, 100px major */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size:
    100px 100px,
    100px 100px,
    10px 10px,
    10px 10px;
}

main,
footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration: none;
}

:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--bg-base);
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.skip-link {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 120;
  background: var(--bg-deep);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px 22px;
  font-size: 12px;
}

.skip-link:focus-visible {
  transform: translateX(-50%) translateY(0);
}

main:focus {
  outline: none;
}

/* ==========================================================================
   The sheet border and registration marks: they frame the whole drawing
   ========================================================================== */

.sheet {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(234, 243, 251, 0.28);
  pointer-events: none;
  z-index: 90;
}

.sheet::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(234, 243, 251, 0.12);
}

.reg {
  position: absolute;
  width: 18px;
  height: 18px;
  stroke: rgba(234, 243, 251, 0.55);
  stroke-width: 1;
  fill: none;
}

.reg-tl {
  top: -9px;
  left: -9px;
}
.reg-tr {
  top: -9px;
  right: -9px;
}
.reg-bl {
  bottom: -9px;
  left: -9px;
}
.reg-br {
  bottom: -9px;
  right: -9px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 80;
  background: rgba(11, 50, 87, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-mid);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  flex: none;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  min-width: 0;
}

.brand-dwg {
  font-size: 12px;
  color: var(--ink-dim);
  border-left: 1px solid var(--line-soft);
  padding-left: 14px;
  white-space: nowrap;
}

.brand:hover .brand-mark {
  background: rgba(234, 243, 251, 0.1);
}

.nav {
  flex: none;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 22px;
}

.kit-nav__link {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  color: var(--ink-dim);
  border-bottom: 1px dashed transparent;
  padding: 4px 0 3px;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.kit-nav__link:hover {
  color: var(--ink);
  border-color: var(--line-mid);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-mid);
  cursor: pointer;
  padding: 11px;
  flex: none;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
}

.nav-toggle:hover {
  border-color: var(--line);
  background: rgba(234, 243, 251, 0.08);
}

/* ==========================================================================
   Layout primitives and figure heads
   ========================================================================== */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 84px 0;
  scroll-margin-top: 90px;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* after the principal, every other sheet takes a deeper ground, so a long page reads as a set of
   drawings rather than one panel (absent sections are removed, so the alternation adapts) */
main > .section:nth-of-type(even) {
  background: rgba(5, 30, 55, 0.36);
  border-block: 1px solid var(--line-faint);
}

.fig-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}

.fig-no {
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line-mid);
  padding: 7px 12px;
  white-space: nowrap;
  flex: none;
}

.fig-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

.fig-rule {
  flex: 1;
  min-width: 32px;
  height: 1px;
  background: var(--line-mid);
  transform-origin: left center;
}

.fig-sub {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* ==========================================================================
   Dimension lines
   ========================================================================== */

.dim-bar {
  display: flex;
  align-items: center;
  height: 20px;
}

.dim-tick {
  width: 1px;
  height: 15px;
  background: var(--line);
  flex: none;
}

.dim-line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--line);
  position: relative;
}

.dim-arrow-l::before,
.dim-arrow-r::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.dim-arrow-l::before {
  left: 0;
  border-right: 7px solid var(--line);
}

.dim-arrow-r::before {
  right: 0;
  border-left: 7px solid var(--line);
}

.dim-label {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  padding: 0 16px;
  white-space: nowrap;
}

/* ==========================================================================
   Hero: FIG. 00, the principal
   ========================================================================== */

.hero {
  position: relative;
  padding: 164px 0 96px;
  background: radial-gradient(ellipse 70% 60% at 22% 18%, rgba(30, 92, 148, 0.45), transparent 72%);
}

.hero .container {
  position: relative;
}

/* a vertical construction line down the left of the principal */
.hero .container::before {
  content: '';
  position: absolute;
  top: -48px;
  bottom: -56px;
  left: 14px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line-soft) 0 6px, transparent 6px 12px);
  pointer-events: none;
}

.hero-dwg {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  margin-bottom: 36px;
}

.dim-wrap {
  width: fit-content;
  max-width: 100%;
}

.hero-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 14px 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 72px;
  align-items: start;
  margin-top: 28px;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.hero-title::before {
  content: '— ';
  color: var(--line-mid);
}

.note-box {
  position: relative;
  margin-top: 32px;
  max-width: 680px;
  border: 1px dashed var(--line-mid);
  background: var(--panel-glass);
  padding: 20px 26px 22px;
}

.note-tab {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.note-text {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-body);
  text-wrap: pretty;
}

.note-box:not(:has(.note-text)) {
  display: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  max-width: 680px;
  margin-top: 28px;
}

.hero-loc {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.hero-loc:not(:has(.meta-value)) {
  display: none;
}

.meta-label {
  color: var(--ink-dim);
  letter-spacing: 0.15em;
}

.meta-label::after {
  content: ' ▸';
  color: var(--line-mid);
}

.hero-social {
  gap: 10px;
}

.kit-social__link {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-mid);
  border-radius: 0;
  color: var(--ink);
  background: rgba(9, 42, 74, 0.5);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.kit-social__link .kit-icon {
  width: 17px;
  height: 17px;
}

.kit-social__link:hover {
  background: var(--ink);
  color: var(--bg-base);
  border-color: var(--ink);
}

.hero-cta {
  gap: 16px;
  margin-top: 36px;
}

.kit-cta {
  position: relative;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
  line-height: 1.2;
  padding: 15px 26px;
  border: 1px solid var(--line-mid);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.kit-cta .kit-icon {
  width: 15px;
  height: 15px;
}

.kit-cta--primary {
  border-color: var(--line);
  background: rgba(234, 243, 251, 0.1);
  color: var(--ink);
}

/* corner ticks on the primary button */
.kit-cta--primary::before,
.kit-cta--primary::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  pointer-events: none;
}

.kit-cta--primary::before {
  top: -4px;
  left: -4px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.kit-cta--primary::after {
  bottom: -4px;
  right: -4px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.kit-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-base);
}

.kit-cta:active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deep);
}

/* --- the figure: the portrait in its frame, else the monogram plate --- */

.hero-figure {
  position: relative;
  margin-top: 6px;
}

.photo-frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-mid);
  background: var(--panel-glass);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.photo-frame .kit-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  padding: 10px 4px 2px;
}

.plate {
  display: none;
  position: relative;
  padding: 14px;
  border: 1px solid var(--line-mid);
  background: var(--panel-glass);
}

html[data-kit-photo='0'] .plate {
  display: block;
}

.plate-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.plate-svg .p-frame {
  fill: none;
  stroke: var(--line-soft);
}

.plate-svg .p-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.plate-svg .p-ring--dash {
  stroke: var(--line-mid);
  stroke-dasharray: 4 5;
}

.plate-svg .p-tick {
  stroke: var(--line-mid);
  stroke-width: 1;
}

.plate-svg .p-axis {
  stroke: var(--line-soft);
  stroke-dasharray: 10 4 2 4;
}

.plate-svg .p-initials {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 96px;
  letter-spacing: 0.02em;
  fill: rgba(159, 219, 255, 0.08);
  stroke: var(--ink);
  stroke-width: 1.2;
}

.figure-dim {
  margin-top: 16px;
}

.crop {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.crop-tl {
  top: -7px;
  left: -7px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.crop-tr {
  top: -7px;
  right: -7px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.crop-bl {
  bottom: -7px;
  left: -7px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.crop-br {
  bottom: -7px;
  right: -7px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* --- readouts: one instrument strip under the principal --- */

.hero-readouts {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-mid);
  border-left: 1px solid var(--line-soft);
  background: var(--panel-glass);
}

.kit-readout {
  gap: 10px;
  padding: 22px 24px 24px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}

.kit-readout__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.05;
}

.kit-readout__label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

/* ==========================================================================
   About: general notes and the spec list
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 72px;
  align-items: start;
}

.about-grid:has(.about-specs[data-kit-count='0']) {
  grid-template-columns: minmax(0, 1fr);
}

.about-notes {
  counter-reset: note;
  max-width: 720px;
}

.about-notes .note {
  counter-increment: note;
  position: relative;
  padding-left: 52px;
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: 22px;
  text-wrap: pretty;
}

.about-notes .note:last-child {
  margin-bottom: 0;
}

.about-notes .note::before {
  content: counter(note, decimal-leading-zero) '.';
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

/* one note alone reads as the lead */
.about-notes[data-kit-count='1'] .note {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ink);
}

.about-specs {
  border: 1px solid var(--line-soft);
  border-top-color: var(--line-mid);
  background: var(--panel-glass);
  padding: 6px 22px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row dt {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  flex: none;
}

.spec-row dd {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
  text-align: right;
}

/* ==========================================================================
   Experience: the service record
   ========================================================================== */

.datum-strip {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 52px;
  overflow: visible;
}

.datum-line {
  stroke: var(--line);
  stroke-width: 1;
}

.datum-ext {
  stroke: var(--line-mid);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.datum-tick {
  stroke: var(--line);
  stroke-width: 1;
}

.datum-node {
  fill: var(--bg-base);
  stroke: var(--line);
  stroke-width: 1;
}

.datum-sta,
.datum-span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.datum-sta {
  fill: var(--ink-dim);
}

.datum-span {
  fill: var(--ink);
}

/* a station whose years drop to the second line hangs them from a dashed leader */
.datum-drop {
  display: none;
  stroke: var(--line-mid);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.station.is-low .datum-drop {
  display: inline;
}

.no-years .datum-span,
.no-numbers .datum-sta {
  display: none;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.role {
  --pad-x: 28px;
  --pad-b: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-top-color: var(--line-mid);
  background: var(--panel-glass);
  padding: 28px var(--pad-x) var(--pad-b);
  min-width: 0;
}

/* a record without a tech list still closes with its padding */
.role:not(:has(.role-tech)) {
  --pad-b: 24px;
}

/* the station node on each record, and its leader up to the datum line */
.role::after {
  content: '';
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-base);
}

.role-grid.is-row .role::before {
  content: '';
  position: absolute;
  top: -52px;
  left: 50%;
  width: 1px;
  height: 48px;
  background: repeating-linear-gradient(180deg, var(--line-soft) 0 5px, transparent 5px 10px);
}

.role-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--ink-dim);
  margin-bottom: 18px;
}

.role-mark {
  display: flex;
  margin: 0 0 18px;
}

/* the company mark on a soft paper mount: a logo with its own dark plate, a light one and a
   transparent one all read on it, and multiply folds a white or cream background into the paper */
.role-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-width: 50px;
  padding: 5px;
  background: linear-gradient(180deg, #e0e9f2, #cbd9e6);
  border: 1px solid var(--line-mid);
}

.role-logo img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 170px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* no logo: the company's initials, drafted in the same place */
.role-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(234, 243, 251, 0.06);
}

.role-position {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
  text-wrap: balance;
}

.role-org {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.role-company {
  color: var(--ink-dim);
  border-bottom: 1px dashed transparent;
}

.role-company[href] {
  color: var(--ink);
  border-bottom-color: var(--line-mid);
  text-decoration: none;
}

.role-company[href]:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.role-loc {
  font-size: 12px;
  letter-spacing: 0.14em;
}

.role-summary {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  color: var(--ink-body);
  text-wrap: pretty;
}

.role-details,
.card-points {
  margin-bottom: 8px;
}

.role-details li,
.card-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 10px;
  text-wrap: pretty;
}

.role-details li::before,
.card-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink-dim);
  font-size: 0.8rem;
}

.role-earlier {
  border-top: 1px dashed var(--line-soft);
  padding-top: 14px;
  margin-top: 6px;
}

.role-earlier:not(:has(.kit-earlier)) {
  display: none;
}

.earlier-tab {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.earlier-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.kit-earlier {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 14px;
  font-size: 0.9rem;
}

.kit-earlier__title {
  color: var(--ink);
  font-weight: 500;
}

.kit-earlier__dates {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* the parts list of a role or a project: [ A · B · C ] */
.role-tech,
.card-spec {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

/* the tech list is the record's closed footer: a strip across the foot of every card in the row,
   so records of unequal length end on the same line */
.role-tech {
  align-content: flex-start;
  margin: auto calc(-1 * var(--pad-x)) 0;
  padding: 13px var(--pad-x) 15px;
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 30, 55, 0.42);
}

.role-body {
  padding-bottom: 18px;
}

.role-body > :last-child {
  margin-bottom: 0;
}

/* across a row, the records' footers share one top and one bottom edge (subgrid); the row gap is
   each record's margin, since a grid gap would open between the subgrid's two tracks */
@media (min-width: 720px) {
  .role-grid {
    row-gap: 0;
  }

  .role-grid > .role {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 0;
    margin-bottom: 32px;
  }

  .role-grid > .role > .role-tech {
    margin-top: 0;
  }

  .role-grid {
    margin-bottom: -32px;
  }
}

.role-tech li:not(:last-child)::after,
.card-spec li:not(:last-child)::after {
  content: '·';
  margin: 0 0.55em;
  color: var(--ink-dim);
}

.role-tech li:first-child::before {
  content: '[ ';
}

.role-tech li:last-child::after {
  content: ' ]';
}

/* ==========================================================================
   Projects: schematic sheets
   ========================================================================== */

.feature-list {
  display: grid;
  gap: 44px;
  margin-bottom: 44px;
  padding: 8px;
}

.feature-list:last-child {
  margin-bottom: 0;
}

.sheet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  background: var(--panel-glass);
  padding: 26px;
  min-width: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
}

.sheet-card > * {
  padding-inline: 0;
}

.sheet-card:hover {
  border-color: var(--line-mid);
}

.card-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--ink-dim);
}

.card-cat {
  color: var(--ink-dim);
  font-size: inherit;
  letter-spacing: inherit;
}

.card-cat::before {
  content: '[ ';
}

.card-cat::after {
  content: ' ]';
}

.card-fig {
  margin: 18px 0 0;
  border: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.card-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-fig.kit-media--schematic img {
  object-fit: contain;
  background: var(--bg-deep);
}

.card-fig .kit-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 8px 12px;
  border-top: 1px solid var(--line-faint);
}

.card-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 18px 0 10px;
  text-wrap: balance;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-body);
  text-wrap: pretty;
}

.card-points {
  margin-top: 14px;
}

.card-points li {
  font-size: 0.9rem;
}

.card-body {
  flex: 1;
}

.card-spec {
  margin-top: 16px;
}

.card-spec::before {
  content: 'Spec:';
  margin-right: 0.6em;
  color: var(--ink-dim);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}

.card-links .kit-link {
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.13em;
  color: var(--ink);
  border-bottom: 1px dashed transparent;
  padding: 6px 0;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.card-links .kit-link::after {
  content: '↗';
  color: var(--ink-dim);
}

.card-links .kit-link:hover {
  color: var(--accent);
  border-color: var(--line-mid);
}

/* --- featured: the figure beside its notes --- */

.feature {
  padding: 30px;
}

.feature-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 18px;
  align-items: start;
}

.feature-media {
  display: grid;
  gap: 16px;
}

.feature-media .card-fig {
  margin: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature .card-name {
  margin-top: 0;
  font-size: 1.55rem;
}

.feature .card-desc {
  font-size: 1rem;
}

.feature .card-spec {
  margin-top: 14px;
}

/* both a render and a schematic: the drawing runs the full sheet width under the row */
.feature.has-both .feature-body > .card-fig--schematic {
  grid-column: 1 / -1;
  margin: 0;
}

/* a schematic opens at full size */
.fig-open {
  float: right;
  color: var(--ink);
  border-bottom: 1px dashed var(--line-mid);
}

.fig-open::after {
  content: '\00a0↗';
  color: var(--ink-dim);
}

.fig-open:hover {
  color: var(--accent);
}

/* a featured project without a picture: its notes in two columns */
.feature[data-kit-media='0'] .feature-body {
  grid-template-columns: minmax(0, 1fr);
}

.feature[data-kit-media='0'] .feature-media {
  display: none;
}

.feature[data-kit-media='0'] .feature-text {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: 56px;
  align-content: start;
}

.feature[data-kit-media='0'] .feature-text > * {
  grid-column: 1;
}

.feature[data-kit-media='0'] .feature-text > .card-points,
.feature[data-kit-media='0'] .feature-text > .card-spec,
.feature[data-kit-media='0'] .feature-text > .card-links {
  grid-column: 2;
}

.feature[data-kit-media='0'] .card-name {
  grid-row: 1;
  font-size: 1.45rem;
}

.feature[data-kit-media='0'] .card-desc {
  grid-row: 2 / span 3;
}

.feature[data-kit-media='0'] .card-points {
  grid-row: 1 / span 2;
  margin-top: 4px;
}

/* --- the parts grid: rows always close; a lone last card spans the row; within a row the
   cards' heads, figures, notes, specs and links line up (subgrid). The list keeps its own
   <template> as a child, so cards are counted by type. --- */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 8px 0;
}

@media (min-width: 769px) {
  /* no row gap: it would open between the subgrid's tracks; each card's margin spaces the rows */
  .card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 40px;
    padding: 8px 8px 0;
    margin-bottom: -40px;
  }

  .card-grid > .sheet-card {
    margin-bottom: 40px;
  }

  .card-grid > .sheet-card:not(.is-wide) {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    row-gap: 0;
    align-content: start;
  }

  .card-grid > .sheet-card:not(.is-wide) > .card-head {
    grid-row: 1;
  }
  .card-grid > .sheet-card:not(.is-wide) > .card-fig {
    grid-row: 2;
  }
  .card-grid > .sheet-card:not(.is-wide) > .card-body {
    grid-row: 3;
  }
  .card-grid > .sheet-card:not(.is-wide) > .card-spec {
    grid-row: 4;
    align-self: end;
  }
  .card-grid > .sheet-card:not(.is-wide) > .card-links {
    grid-row: 5;
    align-self: end;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid > .sheet-card {
    grid-column: span 3;
  }

  .card-grid > .sheet-card:last-of-type:nth-of-type(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1025px) {
  .card-grid > .sheet-card {
    grid-column: span 2;
  }

  .card-grid > .sheet-card:nth-last-of-type(2):nth-of-type(3n + 1),
  .card-grid > .sheet-card:last-of-type:nth-of-type(3n + 2) {
    grid-column: span 3;
  }

  .card-grid > .sheet-card:last-of-type:nth-of-type(3n + 1) {
    grid-column: 1 / -1;
  }

  .card-grid[data-kit-count='4'] > .sheet-card:nth-of-type(n):nth-of-type(n) {
    grid-column: span 3;
  }

  /* a card alone on its row: the figure beside the notes */
  .sheet-card.is-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto auto;
    column-gap: 40px;
    align-content: start;
  }

  .sheet-card.is-wide > .card-head {
    grid-column: 1 / -1;
  }

  .sheet-card.is-wide > .card-fig {
    grid-column: 1;
    grid-row: 2 / span 3;
  }

  .sheet-card.is-wide > .card-body,
  .sheet-card.is-wide > .card-spec,
  .sheet-card.is-wide > .card-links {
    grid-column: 2;
  }

  /* without a picture: the name and notes left, the highlights, spec and links right */
  .sheet-card.is-wide[data-kit-media='0'] {
    grid-template-rows: auto auto 1fr auto auto;
  }

  .sheet-card.is-wide[data-kit-media='0'] > .card-body {
    display: contents;
  }

  .sheet-card.is-wide[data-kit-media='0'] {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 56px;
    padding: 30px;
  }

  .sheet-card.is-wide[data-kit-media='0'] .card-name {
    grid-column: 1;
    grid-row: 2;
    font-size: 1.45rem;
  }

  .sheet-card.is-wide[data-kit-media='0'] .card-desc {
    font-size: 1rem;
  }

  .sheet-card.is-wide[data-kit-media='0'] .card-desc {
    grid-column: 1;
    grid-row: 3 / span 3;
  }

  .sheet-card.is-wide[data-kit-media='0'] .card-points {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin-top: 18px;
  }

  .sheet-card.is-wide[data-kit-media='0'] > .card-spec {
    grid-row: 4;
  }

  .sheet-card.is-wide[data-kit-media='0'] > .card-links {
    grid-row: 5;
  }
}

.card-schematic::after {
  content: '↗';
}

/* ==========================================================================
   Tables: the parts schedule, the revision history, the certifications
   ========================================================================== */

.table-frame {
  border: 1px solid var(--line-mid);
  background: var(--panel-glass);
}

.bp-table {
  width: 100%;
  border-collapse: collapse;
}

/* the kit lays its lists out as grids; these rows are a table's */
.bp-table tbody {
  display: table-row-group;
}

.bp-table th {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-align: left;
  color: var(--ink-dim);
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-mid);
  background: rgba(9, 42, 74, 0.6);
  white-space: nowrap;
}

.bp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px dashed var(--line-faint);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-body);
  vertical-align: top;
}

.bp-table td:last-child {
  border-right: none;
}

.bp-table tbody tr:last-child td {
  border-bottom: none;
}

.bp-table tbody tr:hover td {
  background: rgba(234, 243, 251, 0.035);
}

.bp-table .cell-mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  white-space: nowrap;
}

.bp-table .cell-strong {
  color: var(--ink);
  font-weight: 500;
}

.bp-table .num {
  text-align: right;
}

/* a column whose field is absent in every row is dropped (main.js marks it) */
.bp-table .col-empty {
  display: none;
}

/* a cell whose field is absent (the kit removed it): a dash on the sheet */
.bp-table td:not([class*='js-']):not(:has(*))::after {
  content: '—';
  color: var(--line-mid);
}

.parts-table .js-ref {
  width: 76px;
}

.parts-table .cell-strong {
  width: 26%;
}

.parts {
  display: flex;
  flex-wrap: wrap;
}

.parts li:not(:last-child)::after {
  content: '·';
  margin: 0 0.5em;
  color: var(--ink-dim);
}

.table-note {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.13em;
  margin-top: 16px;
}

.table-note::before {
  content: '— ';
  color: var(--line-mid);
}

.rev-table .js-rev,
.cert-table .js-cno {
  width: 76px;
}

.rev-table td:nth-child(2),
.cert-table td:nth-child(2) {
  width: 180px;
}

.rev-degree {
  display: block;
}

.rev-degree:not(:has([data-kit-field='degree'])) .rev-sep,
.rev-degree:not(:has([data-kit-field='field'])) .rev-sep {
  display: none;
}

.rev-notes {
  margin-top: 6px;
}

.rev-notes li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-body);
}

.rev-notes li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--ink-dim);
  font-size: 0.75rem;
  top: 2px;
}

.cell-org {
  width: 30%;
}

.rev-inst {
  display: block;
  color: var(--ink);
}

.rev-loc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

.cert-name {
  color: var(--ink);
}

.cert-name[href] {
  border-bottom: 1px dashed var(--line-mid);
}

.cert-name[href]::after {
  content: '\00a0↗';
  color: var(--ink-dim);
}

.cert-name[href]:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Contact detail
   ========================================================================== */

.contact-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.contact-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 520px;
}

.contact-status {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 28px;
  border: 1px dashed var(--line-mid);
  padding: 11px 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.contact-status:not(:has(.status-value)) {
  display: none;
}

.status-label {
  color: var(--ink-dim);
  letter-spacing: 0.15em;
}

.status-label::after {
  content: ' ▸';
  color: var(--line-mid);
}

.contact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-mid);
}

.contact-list li {
  border-bottom: 1px solid var(--line-soft);
}

.kit-contact {
  display: grid;
  grid-template-columns: 96px 18px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 17px 4px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.kit-contact .kit-icon {
  width: 17px;
  height: 17px;
  color: var(--ink-dim);
}

.kit-contact:hover {
  color: var(--accent);
}

.ch-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* the email leads the list in the same type, a little brighter */
.ch-mail .kit-contact {
  font-weight: 600;
}

/* ==========================================================================
   Footer: the title block
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line-mid);
  padding: 64px 0 96px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-line {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  line-height: 2.2;
}

.title-block {
  width: min(580px, 100%);
  margin-left: auto;
  border: 1.5px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  letter-spacing: 0.06em;
}

.tb-cell {
  background: var(--bg-panel);
  padding: 11px 14px 12px;
  min-width: 0;
}

.tb-cell:not(:has(.tb-value)) {
  display: none;
}

.tb-wide {
  grid-column: 1 / -1;
}

.tb-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  margin-bottom: 5px;
}

.tb-value {
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: none;
}

/* ==========================================================================
   Motion: only after the kit is ready, and never under reduced motion
   ========================================================================== */

html.motion-ok .role,
html.motion-ok .sheet-card,
html.motion-ok .table-frame,
html.motion-ok .note-box {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

html.motion-ok .revealed {
  opacity: 1;
  transform: none;
}

html.motion-ok .fig-head .fig-rule {
  transform: scaleX(0);
  transition: transform 1.2s ease 0.1s;
}

html.motion-ok .fig-head.revealed .fig-rule {
  transform: none;
}

html.motion-ok .datum-strip .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s ease 0.15s;
}

html.motion-ok .datum-strip.revealed .draw {
  stroke-dashoffset: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .brand-dwg {
    display: none;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    background: rgba(10, 47, 82, 0.98);
    border-bottom: 1px solid var(--line-mid);
    padding: 6px var(--gutter) 16px;
  }

  .navbar.open .nav {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .kit-nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line-faint);
    font-size: 12px;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
  }

  .about-grid,
  .contact-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .about-specs {
    max-width: 560px;
  }
}

@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  /* the portrait comes up under the title, smaller, so the first screen shows who this is */
  .hero-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 22px;
  }

  .hero-text {
    display: contents;
  }

  .hero-title {
    order: 1;
  }

  .hero-figure {
    order: 2;
    align-self: flex-start;
    width: min(240px, 66%);
    margin: 28px 0 4px 7px;
  }

  .note-box {
    order: 3;
  }

  .hero-meta {
    order: 4;
  }

  .hero-cta {
    order: 5;
  }

  .figure-dim {
    display: none;
  }

  html[data-kit-photo='0'] .hero-figure {
    display: none;
  }

  .feature-body,
  .feature[data-kit-media='0'] .feature-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature[data-kit-media='0'] .feature-text > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .feature[data-kit-media='0'] .card-points {
    margin-top: 14px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 132px 0 64px;
  }

  .hero .container::before {
    display: none;
  }

  .fig-head {
    flex-wrap: wrap;
    gap: 12px 14px;
    margin-bottom: 32px;
  }

  .fig-head::after {
    content: '';
    order: 2;
    flex-basis: 100%;
  }

  .fig-title {
    font-size: 1.3rem;
  }

  .fig-rule {
    order: 3;
  }

  .fig-sub {
    order: 4;
  }

  .role-grid {
    gap: 24px;
  }

  .feature-list {
    gap: 28px;
    padding: 8px 0;
  }

  .crop-tl,
  .crop-bl {
    left: -4px;
  }

  .crop-tr,
  .crop-br {
    right: -4px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .title-block {
    margin-left: 0;
  }
}

@media (max-width: 719px) {
  .datum-strip {
    display: none;
  }

  .role-grid .role::before {
    display: none;
  }
}

/* The tables become compact records on narrow screens: a mono header line (the reference and
   the date or quantity), the entry itself, then who issued it. No sideways scrolling at 390px. */
@media screen and (max-width: 640px) {
  .table-frame {
    border: none;
    background: none;
  }

  .bp-table,
  .bp-table tbody,
  .bp-table td {
    display: block;
    width: 100% !important;
  }

  .bp-table thead {
    display: none;
  }

  .bp-table tr {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 14px;
    border: 1px solid var(--line-soft);
    border-top-color: var(--line-mid);
    background: var(--panel-glass);
    margin-bottom: 12px;
    padding: 14px 16px 15px;
  }

  .bp-table tr:last-child {
    margin-bottom: 0;
  }

  .bp-table td,
  .bp-table tbody tr:last-child td {
    border: none;
    padding: 0;
  }

  .bp-table td:not([class*='js-']):not(:has(*)) {
    display: none;
  }

  /* the header line: the reference left, the date or quantity right */
  .bp-table td.cell-mono {
    grid-row: 1;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--line-faint);
    font-size: 12px;
  }

  .bp-table td.cell-mono:first-child {
    grid-column: 1;
  }

  .bp-table td.cell-mono:not(:first-child) {
    grid-column: 2;
    text-align: right;
  }

  .bp-table td:not(.cell-mono) {
    grid-column: 1 / -1;
  }

  .parts-table td.js-qty::before {
    content: 'Qty ';
    color: var(--ink-dim);
  }

  .parts-table td.cell-strong {
    font-size: 1.02rem;
    margin-bottom: 6px;
  }

  .bp-table td.cell-org {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--line-faint);
  }

  .bp-table .num {
    text-align: right;
  }

  .bp-table tbody tr:hover td {
    background: none;
  }

  .kit-contact {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px 14px;
    padding: 15px 2px;
  }

  .ch-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 20px;
  }

  .sheet {
    inset: 6px;
  }

  .sheet::after {
    display: none;
  }

  .reg {
    width: 12px;
    height: 12px;
  }

  .reg-tl,
  .reg-tr {
    top: -6px;
  }
  .reg-bl,
  .reg-br {
    bottom: -6px;
  }
  .reg-tl,
  .reg-bl {
    left: -6px;
  }
  .reg-tr,
  .reg-br {
    right: -6px;
  }

  .navbar {
    top: 6px;
    left: 6px;
    right: 6px;
  }

  .nav-inner {
    height: 56px;
  }

  .nav {
    top: 56px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding: 112px 0 56px;
  }

  .hero-dwg {
    margin-bottom: 26px;
    font-size: 12px;
  }

  .dim-label {
    font-size: 12px;
    letter-spacing: 0.14em;
    padding: 0 10px;
  }

  .hero-name {
    font-size: clamp(2.3rem, 11vw, 3.3rem);
    line-height: 1.04;
  }

  .note-box {
    padding: 16px 18px 18px;
  }

  .note-text {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .kit-cta {
    justify-content: center;
    text-align: center;
  }

  .hero-readouts {
    margin-top: 44px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kit-readout {
    padding: 16px 16px 18px;
  }

  .kit-readout:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .kit-readout__value {
    font-size: 1.6rem;
  }

  .about-notes .note {
    padding-left: 38px;
    font-size: 1rem;
  }

  .about-notes[data-kit-count='1'] .note {
    font-size: 1.08rem;
  }

  .spec-row {
    flex-direction: column;
    gap: 4px;
  }

  .spec-row dd {
    text-align: left;
  }

  .sheet-card,
  .feature {
    padding: 22px 20px;
  }

  .role {
    --pad-x: 20px;
    padding-top: 22px;
  }

  .role:not(:has(.role-tech)) {
    --pad-b: 22px;
  }

  .title-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .title-block .tb-cell:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* High contrast and forced colours: keep the linework legible */
@media (forced-colors: active) {
  .sheet,
  .reg,
  .crop,
  .hero .container::before {
    display: none;
  }

  .dim-line,
  .dim-tick,
  .fig-rule,
  .nav-toggle span {
    background: CanvasText;
  }

  .note-box,
  .role,
  .sheet-card,
  .kit-readout,
  .about-specs,
  .table-frame,
  .title-block,
  .tb-cell,
  .fig-no,
  .brand-mark,
  .kit-cta,
  .photo-frame,
  .plate,
  .role-logo,
  .role-mono,
  .card-fig {
    border-color: CanvasText;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-dim: #cbdff1;
    --ink-body: #e7f1fa;
    --line-soft: rgba(234, 243, 251, 0.34);
    --line-faint: rgba(234, 243, 251, 0.22);
  }
}
