@font-face {
  font-family: "Clear Sans";
  src: url("../assets/fonts/ClearSansRegular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Clear Sans";
  src: url("../assets/fonts/ClearSansBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --ink: #171614;
  --muted: #676158;
  --line: #c8c1b6;
  --accent: #2f8f91;
  --measure: 74rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Clear Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 2.5rem), var(--measure));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.primary-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.primary-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.primary-nav a:hover,
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.primary-nav [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 31%);
  gap: clamp(3rem, 8vw, 6rem);
  min-height: min(43rem, calc(100svh - 5.25rem));
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 7.6vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h2 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lede,
.section-heading > p:last-child {
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.primary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.72rem 1rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:hover {
  background: #393633;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.text-action {
  font-weight: 700;
}

.portrait-figure {
  margin: 0;
}

.portrait-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}

.portrait-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.section-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.narrative-section {
  padding-block: clamp(5rem, 10vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.writing-section .section-heading {
  margin-bottom: 0;
}

.writing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 5rem;
  align-items: end;
}

.section-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

/* Hero identity block */

.role-string {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-string span:not(:last-child)::after {
  margin-inline: 0.7rem;
  color: var(--line);
  content: "·";
}

h1.aphorism {
  max-width: 30ch;
  margin-bottom: 2rem;
  font-size: clamp(1.95rem, 3.7vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.75rem;
  margin: 0 0 2.25rem;
  padding-block: 1.15rem;
  border-block: 1px solid var(--line);
}

.metric-strip dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-strip dd {
  margin: 0.15rem 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Seam ledger */

.seams-section .section-heading {
  max-width: 54rem;
}

.seam-ledger {
  border-top: 1px solid var(--ink);
}

.seam-record {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

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

.seam-order {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.seam-boundary {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seam-copy h3 {
  max-width: 34ch;
  margin-bottom: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.14;
}

.seam-record details {
  margin-top: 1.25rem;
  margin-left: 4.5rem;
}

.seam-record summary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0;
}

.seam-record .summary-marker {
  position: static;
  transform: none;
  font-size: 1.35rem;
}

.seam-record details[open] .summary-marker::after {
  font-size: 1.35rem;
}

.seam-evidence {
  max-width: 46rem;
  padding-bottom: 0.5rem;
}

.seam-evidence section {
  display: grid;
  grid-template-columns: minmax(7rem, 0.28fr) minmax(0, 1fr);
  gap: 1rem 2.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
}

.seam-evidence h4,
.seam-evidence p {
  margin-bottom: 0;
}

.seam-evidence h4 {
  padding-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-gap {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: #e9e4db;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Editorial image break */

.editorial-break {
  margin: 0;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.editorial-break img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.editorial-break figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Timeline */

.timeline {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem 2.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.timeline p:last-child {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
}

/* Two doors */

.door-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--ink);
  padding-top: 2.5rem;
}

.door h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
}

.door p {
  max-width: 34rem;
  color: var(--muted);
}

.door .primary-action,
.door .text-action {
  margin-top: 0.5rem;
}

.doors-footnote {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.secondary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.secondary-action:hover {
  background: #e8e3da;
}

.review-note {
  display: grid;
  grid-template-columns: minmax(9rem, 0.32fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--line);
}

.review-note p {
  margin-bottom: 0;
}

.work-intro {
  max-width: 55rem;
  padding-block: clamp(5rem, 11vw, 8rem);
}

.page-intro {
  max-width: 60rem;
  padding-block: clamp(5rem, 11vw, 9rem);
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 13ch;
}

.editorial-index,
.faq-list,
.contact-grid,
.process-list,
.related-links,
.page-cta {
  border-bottom: 1px solid var(--line);
}

.editorial-entry {
  display: grid;
  grid-template-columns: minmax(10rem, 0.3fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 7vw, 7rem);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.editorial-entry:last-child {
  border-bottom: 0;
}

.entry-meta {
  grid-row: 1 / span 3;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-entry h2,
.editorial-entry > p:not(.entry-meta) {
  grid-column: 2;
}

.editorial-entry > p:not(.entry-meta) {
  max-width: 48rem;
}

.entry-links,
.related-links > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-weight: 700;
}

.faq-entry {
  display: grid;
  grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 1fr);
  gap: 2rem clamp(3rem, 8vw, 8rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.faq-entry:last-child {
  border-bottom: 0;
}

.faq-entry h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.faq-entry div {
  max-width: 45rem;
}

.faq-entry div > :last-child,
.page-cta div > :last-child,
.contact-grid div > :last-child {
  margin-bottom: 0;
}

.page-cta,
.contact-grid,
.related-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 5rem;
  align-items: end;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.page-cta h2,
.contact-grid h2,
.related-links h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact-intro {
  max-width: 68rem;
}

.contact-methods {
  display: flex;
  max-width: 23rem;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.contact-methods .primary-action,
.contact-methods .secondary-action {
  justify-content: center;
}

.contact-status,
.contact-methods noscript {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.process-list {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.process-list ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  counter-reset: contact-step;
}

.process-list li {
  display: grid;
  grid-template-columns: 2rem minmax(12rem, 0.5fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
  counter-increment: contact-step;
}

.process-list li::before {
  color: var(--muted);
  content: "0" counter(contact-step);
  font-size: 0.78rem;
  font-weight: 700;
}

.process-list li span {
  color: var(--muted);
}

.work-intro h1 {
  max-width: 11ch;
}

.work-ledger {
  border-top: 1px solid var(--ink);
}

.work-status {
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  color: var(--muted);
}

.work-record {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.work-overview {
  display: grid;
  grid-template-columns: minmax(11rem, 0.36fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.work-visual {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
}

.work-summary-copy h2 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.work-order,
.work-role {
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.work-outcome {
  max-width: 46rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.work-tags span:not(:last-child)::after {
  margin-left: 0.75rem;
  color: var(--line);
  content: "/";
}

.work-record details {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.work-record summary,
.seam-record summary {
  position: relative;
  padding: 1rem 3rem 1rem 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.work-record summary::-webkit-details-marker,
.seam-record summary::-webkit-details-marker {
  display: none;
}

.summary-marker {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.work-record details[open] .summary-marker,
.seam-record details[open] .summary-marker {
  font-size: 0;
}

.work-record details[open] .summary-marker::after,
.seam-record details[open] .summary-marker::after {
  content: "−";
  font-size: 1.6rem;
}

.work-record summary:hover,
.seam-record summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.work-record summary:focus-visible,
.seam-record summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.summary-close-label,
.work-record details[open] .summary-open-label,
.seam-record details[open] .summary-open-label {
  display: none;
}

.work-record details[open] .summary-close-label,
.seam-record details[open] .summary-close-label {
  display: inline;
}

.work-evidence {
  max-width: 49rem;
  padding: 1.25rem 0 1rem;
}

.work-evidence section {
  display: grid;
  grid-template-columns: minmax(7rem, 0.28fr) minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.work-evidence h3,
.work-evidence p {
  margin-bottom: 0;
}

.work-evidence h3 {
  padding-top: 0.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

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

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 3rem;
  align-items: start;
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-note {
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

/* Career graph */

main {
  position: relative;
}

.career-graph {
  position: absolute;
  z-index: 0;
  top: 0;
  pointer-events: none;
}

/* Everything above the graph, so the diagram stays in the paper. */
main > *:not(.career-graph) {
  position: relative;
  z-index: 1;
}

/* The hairline resting in the margin, and the stretch it draws as you scroll. */
.career-graph-spine {
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.45;
}

/* The bold stretch: the spine reads as a diagram only across the history. */
.career-graph-trunk {
  stroke: var(--ink);
  stroke-width: 1.5;
  opacity: 0.9;
}

.career-graph-branch {
  stroke: var(--accent);
  stroke-width: 1.25;
  opacity: 0.75;
}

.career-graph-commit,
.career-graph-tip {
  fill: var(--paper);
  stroke-width: 1.5;
}

.career-graph-commit {
  stroke: var(--ink);
}

.career-graph-tip {
  stroke: var(--accent);
}

.career-graph-merge {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.career-graph-seam {
  fill: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.career-graph-halo {
  fill: var(--accent);
  opacity: 0.18;
}

.career-graph-spark {
  fill: var(--accent);
}

/* The graph needs a column of its own, so the history shifts right to make one. */
@media (min-width: 46.0625rem) {
  [data-career-graph="on"] .timeline {
    padding-left: 6rem;
  }
}

@media (max-width: 46rem) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 2rem), var(--measure));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.2rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem 0.9rem;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.5rem;
    padding-block: 2rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14.5vw, 4.6rem);
  }

  h1.aphorism {
    font-size: clamp(1.75rem, 7.4vw, 2.4rem);
  }

  .hero-intro .portrait-figure {
    order: -1;
    max-width: 11rem;
  }

  .metric-strip {
    gap: 1rem 1.75rem;
  }

  .writing-section,
  .page-cta,
  .contact-grid,
  .related-links {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .seam-overview {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .seam-record details {
    margin-left: 0;
  }

  .seam-evidence section,
  .timeline li,
  .door-list {
    grid-template-columns: 1fr;
  }

  .editorial-break img {
    aspect-ratio: 4 / 3;
  }

  .review-note,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .work-overview,
  .work-evidence section,
  .editorial-entry,
  .faq-entry,
  .process-list li {
    grid-template-columns: 1fr;
  }

  .entry-meta,
  .editorial-entry h2,
  .editorial-entry > p:not(.entry-meta) {
    grid-column: 1;
    grid-row: auto;
  }

  .work-visual {
    max-width: 24rem;
  }

  .evidence-links {
    grid-column: 1;
  }

  .site-footer nav,
  .footer-note {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* The graph is painted whole on load and the spark parks at the last commit;
     the script skips the scroll handler entirely. */
  .career-graph-spine {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }
}
