@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: #111212;
  --text: #e7e4de;
  --muted: #aaa7a1;
  --faint: #807d77;
  --rule: #89857e;
  font-family: "IBM Plex Mono", "DejaVu Sans Mono", monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.25rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  overflow: visible;
  background: var(--text);
  clip-path: none;
  color: var(--background);
  outline: 2px solid #fff;
  outline-offset: 0.2rem;
}

p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

.shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(calc(100% - 3rem), 98rem);
  margin-inline: auto;
  padding: 1.7rem 0 1.5rem;
}

.identity {
  min-width: 0;
  padding-right: clamp(2rem, 4vw, 4rem);
}

.identity-inner {
  position: sticky;
  top: 1.7rem;
  display: flex;
  min-height: calc(100vh - 3.2rem);
  flex-direction: column;
}

.file-path,
.section-index {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.file-path {
  text-transform: uppercase;
}

.brand-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.35ch;
  width: fit-content;
  font-size: clamp(2.75rem, 4vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.98;
  text-decoration: none;
}

.brand-mark {
  color: var(--faint);
  font-weight: 400;
}

.brand-tld {
  color: var(--faint);
}

.subtitle {
  margin: 0.25rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.015em;
}

.metadata-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
}

.metadata {
  margin: 1rem 0 0;
  color: #cbc7c0;
  font-size: 0.78rem;
}

.metadata div {
  display: flex;
  gap: 0.65ch;
}

.metadata dt,
.metadata dd,
.content-meta dt,
.content-meta dd,
.service-fields dt,
.service-fields dd {
  margin: 0;
}

.version {
  margin: 1.05rem 0 0;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.rule {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.25rem 0 1.1rem;
  color: var(--muted);
}

.rule::before {
  flex: 1;
  overflow: hidden;
  color: var(--rule);
  content: "-----------------------------------------------------------------------------------------------";
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.nav-label,
.side-section h2,
.side-footer h2,
.content > section > h2 {
  width: fit-content;
  margin: 0 0 0.75rem;
  border-bottom: 1px dashed var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.75;
}

.primary-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li + li {
  border-top: 1px dotted #3f403e;
}

.primary-nav a {
  display: grid;
  grid-template-columns: 6.5ch minmax(0, 1fr) auto;
  gap: 1ch;
  align-items: center;
  padding: 0.65rem 0;
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.nav-index,
.nav-arrow,
.nav-state {
  color: var(--muted);
}

.nav-index {
  white-space: nowrap;
}

.nav-state {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.plain-list {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.plain-list li::before {
  margin-right: 1ch;
  color: var(--muted);
  content: "-";
}

.pros-section {
  margin-top: 1.75rem;
}

.pros-section p {
  margin-bottom: 0.2rem;
}

.side-footer {
  margin-top: auto;
}

.side-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
}

.side-footer p {
  margin-bottom: 0;
}

.mobile-tail {
  display: none;
  min-width: 0;
}

.muted {
  color: var(--muted);
}

.content {
  min-width: 0;
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid #353633;
}

.content-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: start;
}

.content-header h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.35rem, 3.8vw, 4.15rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.file-path strong {
  color: var(--text);
  font-weight: 500;
}

.content-meta {
  margin: 1.65rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.content-meta div,
.service-fields div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 1ch;
}

.content-lead {
  max-width: 52ch;
  margin: 1rem 0 0;
  color: #cbc7c0;
  font-size: 0.95rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(11rem, 0.75fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.lead-copy {
  max-width: 60ch;
  font-size: 0.95rem;
}

.lead-copy p + p {
  margin-top: 1.2rem;
}

.text-link {
  margin-bottom: 0;
}

.text-link a::before,
.pros-section > a::before {
  display: inline-block;
  margin-right: 1ch;
  content: "→";
}

.terminal-image {
  margin-bottom: 0;
}

.image-frame {
  overflow: hidden;
  border: 1px solid #55534f;
  background: #d4d0c8;
  aspect-ratio: 4 / 5;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terminal-image figcaption {
  margin-top: 0.4rem;
  color: var(--faint);
  font-size: 0.62rem;
  overflow-wrap: anywhere;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #3f403e;
  border-left: 1px solid #3f403e;
}

.scope-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 9.25rem;
  padding: 1rem;
  border-right: 1px solid #3f403e;
  border-bottom: 1px solid #3f403e;
}

.scope-index {
  margin-bottom: 0.4rem;
  color: var(--faint);
  font-size: 0.66rem;
}

.scope-item strong {
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.scope-item > span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}

.evidence-grid div {
  min-width: 0;
}

.evidence-grid dt {
  margin-bottom: 0.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.evidence-grid dt::before {
  margin-right: 1ch;
  color: var(--muted);
  content: "[+]";
  font-weight: 400;
}

.evidence-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.service + .service {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--rule);
}

.service header {
  display: grid;
  grid-template-columns: 5ch minmax(0, 1fr);
  gap: 1ch;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.service h2 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.service-index {
  color: var(--muted);
  font-size: 0.75rem;
}

.service > p {
  max-width: 67ch;
  margin: 0 0 0.85rem 6ch;
  color: #cbc7c0;
}

.service-fields {
  margin: 0 0 0 6ch;
  color: var(--muted);
  font-size: 0.7rem;
}

.service-fields dd {
  overflow-wrap: anywhere;
}

.custom-scope h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
}

.custom-scope > p:not(.section-index) {
  max-width: 63ch;
}

.workflow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  list-style: none;
}

.workflow-line li {
  display: flex;
  align-items: center;
}

.workflow-line li + li::before {
  margin-right: 0.8rem;
  color: var(--text);
  content: "→";
  font-weight: 400;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #3f403e;
  border-left: 1px solid #3f403e;
}

.process-step {
  min-height: 9.25rem;
  padding: 1rem;
  border-right: 1px solid #3f403e;
  border-bottom: 1px solid #3f403e;
}

.step-index {
  margin-bottom: 0.4rem;
  color: var(--faint);
  font-size: 0.66rem;
}

.process-step h2 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.process-step > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.deliverables {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 0.65rem;
  margin-bottom: 0;
}

.deliverables div {
  display: contents;
}

.deliverables dt {
  font-size: 0.76rem;
  font-weight: 700;
}

.deliverables dt::before {
  margin-right: 1ch;
  color: var(--muted);
  content: "[+]";
  font-weight: 400;
}

.deliverables dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.follow-up h2 {
  max-width: 34ch;
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.follow-up > p:not(.section-index) {
  max-width: 63ch;
}

.about-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 1.2rem;
  border: 1px solid #3f403e;
}

.founder-title h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.founder-title > p:last-child {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.about-fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-content: start;
  column-gap: 1ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.about-fields div,
.external-records div {
  display: contents;
}

.about-fields dt,
.about-fields dd,
.external-records dt,
.external-records dd {
  margin: 0;
}

.direct-work h2 {
  width: fit-content;
  max-width: 42ch;
  margin: 0 0 0.75rem;
  border-bottom: 1px dashed var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
}

.direct-work-copy > p:not(.section-index) {
  max-width: 67ch;
  color: #cbc7c0;
}

.elsewhere-copy {
  max-width: 67ch;
  color: #cbc7c0;
}

.external-records {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 0.45rem;
  margin-bottom: 0;
}

.external-records dt {
  font-size: 0.75rem;
  font-weight: 700;
}

.external-records dt::before {
  margin-right: 1ch;
  color: var(--muted);
  content: "→";
  font-weight: 400;
}

.external-records dd {
  color: var(--muted);
  font-size: 0.75rem;
}

.work-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #3f403e;
  border-left: 1px solid #3f403e;
}

.work-metric {
  display: flex;
  min-height: 8.25rem;
  padding: 1rem;
  border-right: 1px solid #3f403e;
  border-bottom: 1px solid #3f403e;
  flex-direction: column;
  justify-content: space-between;
}

.work-metrics dt {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.work-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.work-section h2 {
  width: fit-content;
  max-width: 42ch;
  margin: 0 0 0.75rem;
  border-bottom: 1px dashed var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
}

.work-section > p:not(.section-index) {
  max-width: 67ch;
  color: #cbc7c0;
}

.work-fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.work-fields div {
  display: contents;
}

.work-fields dt,
.work-fields dd {
  margin: 0;
}

.content-footer {
  margin-top: 1.5rem;
  color: var(--muted);
}

.content-footer a {
  text-decoration: none;
}

.content-footer a:hover,
.content-footer a:focus-visible {
  text-decoration: underline;
}

.end-marker {
  display: grid;
  grid-template-columns: minmax(3rem, 1fr) auto minmax(6rem, 1.15fr);
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
}

.end-marker::before,
.end-marker::after {
  border-top: 1px dashed var(--rule);
  content: "";
}

.end-marker strong {
  font-weight: 500;
}

.content-footer > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
}

@media (min-width: 58.0625rem) and (max-height: 62rem) {
  .identity-inner .rule {
    margin: 0.95rem 0 0.8rem;
  }

  .pros-section {
    margin-top: 1.5rem;
  }
}

@media (max-width: 76rem) {
  .brand-link {
    font-size: clamp(2.5rem, 4.3vw, 3.3rem);
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .terminal-image {
    width: min(100%, 17rem);
  }
}

@media (max-width: 58rem) {
  .shell {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    width: calc(100% - 3rem);
    margin-inline: 1.5rem;
    padding-top: 1.25rem;
  }

  .identity {
    padding-right: 0;
  }

  .identity-inner {
    position: static;
    min-height: auto;
  }

  .side-footer {
    margin-top: 0;
  }

  .identity-inner > .primary-nav + .rule,
  .identity-inner > .side-section,
  .identity-inner > .side-footer {
    display: none;
  }

  .mobile-tail {
    display: block;
  }

  .mobile-tail > .rule {
    margin-top: 0;
  }

  .content > .mobile-tail {
    margin-top: 2.75rem;
  }

  .content {
    padding-top: 2.5rem;
    padding-left: 0;
    border-top: 1px solid #353633;
    border-left: 0;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(10rem, 0.75fr);
  }
}

@media (max-width: 38rem) {
  .brand-link {
    font-size: clamp(2.2rem, 12vw, 3.35rem);
  }

  .metadata div {
    display: block;
  }

  .metadata dt,
  .metadata dd {
    display: inline;
  }

  .metadata dt {
    margin-right: 0.65ch;
  }

  .metadata div + div {
    margin-top: 0.25rem;
  }

  .content-header,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .content-meta {
    margin-top: 0;
  }

  .terminal-image {
    width: min(100%, 15rem);
  }

  .scope-grid,
  .evidence-grid,
  .process-grid,
  .about-record,
  .work-metrics {
    grid-template-columns: 1fr;
  }

  .deliverables {
    column-gap: 1rem;
  }

  .about-record {
    gap: 1.25rem;
  }

  .work-metric {
    min-height: 6.5rem;
  }

  .scope-item {
    min-height: 8rem;
  }

  .service header {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .service > p,
  .service-fields {
    margin-left: 0;
  }

  .service-fields div {
    display: block;
  }

  .service-fields dt,
  .service-fields dd {
    display: inline;
  }

  .service-fields dt {
    margin-right: 0.65ch;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 120ms ease, text-decoration-color 120ms ease;
  }
}
