:root {
  color-scheme: dark;
  --ink: #f2f2f2;
  --hero-ink: #ffffff;
  --ink-soft: #a7a7ad;
  --ink-faint: #8a8a91;
  --paper: #0b0b0c;
  --paper-raised: #151517;
  --paper-soft: #202023;
  --line: #333337;
  --accent: #0a84ff;
  --font-sans: -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --shell: 1180px;
  --gutter: clamp(20px, 4.1vw, 48px);
  --identity-h: 120px;
  --display: clamp(3.25rem, 8.3vw, 6.75rem);
  --title: clamp(2rem, 5.2vw, 4rem);
  --subhead: clamp(1.35rem, 3vw, 2rem);
  --heading: clamp(1.25rem, 2.2vw, 1.7rem);
  --body: clamp(1.05rem, 1.55vw, 1.32rem);
  --small: clamp(0.9rem, 1.2vw, 1rem);
  --eyebrow: 0.75rem;
  --bio-divider-gap: clamp(38.4px, 6svh, 67.2px);
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-kerning: normal;
  font-optical-sizing: auto;
  min-width: 320px;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: #0b0b0c;
}

a {
  color: inherit;
  text-decoration-color: var(--ink-faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

main:focus {
  outline: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

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

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: 16px;
  padding: 12px 16px;
  position: fixed;
  top: 12px;
  transform: translateY(-180%);
  z-index: 200;
}

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

.site-shell {
  margin: 0 auto;
  max-width: var(--shell);
  padding: 0 var(--gutter);
}

.identity {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  min-height: var(--identity-h);
  padding: 34px 0 30px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.identity-link {
  display: inline-block;
  text-decoration: none;
}

.identity-link:hover .identity-name,
.identity-link:focus-visible .identity-name {
  color: var(--accent);
}

.identity-name {
  color: var(--ink);
  display: block;
  font-size: clamp(1.125rem, 2.1vw, 1.5rem);
  font-weight: 650;
  letter-spacing: 0.009em;
  line-height: 1.17;
}

.identity-role {
  color: var(--ink-soft);
  display: block;
  font-size: clamp(0.96rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  margin-top: 2px;
}

.page-hero {
  align-content: center;
  display: grid;
  min-height: clamp(430px, 64svh, 650px);
  padding: clamp(64px, 10svh, 112px) 0;
}

.page-hero.compact {
  min-height: clamp(380px, 54svh, 560px);
}

.eyebrow,
.section-label,
.record-label,
.case-number,
.case-meta dt,
.book-number,
.page-note {
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--ink-soft);
  margin: 0 0 clamp(18px, 3svh, 30px);
}

.eyebrow .index {
  color: var(--accent);
  margin-right: 16px;
}

.page-hero h1 {
  color: var(--hero-ink);
  font-size: var(--display);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 0.98;
  margin: 0;
  max-width: 10ch;
  text-wrap: balance;
}

.bio-title-row {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 40px);
}

.bio-title-row .bio-portrait {
  flex: 0 0 128px;
}

.page-hero .page-intro {
  color: var(--ink-soft);
  font-size: var(--subhead);
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin: clamp(28px, 5svh, 48px) 0 0;
  max-width: 34ch;
  text-wrap: pretty;
}

.page-hero .page-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.content-section {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 10svh, 112px) 0;
}

.page-hero.compact.bio-hero {
  align-content: end;
  padding-bottom: var(--bio-divider-gap);
}

.content-section.bio-profile-section {
  padding-top: var(--bio-divider-gap);
}

.content-section:last-child {
  padding-bottom: clamp(82px, 13svh, 148px);
}

.section-grid {
  display: grid;
  gap: clamp(36px, 7vw, 96px);
  grid-template-columns: minmax(140px, 0.26fr) minmax(0, 1fr);
}

.section-label {
  color: var(--ink-soft);
  margin: 0;
}

.section-body {
  min-width: 0;
}

.section-body > :first-child {
  margin-top: 0;
}

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

.prose {
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.58;
  max-width: 720px;
}

.prose p {
  margin: 0 0 1.35em;
  text-wrap: pretty;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.bio-profile {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

.bio-portrait {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  max-width: 128px;
  overflow: hidden;
  width: 100%;
}

.bio-portrait img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.fact-list,
.record-list {
  border-top: 1px solid var(--line);
  margin: 0;
}

.fact-row,
.record-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  padding: 24px 0;
}

.fact-row dt,
.record-row dt {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.045em;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.fact-row dd,
.record-row dd {
  font-size: var(--small);
  line-height: 1.55;
  margin: 0;
}

.inline-links,
.source-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 32px;
}

.inline-links a,
.source-links a,
.book-links a {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.045em;
  line-height: 1.5;
  min-height: 44px;
  padding: 8px 0;
  text-transform: uppercase;
}

.case-study {
  border-top: 1px solid var(--line);
  padding: clamp(70px, 11svh, 120px) 0;
  scroll-margin-top: calc(var(--identity-h) + 24px);
}

.case-study:last-child {
  padding-bottom: clamp(96px, 14svh, 160px);
}

.case-header {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr);
  margin-bottom: clamp(48px, 8svh, 80px);
}

.case-number {
  color: var(--accent);
  margin: 0 0 18px;
}

.case-header h2 {
  font-size: var(--title);
  font-weight: 650;
  letter-spacing: -0.026em;
  line-height: 1.05;
  margin: 0;
  max-width: 17ch;
  text-wrap: balance;
}

.case-meta {
  align-self: end;
  display: grid;
  gap: 18px;
  margin: 0;
}

.case-meta div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.case-meta dt {
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.case-meta dd {
  color: var(--ink);
  font-size: var(--small);
  line-height: 1.45;
  margin: 0;
}

.question-grid {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 250px;
  padding: clamp(28px, 4.5vw, 52px);
}

.answer h3 {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.5;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.answer h3 span {
  color: var(--accent);
  margin-right: 12px;
}

.answer p {
  font-size: clamp(1.05rem, 1.65vw, 1.32rem);
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}

.case-footer {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 24px;
}

.tag-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  min-height: 44px;
  padding: 0;
}

.tag-list li {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.case-source {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.04em;
  line-height: 1.5;
  min-height: 44px;
  text-transform: uppercase;
}

.patent-feature {
  display: grid;
  gap: clamp(44px, 8vw, 104px);
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1fr);
}

.content-section[id] {
  scroll-margin-top: calc(var(--identity-h) + 24px);
}

.patent-number {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--small);
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin: 0;
}

.patent-copy h2 {
  font-size: var(--title);
  font-weight: 650;
  letter-spacing: -0.026em;
  line-height: 1.04;
  margin: 0 0 32px;
  max-width: 16ch;
}

.patent-copy > p {
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.58;
  margin: 0 0 1.35em;
  max-width: 700px;
  text-wrap: pretty;
}

.book-list {
  border-top: 1px solid var(--line);
}

.book-entry {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(110px, 0.2fr) minmax(0, 1fr);
  padding: clamp(56px, 9svh, 96px) 0;
  scroll-margin-top: calc(var(--identity-h) + 24px);
}

.book-number {
  color: var(--accent);
  margin: 3px 0 0;
}

.book-copy h2 {
  font-size: var(--title);
  font-weight: 650;
  letter-spacing: -0.026em;
  line-height: 1.05;
  margin: 0;
  max-width: 19ch;
  text-wrap: balance;
}

.book-copy > p {
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.55;
  margin: 28px 0 0;
  max-width: 650px;
  text-wrap: pretty;
}

.book-editions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin: 34px 0 0;
}

.book-edition {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(100px, 0.25fr) minmax(0, 1fr);
  padding: 14px 0;
}

.book-edition dt {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  letter-spacing: 0.045em;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.book-edition dd {
  font-size: var(--small);
  line-height: 1.5;
  margin: 0;
}

.book-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 30px;
}

.page-note {
  color: var(--ink-faint);
  margin: 26px 0 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-entry {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(110px, 0.2fr) minmax(0, 1fr);
  padding: clamp(52px, 8svh, 88px) 0;
  scroll-margin-top: calc(var(--identity-h) + 24px);
}

.faq-number {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.5;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.faq-copy h2 {
  font-size: var(--heading);
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
}

.faq-copy p {
  color: var(--ink-soft);
  font-size: var(--body);
  line-height: 1.58;
  margin: 24px 0 0;
  max-width: 760px;
  text-wrap: pretty;
}

.error-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}

.error-hero h1 {
  max-width: 12ch;
}

.error-links {
  margin-top: clamp(28px, 5svh, 44px);
}

.site-footer {
  align-items: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 34px 0 48px;
}

.site-footer p {
  align-items: center;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.95rem;
  letter-spacing: -0.012em;
  line-height: 1.5;
  margin: 0;
  min-height: 44px;
}

.site-footer nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--eyebrow);
  gap: 20px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer nav a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding: 6px 0;
}

.site-footer nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

@media (max-width: 760px) {
  :root {
    --identity-h: 102px;
    --gutter: clamp(18px, 6vw, 24px);
    --display: clamp(2.75rem, 13vw, 4rem);
    --title: clamp(2rem, 9vw, 3rem);
    --subhead: clamp(1.25rem, 6vw, 1.65rem);
    --body: clamp(1.05rem, 4.8vw, 1.2rem);
    --bio-divider-gap: 33.6px;
  }

  .identity {
    min-height: var(--identity-h);
    padding: 22px 0;
  }

  .identity-name {
    line-height: 1.19;
  }

  .identity-role {
    letter-spacing: -0.018em;
    line-height: 1.24;
  }

  .page-hero,
  .page-hero.compact {
    min-height: clamp(360px, 58svh, 520px);
    padding: clamp(52px, 9svh, 78px) 0;
  }

  .page-hero h1 {
    letter-spacing: -0.018em;
    line-height: 1.02;
  }

  .bio-title-row .bio-portrait {
    flex-basis: 96px;
  }

  .page-hero .page-intro {
    line-height: 1.36;
    margin-top: 30px;
  }

  .content-section {
    padding: 56px 0 72px;
  }

  .section-grid,
  .bio-profile,
  .case-header,
  .patent-feature,
  .book-entry,
  .faq-entry,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .case-header,
  .patent-feature,
  .book-entry,
  .faq-entry {
    gap: 28px;
  }

  .bio-portrait {
    max-width: 96px;
  }

  .prose {
    line-height: 1.55;
  }

  .fact-row,
  .record-row,
  .book-edition {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .case-study {
    padding: 64px 0 78px;
  }

  .case-header {
    margin-bottom: 38px;
  }

  .case-header h2,
  .book-copy h2,
  .patent-copy h2 {
    line-height: 1.08;
  }

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

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

  .answer {
    min-height: 0;
    padding: 28px 22px 34px;
  }

  .answer h3 {
    margin-bottom: 18px;
  }

  .case-footer {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .tag-list {
    min-height: 0;
  }

  .case-source {
    justify-self: start;
  }

  .book-entry {
    padding: 56px 0 64px;
  }

  .faq-entry {
    padding: 52px 0 58px;
  }

  .faq-copy p {
    margin-top: 20px;
  }

  .site-footer nav {
    gap: 10px 18px;
  }
}

@media (max-width: 420px) {
  .case-meta {
    grid-template-columns: 1fr;
  }
}

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