@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/body.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0c1d33;
  --paper: #f6f5f2;
  --muted: #3e4e62;
  --line: rgba(12, 29, 51, 0.16);
  --line-strong: rgba(12, 29, 51, 0.38);
  --accent: #d63a22;
  --accent-ink: #9c2a18;
  --header: 4.1rem;
  --shell: 1120px;
  --font: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.034em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-ink); }

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

::selection { background: #f3cfc7; color: var(--ink); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

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

.shell {
  width: min(var(--shell), calc(100% - 2.4rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 245, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  min-height: var(--header);
}

.wordmark {
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark:hover { color: inherit; }

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  margin-left: auto;
  font-size: 0.94rem;
}
.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--ink); }

.header-email {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.94rem;
  border-bottom: 2px solid var(--accent);
}

.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { display: grid; }
.mobile-nav a {
  text-decoration: none;
  padding: 0.6rem 0;
  font-weight: 550;
  border-top: 1px solid var(--line);
}

.hero { padding: clamp(1.4rem, 3vw, 2.4rem) 0 0.4rem; }

.hero-top {
  display: grid;
  gap: 1.25rem 2.5rem;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  letter-spacing: -0.042em;
  line-height: 0.98;
  max-width: 14ch;
  font-weight: 600;
}

.lead {
  margin-top: 0.9rem;
  max-width: 38rem;
  font-size: 1.12rem;
  color: var(--ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
  align-items: center;
}

.button,
.button-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 0.95rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.015em;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: var(--ink);
}
.button:hover { background: #18314c; color: var(--paper); }
.button-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.button-line:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent-ink); }

.portrait { margin: 0; }
.portrait img {
  display: block;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  object-fit: cover;
  background: #d5d5d5;
}
.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.45rem;
  max-width: 22rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.route {
  margin: clamp(1.3rem, 3vw, 2rem) 0 0;
  padding: 1rem 0 0.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-track {
  position: relative;
  margin-top: 0.85rem;
}

.route ol {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
  display: grid;
  gap: 0.75rem;
  position: relative;
}
.route ol::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0.2rem;
  width: 2px;
  background: var(--accent);
  transform-origin: top center;
}
.route li {
  position: relative;
  padding-left: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.route li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.65rem;
  height: 2px;
  background: var(--ink);
}

.availability {
  display: grid;
  gap: 0.75rem;
  margin: 1.15rem 0 0;
}
.availability dt {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.availability dd {
  margin: 0.12rem 0 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.meters {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.meters a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.9rem 0 0.15rem;
}
.meters a:hover { color: inherit; }
.meters a:hover .meter-value { color: var(--accent-ink); }
.meter-value {
  display: block;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.meter-label {
  display: block;
  margin-top: 0.35rem;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.scale-note {
  margin: 0.9rem 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.section { padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.section-intro { max-width: 40rem; margin-bottom: 0.4rem; }
.section-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.section-intro p { margin-top: 0.55rem; color: var(--muted); max-width: 62ch; }

.case-row {
  display: grid;
  gap: 0.8rem 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.case-row h3 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}
.dek { margin-top: 0.45rem; max-width: 62ch; }
.result-line {
  margin-top: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 62ch;
}
.case-details { margin-top: 0.35rem; }
.case-details summary,
.role-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
  color: var(--accent-ink);
}
.case-details summary::-webkit-details-marker,
.role-details summary::-webkit-details-marker { display: none; }
.case-details summary:hover,
.role-details summary:hover { color: var(--ink); }

.case-body,
.more { max-width: 68ch; }
.case-details[open] .case-body,
.role-details[open] .more {
  margin-top: 0.35rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.case-body h4,
.more h4 {
  margin: 1.15rem 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.case-body p + p,
.more p + p,
.case-body ul,
.more ul { margin-top: 0.55rem; }
.case-body ul,
.more ul,
.doc ul { padding-left: 1.15rem; }
.case-body li,
.more li,
.doc li { margin: 0.3rem 0; }
.case-body a,
.doc a,
.record a,
.figures a { color: var(--accent-ink); }

.photo-frame { margin: 0; }
.photo-frame img { display: block; width: 100%; background: #ddd; }
.photo-frame figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 36ch;
}

.scope-plain { max-width: 68ch; }
.scope-plain p + p { margin-top: 0.7rem; }

.creds {
  display: grid;
  margin: 0.8rem 0 0;
  border-top: 1px solid var(--line);
}
.creds div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.creds dt { font-weight: 650; letter-spacing: -0.02em; }
.creds dd { margin: 0.12rem 0 0; color: var(--muted); }

.faq-grid { display: grid; gap: 1.1rem 2rem; }
.faq-grid article { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.faq-grid h3 { font-size: 1.12rem; }
.faq-grid p { margin-top: 0.4rem; color: var(--muted); max-width: 52ch; }

.contact {
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  border-top: 4px solid var(--accent);
}
.contact h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
  line-height: 0.98;
}
.contact .dek { margin-top: 0.8rem; max-width: 38rem; }
.contact-meta { margin-top: 0.7rem; color: var(--muted); max-width: 42rem; }

.timeline-wrap { border-top: 1px solid var(--line); padding: 0.4rem 0 1rem; }
.timeline-wrap > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  list-style: none;
}
.timeline-wrap > summary::-webkit-details-marker { display: none; }
.timeline {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.timeline > li {
  display: grid;
  gap: 0.15rem 1.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.when {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--accent-ink);
}
.timeline h3 { font-size: 1.08rem; }
.timeline h3 span { font-weight: 500; color: var(--muted); }
.dates { margin-top: 0.1rem; color: var(--muted); font-size: 0.92rem; }
.blurb { margin-top: 0.3rem; max-width: 68ch; }

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  padding: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--ink); }

dialog.drawer {
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  width: min(40rem, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -12px 0 36px rgba(12, 29, 51, 0.16);
}
dialog.drawer::backdrop { background: rgba(12, 29, 51, 0.46); }
.drawer-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
}
.drawer-top h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.drawer-slot { padding: 0.3rem 1.2rem 2.4rem; overflow: auto; }
.close {
  font: inherit;
  font-weight: 650;
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.close:hover { color: var(--accent-ink); }
html.dialog-open,
html.dialog-open body { overflow: hidden; }
.drawer .case-body { border: 0; margin: 0; padding-top: 0.2rem; max-width: none; }

.doc-hero { padding: clamp(1.8rem, 4vw, 3rem) 0 0.2rem; }
.doc-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: -0.042em;
  line-height: 0.96;
}
.doc-hero .dek { margin-top: 0.75rem; max-width: 40rem; }
.doc { padding: 0.5rem 0 3.5rem; }
.doc h2 {
  margin: 2.1rem 0 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}
.doc .summary { font-size: 1.12rem; max-width: 68ch; }
.doc article { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.doc article h3 { font-size: 1.08rem; }
.doc .date {
  margin-top: 0.12rem;
  color: var(--accent-ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spec { display: grid; margin-top: 0.3rem; }
.spec div { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.spec h3 { font-size: 1rem; }
.spec p { margin-top: 0.2rem; color: var(--muted); }
.record { padding: 0.9rem 0; border-bottom: 1px solid var(--line); max-width: 75ch; }
.record h3 { font-size: 1.08rem; }
.record p { margin-top: 0.3rem; }
.record a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 650;
}
.links { display: grid; }
.links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-ink);
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.page-note { color: var(--muted); max-width: 70ch; }

@media (min-width: 760px) {
  .route-track { padding-left: 0; padding-top: 0.2rem; }
  .route ol {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 1.15rem 0 0.15rem;
  }
  .route ol::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    transform-origin: left center;
  }
  .route li { padding-left: 0; padding-top: 0.85rem; }
  .route li::before {
    left: 0;
    top: -1.15rem;
    width: 2px;
    height: 1.15rem;
  }
  .availability { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meters { grid-template-columns: 0.8fr 1.2fr 1fr; }
  .meters li + li { border-left: 1px solid var(--line); }
  .meters li + li a { padding-left: 1.1rem; }
  .timeline > li { grid-template-columns: 5.5rem 1fr; }
  .creds,
  .faq-grid,
  .spec { grid-template-columns: 1fr 1fr; }
  .creds div:nth-child(odd),
  .spec div:nth-child(odd) { padding-right: 1.4rem; }
  .creds div:nth-child(even),
  .spec div:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 1.4rem;
  }
  .case-row.with-photo { grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.7fr); align-items: start; }
}

@media (min-width: 960px) {
  .hero-top { grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.62fr); }
  .shell { width: min(var(--shell), calc(100% - 4rem)); }
}

@media (max-width: 860px) {
  .primary-nav,
  .header-email { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 25;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.1rem 1.25rem 0.75rem;
  }
}

@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .route ol::before {
    animation: draw-route 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes draw-route {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header, .skip-link, .actions, .footer, .case-details summary, .role-details summary, .timeline-wrap > summary { display: none !important; }
  .case-details .case-body, .role-details .more, .timeline-wrap .timeline { display: block !important; }
  dialog.drawer { display: none !important; }
  body { font-size: 11pt; background: white; }
}
