:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b53;
  --border: #e3ded4;
  --accent: #2f5d50;
  --accent-text: #ffffff;
  --tag-bg: #eeeae1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151614;
    --surface: #1d1f1c;
    --text: #ecebe6;
    --muted: #a5a39b;
    --border: #2f322d;
    --accent: #8cc7b2;
    --accent-text: #10201b;
    --tag-bg: #262924;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero { padding: 96px 24px 56px; }
.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  max-width: 22ch;
  margin: 0;
  font: 500 clamp(32px, 5vw, 52px)/1.12 var(--serif);
  letter-spacing: -0.01em;
}
.lede { max-width: 60ch; margin: 24px 0 0; font-size: 18px; color: var(--muted); }
.hero-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; font-weight: 500; }

/* Sections */
section.wrap { padding-top: 40px; padding-bottom: 24px; }
section.wrap + section.wrap { margin-top: 16px; }
h2 { margin: 0; font: 500 28px/1.2 var(--serif); }
.section-note { margin: 8px 0 28px; color: var(--muted); }
h3 { margin: 0; font-size: 22px; line-height: 1.25; }
h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.actions { display: flex; align-items: center; gap: 20px; }
.button {
  display: inline-flex;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
.link { font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 2px 10px;
  background: var(--tag-bg);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

/* More work */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.card p { margin: 0; flex: 1; }
.card.featured { grid-column: 1 / -1; border-color: var(--accent); }
.muted { color: var(--muted); font-size: 14px; }

footer { padding: 48px 24px 64px; border-top: 1px solid var(--border); margin-top: 48px; }
footer p { margin: 0 0 6px; }

@media (max-width: 760px) {
  .hero { padding-top: 56px; }
  .cards { grid-template-columns: 1fr; }
}

/* Landing page: showcases with screenshots */
.hero-links { align-items: center; }
.section-title { margin-bottom: 24px; }

.showcase {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-areas: "head info" "shots info";
  gap: 16px 56px;
  align-items: center;
  padding: 48px 0;
}
.showcase.flip { grid-template-columns: 1fr 1.45fr; grid-template-areas: "info head" "info shots"; }
.showcase-head { grid-area: head; display: grid; gap: 4px; align-self: end; }
.showcase-head h2 { font-size: 36px; }
.showcase .shots { grid-area: shots; }
.showcase .info { grid-area: info; }
.showcase + .showcase { border-top: 1px solid var(--border); }

.shots { position: relative; display: block; margin-bottom: 36px; text-decoration: none; }
.frame {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.frame.dark { background: #10131c; border-color: #262b38; }
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.frame.dark .bar { border-color: #262b38; color: #8b93a7; }
.dots { width: 42px; height: 10px; background: radial-gradient(circle, #e2645a 4px, transparent 5px) 0 0 / 14px 10px repeat-x; opacity: 0.8; }
.frame img, .inset, .study img { display: block; width: 100%; height: auto; }
.frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.inset {
  position: absolute;
  right: -20px;
  bottom: -36px;
  width: 44%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.45);
  transition: transform 0.2s ease;
}
.shots:hover .frame { transform: translateY(-4px); box-shadow: 0 32px 56px -24px rgb(0 0 0 / 0.4); }
.shots:hover .inset { transform: translateY(-8px); }
.shots:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 12px; }

.info { display: grid; gap: 14px; justify-items: start; }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tagline { margin: 0; font-size: 18px; color: var(--muted); }
.highlights { margin: 4px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.highlights li { position: relative; padding-left: 26px; }
.highlights li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.try { margin: 0; font-size: 14px; color: var(--muted); }

.studies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.study {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.study:hover { transform: translateY(-3px); border-color: var(--accent); }
.study img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--border); background: var(--bg); }
.study img.contain { object-fit: contain; padding: 12px; }
.study div { padding: 22px 24px 24px; display: grid; gap: 8px; align-content: start; }
.study p { margin: 0; color: var(--muted); }

.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mini a, .mini div {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.mini a:hover { border-color: var(--accent); }
.mini span { font-size: 14px; color: var(--muted); }

footer { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }

@media (max-width: 900px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; grid-template-areas: "head" "shots" "info"; gap: 16px; padding: 32px 0; }
  .showcase .shots { margin-bottom: 44px; }
  .inset { right: 0; width: 40%; }
  .studies, .mini { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .frame, .inset, .study { transition: none; }
}

/* Landing page header: just the name and a GitHub link */
.hero-compact { padding-top: 56px; padding-bottom: 0; }
.hero-compact .lede { margin-top: 12px; color: color-mix(in srgb, var(--text) 80%, var(--muted)); }
.name-row { display: flex; align-items: baseline; gap: 10px; }
.name-line {
  max-width: none;
  margin: 0;
  font: 600 14px/1.6 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
a.name-line { color: var(--accent); }
.name-sep { color: var(--muted); }
@media (max-width: 760px) { .hero-compact { padding-top: 40px; } }

/* Portfolio narrative and case studies. Generated markup: tools/portfolio/render.py. */
html { scroll-padding-top: 24px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 5; padding: 10px 16px; background: var(--surface); }
.skip-link:focus { top: 12px; }
.masthead { padding-top: 32px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 32px; }
.brand { font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
.portfolio-hero { padding-top: 64px; padding-bottom: 48px; }
.portfolio-hero h1 { max-width: 21ch; font-size: clamp(38px, 5.4vw, 62px); }
.portfolio-hero .lede { max-width: 64ch; }
.hero-copy { min-width: 0; }
.hero-flow { display: none; }
@media (min-width: 1000px) {
  .portfolio-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .portfolio-hero h1 { font-size: clamp(38px, 4.5vw, 58px); }
  .hero-flow { display: block; position: relative; min-width: 0; color: var(--accent); }
}
.workflow-art { display: block; width: 100%; height: auto; overflow: visible; }
.workflow-wires { opacity: .35; }
.workflow-labels { opacity: .58; }
.workflow-node-face { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.workflow-node { opacity: .8; }
.workflow-trigger { opacity: 1; }
.workflow-exception { color: var(--muted); }
.workflow-exception-wire { color: var(--muted); }
.workflow-halo { stroke: currentColor; stroke-width: 1; opacity: .15; animation: workflow-trigger-pulse 12s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.workflow-packet { stroke-dasharray: .08 .92; stroke-dashoffset: 1; opacity: 0; animation: workflow-trigger-travel 12s linear infinite; }
.workflow-packet-source { animation-name: workflow-source-travel; }
.workflow-packet-process { animation-name: workflow-process-travel; }
.workflow-packet-return { animation-name: workflow-return-travel; color: var(--muted); }
.workflow-packet-finish { animation-name: workflow-finish-travel; }
.workflow-toggle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.workflow-control { position: absolute; right: 0; bottom: -12px; padding: 4px 0 4px 12px; color: var(--muted); font-size: 11px; cursor: pointer; }
.workflow-control:hover { color: var(--text); }
.workflow-toggle:focus-visible + .workflow-control { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.workflow-play-label { display: none; }
.workflow-toggle:checked + .workflow-control .workflow-pause-label { display: none; }
.workflow-toggle:checked + .workflow-control .workflow-play-label { display: inline; }
.workflow-toggle:checked ~ .workflow-art * { animation-play-state: paused; }
@keyframes workflow-trigger-pulse {
  0%, 15%, 100% { opacity: 0; transform: scale(.75); }
  4% { opacity: .22; }
  14% { opacity: 0; transform: scale(1.5); }
}
@keyframes workflow-trigger-travel {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { opacity: .8; }
  12% { stroke-dashoffset: 0; opacity: .8; }
  14%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes workflow-source-travel {
  0%, 12% { stroke-dashoffset: 1; opacity: 0; }
  14% { opacity: .8; }
  28% { stroke-dashoffset: 0; opacity: .8; }
  30%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes workflow-process-travel {
  0%, 28% { stroke-dashoffset: 1; opacity: 0; }
  30% { opacity: .8; }
  46% { stroke-dashoffset: 0; opacity: .8; }
  48%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes workflow-return-travel {
  0%, 46% { stroke-dashoffset: 1; opacity: 0; }
  48% { opacity: .8; }
  68% { stroke-dashoffset: 0; opacity: .8; }
  70%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes workflow-finish-travel {
  0%, 68% { stroke-dashoffset: 1; opacity: 0; }
  70% { opacity: .8; }
  90% { stroke-dashoffset: 0; opacity: .8; }
  92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-art * { animation: none; }
  .workflow-node { opacity: 1; }
  .workflow-packet, .workflow-halo, .workflow-control, .workflow-toggle { display: none; }
}
.hero-proof { max-width: 70ch; margin-top: 28px; color: var(--muted); font-size: 14px; }
.portfolio-page .section-title { margin-bottom: 12px; }
.showcase-head h3 { font: 500 36px/1.2 var(--serif); }
.showcase-head .kicker { max-width: 48ch; }
.project-actions, .study .project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 0; }
.project-actions .button { white-space: nowrap; }
.text-action { font-weight: 600; }
.study-with-actions { transition: none; }
.study-with-actions:hover { transform: none; }
.study .project-actions .button { padding: 9px 14px; font-size: 14px; }
.study .project-actions .text-action { font-size: 14px; }
.study .muted { font-size: 13px; }
.program-intro { max-width: 72ch; padding: 24px 0; }
.program-intro h2 { margin-top: 8px; }
.context-program { border-top: 1px solid var(--border); }
.context-intro { max-width: 76ch; }
.context-intro h2 { max-width: 26ch; font-size: clamp(30px, 4vw, 40px); }
.context-opening { font-size: 19px; line-height: 1.6; }
.context-detail { max-width: 70ch; margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.context-intro h2 + .context-detail { margin-top: 24px; }
.context-detail + .context-detail { margin-top: 16px; }
.meaning-flow { display: none; }
@media (min-width: 1000px) {
  .context-heading-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .meaning-flow { display: block; position: relative; min-width: 0; color: var(--accent); }
}
.meaning-art { display: block; width: 100%; height: auto; }
@media (max-width: 999px) {
  .hero-flow, .meaning-flow {
    display: block;
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 24px auto 0;
    padding-bottom: 40px;
    color: var(--accent);
  }
  .hero-flow .workflow-control, .meaning-flow .workflow-control {
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}
.meaning-face { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.meaning-line { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.meaning-wires, .meaning-axis { opacity: .3; }
.meaning-small { font: 10px var(--sans); }
.meaning-selection { opacity: .05; animation: meaning-select 16s ease-in-out infinite; }
.meaning-fragment { opacity: 0; animation: meaning-copy 16s ease-in-out infinite; }
.meaning-pasted { opacity: 0; animation: meaning-paste 16s ease-in-out infinite; }
.meaning-thinking { opacity: .2; animation: meaning-think 16s ease-in-out infinite; }
.meaning-packet { stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .06 .94; stroke-dashoffset: 1; opacity: 0; animation: meaning-drop 16s linear infinite; }
.meaning-compute { animation-name: meaning-compute; }
.meaning-charts { animation: meaning-results 16s ease-in-out infinite; }
.meaning-bar { transform-box: fill-box; transform-origin: center bottom; animation: meaning-bars 16s ease-in-out infinite; }
.meaning-chart-line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: meaning-line-chart 16s ease-in-out infinite; }
.meaning-donut { animation: meaning-results 16s ease-in-out infinite; }
.workflow-toggle:checked ~ .meaning-art * { animation-play-state: paused; }
@keyframes meaning-select {
  0%, 30%, 100% { opacity: .05; }
  6%, 20% { opacity: .22; }
}
@keyframes meaning-copy {
  0%, 8% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: 1; transform: translate(0, 0); }
  26% { opacity: 1; transform: translate(182px, -27px); }
  28%, 100% { opacity: 0; transform: translate(182px, -27px); }
}
@keyframes meaning-paste {
  0%, 26%, 100% { opacity: 0; }
  28%, 92% { opacity: .8; }
}
@keyframes meaning-think {
  0%, 26%, 44%, 100% { opacity: .2; }
  30%, 38% { opacity: 1; }
  34%, 42% { opacity: .35; }
}
@keyframes meaning-drop {
  0%, 30% { stroke-dashoffset: 1; opacity: 0; }
  32% { opacity: .85; }
  44% { stroke-dashoffset: 0; opacity: .85; }
  46%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes meaning-compute {
  0%, 44% { stroke-dashoffset: 1; opacity: 0; }
  46% { opacity: .85; }
  74% { stroke-dashoffset: 0; opacity: .85; }
  76%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes meaning-results {
  0%, 70%, 100% { opacity: .25; }
  82%, 94% { opacity: 1; }
}
@keyframes meaning-bars {
  0%, 70%, 100% { transform: scaleY(.12); }
  84%, 94% { transform: scaleY(1); }
}
@keyframes meaning-line-chart {
  0%, 70%, 100% { stroke-dashoffset: 1; }
  86%, 94% { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .meaning-art * { animation: none; }
  .meaning-selection { opacity: .1; }
  .meaning-pasted, .meaning-charts, .meaning-donut { opacity: 1; }
  .meaning-fragment, .meaning-packet { display: none; }
  .hero-flow .workflow-toggle, .hero-flow .workflow-control,
  .meaning-flow .workflow-toggle, .meaning-flow .workflow-control { display: none; }
  .hero-flow, .meaning-flow { padding-bottom: 0; }
}
.context-example { margin: 32px 0 40px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.context-example h3 { font-size: 16px; color: var(--muted); }
.context-example blockquote { margin: 20px 0; font: 500 clamp(23px, 3vw, 28px)/1.4 var(--serif); }
.context-example p { max-width: 80ch; }
.context-example blockquote p { margin: 0; }
.context-direction { margin-bottom: 0; font-weight: 600; }
.context-stage { margin: 40px 0 24px; font-size: 22px; }
.context-convergence { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.context-convergence > p { max-width: 80ch; }
.context-convergence .kicker { margin-top: 0; }
.component-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.component-list li { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.component-list a { font-weight: 650; }
.component-visual { display: block; }
.component-visual img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.component-copy { padding: 20px; }
.component-list span { display: block; color: var(--muted); margin-top: 8px; font-size: 14px; }
.contact-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 40px;
  align-items: start;
  margin-top: 48px;
  padding-top: 40px;
  padding-bottom: 48px;
}
.contact-footer h2 { max-width: 26ch; }
.contact-footer p { margin-top: 12px; }
.contact-actions { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 14px; }
.contact-links a { white-space: nowrap; }
.contact-actions .button {
  flex-basis: auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.contact-actions .button:hover { background: var(--tag-bg); border-color: var(--muted); filter: none; }
.contact-footer .footer-note { grid-column: 1 / -1; margin-top: 8px; }
.case-hero { padding-top: 56px; padding-bottom: 40px; }
.case-hero .project-actions { margin-top: 28px; }
.architecture-figure { margin: 24px auto 48px; }
.architecture-figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.architecture-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.evidence-date { max-width: 80ch; margin-top: 24px; }
.case-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; align-items: start; }
.case-nav { display: grid; gap: 12px; padding: 16px 0; position: sticky; top: 24px; font-size: 14px; }
.case-nav a { text-decoration: none; }
.case-nav a:hover { text-decoration: underline; }
.case-content { max-width: 76ch; }
.case-content section { padding: 28px 0; border-top: 1px solid var(--border); }
.case-content section h2 { margin-bottom: 18px; }
.case-content p, .program-page p { overflow-wrap: break-word; }
.case-content .tags { margin-top: 20px; }
.assistance-note, .next-measurement { background: var(--tag-bg); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0 16px; }
.assistance-note h3, .next-measurement h3 { font-size: 17px; }
.assistance-note p:last-child, .next-measurement p:last-child { margin-bottom: 0; }
.decision { padding: 18px 0 8px; }
.decision + .decision { border-top: 1px solid var(--border); margin-top: 8px; }
.decision h3 { margin-top: 8px; font-size: 21px; }
.readable-list { padding-left: 22px; }
.readable-list li + li, .try-route li + li { margin-top: 12px; }
.outcome-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.outcome { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.outcome .outcome-value { font: 500 27px/1.25 var(--serif); color: var(--accent); margin: 0 0 12px; overflow-wrap: anywhere; }
.outcome h3 { font-size: 16px; }
.outcome p:last-child { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.subsection-title { margin: 28px 0 16px; font-size: 18px; }
.milestones { list-style: none; padding: 0; margin: 20px 0; }
.milestones li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; border-top: 1px solid var(--border); padding: 16px 0; }
.milestone-date { font-size: 13px; font-weight: 600; color: var(--muted); }
.evidence-links { padding-left: 20px; }
.evidence-links li { margin: 8px 0; overflow-wrap: anywhere; }
.try-route { padding-left: 24px; margin-bottom: 24px; }
.component-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.component-card { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.component-card h2 { font-size: 26px; margin-top: 12px; }
.relationships { list-style: none; padding: 0; display: grid; gap: 20px; }
.relationship { border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 24px; border-radius: 0 12px 12px 0; }
.relationship h3 { margin-top: 14px; font-size: 20px; }
.relationship-scope { font-weight: 600; color: var(--accent); }
.relationship.planned { border-left-style: dashed; }
.relationship.limited { border-left-color: var(--muted); }
.status-badge { display: inline-block; background: var(--tag-bg); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.resume-content { max-width: 900px; }
.resume-hero { padding: 56px 0 24px; }
.resume-project { border-top: 1px solid var(--border); padding: 24px 0; }
.resume-project h2 { font-size: 24px; }
.resume-content section { margin: 24px 0; }
.resume-page .resume-hero { padding: 40px 0 32px; }
.resume-contact { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); }
.resume-section { padding: 28px 0; border-top: 1px solid var(--border); }
.resume-section h2 { margin-bottom: 20px; }
.resume-skills { gap: 10px; }
.resume-skills li { padding: 4px 12px; font-size: 14px; }
.resume-position + .resume-position { margin-top: 32px; }
.resume-entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.resume-entry-heading h3, .resume-education h3 { font-size: 19px; line-height: 1.4; }
.resume-dates { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.resume-company { margin: 4px 0 16px; color: var(--muted); }
.resume-position ul { padding-left: 22px; }
.resume-position li + li { margin-top: 12px; }
.resume-education { padding: 0; list-style: none; display: grid; gap: 24px; }
.resume-education li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.resume-education li div p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .case-layout { grid-template-columns: 1fr; gap: 16px; }
  .case-nav { position: static; display: flex; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--border); }
  .case-content { max-width: none; }
  .contact-footer { grid-template-columns: 1fr; }
  .component-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .masthead { padding-top: 24px; }
  .masthead nav { gap: 10px 16px; font-size: 13px; }
  .portfolio-hero { padding-top: 36px; }
  .portfolio-hero .hero-links { gap: 16px 20px; }
  .component-grid { grid-template-columns: 1fr; }
  .milestones li { grid-template-columns: 1fr; gap: 6px; }
  .case-hero { padding-top: 32px; }
  .case-hero h1 { overflow-wrap: break-word; }
  .relationship { padding: 20px; }
}
@media print {
  :root { --bg: #fff; --text: #111; --muted: #444; --border: #ccc; --accent: #244c40; --tag-bg: #f4f4f4; }
  .masthead, .skip-link, .contact-footer, .case-nav { display: none; }
  .resume-content { max-width: none; padding: 0; }
  .resume-hero { padding-top: 0; }
  .resume-page .resume-hero { padding: 0 0 16px; }
  .resume-hero .button { display: none; }
  .resume-section { padding: 16px 0; }
  .resume-position, .resume-education li { break-inside: avoid; }
  .resume-scope { font-size: 12px; }
  .resume-project { break-inside: avoid; padding: 16px 0; }
  .resume-project p { font-size: 12px; }
  a { color: inherit; }
}
