/* Foundations, navigation, hero and page layout */
:root {
  --paper: #ededeb;
  --panel: #dcded8;
  --ink: #191919;
  --yellow: #e4ff00;
  --pink: #ff2bd6;
  --muted: #53554e;
  --rule: #a9ada2;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --measure: min(1280px, calc(100% - 80px));
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
body {
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--pink);
  color: var(--ink);
}
[id] {
  scroll-margin-top: 90px;
}
.column,
.header-inner {
  width: var(--measure);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px 20px;
  background: var(--pink);
  color: var(--ink);
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.eyebrow,
.cover-register,
.panel-label,
.panel-footer,
.archive-register,
.sheet-code,
.footer-register {
  font: 10px/1.6 var(--mono);
  letter-spacing: 0.035em;
}

/* Navigation follows the same square, high-contrast construction as the panels. */
.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  gap: 20px;
}
.site-home-link {
  color: var(--yellow);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.075em;
  text-decoration: none;
}
.site-home-link span {
  color: var(--pink);
}
.actions {
  display: flex;
  gap: 8px;
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #72756b;
  font: 11px var(--mono);
  text-decoration: none;
}
.action:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}
.action:last-child {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

/* The cover is a front panel: a yellow field, a grey module, and a black specification rail. */
.cover-sheet {
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
  padding-top: 18px;
}
.cover-register {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--ink);
}
.cover-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 38px 0 44px;
}
.cover-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.cover-identity img {
  width: 72px;
  height: 84px;
  flex-shrink: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12);
  border: 1px solid var(--ink);
}
.cover-name {
  display: inline-block;
  font: 16px/1.4 var(--mono);
  border: 1px solid var(--ink);
  padding: 7px 12px;
}
.name-period {
  font-weight: 700;
}
.cover-statement {
  font-size: clamp(76px, 8.5vw, 120px);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.99;
}
.cover-statement > span {
  display: inline-block;
  background: var(--pink);
  padding: 0 0.12em 0.09em 0.03em;
  margin-top: 0.07em;
  box-shadow: 5px 5px 0 var(--ink);
}
.cover-cta {
  display: inline-flex;
  align-items: stretch;
  margin-top: 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  font: 11px var(--mono);
  text-transform: uppercase;
  text-decoration: none;
}
.cover-cta > span:first-child {
  padding: 16px 22px;
  align-self: center;
}
.cover-cta > span:last-child {
  display: grid;
  place-items: center;
  width: 48px;
  background: var(--paper);
  color: var(--ink);
  font-size: 28px;
}
.cover-cta:hover > span:last-child {
  background: var(--pink);
}
.cover-about,
.cover-specifications > div,
.company-context,
.workbench,
.bench-project,
.rebuild-projects,
.flow-sketch,
.systems-bench,
.system-drawing,
.deployment-modes > div,
.workflow-term,
.work-surface,
.surface-project,
.surface-sketch,
.component-parts {
  min-width: 0;
}
.cover-about {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 20px;
}
.cover-about::before,
.cover-about::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  background: linear-gradient(135deg, transparent 42%, var(--ink) 43% 55%, transparent 56%);
  border-radius: 50%;
  top: 6px;
  left: 6px;
}
.cover-about::after {
  left: auto;
  right: 6px;
}
.panel-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 12px;
}
.panel-label > span:last-child {
  color: var(--ink);
  font-size: 16px;
}
.practice-map {
  position: relative;
  margin: 20px -4px 16px;
}
.practice-map > img,
.leadership-study img,
.rebuild-sketch img,
.system-drawing img,
.surface-sketch img {
  mix-blend-mode: multiply;
}
.practice-map > img {
  display: block;
  width: 100%;
  height: auto;
  /* SVG fragment views can change the cached intrinsic ratio after a resize. */
  aspect-ratio: 560 / 600;
}
.practice-map > .practice-detail {
  display: none;
}
.map-label {
  position: absolute;
  width: 46%;
  top: 0;
  left: 2%;
}
.map-label strong {
  display: block;
  font: 600 clamp(14px, 1.6vw, 22px)/1.08 var(--font);
  letter-spacing: -0.035em;
}
.map-label > span {
  display: block;
  max-width: 22ch;
  margin-top: 6px;
  font: 9px/1.4 var(--mono);
}
.map-engineering,
.map-reverse {
  left: 56%;
  width: 42%;
}
.map-rescue,
.map-reverse {
  top: 55%;
}
@media (max-width: 800px) {
  .map-label strong {
    font-size: clamp(15px, 4.5vw, 22px);
  }
}
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 9px;
}
.panel-vents {
  display: block;
  width: 92px;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 7px);
}
.cover-specifications {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.cover-specifications > div {
  padding: 20px 24px;
}
.cover-specifications > div + div {
  border-left: 1px solid #606357;
}
.eyebrow {
  display: block;
  color: var(--yellow);
}
.cover-specifications p {
  font-size: 15px;
  line-height: 1.4;
  margin: 10px 0;
}
.spec-current > span:last-child {
  display: block;
  color: #c2c5ba;
  font: 9px/1.6 var(--mono);
}
.spec-contact > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
}
.spec-contact a {
  font-size: 13px;
}
.spec-contact a:hover {
  color: var(--pink);
}

/* Numbered navigation is a jump list; it never filters or conceals projects. */
.work-archive {
  padding: 24px 0 0;
}
.archive-register {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.archive-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: 36px 0;
}
.archive-heading h2 {
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1;
}
.archive-heading h2 > span {
  background: var(--yellow);
  padding-inline: 3px;
}
.archive-heading > p {
  font-size: 14px;
  line-height: 1.5;
}
.archive-arrow {
  display: block;
  width: 48px;
  margin-top: 14px;
  color: var(--ink);
  background: var(--pink);
  font-size: 40px;
  line-height: 1.1;
  text-align: center;
}
.archive-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.archive-index a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.archive-index span {
  font: 11px var(--mono);
}
.archive-index a:hover {
  background: var(--yellow);
}
.archive-index a:last-child {
  background: var(--pink);
}

/* Company context beside the open work surfaces. */
.company-sheet {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  margin-top: 64px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.company-context {
  align-self: start;
}
.sheet-code {
  display: block;
  background: var(--ink);
  color: var(--yellow);
  padding: 6px 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.company-context h3 {
  font-size: clamp(38px, 3.5vw, 50px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.065em;
  margin-bottom: 24px;
}
.company-roles {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.company-roles li {
  border-left: 3px solid var(--pink);
  padding-left: 12px;
}
.company-roles li + li {
  margin-top: 18px;
}
.company-roles strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.company-roles span {
  display: block;
  font: 10px/1.6 var(--mono);
  margin-top: 6px;
  color: var(--muted);
}
.practice-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.practice-themes span {
  font: 9px/1.5 var(--mono);
  border: 1px solid var(--rule);
  padding: 4px 6px;
}
.leadership-note {
  font-size: 13px;
  line-height: 1.6;
}
.leadership-principle {
  border-left: 4px solid var(--pink);
  padding-left: 12px;
}
.leadership-principle strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.leadership-study {
  margin: 20px 0;
}
.leadership-study img {
  width: 100%;
  height: auto;
}
.leadership-study figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  border-block: 1px solid var(--ink);
  padding: 14px 0;
}
.leadership-study strong {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
  white-space: nowrap;
}
.leadership-study figcaption > span {
  font: 10px/1.5 var(--mono);
}

/* Colour marks the work's context without changing the reading order. */
.company-sheet--accent .sheet-code {
  color: var(--ink);
  background: var(--pink);
}

/* Independent builds are labelled objects, with every description in view. */
.independent-sheet .sheet-code {
  background: var(--yellow);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.specimen {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.specimen-caption,
.specimen-scale {
  position: absolute;
  left: 14px;
  right: 14px;
  font: 8px/1.5 var(--mono);
  letter-spacing: 0.035em;
}
.specimen-caption {
  top: 14px;
  color: var(--yellow);
}
.specimen-scale {
  bottom: 14px;
}
.cell-study {
  position: absolute;
  width: 14px;
  height: 14px;
  left: calc(50% - 119px);
  top: calc(50% - 40px);
  color: var(--yellow);
  background: currentColor;
  box-shadow:
    16px 0,
    32px 0,
    32px -16px,
    48px 16px,
    48px 32px,
    16px 48px,
    0 48px,
    144px 0 var(--pink),
    128px 16px var(--pink),
    144px 16px var(--pink),
    144px 32px var(--pink),
    160px 32px var(--pink),
    176px 48px var(--pink),
    144px 64px var(--pink),
    224px -16px,
    224px 0,
    224px 16px;
}
.archive-footer {
  border-top: 1px solid var(--ink);
  margin-top: 56px;
  padding: 20px 0;
}

/* The contact panel closes the circuit in pink and black. */
.contact-footer {
  background: var(--pink);
  border-top: 2px solid var(--ink);
  padding: 22px 0;
}
.footer-register {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.contact-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  margin-block: 32px;
}
.cv-link {
  display: block;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  text-decoration: none;
}
.cv-label,
.cv-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 10px/1.5 var(--mono);
}
.cv-label {
  margin-bottom: 12px;
  font-size: 14px;
}
.cv-label > span {
  font-size: 24px;
  line-height: 1;
}
.cv-code {
  display: grid;
  place-items: center;
  width: fit-content;
  aspect-ratio: 1;
  padding: 10px;
  background:
    linear-gradient(currentColor, currentColor) left top / 18px 2px,
    linear-gradient(currentColor, currentColor) left top / 2px 18px,
    linear-gradient(currentColor, currentColor) right top / 18px 2px,
    linear-gradient(currentColor, currentColor) right top / 2px 18px,
    linear-gradient(currentColor, currentColor) left bottom / 18px 2px,
    linear-gradient(currentColor, currentColor) left bottom / 2px 18px,
    linear-gradient(currentColor, currentColor) right bottom / 18px 2px,
    linear-gradient(currentColor, currentColor) right bottom / 2px 18px;
  background-repeat: no-repeat;
}
.cv-data {
  display: block;
  width: 104ch;
  max-height: 100%;
  overflow: hidden;
  white-space: normal;
  word-break: break-all;
  font-family: monospace;
  font-size: 3px;
  line-height: 1;
  letter-spacing: 0;
}
.cv-caption {
  margin-top: 12px;
  font-size: 9px;
}
.cv-link:hover .cv-code,
.cv-link:focus-visible .cv-code {
  background-color: var(--yellow);
}
@media (max-width: 800px) {
  .contact-composition {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  font-size: 14px;
}
.footer-links > a {
  font-size: clamp(20px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.04em;
  text-decoration-thickness: 1px;
}
.footer-links > a:hover {
  text-decoration-thickness: 2px;
}
.footer-links > div {
  display: flex;
  gap: 24px;
}

@media (max-width: 1100px) {
  :root {
    --measure: calc(100% - 56px);
  }
  .cover-layout {
    gap: 32px;
  }
  .company-sheet {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 800px) {
  :root {
    --measure: calc(100% - 40px);
  }
  .cover-register {
    font-size: 9px;
  }
  .cover-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cover-statement {
    font-size: clamp(58px, 9vw, 76px);
  }
  .cover-about {
    width: 100%;
    max-width: 560px;
    justify-self: center;
    padding: 16px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .panel-label {
    font-size: 8px;
    gap: 8px;
  }
  .panel-footer {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 8px;
  }
  .panel-vents {
    width: 70px;
    height: 12px;
  }
  .cover-specifications {
    grid-template-columns: 1.2fr 1fr;
  }
  .cover-specifications > div {
    padding: 18px;
  }
  .cover-specifications .spec-contact {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #606357;
    display: flex;
    align-items: baseline;
    gap: 24px;
  }
  .spec-contact > div {
    margin: 0;
  }
  .archive-heading h2 {
    font-size: 52px;
  }
  .archive-heading > p {
    font-size: 12px;
  }
  .archive-index a {
    flex-direction: column;
    align-items: start;
    gap: 6px;
    padding: 10px;
    font-size: 12px;
  }
  .company-sheet {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }
  .company-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
  }
  .sheet-code {
    grid-column: 1 / -1;
    margin: 0;
  }
  .company-context h3 {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0;
    font-size: 44px;
  }
  .company-roles {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
  }
  .practice-themes,
  .leadership-note {
    grid-column: 1;
    margin: 0;
  }
  .leadership-study {
    grid-column: 2;
    margin: 0;
    grid-row: 3 / span 3;
    align-self: start;
  }
  .leadership-study img {
    max-height: 190px;
  }
  .independent-sheet .leadership-note {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 540px) {
  :root {
    --measure: calc(100% - 32px);
  }
  .header-inner {
    min-height: 60px;
    gap: 16px;
  }
  .site-home-link {
    font-size: 24px;
  }
  .actions {
    gap: 5px;
  }
  .action {
    padding: 7px;
    min-height: 36px;
    font-size: 9px;
    gap: 6px;
  }
  .cover-register {
    flex-direction: column;
    gap: 4px;
    font-size: 8px;
  }
  .cover-layout {
    grid-template-columns: 1fr;
    padding: 24px 0 32px;
    gap: 32px;
  }
  .cover-identity {
    margin-bottom: 20px;
  }
  .cover-name {
    font-size: 13px;
  }
  .cover-statement {
    font-size: clamp(76px, 20vw, 106px);
  }
  .cover-about {
    margin-right: 5px;
    padding: 18px;
  }
  .panel-footer {
    flex-wrap: nowrap;
  }
  .cover-specifications {
    grid-template-columns: 1fr;
  }
  .cover-specifications > div + div {
    border-left: 0;
    border-top: 1px solid #606357;
  }
  .cover-specifications .spec-contact {
    display: block;
  }
  .spec-contact > div {
    margin-top: 12px;
  }
  .archive-register {
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
  }
  .archive-heading {
    flex-direction: column;
    align-items: start;
    gap: 20px;
    padding: 28px 0;
  }
  .archive-heading h2 {
    font-size: clamp(42px, 11.5vw, 60px);
  }
  .archive-heading > p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
  }
  .archive-arrow {
    flex-shrink: 0;
    margin: 0;
  }
  .archive-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .archive-index a {
    font-size: 11px;
  }
  .company-context {
    grid-template-columns: 1fr;
  }
  .company-context > *,
  .independent-sheet .leadership-note {
    grid-column: 1;
    grid-row: auto;
  }
  .company-context h3 {
    font-size: 44px;
    margin-block: 4px;
  }
  .company-roles {
    margin-bottom: 4px;
  }
  .leadership-study {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }
  .leadership-study figcaption {
    flex-direction: column;
    align-items: start;
  }
  .leadership-study strong {
    font-size: 36px;
  }
  .cell-study {
    transform: scale(0.85);
    transform-origin: center;
  }
  .archive-footer {
    gap: 12px;
    margin-top: 40px;
  }
  .footer-register {
    font-size: 8px;
  }
}

@media print {
  :root {
    --measure: 100%;
  }
  .header {
    position: static;
  }
  .cover-sheet,
  .cover-specifications,
  .contact-footer {
    background: white;
    color: black;
  }
  .cover-about,
  .cover-statement > span {
    box-shadow: none;
  }
  .company-sheet {
    display: block;
    margin-top: 32px;
  }
  .company-context {
    margin-bottom: 20px;
  }
  .company-context {
    break-inside: avoid;
  }
  .eyebrow,
  .spec-current > span:last-child {
    color: black;
  }
}

/* Project workbench */

/* Open compositions, shared drawings, no project cards. */

.bench-register {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  font: 9px/1.5 var(--mono);
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--ink);
}

.bench-thread {
  padding: 28px 0 32px;
}

.bench-thread + .bench-thread {
  border-top: 1px solid var(--ink);
}

.thread-heading {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
}

.thread-number {
  font: 500 clamp(56px, 5.5vw, 80px)/0.8 var(--font);
  letter-spacing: -0.09em;
  color: var(--paper);
  -webkit-text-stroke: 1px var(--ink);
  padding-right: 4px;
}

.thread-heading h4 {
  position: relative;
  font: 500 clamp(36px, 4vw, 56px)/0.95 var(--font);
  letter-spacing: -0.065em;
  margin: 0;
}

.thread-heading h4 > span {
  color: var(--pink);
  margin-left: 12px;
}

.thread-heading > p {
  margin-left: auto;
  max-width: 20ch;
  font: 9px/1.5 var(--mono);
}

.bench-kicker {
  display: block;
  font: 8px/1.6 var(--mono);
  color: var(--muted);
  letter-spacing: 0.025em;
  margin-bottom: 6px;
}

.bench-project h5 {
  font: 500 clamp(22px, 2vw, 28px)/1.12 var(--font);
  letter-spacing: -0.045em;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.bench-project p {
  font-size: 13px;
  line-height: 1.65;
}

.bench-project .bench-scope {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.rescue-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px 28px;
  align-items: start;
}

.rescue-story h5 {
  font-size: clamp(27px, 2.7vw, 36px);
}

.rescue-sketch {
  padding-top: 5px;
  align-self: center;
  background: radial-gradient(var(--rule) 0.6px, transparent 0.7px) 0 0 / 14px 14px;
}

.rescue-before {
  padding-left: 16px;
}

.rescue-before > span {
  font: 500 28px/1 var(--font);
  letter-spacing: -0.05em;
}

.rescue-before small {
  display: block;
  font: 9px/1.5 var(--mono);
  margin-top: 4px;
}

.rescue-sketch img {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0;
}

.rescue-sketch figcaption {
  transform: rotate(-3deg);
  padding: 0 8px 10px;
}

.rescue-sketch figcaption strong {
  display: inline-block;
  font: 500 clamp(30px, 3.8vw, 52px)/1.1 var(--font);
  letter-spacing: -0.07em;
  background: var(--yellow);
  padding: 0 6px 4px;
}

.rescue-sketch figcaption > span {
  display: block;
  padding-left: 6px;
  margin-top: 5px;
  font: 9px/1.5 var(--mono);
}

.rescue-followup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 12px 24px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.rescue-followup .bench-kicker {
  display: inline-block;
  background: var(--pink);
  color: var(--ink);
  padding: 2px 5px;
  margin-bottom: 9px;
}

.rescue-followup h5 {
  margin: 0;
  font-size: 28px;
}

.rescue-followup p {
  font-size: 13px;
}

.rebuild-composition {
  display: grid;
  grid-template-columns: minmax(110px, 0.28fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.rebuild-sketch {
  padding-top: 15px;
}

.rebuild-sketch img {
  display: block;
  width: 100%;
  height: auto;
}

.rebuild-sketch figcaption {
  padding: 18px 0 0 10px;
  font: 9px/1.9 var(--mono);
  border-left: 1px dashed var(--rule);
}

.rebuild-sketch figcaption > span {
  background: var(--yellow);
}

.rebuild-projects {
  border-left: 1px dashed var(--rule);
  padding-left: 22px;
}

.migration-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.migration-pair .bench-project,
.rebuild-followup {
  position: relative;
}

.migration-pair .bench-project:first-child::before,
.rebuild-followup::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: var(--pink);
  border: 1px solid var(--ink);
}

.migration-mark {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 3px solid var(--pink);
  font: 11px/1.7 var(--mono);
  padding-bottom: 3px;
}

.migration-mark > span,
.migration-mark strong > span {
  color: var(--muted);
}

.migration-mark strong {
  font-weight: 500;
  font-size: 20px;
}

.rebuild-followup {
  margin-top: 26px;
}

.enable-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 26px 30px;
  align-items: start;
}

.flow-sketch {
  align-self: center;
}

.flow-sketch img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -6px;
}

.flow-sketch figcaption {
  padding-left: 12px;
}

.flow-sketch strong {
  font: 500 clamp(22px, 2.5vw, 34px)/1.15 var(--font);
  letter-spacing: -0.05em;
  background: var(--yellow);
  padding: 0 4px;
}

.flow-sketch figcaption > span {
  display: block;
  margin-top: 6px;
  font: 8px/1.6 var(--mono);
}

.bench-project--ruled {
  border-top: 1px dashed var(--rule);
  padding-top: 15px;
}

.bench-project--wide {
  grid-column: 1 / -1;
}

.bench-end {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  color: var(--muted);
}

.logbook-people {
  display: flex;
  align-items: center;
  gap: 14px;
  border-block: 1px solid var(--ink);
  padding: 16px 0;
  margin: 22px 0;
}

.logbook-people > strong {
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.07em;
}

.logbook-people > span {
  font: 10px/1.5 var(--mono);
}

@media (min-width: 801px) and (max-width: 1100px) {
  .rebuild-composition {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
  }
  .rebuild-projects {
    padding-left: 16px;
  }
  .migration-pair {
    gap: 16px;
  }
  .migration-pair .bench-project:first-child::before,
  .rebuild-followup::before {
    left: -20px;
  }
  .bench-project h5 {
    font-size: 22px;
  }
  .rescue-composition {
    gap: 22px 18px;
  }
}

@media (min-width: 541px) and (max-width: 800px) {
  .logbook-people {
    grid-column: 2;
    grid-row: 3 / span 2;
    align-self: start;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .thread-heading {
    gap: 10px 14px;
    margin-bottom: 22px;
  }
  .thread-heading > p {
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }
  .rescue-composition {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rescue-sketch {
    width: min(100%, 300px);
    justify-self: center;
  }
  .rescue-followup {
    grid-template-columns: 1fr;
  }
  .rebuild-composition {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rebuild-sketch {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 0;
  }
  .rebuild-sketch img {
    width: 120px;
  }
  .rebuild-sketch figcaption {
    padding-top: 0;
  }
  .rebuild-projects {
    padding-left: 18px;
  }
  .migration-pair {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .migration-pair .bench-project:first-child::before,
  .rebuild-followup::before {
    left: -22px;
  }
  .enable-composition {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .flow-sketch {
    width: min(100%, 340px);
    justify-self: center;
  }
}

@media print {
  .bench-project,
  .workbench figure {
    break-inside: avoid;
  }
  .thread-number {
    color: var(--ink);
    -webkit-text-stroke: 0;
  }
}

/* Systems and workflow diagrams */

/* Open systems drawing with a separate prototype experiment. */

.system-register {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font: 9px/1.5 var(--mono);
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--ink);
}

.system-status {
  background: var(--yellow);
  padding: 3px 6px;
  font-size: 8px;
}

.cash-system h4 {
  font: 500 clamp(32px, 3.6vw, 48px)/1.04 var(--font);
  letter-spacing: -0.065em;
  margin: 22px 0 14px;
}

.cash-system h4 > span {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.system-intro {
  font-size: 13px;
  line-height: 1.65;
  max-width: 82ch;
}

.system-composition {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  margin: 24px 0;
  align-items: center;
}

.system-drawing img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 245px;
  object-fit: contain;
  background: radial-gradient(var(--rule) 0.6px, transparent 0.7px) 0 0 / 14px 14px;
}

.system-drawing figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.system-drawing figcaption > strong {
  font: 500 clamp(48px, 5vw, 68px)/1 var(--font);
  letter-spacing: -0.085em;
  flex-shrink: 0;
  background: var(--yellow);
  padding: 0 7px 4px 3px;
}

.system-drawing figcaption > span {
  font: 9px/1.6 var(--mono);
  max-width: 32ch;
}

.system-notes {
  margin: 0;
  display: grid;
  gap: 18px;
  padding-left: 18px;
  border-left: 1px dashed var(--rule);
}

.system-notes > div {
  position: relative;
}

.system-notes > div::before {
  content: "";
  position: absolute;
  top: 3px;
  left: -22px;
  width: 7px;
  height: 7px;
  background: var(--pink);
  border: 1px solid var(--ink);
}

.system-notes dt {
  font: 9px/1.5 var(--mono);
  margin-bottom: 6px;
}

.system-notes dt > span {
  color: var(--muted);
}

.system-notes dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.deployment-map {
  border-block: 1px solid var(--ink);
  padding: 13px 0 16px;
}

.deployment-map > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 20px;
}

.deployment-map h5 {
  margin: 0;
  font: 500 14px/1.4 var(--font);
  letter-spacing: -0.02em;
}

.deployment-map header p {
  font: 8px/1.5 var(--mono);
  color: var(--muted);
}

.deployment-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.deployment-modes svg {
  display: block;
  width: 108px;
  max-width: 100%;
  height: 40px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  margin-bottom: 7px;
}

.deployment-modes rect {
  fill: var(--pink);
}

.deployment-modes > div:nth-child(2) rect {
  fill: var(--yellow);
}

.deployment-modes > div:nth-child(3) rect {
  fill: var(--panel);
}

.deployment-modes strong {
  display: block;
  font: 500 13px/1.4 var(--font);
}

.deployment-modes span {
  display: block;
  margin-top: 3px;
  font: 9px/1.5 var(--mono);
  color: var(--muted);
}

.security-experiment {
  margin-top: 34px;
}

.security-experiment > .system-register {
  background: var(--ink);
  color: var(--yellow);
  border-bottom: 0;
  border-left: 5px solid var(--pink);
  padding: 12px 14px;
}

.prototype-status {
  background: var(--pink);
  color: var(--ink);
}

.security-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 20px 0;
}

.security-heading h4 {
  font: 500 clamp(25px, 2.5vw, 34px)/1.08 var(--font);
  letter-spacing: -0.05em;
  margin: 0;
}

.security-heading h4 > span {
  color: var(--muted);
}

.security-heading p {
  font-size: 12px;
  line-height: 1.65;
}

.workflow-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-block: 1px dashed var(--rule);
}

.workflow-symbol {
  display: block;
  font: 32px/1 var(--mono);
  margin-bottom: 8px;
}

.workflow-term strong {
  display: block;
  font: 500 13px/1.3 var(--font);
}

.workflow-term p {
  font: 9px/1.5 var(--mono);
  margin-top: 5px;
  color: var(--muted);
}

.workflow-operator {
  font: 22px var(--mono);
}

.workflow-output .workflow-symbol {
  background: var(--pink);
  display: inline-block;
  padding-inline: 4px;
}

@media (max-width: 600px) {
  .system-composition {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .system-drawing {
    width: min(100%, 420px);
    justify-self: center;
  }
  .system-drawing img {
    max-height: 230px;
  }
  .system-drawing figcaption > span {
    max-width: none;
  }
  .system-notes {
    gap: 16px;
  }
  .deployment-modes {
    gap: 10px;
  }
  .deployment-modes strong {
    font-size: 12px;
  }
  .security-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .workflow-equation {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    gap: 10px;
  }
  .workflow-term:not(.workflow-output) {
    align-self: start;
  }
  .workflow-output {
    grid-column: 1 / -1;
    justify-self: center;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
  }
  .workflow-output .workflow-symbol {
    grid-row: span 2;
    margin: 0;
    justify-self: start;
  }
  .workflow-output p {
    grid-column: 2;
  }
  .workflow-operator {
    justify-self: center;
    line-height: 1;
  }
  .workflow-transition {
    grid-column: 1 / -1;
    transform: rotate(90deg);
  }
}

@media print {
  .system-composition,
  .deployment-map,
  .security-experiment {
    break-inside: avoid;
  }
}

/* Open work surfaces and independent builds */

/* Reusable project layouts and component collections. */

.surface-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--yellow);
  border-left: 5px solid var(--pink);
  font: 9px/1.5 var(--mono);
}

.surface-status {
  background: var(--pink);
  color: var(--ink);
  padding: 2px 6px;
  font-size: 8px;
}

.surface-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  padding: 26px 0;
}

.surface-kicker {
  display: block;
  color: var(--muted);
  font: 8px/1.6 var(--mono);
  margin-bottom: 8px;
}

.surface-project h4 {
  font: 500 clamp(23px, 2.4vw, 31px)/1.08 var(--font);
  letter-spacing: -0.05em;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.surface-project p {
  font-size: 13px;
  line-height: 1.65;
}

.surface-project.surface-feature h4 {
  font-size: clamp(34px, 3.8vw, 50px);
  letter-spacing: -0.065em;
}

.surface-feature h4 > span {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.surface-sketch img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 235px;
  object-fit: contain;
}

.surface-sketch figcaption {
  margin-top: 12px;
  font: 8px/1.6 var(--mono);
}

.forms-sketch {
  border-right: 1px dashed var(--rule);
  padding-right: 20px;
}

.surface-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.surface-pair > .surface-project {
  border-left: 3px solid var(--pink);
  padding-left: 14px;
}

.surface-material {
  display: block;
  font: 9px/1.6 var(--mono);
  color: var(--muted);
  margin-top: 12px;
}

.stem-thread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 28px;
  padding: 24px 0 8px;
  border-top: 1px dashed var(--rule);
}

.stem-thread h4 > span {
  color: var(--pink);
  margin-left: 12px;
}

.stem-sketch {
  margin: 0;
}

.stem-sketch img {
  max-height: 210px;
}

.production-lead {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.packaging-sketch figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}

.packaging-sketch figcaption > strong {
  font: 500 52px/1 var(--font);
  letter-spacing: -0.08em;
  background: var(--yellow);
  padding: 0 6px 4px;
}

.packaging-sketch figcaption > span {
  font: 9px/1.6 var(--mono);
}

.brand-thread {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0 26px;
  padding: 22px 0;
}

.brand-thread .surface-material {
  grid-column: 2;
}

.production-backbone {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.backbone-label {
  font: 9px/1.5 var(--mono);
}

.production-backbone .surface-pair {
  border-top: 0;
  padding-bottom: 0;
}

.indie-project + .indie-project {
  margin-top: 30px;
}

.indie-composition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 24px 0 0;
}

.surface-project h4.indie-name {
  font-size: clamp(42px, 4.6vw, 64px);
  letter-spacing: -0.07em;
}

.indie-name > span {
  color: var(--pink);
  margin-left: 8px;
}

.surface-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.surface-links a,
.component-intro > a {
  font: 10px/1.6 var(--mono);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--pink);
  text-underline-offset: 5px;
}

.surface-links a:hover,
.component-intro > a:hover {
  background: var(--yellow);
}

.surface-links a:focus-visible,
.component-intro > a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.game-field {
  min-height: 210px;
  overflow: hidden;
}

.game-field .cell-study {
  transform: scale(0.8);
}

.component-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 18px;
}

.component-intro h4 {
  font: 500 clamp(28px, 3vw, 40px)/1.12 var(--font);
  letter-spacing: -0.055em;
  margin: 0;
}

.component-intro h4 > span {
  font-size: 0.64em;
  color: var(--muted);
  letter-spacing: -0.03em;
}

.component-composition {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
}

.component-parts {
  border-left: 1px dashed var(--rule);
  padding-left: 20px;
}

.component-parts .surface-project + .surface-project {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.component-parts h5 {
  font: 500 clamp(16px, 1.5vw, 20px)/1.3 var(--mono);
  letter-spacing: -0.045em;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.component-parts p {
  font-size: 12px;
}

.component-materials {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font: 9px/1.6 var(--mono);
  color: var(--muted);
}

@media (max-width: 600px) {
  .surface-lead,
  .production-lead,
  .surface-pair,
  .brand-thread,
  .indie-composition,
  .component-composition,
  .stem-thread {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .forms-sketch {
    border-right: 0;
    padding-right: 0;
  }
  .surface-sketch {
    width: min(100%, 340px);
    justify-self: center;
  }
  .surface-sketch img {
    max-height: 200px;
  }
  .surface-pair {
    gap: 24px;
  }
  .brand-thread {
    gap: 0;
  }
  .brand-thread .surface-material {
    grid-column: 1;
  }
  .indie-composition--reversed > .surface-project {
    grid-row: 1;
  }
  .game-field {
    width: 100%;
  }
  .component-composition {
    gap: 20px;
  }
}

@media print {
  .surface-project,
  .indie-project,
  .stem-thread {
    break-inside: avoid;
  }
}

/* Phone typography and touch targets, independent of the desktop composition. */
@media screen and (max-width: 600px) {
  .leadership-note,
  .company-roles strong,
  .system-intro,
  .system-notes dd,
  .security-heading p,
  .bench-project p,
  .rescue-followup p,
  .surface-project p,
  .component-parts p,
  .archive-heading > p {
    font-size: 15px;
    line-height: 1.6;
  }

  .bench-project .bench-scope {
    font-size: 14px;
    line-height: 1.6;
  }

  .cover-register,
  .panel-label,
  .panel-footer,
  .archive-register,
  .sheet-code,
  .eyebrow,
  .company-roles span,
  .practice-themes span,
  .spec-current > span:last-child,
  .bench-register,
  .bench-kicker,
  .thread-heading > p,
  .rescue-before small,
  .rescue-sketch figcaption > span,
  .rebuild-sketch figcaption,
  .flow-sketch figcaption > span,
  .system-register,
  .system-status,
  .system-notes dt,
  .deployment-map header p,
  .surface-register,
  .surface-status,
  .surface-kicker,
  .surface-sketch figcaption,
  .surface-material,
  .backbone-label,
  .specimen-caption,
  .specimen-scale,
  .footer-register {
    font-size: 11px;
    line-height: 1.5;
  }

  .system-drawing figcaption > span,
  .leadership-study figcaption > span,
  .logbook-people > span,
  .packaging-sketch figcaption > span,
  .deployment-modes span,
  .workflow-term p,
  .component-materials {
    font-size: 12px;
    line-height: 1.5;
  }

  .workflow-term strong,
  .deployment-modes strong {
    font-size: 14px;
  }

  .header-inner {
    min-height: 64px;
  }

  .action,
  .site-home-link,
  .spec-contact a,
  .surface-links a,
  .component-intro > a,
  .archive-footer a,
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .action {
    padding: 10px 12px;
    font-size: 12px;
  }

  .spec-contact a,
  .footer-links > div a {
    font-size: 14px;
  }

  .surface-links a,
  .component-intro > a,
  .archive-footer a {
    font-size: 12px;
    padding-block: 10px;
  }

  .archive-index a {
    font-size: 12px;
  }

  .spec-contact > div {
    gap: 4px 20px;
  }

  .footer-links {
    gap: 12px;
  }

  /* Labels sit in normal flow above two views of the same SVG, so larger
     text can wrap without colliding with the drawing. Nothing is hidden. */
  .practice-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .practice-map > img {
    display: none;
  }

  .practice-map > .practice-detail {
    display: block;
    grid-column: 1 / -1;
  }

  .practice-map > .practice-detail--balance {
    grid-row: 2;
    aspect-ratio: 560 / 234;
  }

  .practice-map > .practice-detail--investigation {
    grid-row: 4;
    aspect-ratio: 560 / 170;
  }

  .practice-map > figcaption {
    display: contents;
  }

  .map-label {
    position: static;
    width: auto;
  }

  .map-people,
  .map-engineering {
    grid-row: 1;
  }

  .map-rescue,
  .map-reverse {
    grid-row: 3;
  }

  .map-label strong {
    font-size: clamp(17px, 4.5vw, 22px);
  }

  .map-label > span {
    font-size: 11px;
    line-height: 1.5;
  }

  .panel-vents {
    flex-shrink: 0;
    width: 48px;
  }
}
