@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f0df;
  --sheet: #fff9eb;
  --ink: #192b24;
  --soft-ink: #46564b;
  --green: #193a31;
  --green-line: #688477;
  --citron: #f1eba6;
  --rust: #a43b23;
  --rule: #b2b0a0;
  --accent: var(--rust);
  --muted: var(--soft-ink);
  --wrap: min(100% - 96px, 1184px);
  --wash: #eee8d6;
  --display: "Playfair Display", Georgia, serif;
  --body: system-ui, sans-serif;
  --body-size: clamp(1rem, 1.1vw, 1.125rem);
  --text-size: clamp(1.125rem, 1.6vw, 1.4rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
html.homepage { --home-header-height: 64px; scroll-padding-top: calc(var(--home-header-height) + .75rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--body-size)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(3.5rem, 7.2vw, 6rem); line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1.09; text-wrap: balance; }
h3 { font-size: 1rem; line-height: 1.35; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
::selection { background: var(--citron); color: var(--green); }
[hidden] { display: none !important; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 3;
  top: .4rem;
  left: .4rem;
  padding: .65rem 1rem;
  background: var(--green);
  color: var(--sheet);
  translate: 0 -160%;
}
.skip-link:focus { translate: 0; }

.masthead {
  min-height: 68px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.masthead a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}
.masthead a:is(:hover, [aria-current="page"]) { text-decoration: underline; }
.masthead .wordmark {
  font-family: var(--display);
  font-size: clamp(1rem, 2.05vw, 1.5rem);
  letter-spacing: -.025em;
  white-space: nowrap;
  text-decoration: none;
}
.masthead nav { display: flex; flex-wrap: wrap; column-gap: clamp(.85rem, 3vw, 2rem); font-size: .9375rem; font-weight: 600; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.hero-lead {
  max-width: 34ch;
  margin-top: clamp(1rem, 2vw, 1.6rem);
  font-size: var(--text-size);
  line-height: 1.5;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.25rem;
  margin-top: 1.5rem;
  padding: .7rem 1rem .7rem 1.15rem;
  min-height: 50px;
  background: var(--green);
  color: var(--sheet);
  border: 1px solid var(--green);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, translate .2s ease;
}
.action:hover { background: var(--citron); color: var(--green); translate: 0 -2px; }
.action:active { translate: 0 1px; }
.action svg, .link-icon {
  fill: none;
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-header { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.home-header .masthead { min-height: var(--home-header-height); }
.home-header .wordmark { font-size: clamp(1rem, 1.85vw, 1.3rem); }
.home-header .wordmark[aria-current="page"]:not(:hover) { text-decoration: none; }
.home-hero { padding-block: clamp(2.3rem, 4.5vw, 4.25rem); }
.home-hero h1 { max-width: 9ch; }
.home-hero .home-photo { border: 0; padding: 0; }
.home-photo { border-top: 1px solid var(--rust); padding-top: .65rem; }
.home-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 2400 / 1466;
  background: #bdbdb0;
}

.work-section { padding-top: .5rem; }
.work-section > h2 { margin-bottom: 1.15rem; font-size: clamp(2rem, 3.3vw, 3.1rem); }
.work-grid, .decision-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}
.work-grid {
  padding: clamp(1.3rem, 4.2vw, 3.6rem);
  background: var(--green);
  color: var(--sheet);
}
.decision-grid { padding-block: clamp(2.65rem, 6vw, 5.25rem); }
.work-grid h3 { max-width: 15ch; color: var(--sheet); font: 400 clamp(2.1rem, 4vw, 3.75rem)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.work-grid p {
  max-width: 41ch;
  margin-top: .9rem;
  color: #e3e7d7;
  font-size: var(--text-size);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}
.work-grid .text-link { margin-top: .6rem; color: var(--citron); }
.label-preview { align-self: center; }
.label-preview figcaption { display: grid; gap: .15rem; margin-bottom: .95rem; }
.label-preview figcaption strong { font-size: var(--text-size); font-weight: 650; }
.label-preview figcaption span { color: #dfe8d9; font-size: .875rem; }
.label-preview-rows { border-top: 1px solid var(--green-line); }
.label-preview-row {
  display: grid;
  grid-template-columns: 3.8rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--green-line);
  font-size: .9375rem;
}
.label-preview-row dt { font-weight: 650; }
.label-preview-row dd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .65rem; }
.label-preview-row dd > span:first-child { color: #e3e7d7; }
.label-preview-row dd strong { color: var(--citron); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.label-preview-track { height: .5rem; background: #405d51; }
.label-preview-bar { display: block; height: 100%; background: var(--citron); }
.label-preview-bar.short { width: calc(100% / 3); }

.research-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem);
}
.research-section h2 { max-width: 21ch; }
.research-section h2 strong { color: var(--rust); font-weight: 400; }
.research-copy { max-width: 60ch; }
.research-copy p + p { margin-top: .95rem; }
.research-copy a { font-weight: 600; }

.case-return { margin-top: .7rem; }
.case-return .text-link { color: var(--soft-ink); font-size: .9rem; gap: .35rem; }
.case-return .link-icon { width: 17px; height: 17px; }
.case-hero { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); padding-top: clamp(1.5rem, 3.4vw, 3rem); }
.case-hero h1 { max-width: 17ch; font-size: clamp(2.8rem, 4.6vw, 4.8rem); }
.case-context { margin-top: 1.05rem; color: var(--rust); font-weight: 650; }
.case-hero .hero-lead { max-width: 38ch; margin-top: 1.15rem; }

.timing-sheet {
  min-width: 0;
  padding: clamp(1.15rem, 3.3vw, 3rem);
  background: var(--citron);
  border: 1px solid #9b9257;
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding-bottom: clamp(1.3rem, 3vw, 2.2rem);
  border-bottom: 1px solid #9b9257;
}
.sheet-head h2 { font-size: clamp(1.8rem, 3.2vw, 3.25rem); }
.sheet-head p { color: var(--soft-ink); font-size: .875rem; }
.lenses { border: 0; margin: 1rem 0 0; padding: 0; min-width: 0; }
.lenses legend { font-size: .875rem; font-weight: 650; padding: 0 0 .6rem; }
.lenses input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.lens-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.lens-controls label {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 45px;
  padding: .45rem .6rem;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  text-align: center;
  font-size: .875rem;
  font-weight: 650;
  transition: background-color .2s ease, color .2s ease;
}
.lens-controls label:hover { background: var(--sheet); }
#lens-count:checked ~ .lens-controls label[for="lens-count"],
#lens-time:checked ~ .lens-controls label[for="lens-time"] { background: var(--green); color: var(--sheet); }
#lens-count:focus-visible ~ .lens-controls label[for="lens-count"],
#lens-time:focus-visible ~ .lens-controls label[for="lens-time"] { outline: 2px solid var(--green); outline-offset: 3px; }
.lens-panel { display: none; margin-top: 1.35rem; }
#lens-count:checked ~ .count-panel, #lens-time:checked ~ .time-panel { display: block; }
.task-row {
  display: grid;
  align-items: center;
  grid-template-columns: 3.35rem minmax(0, 1fr) 3.45rem;
  gap: .55rem;
  min-height: 2.8rem;
  padding-block: .4rem;
  border-bottom: 1px solid #9b9257;
  font-size: .875rem;
}
.task-row strong { text-align: right; font-weight: 700; }
.task-track { display: block; padding-block: .1rem; }
.count-mark { display: block; width: .75rem; height: 1rem; background: var(--green); }
.time-mark { display: block; width: calc(100% / 3); height: .7rem; background: var(--green); transform-origin: left center; }
.time-panel .task-row:nth-child(2) .time-mark { width: 100%; background: var(--rust); }
#lens-time:checked ~ .time-panel .time-mark { animation: mark-in .36s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mark-in { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
.lens-panel p { margin-top: 1rem; min-height: 3.1em; font-size: .9rem; }

.decision-section { background: var(--wash); border-block: 1px solid var(--rule); }
.decision-grid h2 { max-width: 15ch; }
.narrative > p { max-width: 56ch; font-size: var(--text-size); }
.decision-steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: pricing-step; }
.decision-steps li {
  position: relative;
  counter-increment: pricing-step;
  padding: 1.1rem 0 1.1rem 2.5rem;
  border-top: 1px solid var(--rule);
}
.decision-steps li::before {
  position: absolute;
  left: 0;
  content: counter(pricing-step, decimal-leading-zero);
  color: var(--rust);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.decision-steps p { margin-top: .3rem; color: var(--soft-ink); max-width: 62ch; }
.outcome-section .decision-grid { align-items: center; }
.earnings { color: var(--rust); font-size: clamp(2rem, 4.6vw, 4.5rem); line-height: 1.08; margin-top: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.earnings-caption { margin-top: .55rem; color: var(--soft-ink); }
.evidence { border-top: 1px solid var(--rule); margin-top: 1.5rem; }
.evidence summary { cursor: pointer; min-height: 44px; padding-block: .65rem; font-weight: 650; }
.evidence ul { margin: .35rem 0 0; padding-left: 1.3rem; color: var(--soft-ink); }
.evidence li + li { margin-top: .45rem; }
.personal-note {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2rem, 5vw, 5rem);
}
.personal-note p { max-width: 60ch; margin-top: 1rem; white-space: pre-wrap; }
.personal-note img { max-width: min(100%, 550px); margin-top: 1.25rem; }

.site-footer { border-top: 1px solid var(--rule); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
  padding-block: 1.7rem 2.25rem;
  color: var(--soft-ink);
  font-size: .875rem;
}
.footer-grid > div { display: grid; justify-items: start; }
.footer-grid > div a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-grid p { max-width: 58ch; }
.footer-grid a, .evidence a { overflow-wrap: anywhere; }

@media (max-width: 950px) {
  :root { --wrap: calc(100% - 64px); }
  .hero, .work-grid, .decision-grid, .research-section { gap: 2rem; }
  .case-hero { gap: clamp(1.75rem, 3vw, 2.5rem); }
}

@media (max-width: 850px) {
  .case-hero, .about-hero { grid-template-columns: minmax(0, 1fr); }
  .case-hero h1 { max-width: 19ch; }
  .case-hero .hero-lead { max-width: 52ch; }
}

@media (max-width: 700px) {
  :root { --wrap: calc(100% - 40px); }
  .masthead { min-height: 60px; }
  .masthead nav { font-size: .875rem; }
  .hero, .work-grid, .decision-grid, .research-section, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.1rem 2.65rem; gap: 1.5rem; }
  .home-hero h1 { max-width: none; font-size: clamp(2.75rem, 11vw, 4rem); text-wrap: initial; }
  .case-hero { padding-top: 1.25rem; }
  .case-hero h1, .about-hero h1 { font-size: clamp(2.65rem, 9vw, 4rem); text-wrap: initial; }
  .action { margin-top: 1.45rem; }
  .home-photo { padding-top: .45rem; }
  .sheet-head h2 { font-size: clamp(1.8rem, 7vw, 2.65rem); }
  .work-grid, .decision-grid, .research-section { gap: 1.5rem; }
  .footer-grid { gap: .85rem; }
}

@media (max-width: 360px) {
  :root { --wrap: calc(100% - 32px); }
  .masthead nav { gap: .68rem; }
  .masthead .wordmark { font-size: .94rem; }
  .action { width: 100%; font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


.project-index { margin-top: clamp(1rem, 2.5vw, 2rem); }
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.35rem, 4.2vw, 3.6rem); list-style: none; padding: 0; margin: 0; }
.project-list li { border-bottom: 1px solid var(--rule); }
.project-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem .35rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.project-link:is(:hover, :focus-visible), .project-list li:target .project-link { background: var(--sheet); }
.project-link:is(:hover, :focus-visible) .project-summary strong { text-decoration: underline; text-decoration-thickness: 1px; }
.project-summary { display: grid; gap: .32rem; }
.project-summary strong { font-size: var(--text-size); font-weight: 650; line-height: 1.3; }
.project-meta { display: flex; flex-wrap: wrap; gap: .12rem .75rem; font-size: .875rem; }
.project-meta > span:first-child { color: var(--rust); font-weight: 650; }
.project-org, .project-description { color: var(--soft-ink); }
.project-arrow { color: var(--rust); margin-top: .2rem; transition: translate .2s ease; }
.project-link:hover .project-arrow { translate: 3px 0; }

.about-hero .home-photo { align-self: center; }
.about-hero .home-photo img { aspect-ratio: auto; }
.profile-section { background: var(--green); color: var(--sheet); }
.profile-record { border-bottom: 1px solid var(--rule); }
.profile-record > div { padding-block: 1.15rem; border-top: 1px solid var(--rule); }
.profile-record dt { font-weight: 650; }
.profile-record dd p, .profile-role { margin-block-start: .35rem; }
.profile-role { display: block; color: var(--citron); font-size: .9rem; }
.profile-section .profile-record, .profile-section .profile-record > div { border-color: var(--green-line); }
.profile-record a { display: inline-flex; min-height: 44px; align-items: center; }
.publication-byline { margin-top: .8rem; color: var(--soft-ink); }
.benchmark-record { margin-top: 1.25rem; }
.benchmark-record dd { margin-top: .25rem; color: var(--soft-ink); }

.review-thread { margin: 1rem 0 0; list-style: none; padding: 0; }
.review-thread li { display: grid; gap: .12rem; padding-block: .55rem; border-bottom: 1px solid #9b9257; }
.review-thread li strong { font-size: .875rem; }
.review-thread .review-cutoff { font-size: .8rem; font-weight: 650; color: var(--rust); }
.review-thread .review-later, .thread-takeaway { display: none; }
.review-takeaway { margin-top: .8rem; font-size: .9rem; }
#view-ticket:checked ~ .lens-controls label[for="view-ticket"],
#view-thread:checked ~ .lens-controls label[for="view-thread"] { background: var(--green); color: var(--sheet); }
#view-ticket:focus-visible ~ .lens-controls label[for="view-ticket"],
#view-thread:focus-visible ~ .lens-controls label[for="view-thread"] { outline: 2px solid var(--green); outline-offset: 3px; }
#view-thread:checked ~ .review-thread .review-later { display: grid; }
#view-thread:checked ~ .ticket-takeaway { display: none; }
#view-thread:checked ~ .thread-takeaway { display: block; }

@media (max-width: 680px) {
  html.homepage { --home-header-height: 56px; }
  .project-list { grid-template-columns: minmax(0, 1fr); }
  .project-link { padding: 1rem .2rem; }
}

@media (max-width: 359px), (max-height: 430px) {
  html.homepage { scroll-padding-top: 1rem; }
  .home-header { position: static; }
}


.case-end {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  align-items: center;
  justify-items: start;
  gap: 1.1rem 2rem;
  padding-block: 1.1rem 1.65rem;
  border-top: 1px solid var(--rule);
}
.next-case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-self: end;
  gap: 1rem;
  width: 100%;
  max-width: 31rem;
  min-height: 64px;
  padding: .65rem 0 .65rem 1rem;
  text-decoration: none;
}
.next-case:hover strong { text-decoration: underline; text-underline-offset: .24em; }
.next-label { display: block; color: var(--rust); font-size: .875rem; font-weight: 650; }
.next-case strong { display: block; margin-top: .15rem; }
.next-case .link-icon { color: var(--rust); }
.evidence[open] summary { margin-bottom: .3rem; }
:where(h2, h3, section, .project-list li, .work-grid)[id] { scroll-margin-top: .5rem; }

@media (max-width: 480px) {
  .case-end { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .next-case { justify-self: start; padding: .75rem 0; border-top: 1px solid var(--rule); }
}
